summaryrefslogtreecommitdiff
path: root/scp2/source/impress/registryitem_impress.scp
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2018-12-22 01:41:55 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2018-12-22 06:17:15 +0100
commit39b39f124a2bd6abe62e30bacac5d1326495d862 (patch)
treea30e2ae87d7279171bf565f24178db452596bf60 /scp2/source/impress/registryitem_impress.scp
parentb18e5fc324edb4a4ea20387fbdd3acc7c1e08309 (diff)
tdf#122266: Register default extensions for OOXML content types
This allows Windows/applications to pick OOXML editors (and thus LibreOffice) when they lookup by content type, not by extension. Change-Id: I0daca12f735035e6fc39484b5c788af37b81b575 Reviewed-on: https://gerrit.libreoffice.org/65563 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'scp2/source/impress/registryitem_impress.scp')
-rw-r--r--scp2/source/impress/registryitem_impress.scp26
1 files changed, 26 insertions, 0 deletions
diff --git a/scp2/source/impress/registryitem_impress.scp b/scp2/source/impress/registryitem_impress.scp
index 295f0b432ea0..be9ba5fea5b9 100644
--- a/scp2/source/impress/registryitem_impress.scp
+++ b/scp2/source/impress/registryitem_impress.scp
@@ -1110,6 +1110,32 @@ CONDITIONAL_REGISTER_DOCTEMPLATE_EXTENSION( Pot, gid_Module_Prg_Impress_MSO_Reg
CONDITIONAL_REGISTER_DOCTEMPLATE_EXTENSION( Potx, gid_Module_Prg_Impress_MSO_Reg, potx, POTX, MS_POWERPOINT_TEMPLATE, 8, simpress.exe, new, Impress )
CONDITIONAL_REGISTER_DOCTEMPLATE_EXTENSION( Potm, gid_Module_Prg_Impress_MSO_Reg, potm, POTM, MS_POWERPOINT_TEMPLATE, 8, simpress.exe, new, Impress )
+// Registering OOXML MIME content types, to allow OS/applications to redirect such content to LO even if extension is unknown
+
+RegistryItem gid_Regitem_Pptx_Mime_Database
+ ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
+ ModuleID = gid_Module_Prg_Impress_Bin;
+ Subkey = "MIME\Database\Content Type\application/vnd.openxmlformats-officedocument.presentationml.presentation";
+ Name = "Extension";
+ Value = ".pptx";
+End
+
+RegistryItem gid_Regitem_Ppsx_Mime_Database
+ ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
+ ModuleID = gid_Module_Prg_Impress_Bin;
+ Subkey = "MIME\Database\Content Type\application/vnd.openxmlformats-officedocument.presentationml.slideshow";
+ Name = "Extension";
+ Value = ".ppsx";
+End
+
+RegistryItem gid_Regitem_Potx_Mime_Database
+ ParentID = PREDEFINED_HKEY_CLASSES_ROOT;
+ ModuleID = gid_Module_Prg_Impress_Bin;
+ Subkey = "MIME\Database\Content Type\application/vnd.openxmlformats-officedocument.presentationml.template";
+ Name = "Extension";
+ Value = ".potx";
+End
+
// registering other supported types
CONDITIONAL_REGISTER_DOC_EXTENSION( Uop, gid_Module_Prg_Impress_Other_Reg, uop, UOP, UNIFORM_OFFICE_FORMAT_PRESENTATION, 7, simpress.exe, open, Impress )