diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2018-12-22 01:41:55 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2018-12-22 06:17:15 +0100 |
commit | 39b39f124a2bd6abe62e30bacac5d1326495d862 (patch) | |
tree | a30e2ae87d7279171bf565f24178db452596bf60 /scp2 | |
parent | tdf#107618 revert fix missing header when doc ends with section (diff) | |
download | core-39b39f124a2bd6abe62e30bacac5d1326495d862.tar.gz core-39b39f124a2bd6abe62e30bacac5d1326495d862.zip |
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')
-rw-r--r-- | scp2/source/calc/registryitem_calc.scp | 18 | ||||
-rw-r--r-- | scp2/source/impress/registryitem_impress.scp | 26 | ||||
-rw-r--r-- | scp2/source/writer/registryitem_writer.scp | 18 |
3 files changed, 62 insertions, 0 deletions
diff --git a/scp2/source/calc/registryitem_calc.scp b/scp2/source/calc/registryitem_calc.scp index 7464e701ca7c..a48a194522ed 100644 --- a/scp2/source/calc/registryitem_calc.scp +++ b/scp2/source/calc/registryitem_calc.scp @@ -1263,6 +1263,24 @@ CONDITIONAL_REGISTER_DOCTEMPLATE_EXTENSION( Xlt, gid_Module_Prg_Calc_MSO_Reg, x CONDITIONAL_REGISTER_DOCTEMPLATE_EXTENSION( Xltx, gid_Module_Prg_Calc_MSO_Reg, xltx, XLTX, MS_EXCEL_TEMPLATE, 4, scalc.exe, new, Calc ) CONDITIONAL_REGISTER_DOCTEMPLATE_EXTENSION( Xltm, gid_Module_Prg_Calc_MSO_Reg, xltm, XLTM, MS_EXCEL_TEMPLATE, 4, scalc.exe, new, Calc ) +// Registering OOXML MIME content types, to allow OS/applications to redirect such content to LO even if extension is unknown + +RegistryItem gid_Regitem_Xlsx_Mime_Database + ParentID = PREDEFINED_HKEY_CLASSES_ROOT; + ModuleID = gid_Module_Prg_Calc_Bin; + Subkey = "MIME\Database\Content Type\application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"; + Name = "Extension"; + Value = ".xlsx"; +End + +RegistryItem gid_Regitem_Xltx_Mime_Database + ParentID = PREDEFINED_HKEY_CLASSES_ROOT; + ModuleID = gid_Module_Prg_Calc_Bin; + Subkey = "MIME\Database\Content Type\application/vnd.openxmlformats-officedocument.spreadsheetml.template"; + Name = "Extension"; + Value = ".xltx"; +End + // registering other supported types CONDITIONAL_REGISTER_DOC_EXTENSION( Uos, gid_Module_Prg_Calc_Other_Reg, uos, UOS, UNIFORM_OFFICE_FORMAT_SPREADSHEET, 3, scalc.exe, open, Calc ) 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 ) diff --git a/scp2/source/writer/registryitem_writer.scp b/scp2/source/writer/registryitem_writer.scp index 7eb628a51721..98859a881836 100644 --- a/scp2/source/writer/registryitem_writer.scp +++ b/scp2/source/writer/registryitem_writer.scp @@ -1740,6 +1740,24 @@ CONDITIONAL_REGISTER_DOCTEMPLATE_EXTENSION( Dotx, gid_Module_Prg_Wrt_MSO_Reg, do CONDITIONAL_REGISTER_DOCTEMPLATE_EXTENSION( Dotm, gid_Module_Prg_Wrt_MSO_Reg, dotm, DOTM, MS_WORD_TEMPLATE, 2, swriter.exe, new, Writer ) CONDITIONAL_REGISTER_DOC_EXTENSION( Rtf, gid_Module_Prg_Wrt_MSO_Reg, rtf, RTF, MS_RTF_DOCUMENT, 1, swriter.exe, open, Writer ) +// Registering OOXML MIME content types, to allow OS/applications to redirect such content to LO even if extension is unknown + +RegistryItem gid_Regitem_Docx_Mime_Database + ParentID = PREDEFINED_HKEY_CLASSES_ROOT; + ModuleID = gid_Module_Prg_Wrt_Bin; + Subkey = "MIME\Database\Content Type\application/vnd.openxmlformats-officedocument.wordprocessingml.document"; + Name = "Extension"; + Value = ".docx"; +End + +RegistryItem gid_Regitem_Dotx_Mime_Database + ParentID = PREDEFINED_HKEY_CLASSES_ROOT; + ModuleID = gid_Module_Prg_Wrt_Bin; + Subkey = "MIME\Database\Content Type\application/vnd.openxmlformats-officedocument.wordprocessingml.template"; + Name = "Extension"; + Value = ".dotx"; +End + // registering other supported types CONDITIONAL_REGISTER_DOC_EXTENSION( Uot, gid_Module_Prg_Wrt_Other_Reg, uot, UOT, UNIFORM_OFFICE_FORMAT_TEXT, 1, swriter.exe, open, Writer ) |