69cc7b
From d5a09cb1c8f61e2cfc60d8a1dfe57c1ed0a45cdc Mon Sep 17 00:00:00 2001
f085be
From: David Tardon <dtardon@redhat.com>
ebc4bd
Date: Thu, 21 Aug 2014 16:10:51 +0200
f085be
Subject: [PATCH] disable libe-book support
f085be
ebc4bd
Change-Id: Ie915a9bd2acf7f3aeb8b0933252da33c17043bc4
f085be
---
69cc7b
 configure.ac                                     | 6 ------
69cc7b
 external/Module_external.mk                      | 1 -
69cc7b
 filter/Configuration_filter.mk                   | 8 --------
69cc7b
 writerperfect/Library_wpftwriter.mk              | 2 --
69cc7b
 writerperfect/qa/unit/WpftImportTestBase.hxx     | 3 ---
69cc7b
 writerperfect/qa/unit/WpftWriterFilterTest.cxx   | 5 -----
69cc7b
 writerperfect/source/writer/wpftwriter.component | 5 -----
69cc7b
 7 files changed, 30 deletions(-)
f085be
f085be
diff --git a/configure.ac b/configure.ac
69cc7b
index 5ec9ae6..7aed2ed 100644
f085be
--- a/configure.ac
f085be
+++ b/configure.ac
69cc7b
@@ -7796,9 +7796,6 @@ AS_IF([test "$COM" = "MSC"],
f085be
 
69cc7b
 libo_CHECK_SYSTEM_MODULE([libfreehand],[FREEHAND],[libfreehand-0.1])
69cc7b
 
69cc7b
-libo_CHECK_SYSTEM_MODULE([libebook],[EBOOK],[libe-book-0.1])
69cc7b
-libo_PKG_VERSION([EBOOK], [libe-book-0.1], [0.1.2])
f085be
-
69cc7b
 libo_CHECK_SYSTEM_MODULE([libabw],[ABW],[libabw-0.1])
69cc7b
 
69cc7b
 libo_CHECK_SYSTEM_MODULE([libpagemaker],[PAGEMAKER],[libpagemaker-0.0])
ebc4bd
diff --git a/external/Module_external.mk b/external/Module_external.mk
69cc7b
index 55fce1f..2f53503 100644
ebc4bd
--- a/external/Module_external.mk
ebc4bd
+++ b/external/Module_external.mk
69cc7b
@@ -37,7 +37,6 @@ $(eval $(call gb_Module_add_moduledirs,external,\
ebc4bd
 	$(call gb_Helper_optional,CPPUNIT,cppunit) \
ebc4bd
 	$(call gb_Helper_optional,CT2N,ct2n) \
ebc4bd
 	$(call gb_Helper_optional,CURL,curl) \
ebc4bd
-	$(call gb_Helper_optional,EBOOK,libebook) \
ebc4bd
 	$(call gb_Helper_optional,EPM,epm) \
69cc7b
 	$(call gb_Helper_optional,EPOXY,epoxy) \
ebc4bd
 	$(call gb_Helper_optional,ETONYEK,libetonyek) \
f085be
diff --git a/filter/Configuration_filter.mk b/filter/Configuration_filter.mk
69cc7b
index 5dd20f7..d3dc749 100644
f085be
--- a/filter/Configuration_filter.mk
f085be
+++ b/filter/Configuration_filter.mk
69cc7b
@@ -345,10 +345,6 @@ $(eval $(call filter_Configuration_add_types,fcfg_langpack,fcfg_writer_types.xcu
f085be
 	writer_OOXML \
f085be
 	writer_OOXML_Template \
f085be
 	writer_layout_dump_xml \
f085be
-	writer_BroadBand_eBook \
f085be
-	writer_FictionBook_2 \
f085be
-	writer_PalmDoc \
f085be
-	writer_Plucker_eBook \
a9add1
 	writer_ApplePages \
69cc7b
 	MWAW_Text_Document \
69cc7b
 	Palm_Text_Document \
69cc7b
@@ -390,10 +386,6 @@ $(eval $(call filter_Configuration_add_filters,fcfg_langpack,fcfg_writer_filters
f085be
 	OOXML_Text \
f085be
 	OOXML_Text_Template \
f085be
 	writer_layout_dump \
f085be
-	BroadBand_eBook \
f085be
-	FictionBook_2 \
f085be
-	PalmDoc \
f085be
-	Plucker_eBook \
a9add1
 	ApplePages \
69cc7b
 	MWAW_Text_Document \
69cc7b
 	Palm_Text_Document \
f085be
diff --git a/writerperfect/Library_wpftwriter.mk b/writerperfect/Library_wpftwriter.mk
69cc7b
index 9ec43c4..48cbd52 100644
f085be
--- a/writerperfect/Library_wpftwriter.mk
f085be
+++ b/writerperfect/Library_wpftwriter.mk
a9add1
@@ -49,7 +49,6 @@ $(eval $(call gb_Library_use_libraries,wpftwriter,\
f085be
 $(eval $(call gb_Library_use_externals,wpftwriter,\
f085be
 	abw \
f085be
 	boost_headers \
f085be
-	ebook \
a9add1
 	etonyek \
69cc7b
 	icu_headers \
f085be
 	icui18n \
a9add1
@@ -65,7 +64,6 @@ $(eval $(call gb_Library_use_externals,wpftwriter,\
f085be
 
f085be
 $(eval $(call gb_Library_add_exception_objects,wpftwriter,\
f085be
 	writerperfect/source/writer/AbiWordImportFilter \
f085be
-	writerperfect/source/writer/EBookImportFilter \
f085be
 	writerperfect/source/writer/MSWorksImportFilter \
f085be
 	writerperfect/source/writer/MWAWImportFilter \
a9add1
 	writerperfect/source/writer/PagesImportFilter \
69cc7b
diff --git a/writerperfect/qa/unit/WpftImportTestBase.hxx b/writerperfect/qa/unit/WpftImportTestBase.hxx
69cc7b
index ce70172..d73d435 100644
69cc7b
--- a/writerperfect/qa/unit/WpftImportTestBase.hxx
69cc7b
+++ b/writerperfect/qa/unit/WpftImportTestBase.hxx
69cc7b
@@ -29,9 +29,6 @@
69cc7b
         ((minor) > (req_minor) \
69cc7b
          || ((minor) == (req_minor) && ((micro) >= (req_micro)))))
69cc7b
 
69cc7b
-#define REQUIRE_EBOOK_VERSION(major, minor, micro) \
69cc7b
-    REQUIRE_VERSION(EBOOK_VERSION_MAJOR, EBOOK_VERSION_MINOR, EBOOK_VERSION_MICRO, major, minor, micro)
69cc7b
-
69cc7b
 #define REQUIRE_ETONYEK_VERSION(major, minor, micro) \
69cc7b
     REQUIRE_VERSION(ETONYEK_VERSION_MAJOR, ETONYEK_VERSION_MINOR, ETONYEK_VERSION_MICRO, major, minor, micro)
69cc7b
 
ebc4bd
diff --git a/writerperfect/qa/unit/WpftWriterFilterTest.cxx b/writerperfect/qa/unit/WpftWriterFilterTest.cxx
69cc7b
index 99a6ab1..7de2c18 100644
ebc4bd
--- a/writerperfect/qa/unit/WpftWriterFilterTest.cxx
ebc4bd
+++ b/writerperfect/qa/unit/WpftWriterFilterTest.cxx
69cc7b
@@ -31,10 +31,6 @@ WpftWriterFilterTest::WpftWriterFilterTest()
69cc7b
 
ebc4bd
 void WpftWriterFilterTest::test()
ebc4bd
 {
69cc7b
-    const writerperfect::test::WpftOptionalMap_t aEBookOptional
69cc7b
-    {
69cc7b
-        {"FictionBook2.fb2.zip", REQUIRE_EBOOK_VERSION(0, 1, 1)},
69cc7b
-    };
69cc7b
     const writerperfect::test::WpftOptionalMap_t aEtonyekOptional
69cc7b
     {
69cc7b
         {"Pages_4.pages", REQUIRE_ETONYEK_VERSION(0, 1, 2)},
69cc7b
@@ -52,7 +48,6 @@ void WpftWriterFilterTest::test()
69cc7b
     };
69cc7b
 
ebc4bd
     doTest("com.sun.star.comp.Writer.AbiWordImportFilter", "/writerperfect/qa/unit/data/writer/libabw/");
69cc7b
-    doTest("org.libreoffice.comp.Writer.EBookImportFilter", "/writerperfect/qa/unit/data/writer/libe-book/", aEBookOptional);
69cc7b
     doTest("com.sun.star.comp.Writer.MSWorksImportFilter", "/writerperfect/qa/unit/data/writer/libwps/", aWpsOptional);
69cc7b
     doTest("com.sun.star.comp.Writer.MWAWImportFilter", "/writerperfect/qa/unit/data/writer/libmwaw/", aMWAWOptional);
69cc7b
     doTest("org.libreoffice.comp.Writer.PagesImportFilter", "/writerperfect/qa/unit/data/writer/libetonyek/", aEtonyekOptional);
a9add1
diff --git a/writerperfect/source/writer/wpftwriter.component b/writerperfect/source/writer/wpftwriter.component
69cc7b
index 4c5f37f..d815802 100644
a9add1
--- a/writerperfect/source/writer/wpftwriter.component
a9add1
+++ b/writerperfect/source/writer/wpftwriter.component
69cc7b
@@ -38,11 +38,6 @@
a9add1
     <service name="com.sun.star.document.ExtendedTypeDetection"/>
a9add1
     <service name="com.sun.star.document.ImportFilter"/>
a9add1
   </implementation>
69cc7b
-  
69cc7b
-      constructor="org_libreoffice_comp_Writer_EBookImportFilter_get_implementation">
a9add1
-    <service name="com.sun.star.document.ExtendedTypeDetection"/>
a9add1
-    <service name="com.sun.star.document.ImportFilter"/>
a9add1
-  </implementation>
69cc7b
   
69cc7b
       constructor="org_libreoffice_comp_Writer_PagesImportFilter_get_implementation">
a9add1
     <service name="com.sun.star.document.ExtendedTypeDetection"/>
f085be
-- 
69cc7b
2.9.3
f085be