summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--filter/Configuration_filter.mk2
-rw-r--r--filter/source/config/fragments/filters/MWAW_Presentation.xcu29
-rw-r--r--filter/source/config/fragments/types/MWAW_Presentation.xcu27
-rw-r--r--writerperfect/source/impress/MWAWPresentationImportFilter.cxx64
4 files changed, 59 insertions, 63 deletions
diff --git a/filter/Configuration_filter.mk b/filter/Configuration_filter.mk
index 166750a08ed7..7e5ea43b2a5b 100644
--- a/filter/Configuration_filter.mk
+++ b/filter/Configuration_filter.mk
@@ -630,6 +630,7 @@ $(eval $(call filter_Configuration_add_types,fcfg_langpack,fcfg_impress_types.xc
impress_OOXML_Presentation_Template \
impress_OOXML_Presentation_AutoPlay \
impress_ClarisWorks \
+ MWAW_Presentation \
))
$(eval $(call filter_Configuration_add_filters,fcfg_langpack,fcfg_impress_filters.xcu,filter/source/config/fragments/filters,\
@@ -653,6 +654,7 @@ $(eval $(call filter_Configuration_add_filters,fcfg_langpack,fcfg_impress_filter
impress_OOXML_Template \
impress_OOXML_AutoPlay \
ClarisWorks_Impress \
+ MWAW_Presentation \
))
# fcfg_chart
diff --git a/filter/source/config/fragments/filters/MWAW_Presentation.xcu b/filter/source/config/fragments/filters/MWAW_Presentation.xcu
new file mode 100644
index 000000000000..8cfa9445621d
--- /dev/null
+++ b/filter/source/config/fragments/filters/MWAW_Presentation.xcu
@@ -0,0 +1,29 @@
+<!--
+ * 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="MWAW_Presentation" oor:op="replace">
+ <prop oor:name="Flags">
+ <value>IMPORT ALIEN 3RDPARTYFILTER PREFERRED</value>
+ </prop>
+ <prop oor:name="FilterService">
+ <value>com.sun.star.comp.Impress.MWAWPresentationImportFilter</value>
+ </prop>
+ <prop oor:name="UIName">
+ <value xml:lang="en-US">Legacy Mac Presentation</value>
+ </prop>
+ <prop oor:name="FileFormatVersion">
+ <value>0</value>
+ </prop>
+ <prop oor:name="Type">
+ <value>MWAW_Presentation</value>
+ </prop>
+ <prop oor:name="DocumentService">
+ <value>com.sun.star.presentation.PresentationDocument</value>
+ </prop>
+</node>
diff --git a/filter/source/config/fragments/types/MWAW_Presentation.xcu b/filter/source/config/fragments/types/MWAW_Presentation.xcu
new file mode 100644
index 000000000000..2f96bff69e00
--- /dev/null
+++ b/filter/source/config/fragments/types/MWAW_Presentation.xcu
@@ -0,0 +1,27 @@
+<!--
+ * 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="MWAW_Presentation" oor:op="replace">
+ <prop oor:name="DetectService">
+ <value>com.sun.star.comp.Impress.MWAWImpressImportFilter</value>
+ </prop>
+ <prop oor:name="Extensions">
+ <value>*</value>
+ </prop>
+ <prop oor:name="MediaType"/>
+ <prop oor:name="Preferred">
+ <value>true</value>
+ </prop>
+ <prop oor:name="PreferredFilter">
+ <value>MWAW_Presentation</value>
+ </prop>
+ <prop oor:name="UIName">
+ <value>Legacy Mac Presentation</value>
+ </prop>
+</node>
diff --git a/writerperfect/source/impress/MWAWPresentationImportFilter.cxx b/writerperfect/source/impress/MWAWPresentationImportFilter.cxx
index 2a7afd257c43..68c9b3bde6bb 100644
--- a/writerperfect/source/impress/MWAWPresentationImportFilter.cxx
+++ b/writerperfect/source/impress/MWAWPresentationImportFilter.cxx
@@ -62,70 +62,8 @@ bool MWAWPresentationImportFilter::doDetectFormat(librevenge::RVNGInputStream &r
case MWAWDocument::MWAW_T_CLARISWORKS:
rTypeName = "impress_ClarisWorks";
break;
-
- case MWAWDocument::MWAW_T_ACTA:
- case MWAWDocument::MWAW_T_BEAGLEWORKS:
- case MWAWDocument::MWAW_T_ADOBEILLUSTRATOR:
- case MWAWDocument::MWAW_T_CLARISRESOLVE:
- case MWAWDocument::MWAW_T_DBASE:
- case MWAWDocument::MWAW_T_DOCMAKER:
- case MWAWDocument::MWAW_T_EDOC:
- case MWAWDocument::MWAW_T_FAMILYTREEMAKER:
- case MWAWDocument::MWAW_T_FILEMAKER:
- case MWAWDocument::MWAW_T_FOXBASE:
- case MWAWDocument::MWAW_T_FRAMEMAKER:
- case MWAWDocument::MWAW_T_FULLIMPACT:
- case MWAWDocument::MWAW_T_FULLPAINT:
- case MWAWDocument::MWAW_T_FULLWRITE:
- case MWAWDocument::MWAW_T_GREATWORKS:
- case MWAWDocument::MWAW_T_INFOGENIE:
- case MWAWDocument::MWAW_T_KALEIDAGRAPH:
- case MWAWDocument::MWAW_T_HANMACWORDJ:
- case MWAWDocument::MWAW_T_HANMACWORDK:
- case MWAWDocument::MWAW_T_LIGHTWAYTEXT:
- case MWAWDocument::MWAW_T_MACDOC:
- case MWAWDocument::MWAW_T_MACDRAFT:
- case MWAWDocument::MWAW_T_MACDRAW:
- case MWAWDocument::MWAW_T_MACDRAWPRO:
- case MWAWDocument::MWAW_T_MACPAINT:
- case MWAWDocument::MWAW_T_MACWRITE:
- case MWAWDocument::MWAW_T_MACWRITEPRO:
- case MWAWDocument::MWAW_T_MARINERWRITE:
- case MWAWDocument::MWAW_T_MINDWRITE:
- case MWAWDocument::MWAW_T_MICROSOFTFILE:
- case MWAWDocument::MWAW_T_MICROSOFTMULTIPLAN:
- case MWAWDocument::MWAW_T_MICROSOFTWORD:
- case MWAWDocument::MWAW_T_MICROSOFTWORKS:
- case MWAWDocument::MWAW_T_MORE:
- case MWAWDocument::MWAW_T_NISUSWRITER:
- case MWAWDocument::MWAW_T_OVERVUE:
- case MWAWDocument::MWAW_T_PAGEMAKER:
- case MWAWDocument::MWAW_T_PIXELPAINT:
- case MWAWDocument::MWAW_T_RAGTIME:
- case MWAWDocument::MWAW_T_READYSETGO:
- case MWAWDocument::MWAW_T_SUPERPAINT:
- case MWAWDocument::MWAW_T_SYMPOSIUM:
- case MWAWDocument::MWAW_T_TEACHTEXT:
- case MWAWDocument::MWAW_T_TEXEDIT:
- case MWAWDocument::MWAW_T_TRAPEZE:
- case MWAWDocument::MWAW_T_WINGZ:
- case MWAWDocument::MWAW_T_WRITENOW:
- case MWAWDocument::MWAW_T_WRITERPLUS:
- case MWAWDocument::MWAW_T_XPRESS:
- case MWAWDocument::MWAW_T_ZWRITE:
- case MWAWDocument::MWAW_T_4DIMENSION:
-
- case MWAWDocument::MWAW_T_RESERVED1:
- case MWAWDocument::MWAW_T_RESERVED2:
- case MWAWDocument::MWAW_T_RESERVED3:
- case MWAWDocument::MWAW_T_RESERVED4:
- case MWAWDocument::MWAW_T_RESERVED5:
- case MWAWDocument::MWAW_T_RESERVED6:
- case MWAWDocument::MWAW_T_RESERVED7:
- case MWAWDocument::MWAW_T_RESERVED8:
- case MWAWDocument::MWAW_T_RESERVED9:
- case MWAWDocument::MWAW_T_UNKNOWN:
default:
+ rTypeName = "MWAW_Presentation";
break;
}
}