Kaydet (Commit) 32cd9f3c authored tarafından David Tardon's avatar David Tardon

merge libmwaw type/filter defs (Calc)

Change-Id: Ic0f01d2f71cad69bea0944c62fb0832bc6caa252
(cherry picked from commit 33ff1ba8)
üst 70d93ceb
...@@ -518,13 +518,12 @@ $(eval $(call filter_Configuration_add_types,fcfg_langpack,fcfg_calc_types.xcu,f ...@@ -518,13 +518,12 @@ $(eval $(call filter_Configuration_add_types,fcfg_langpack,fcfg_calc_types.xcu,f
calc_MS_Works_Document \ calc_MS_Works_Document \
calc_WPS_Lotus_Document \ calc_WPS_Lotus_Document \
calc_WPS_QPro_Document \ calc_WPS_QPro_Document \
calc_Beagle_Works \
calc_ClarisWorks \ calc_ClarisWorks \
calc_Claris_Resolve \ calc_Claris_Resolve \
calc_Great_Works \
calc_Mac_Works \ calc_Mac_Works \
calc_Mac_Wingz \
calc_AppleNumbers \ calc_AppleNumbers \
MWAW_Database \
MWAW_Spreadsheet \
)) ))
$(eval $(call filter_Configuration_add_filters,fcfg_langpack,fcfg_calc_filters.xcu,filter/source/config/fragments/filters,\ $(eval $(call filter_Configuration_add_filters,fcfg_langpack,fcfg_calc_filters.xcu,filter/source/config/fragments/filters,\
...@@ -561,11 +560,8 @@ $(eval $(call filter_Configuration_add_filters,fcfg_langpack,fcfg_calc_filters.x ...@@ -561,11 +560,8 @@ $(eval $(call filter_Configuration_add_filters,fcfg_langpack,fcfg_calc_filters.x
MS_Works_Calc \ MS_Works_Calc \
WPS_Lotus_Calc \ WPS_Lotus_Calc \
WPS_QPro_Calc \ WPS_QPro_Calc \
Beagle_Works_Calc \
ClarisWorks_Calc \ ClarisWorks_Calc \
Claris_Resolve_Calc \ Claris_Resolve_Calc \
Great_Works_Calc \
Mac_Wingz_Calc \
Mac_Works_Calc \ Mac_Works_Calc \
AppleNumbers \ AppleNumbers \
)) ))
......
<!--
* 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="Beagle_Works_Calc" oor:op="replace">
<prop oor:name="Flags">
<value>IMPORT ALIEN 3RDPARTYFILTER PREFERRED</value>
</prop>
<prop oor:name="FilterService">
<value>com.sun.star.comp.Calc.MWAWCalcImportFilter</value>
</prop>
<prop oor:name="UIName">
<value xml:lang="en-US">BeagleWorks/WordPerfect Works v1 Spreadsheet</value>
</prop>
<prop oor:name="FileFormatVersion">
<value>0</value>
</prop>
<prop oor:name="Type">
<value>calc_Beagle_Works</value>
</prop>
<prop oor:name="DocumentService">
<value>com.sun.star.sheet.SpreadsheetDocument</value>
</prop>
</node>
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
--> -->
<node oor:name="Great_Works_Calc" oor:op="replace"> <node oor:name="MWAW_Spreadsheet" oor:op="replace">
<prop oor:name="Flags"> <prop oor:name="Flags">
<value>IMPORT ALIEN 3RDPARTYFILTER PREFERRED</value> <value>IMPORT ALIEN 3RDPARTYFILTER PREFERRED</value>
</prop> </prop>
...@@ -15,13 +15,13 @@ ...@@ -15,13 +15,13 @@
<value>com.sun.star.comp.Calc.MWAWCalcImportFilter</value> <value>com.sun.star.comp.Calc.MWAWCalcImportFilter</value>
</prop> </prop>
<prop oor:name="UIName"> <prop oor:name="UIName">
<value xml:lang="en-US">GreatWorks Spreadsheet</value> <value xml:lang="en-US">Legacy Mac Spreadsheet/Database</value>
</prop> </prop>
<prop oor:name="FileFormatVersion"> <prop oor:name="FileFormatVersion">
<value>0</value> <value>0</value>
</prop> </prop>
<prop oor:name="Type"> <prop oor:name="Type">
<value>calc_Great_Works</value> <value>MWAW_Spreadsheet</value>
</prop> </prop>
<prop oor:name="DocumentService"> <prop oor:name="DocumentService">
<value>com.sun.star.sheet.SpreadsheetDocument</value> <value>com.sun.star.sheet.SpreadsheetDocument</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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<node oor:name="Mac_Wingz_Calc" oor:op="replace">
<prop oor:name="Flags"><value>IMPORT ALIEN 3RDPARTYFILTER PREFERRED</value></prop>
<prop oor:name="UIComponent"/>
<prop oor:name="FilterService"><value>com.sun.star.comp.Calc.MWAWCalcImportFilter</value></prop>
<prop oor:name="UserData"><value></value></prop>
<prop oor:name="UIName">
<value xml:lang="en-US">Wingz for Mac Document</value>
</prop>
<prop oor:name="FileFormatVersion"><value>0</value></prop>
<prop oor:name="Type"><value>calc_Mac_Wingz</value></prop>
<prop oor:name="TemplateName"/>
<prop oor:name="DocumentService"><value>com.sun.star.sheet.SpreadsheetDocument</value></prop>
</node>
...@@ -7,23 +7,19 @@ ...@@ -7,23 +7,19 @@
* *
--> -->
<node oor:name="calc_Great_Works" oor:op="replace"> <node oor:name="MWAW_Database" oor:op="replace">
<prop oor:name="DetectService"> <prop oor:name="DetectService">
<value>com.sun.star.comp.Calc.MWAWCalcImportFilter</value> <value>com.sun.star.comp.Calc.MWAWCalcImportFilter</value>
</prop> </prop>
<prop oor:name="Extensions"> <prop oor:name="Extensions"/>
<value>dummy</value> <prop oor:name="MediaType"/>
</prop>
<prop oor:name="MediaType">
<value></value>
</prop>
<prop oor:name="Preferred"> <prop oor:name="Preferred">
<value>true</value> <value>true</value>
</prop> </prop>
<prop oor:name="PreferredFilter"> <prop oor:name="PreferredFilter">
<value>Great_Works_Calc</value> <value>MWAW_Spreadsheet</value>
</prop> </prop>
<prop oor:name="UIName"> <prop oor:name="UIName">
<value>GreatWorks Document</value> <value>Legacy Mac Database</value>
</prop> </prop>
</node> </node>
...@@ -7,23 +7,19 @@ ...@@ -7,23 +7,19 @@
* *
--> -->
<node oor:name="calc_Beagle_Works" oor:op="replace"> <node oor:name="MWAW_Spreadsheet" oor:op="replace">
<prop oor:name="DetectService"> <prop oor:name="DetectService">
<value>com.sun.star.comp.Calc.MWAWCalcImportFilter</value> <value>com.sun.star.comp.Calc.MWAWCalcImportFilter</value>
</prop> </prop>
<prop oor:name="Extensions"> <prop oor:name="Extensions"/>
<value>dummy</value> <prop oor:name="MediaType"/>
</prop>
<prop oor:name="MediaType">
<value></value>
</prop>
<prop oor:name="Preferred"> <prop oor:name="Preferred">
<value>true</value> <value>true</value>
</prop> </prop>
<prop oor:name="PreferredFilter"> <prop oor:name="PreferredFilter">
<value>Beagle_Works_Calc</value> <value>MWAW_Spreadsheet</value>
</prop> </prop>
<prop oor:name="UIName"> <prop oor:name="UIName">
<value>BeagleWorks/WordPerfect Works Document</value> <value>Legacy Mac Spreadsheet</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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<node oor:name="calc_Mac_Wingz" oor:op="replace" >
<prop oor:name="DetectService"><value>com.sun.star.comp.Calc.MWAWCalcImportFilter</value></prop>
<prop oor:name="URLPattern"/>
<prop oor:name="Extensions"><value>dummy</value></prop>
<prop oor:name="MediaType"></prop>
<prop oor:name="Preferred"><value>true</value></prop>
<prop oor:name="PreferredFilter"><value>Mac_Wingz_Calc</value></prop>
<prop oor:name="UIName">
<value>Wingz for Mac Document</value>
</prop>
<prop oor:name="ClipboardFormat"/>
</node>
...@@ -54,90 +54,44 @@ bool MWAWCalcImportFilter::doDetectFormat(librevenge::RVNGInputStream &rInput, O ...@@ -54,90 +54,44 @@ bool MWAWCalcImportFilter::doDetectFormat(librevenge::RVNGInputStream &rInput, O
if (confidence == MWAWDocument::MWAW_C_EXCELLENT) if (confidence == MWAWDocument::MWAW_C_EXCELLENT)
{ {
if (docKind == MWAWDocument::MWAW_K_SPREADSHEET || docKind == MWAWDocument::MWAW_K_DATABASE) switch (docKind)
{
case MWAWDocument::MWAW_K_DATABASE:
{ {
switch (docType) switch (docType)
{ {
case MWAWDocument::MWAW_T_BEAGLEWORKS: case MWAWDocument::MWAW_T_CLARISWORKS:
rTypeName = "calc_Beagle_Works"; rTypeName = "calc_ClarisWorks";
break; break;
case MWAWDocument::MWAW_T_MICROSOFTWORKS:
rTypeName = "calc_Mac_Works";
break;
default:
rTypeName = "MWAW_Database";
break;
}
}
case MWAWDocument::MWAW_K_SPREADSHEET:
{
switch (docType)
{
case MWAWDocument::MWAW_T_CLARISRESOLVE: case MWAWDocument::MWAW_T_CLARISRESOLVE:
rTypeName = "calc_Claris_Resolve"; rTypeName = "calc_Claris_Resolve";
break; break;
case MWAWDocument::MWAW_T_CLARISWORKS: case MWAWDocument::MWAW_T_CLARISWORKS:
rTypeName = "calc_ClarisWorks"; rTypeName = "calc_ClarisWorks";
break; break;
case MWAWDocument::MWAW_T_GREATWORKS:
rTypeName = "calc_Great_Works";
break;
case MWAWDocument::MWAW_T_MICROSOFTWORKS: case MWAWDocument::MWAW_T_MICROSOFTWORKS:
rTypeName = "calc_Mac_Works"; rTypeName = "calc_Mac_Works";
break; break;
case MWAWDocument::MWAW_T_WINGZ:
rTypeName = "calc_Mac_Wingz";
break;
case MWAWDocument::MWAW_T_ACTA:
case MWAWDocument::MWAW_T_ADOBEILLUSTRATOR:
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_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_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_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: default:
rTypeName = "MWAW_Spreadsheet";
break; break;
} }
} }
default:
break;
}
} }
return !rTypeName.isEmpty(); return !rTypeName.isEmpty();
......
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