restore PocketWord filter, this time backed by libwps
Change-Id: If9843ae717f58e683252c8ea55360a567978395e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103514 Tested-by: Jenkins Reviewed-by: David Tardon <dtardon@redhat.com>
This commit is contained in:
parent
61b05af301
commit
1e6e891016
4 changed files with 63 additions and 0 deletions
|
@ -367,6 +367,7 @@ $(eval $(call filter_Configuration_add_types,fcfg_langpack,fcfg_writer_types.xcu
|
|||
Palm_Text_Document \
|
||||
StarOffice_Writer \
|
||||
writer_EPUB_Document \
|
||||
writer_PocketWord_File \
|
||||
))
|
||||
|
||||
$(eval $(call filter_Configuration_add_filters,fcfg_langpack,fcfg_writer_filters.xcu,filter/source/config/fragments/filters,\
|
||||
|
@ -415,6 +416,7 @@ $(eval $(call filter_Configuration_add_filters,fcfg_langpack,fcfg_writer_filters
|
|||
Palm_Text_Document \
|
||||
StarOffice_Writer \
|
||||
EPUB \
|
||||
PocketWord_File \
|
||||
))
|
||||
|
||||
# fcfg_web
|
||||
|
|
29
filter/source/config/fragments/filters/PocketWord_File.xcu
Normal file
29
filter/source/config/fragments/filters/PocketWord_File.xcu
Normal file
|
@ -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/.
|
||||
*
|
||||
* 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="PocketWord File" oor:op="replace">
|
||||
<prop oor:name="FileFormatVersion"><value>0</value></prop>
|
||||
<prop oor:name="Type"><value>writer_PocketWord_File</value></prop>
|
||||
<prop oor:name="DocumentService"><value>com.sun.star.text.TextDocument</value></prop>
|
||||
<prop oor:name="UIComponent"/>
|
||||
<prop oor:name="FilterService"><value>com.sun.star.comp.Writer.MSWorksImportFilter</value></prop>
|
||||
<prop oor:name="TemplateName"/>
|
||||
<prop oor:name="UIName">
|
||||
<value>Pocket Word</value>
|
||||
</prop>
|
||||
<prop oor:name="Flags"><value>IMPORT ALIEN 3RDPARTYFILTER</value></prop>
|
||||
</node>
|
|
@ -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/.
|
||||
*
|
||||
* 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="writer_PocketWord_File" oor:op="replace" >
|
||||
<prop oor:name="DetectService"><value>com.sun.star.comp.Writer.MSWorksImportFilter</value></prop>
|
||||
<prop oor:name="URLPattern"/>
|
||||
<prop oor:name="Extensions"><value>psw</value></prop>
|
||||
<prop oor:name="MediaType"><value>application/x-pocket-word</value></prop>
|
||||
<prop oor:name="Preferred"><value>false</value></prop>
|
||||
<prop oor:name="PreferredFilter"><value>PocketWord File</value></prop>
|
||||
<prop oor:name="UIName">
|
||||
<value>Pocket Word</value>
|
||||
</prop>
|
||||
<prop oor:name="ClipboardFormat"><value>doctype:pwi</value></prop>
|
||||
</node>
|
|
@ -115,6 +115,9 @@ bool MSWorksImportFilter::doDetectFormat(librevenge::RVNGInputStream& rInput, OU
|
|||
case libwps::WPS_RESERVED_1:
|
||||
rTypeName = "writer_DosWord";
|
||||
break;
|
||||
case libwps::WPS_RESERVED_4:
|
||||
rTypeName = "writer_PocketWord_File";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue