diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-09-08 15:31:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-09-11 09:38:21 +0000 |
commit | ed00d0ddd663085a5fd180301cdc82af80bc8077 (patch) | |
tree | e9949eddf99b907a06ab99f248e81831a1505699 /filter | |
parent | 4b758c52955e1931850938bf70764ee6376616a0 (diff) |
create a master document template type
of application/vnd.oasis.opendocument.text-master-template with
suffic otm
https://lists.oasis-open.org/archives/office-comment/201002/msg00042.html
desktop/icons/oasis-master-document-template.icns is just a copy
of
desktop/icons/oasis-master-document.icns
because I can't draw
Change-Id: I0d18c79c4c893e97505052884ee8be97d0f117a1
Reviewed-on: https://gerrit.libreoffice.org/11350
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'filter')
5 files changed, 52 insertions, 0 deletions
diff --git a/filter/Configuration_filter.mk b/filter/Configuration_filter.mk index 0465f1738183..36d758454534 100644 --- a/filter/Configuration_filter.mk +++ b/filter/Configuration_filter.mk @@ -488,6 +488,7 @@ $(call filter_Configuration_add_types,fcfg_langpack,fcfg_global_types.xcu,filter writer_globaldocument_StarOffice_XML_Writer_GlobalDocument \ pdf_Portable_Document_Format \ writerglobal8 \ + writerglobal8_template \ ) $(call filter_Configuration_add_filters,fcfg_langpack,fcfg_global_filters.xcu,filter/source/config/fragments/filters,\ @@ -496,6 +497,7 @@ $(call filter_Configuration_add_filters,fcfg_langpack,fcfg_global_filters.xcu,fi writer_globaldocument_StarOffice_XML_Writer_GlobalDocument \ writer_globaldocument_pdf_Export \ writerglobal8 \ + writerglobal8_template \ writerglobal8_writer \ writerglobal8_HTML \ ) @@ -505,6 +507,7 @@ $(call filter_Configuration_add_ui_filters,fcfg_langpack,filter/source/config/fr writer_globaldocument_StarOffice_XML_Writer_ui \ writer_globaldocument_StarOffice_XML_Writer_GlobalDocument_ui \ writerglobal8_ui \ + writerglobal8_template_ui \ writerglobal8_writer_ui \ ) diff --git a/filter/source/config/fragments/filters/writerglobal8_template.xcu b/filter/source/config/fragments/filters/writerglobal8_template.xcu new file mode 100644 index 000000000000..9cb8a8dcbae0 --- /dev/null +++ b/filter/source/config/fragments/filters/writerglobal8_template.xcu @@ -0,0 +1,17 @@ +<!-- + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. +--> + <node oor:name="writerglobal8_template" oor:op="replace"> + <prop oor:name="Flags"><value>IMPORT EXPORT TEMPLATE TEMPLATEPATH OWN ENCRYPTION PASSWORDTOMODIFY</value></prop> + <prop oor:name="UIComponent"/> + <prop oor:name="FilterService"/> + <prop oor:name="UserData"><value>CXMLV</value></prop> + <prop oor:name="FileFormatVersion"><value>6800</value></prop> + <prop oor:name="Type"><value>writerglobal8_template</value></prop> + <prop oor:name="TemplateName"/> + <prop oor:name="DocumentService"><value>com.sun.star.text.GlobalDocument</value></prop> + </node> diff --git a/filter/source/config/fragments/filters/writerglobal8_template_ui.xcu b/filter/source/config/fragments/filters/writerglobal8_template_ui.xcu new file mode 100644 index 000000000000..305ae8d860f0 --- /dev/null +++ b/filter/source/config/fragments/filters/writerglobal8_template_ui.xcu @@ -0,0 +1,12 @@ +<!-- + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. +--> +<node oor:name="writerglobal8_template"> + <prop oor:name="UIName"> + <value xml:lang="en-US">ODF Master Document Template</value> + </prop> +</node> diff --git a/filter/source/config/fragments/types/writerglobal8_template.xcu b/filter/source/config/fragments/types/writerglobal8_template.xcu new file mode 100644 index 000000000000..10c866b5f56f --- /dev/null +++ b/filter/source/config/fragments/types/writerglobal8_template.xcu @@ -0,0 +1,19 @@ +<!-- + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. +--> + <node oor:name="writerglobal8_template" oor:op="replace" > + <prop oor:name="DetectService"><value>com.sun.star.comp.filters.StorageFilterDetect</value></prop> + <prop oor:name="URLPattern"><value>private:factory/swriter/GlobalDocument*</value></prop> + <prop oor:name="Extensions"><value>otm</value></prop> + <prop oor:name="MediaType"><value>application/vnd.oasis.opendocument.text-master-template</value></prop> + <prop oor:name="Preferred"><value>true</value></prop> + <prop oor:name="PreferredFilter"><value>writerglobal8_template</value></prop> + <prop oor:name="UIName"> + <value xml:lang="en-US">Writer 8 Master Document Template</value> + </prop> + <prop oor:name="ClipboardFormat"><value>Writer/Global 8 Template</value></prop> + </node> diff --git a/filter/source/storagefilterdetect/filterdetect.cxx b/filter/source/storagefilterdetect/filterdetect.cxx index 591726119bb0..fa10c3c4e77a 100644 --- a/filter/source/storagefilterdetect/filterdetect.cxx +++ b/filter/source/storagefilterdetect/filterdetect.cxx @@ -45,6 +45,7 @@ OUString getInternalFromMediaType(const OUString& aMediaType) else if ( aMediaType == MIMETYPE_OASIS_OPENDOCUMENT_TEXT_TEMPLATE_ASCII ) return OUString("writer8_template"); else if ( aMediaType == MIMETYPE_OASIS_OPENDOCUMENT_TEXT_WEB_ASCII ) return OUString("writerweb8_writer_template"); else if ( aMediaType == MIMETYPE_OASIS_OPENDOCUMENT_TEXT_GLOBAL_ASCII ) return OUString("writerglobal8"); + else if ( aMediaType == MIMETYPE_OASIS_OPENDOCUMENT_TEXT_GLOBAL_TEMPLATE_ASCII ) return OUString("writerglobal8_template"); else if ( aMediaType == MIMETYPE_OASIS_OPENDOCUMENT_DRAWING_ASCII ) return OUString("draw8"); else if ( aMediaType == MIMETYPE_OASIS_OPENDOCUMENT_DRAWING_TEMPLATE_ASCII ) return OUString("draw8_template"); else if ( aMediaType == MIMETYPE_OASIS_OPENDOCUMENT_PRESENTATION_ASCII ) return OUString("impress8"); |