Kaydet (Commit) 78e2af8d authored tarafından David Tardon's avatar David Tardon

enable more formats supported by libmwaw

Change-Id: I60d5ff673843236436af12f86f40916b7d266cd3
üst 8299924b
...@@ -328,8 +328,11 @@ $(call filter_Configuration_add_types,fcfg_langpack,fcfg_writer_types.xcu,filter ...@@ -328,8 +328,11 @@ $(call filter_Configuration_add_types,fcfg_langpack,fcfg_writer_types.xcu,filter
writer_eDoc_Document \ writer_eDoc_Document \
writer_FullWrite_Professional \ writer_FullWrite_Professional \
writer_Great_Works \ writer_Great_Works \
writer_HanMac_Word_J \
writer_HanMac_Word_K \ writer_HanMac_Word_K \
writer_LightWayText \ writer_LightWayText \
writer_Mac_Acta \
writer_Mac_More \
writer_Mac_Word \ writer_Mac_Word \
writer_Mac_Works \ writer_Mac_Works \
writer_MacDoc \ writer_MacDoc \
...@@ -384,8 +387,11 @@ $(call filter_Configuration_add_filters,fcfg_langpack,fcfg_writer_filters.xcu,fi ...@@ -384,8 +387,11 @@ $(call filter_Configuration_add_filters,fcfg_langpack,fcfg_writer_filters.xcu,fi
eDoc_Document \ eDoc_Document \
FullWrite_Professional \ FullWrite_Professional \
Great_Works \ Great_Works \
HanMac_Word_J \
HanMac_Word_K \ HanMac_Word_K \
LightWayText \ LightWayText \
Mac_Acta \
Mac_More \
Mac_Word \ Mac_Word \
Mac_Works \ Mac_Works \
MacDoc \ MacDoc \
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
--> -->
<node oor:name="Beagle Works" oor:op="replace"> <node oor:name="Beagle_Works" oor:op="replace">
<prop oor:name="Flags"> <prop oor:name="Flags">
<value>IMPORT ALIEN USESOPTIONS 3RDPARTYFILTER PREFERRED</value> <value>IMPORT ALIEN USESOPTIONS 3RDPARTYFILTER PREFERRED</value>
</prop> </prop>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<value>com.sun.star.comp.Writer.MWAWImportFilter</value> <value>com.sun.star.comp.Writer.MWAWImportFilter</value>
</prop> </prop>
<prop oor:name="UIName"> <prop oor:name="UIName">
<value xml:lang="x-default">Beagle Works Document</value> <value xml:lang="x-default">BeagleWorks/WordPerfect Works v1 Document</value>
</prop> </prop>
<prop oor:name="FileFormatVersion"> <prop oor:name="FileFormatVersion">
<value>0</value> <value>0</value>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
--> -->
<node oor:name="Great Works" oor:op="replace"> <node oor:name="Great_Works" oor:op="replace">
<prop oor:name="Flags"> <prop oor:name="Flags">
<value>IMPORT ALIEN USESOPTIONS 3RDPARTYFILTER PREFERRED</value> <value>IMPORT ALIEN USESOPTIONS 3RDPARTYFILTER PREFERRED</value>
</prop> </prop>
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<value>com.sun.star.comp.Writer.MWAWImportFilter</value> <value>com.sun.star.comp.Writer.MWAWImportFilter</value>
</prop> </prop>
<prop oor:name="UIName"> <prop oor:name="UIName">
<value xml:lang="x-default">Great Works Document</value> <value xml:lang="x-default">GreatWorks Document</value>
</prop> </prop>
<prop oor:name="FileFormatVersion"> <prop oor:name="FileFormatVersion">
<value>0</value> <value>0</value>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<value>com.sun.star.comp.Writer.MWAWImportFilter</value> <value>com.sun.star.comp.Writer.MWAWImportFilter</value>
</prop> </prop>
<prop oor:name="UIName"> <prop oor:name="UIName">
<value xml:lang="x-default">MacDoc Document</value> <value xml:lang="x-default">MacDoc v1 Document</value>
</prop> </prop>
<prop oor:name="FileFormatVersion"> <prop oor:name="FileFormatVersion">
<value>0</value> <value>0</value>
......
<!--
* 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="Mac_Acta" oor:op="replace">
<prop oor:name="Flags">
<value>IMPORT ALIEN USESOPTIONS 3RDPARTYFILTER PREFERRED</value>
</prop>
<prop oor:name="FilterService">
<value>com.sun.star.comp.Writer.MWAWImportFilter</value>
</prop>
<prop oor:name="UIName">
<value xml:lang="x-default">Acta Mac Classic Document</value>
</prop>
<prop oor:name="FileFormatVersion">
<value>0</value>
</prop>
<prop oor:name="Type">
<value>writer_Mac_Acta</value>
</prop>
<prop oor:name="DocumentService">
<value>com.sun.star.text.TextDocument</value>
</prop>
</node>
<!--
* 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="Mac_More" oor:op="replace">
<prop oor:name="Flags">
<value>IMPORT ALIEN USESOPTIONS 3RDPARTYFILTER PREFERRED</value>
</prop>
<prop oor:name="FilterService">
<value>com.sun.star.comp.Writer.MWAWImportFilter</value>
</prop>
<prop oor:name="UIName">
<value xml:lang="x-default">More Mac v2-3 Document</value>
</prop>
<prop oor:name="FileFormatVersion">
<value>0</value>
</prop>
<prop oor:name="Type">
<value>writer_Mac_More</value>
</prop>
<prop oor:name="DocumentService">
<value>com.sun.star.text.TextDocument</value>
</prop>
</node>
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<value>com.sun.star.comp.Writer.MWAWImportFilter</value> <value>com.sun.star.comp.Writer.MWAWImportFilter</value>
</prop> </prop>
<prop oor:name="Extensions"> <prop oor:name="Extensions">
<value>hqx zip</value> <value>dummy</value>
</prop> </prop>
<prop oor:name="MediaType"> <prop oor:name="MediaType">
<value></value> <value></value>
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
<value>true</value> <value>true</value>
</prop> </prop>
<prop oor:name="PreferredFilter"> <prop oor:name="PreferredFilter">
<value>Beagle Works</value> <value>Beagle_Works</value>
</prop> </prop>
<prop oor:name="UIName"> <prop oor:name="UIName">
<value>Beagle Works</value> <value>BeagleWorks/WordPerfect Works Document</value>
</prop> </prop>
</node> </node>
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<value>com.sun.star.comp.Writer.MWAWImportFilter</value> <value>com.sun.star.comp.Writer.MWAWImportFilter</value>
</prop> </prop>
<prop oor:name="Extensions"> <prop oor:name="Extensions">
<value>hqx zip</value> <value>dummy</value>
</prop> </prop>
<prop oor:name="MediaType"> <prop oor:name="MediaType">
<value></value> <value></value>
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
<value>true</value> <value>true</value>
</prop> </prop>
<prop oor:name="PreferredFilter"> <prop oor:name="PreferredFilter">
<value>Great Works</value> <value>Great_Works</value>
</prop> </prop>
<prop oor:name="UIName"> <prop oor:name="UIName">
<value>Great Works</value> <value>GreatWorks Document</value>
</prop> </prop>
</node> </node>
<!--
* 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="writer_Mac_Acta" oor:op="replace">
<prop oor:name="DetectService">
<value>com.sun.star.comp.Writer.MWAWImportFilter</value>
</prop>
<prop oor:name="Extensions">
<value>dummy</value>
</prop>
<prop oor:name="MediaType">
<value></value>
</prop>
<prop oor:name="Preferred">
<value>true</value>
</prop>
<prop oor:name="PreferredFilter">
<value>Mac_Acta</value>
</prop>
<prop oor:name="UIName">
<value>Acta Mac v1-2 Document</value>
</prop>
</node>
<!--
* 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="writer_Mac_More" oor:op="replace">
<prop oor:name="DetectService">
<value>com.sun.star.comp.Writer.MWAWImportFilter</value>
</prop>
<prop oor:name="Extensions">
<value>dummy</value>
</prop>
<prop oor:name="MediaType">
<value></value>
</prop>
<prop oor:name="Preferred">
<value>true</value>
</prop>
<prop oor:name="PreferredFilter">
<value>Mac_More</value>
</prop>
<prop oor:name="UIName">
<value>More Mac v2-3 Document</value>
</prop>
</node>
...@@ -152,6 +152,10 @@ throw( com::sun::star::uno::RuntimeException ) ...@@ -152,6 +152,10 @@ throw( com::sun::star::uno::RuntimeException )
switch (docType) switch (docType)
{ {
case MWAWDocument::MWAW_T_ACTA: case MWAWDocument::MWAW_T_ACTA:
sTypeName = "writer_Mac_Acta";
break;
case MWAWDocument::MWAW_T_BEAGLEWORKS:
sTypeName = "writer_Beagle_Works";
break; break;
case MWAWDocument::MWAW_T_CLARISWORKS: case MWAWDocument::MWAW_T_CLARISWORKS:
sTypeName = "writer_ClarisWorks"; sTypeName = "writer_ClarisWorks";
...@@ -162,18 +166,24 @@ throw( com::sun::star::uno::RuntimeException ) ...@@ -162,18 +166,24 @@ throw( com::sun::star::uno::RuntimeException )
case MWAWDocument::MWAW_T_EDOC: case MWAWDocument::MWAW_T_EDOC:
sTypeName = "writer_eDoc_Document"; sTypeName = "writer_eDoc_Document";
break; break;
case MWAWDocument::MWAW_T_GREATWORKS:
sTypeName = "writer_Great_Works";
break;
case MWAWDocument::MWAW_T_FULLWRITE: case MWAWDocument::MWAW_T_FULLWRITE:
sTypeName = "writer_FullWrite_Professional"; sTypeName = "writer_FullWrite_Professional";
break; break;
case MWAWDocument::MWAW_T_HANMACWORDK:
sTypeName = "writer_HanMac_Word_K";
break;
case MWAWDocument::MWAW_T_HANMACWORDJ: case MWAWDocument::MWAW_T_HANMACWORDJ:
sTypeName = "writer_HanMac_Word_J"; sTypeName = "writer_HanMac_Word_J";
break; break;
case MWAWDocument::MWAW_T_HANMACWORDK:
sTypeName = "writer_HanMac_Word_K";
break;
case MWAWDocument::MWAW_T_LIGHTWAYTEXT: case MWAWDocument::MWAW_T_LIGHTWAYTEXT:
sTypeName = "writer_LightWayText"; sTypeName = "writer_LightWayText";
break; break;
case MWAWDocument::MWAW_T_MACDOC:
sTypeName = "writer_MacDoc";
break;
case MWAWDocument::MWAW_T_MARINERWRITE: case MWAWDocument::MWAW_T_MARINERWRITE:
sTypeName = "writer_Mariner_Write"; sTypeName = "writer_Mariner_Write";
break; break;
...@@ -192,6 +202,9 @@ throw( com::sun::star::uno::RuntimeException ) ...@@ -192,6 +202,9 @@ throw( com::sun::star::uno::RuntimeException )
case MWAWDocument::MWAW_T_MICROSOFTWORKS: case MWAWDocument::MWAW_T_MICROSOFTWORKS:
sTypeName = "writer_Mac_Works"; sTypeName = "writer_Mac_Works";
break; break;
case MWAWDocument::MWAW_T_MORE:
sTypeName = "writer_Mac_More";
break;
case MWAWDocument::MWAW_T_NISUSWRITER: case MWAWDocument::MWAW_T_NISUSWRITER:
sTypeName = "writer_Nisus_Writer"; sTypeName = "writer_Nisus_Writer";
break; break;
...@@ -210,6 +223,24 @@ throw( com::sun::star::uno::RuntimeException ) ...@@ -210,6 +223,24 @@ throw( com::sun::star::uno::RuntimeException )
case MWAWDocument::MWAW_T_ZWRITE: case MWAWDocument::MWAW_T_ZWRITE:
sTypeName = "writer_ZWrite"; sTypeName = "writer_ZWrite";
break; break;
case MWAWDocument::MWAW_T_FRAMEMAKER:
case MWAWDocument::MWAW_T_MACDRAW:
case MWAWDocument::MWAW_T_MACPAINT:
case MWAWDocument::MWAW_T_PAGEMAKER:
case MWAWDocument::MWAW_T_READYSETGO:
case MWAWDocument::MWAW_T_RAGTIME:
case MWAWDocument::MWAW_T_XPRESS:
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: default:
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment