95946f1
From 4cac125f90e0a3d6828d879cb06f3a4bac14321b Mon Sep 17 00:00:00 2001
d0c0791
From: David Tardon <dtardon@redhat.com>
1a5ee85
Date: Thu, 21 Aug 2014 16:10:51 +0200
d0c0791
Subject: [PATCH] disable libe-book support
d0c0791
1a5ee85
Change-Id: Ie915a9bd2acf7f3aeb8b0933252da33c17043bc4
d0c0791
---
d559f87
 configure.ac                                     | 3 ---
f311720
 external/Module_external.mk                      | 1 -
f311720
 filter/Configuration_filter.mk                   | 8 --------
f311720
 writerperfect/Library_wpftwriter.mk              | 2 --
95946f1
 writerperfect/qa/unit/WpftFilterFixture.hxx      | 4 ----
f311720
 writerperfect/qa/unit/WpftWriterFilterTest.cxx   | 5 -----
f311720
 writerperfect/source/writer/wpftwriter.component | 5 -----
95946f1
 7 files changed, 28 deletions(-)
d0c0791
d0c0791
diff --git a/configure.ac b/configure.ac
95946f1
index fe425319b8f8..4b8f6a95472c 100644
d0c0791
--- a/configure.ac
d0c0791
+++ b/configure.ac
95946f1
@@ -8566,9 +8566,6 @@ libo_PKG_VERSION([ETONYEK], [libetonyek-0.1], [0.1.8])
4ff3659
 
4ff3659
 libo_CHECK_SYSTEM_MODULE([libfreehand],[FREEHAND],[libfreehand-0.1])
d0c0791
 
e469249
-libo_CHECK_SYSTEM_MODULE([libebook],[EBOOK],[libe-book-0.1])
e469249
-libo_PKG_VERSION([EBOOK], [libe-book-0.1], [0.1.2])
d0c0791
-
4ff3659
 libo_CHECK_SYSTEM_MODULE([libabw],[ABW],[libabw-0.1])
4ff3659
 
4ff3659
 libo_CHECK_SYSTEM_MODULE([libpagemaker],[PAGEMAKER],[libpagemaker-0.0])
1a5ee85
diff --git a/external/Module_external.mk b/external/Module_external.mk
95946f1
index 41e018d2ef3f..1b7627a1b3e2 100644
1a5ee85
--- a/external/Module_external.mk
1a5ee85
+++ b/external/Module_external.mk
95946f1
@@ -33,7 +33,6 @@ $(eval $(call gb_Module_add_moduledirs,external,\
1a5ee85
 	$(call gb_Helper_optional,CT2N,ct2n) \
1a5ee85
 	$(call gb_Helper_optional,CURL,curl) \
95946f1
 	dtoa \
1a5ee85
-	$(call gb_Helper_optional,EBOOK,libebook) \
1a5ee85
 	$(call gb_Helper_optional,EPM,epm) \
2126889
 	$(call gb_Helper_optional,EPOXY,epoxy) \
d559f87
 	$(call gb_Helper_optional,EPUBGEN,libepubgen) \
f5c2428
diff --git a/filter/Configuration_filter.mk b/filter/Configuration_filter.mk
95946f1
index e71ffacf8f25..74d2ef05c4aa 100644
f5c2428
--- a/filter/Configuration_filter.mk
f5c2428
+++ b/filter/Configuration_filter.mk
95946f1
@@ -358,10 +358,6 @@ $(eval $(call filter_Configuration_add_types,fcfg_langpack,fcfg_writer_types.xcu
f5c2428
 	writer_OOXML \
f5c2428
 	writer_OOXML_Template \
f5c2428
 	writer_layout_dump_xml \
f5c2428
-	writer_BroadBand_eBook \
f5c2428
-	writer_FictionBook_2 \
f5c2428
-	writer_PalmDoc \
f5c2428
-	writer_Plucker_eBook \
a7b857d
 	writer_ApplePages \
e469249
 	MWAW_Text_Document \
e469249
 	Palm_Text_Document \
95946f1
@@ -406,10 +402,6 @@ $(eval $(call filter_Configuration_add_filters,fcfg_langpack,fcfg_writer_filters
f5c2428
 	OOXML_Text \
f5c2428
 	OOXML_Text_Template \
f5c2428
 	writer_layout_dump \
f5c2428
-	BroadBand_eBook \
f5c2428
-	FictionBook_2 \
f5c2428
-	PalmDoc \
f5c2428
-	Plucker_eBook \
a7b857d
 	ApplePages \
e469249
 	MWAW_Text_Document \
e469249
 	Palm_Text_Document \
d0c0791
diff --git a/writerperfect/Library_wpftwriter.mk b/writerperfect/Library_wpftwriter.mk
95946f1
index 8993cca31490..b6e11f356d97 100644
d0c0791
--- a/writerperfect/Library_wpftwriter.mk
d0c0791
+++ b/writerperfect/Library_wpftwriter.mk
95946f1
@@ -53,7 +53,6 @@ $(eval $(call gb_Library_use_libraries,wpftwriter,\
d0c0791
 $(eval $(call gb_Library_use_externals,wpftwriter,\
d0c0791
 	abw \
d0c0791
 	boost_headers \
d0c0791
-	ebook \
d559f87
 	epubgen \
a7b857d
 	etonyek \
4ff3659
 	icu_headers \
95946f1
@@ -73,7 +72,6 @@ $(eval $(call gb_Library_use_externals,wpftwriter,\
d0c0791
 
d0c0791
 $(eval $(call gb_Library_add_exception_objects,wpftwriter,\
d0c0791
 	writerperfect/source/writer/AbiWordImportFilter \
d0c0791
-	writerperfect/source/writer/EBookImportFilter \
d559f87
 	writerperfect/source/writer/EPUBExportDialog \
d559f87
 	writerperfect/source/writer/EPUBExportFilter \
d559f87
 	writerperfect/source/writer/EPUBExportUIComponent \
8038f81
diff --git a/writerperfect/qa/unit/WpftFilterFixture.hxx b/writerperfect/qa/unit/WpftFilterFixture.hxx
95946f1
index f32478165617..f42edb0d7f55 100644
8038f81
--- a/writerperfect/qa/unit/WpftFilterFixture.hxx
8038f81
+++ b/writerperfect/qa/unit/WpftFilterFixture.hxx
95946f1
@@ -26,10 +26,6 @@
95946f1
         || ((major) == (req_major)                                                                 \
95946f1
             && ((minor) > (req_minor) || ((minor) == (req_minor) && ((micro) >= (req_micro)))))
1c6b9e3
 
95946f1
-#define REQUIRE_EBOOK_VERSION(major, minor, micro)                                                 \
95946f1
-    REQUIRE_VERSION(EBOOK_VERSION_MAJOR, EBOOK_VERSION_MINOR, EBOOK_VERSION_MICRO, major, minor,   \
95946f1
-                    micro)
1c6b9e3
-
95946f1
 #define REQUIRE_ETONYEK_VERSION(major, minor, micro)                                               \
95946f1
     REQUIRE_VERSION(ETONYEK_VERSION_MAJOR, ETONYEK_VERSION_MINOR, ETONYEK_VERSION_MICRO, major,    \
95946f1
                     minor, micro)
f5c2428
diff --git a/writerperfect/qa/unit/WpftWriterFilterTest.cxx b/writerperfect/qa/unit/WpftWriterFilterTest.cxx
95946f1
index 8bc4c7cadbb3..eca43caf8d8c 100644
f5c2428
--- a/writerperfect/qa/unit/WpftWriterFilterTest.cxx
f5c2428
+++ b/writerperfect/qa/unit/WpftWriterFilterTest.cxx
95946f1
@@ -30,9 +30,6 @@ WpftWriterFilterTest::WpftWriterFilterTest()
1c6b9e3
 
1c6b9e3
 void WpftWriterFilterTest::test()
1c6b9e3
 {
95946f1
-    const writerperfect::test::WpftOptionalMap_t aEBookOptional{
95946f1
-        { "FictionBook2.fb2.zip", REQUIRE_EBOOK_VERSION(0, 1, 1) },
1c6b9e3
-    };
95946f1
     const writerperfect::test::WpftOptionalMap_t aEtonyekOptional{
95946f1
         { "Pages_4.pages", REQUIRE_ETONYEK_VERSION(0, 1, 2) },
95946f1
         { "Pages_5.pages", REQUIRE_ETONYEK_VERSION(0, 1, 8) },
95946f1
@@ -54,8 +51,6 @@ void WpftWriterFilterTest::test()
e469249
 
95946f1
     doTest("com.sun.star.comp.Writer.AbiWordImportFilter",
95946f1
            "/writerperfect/qa/unit/data/writer/libabw/");
95946f1
-    doTest("org.libreoffice.comp.Writer.EBookImportFilter",
95946f1
-           "/writerperfect/qa/unit/data/writer/libe-book/", aEBookOptional);
95946f1
     doTest("com.sun.star.comp.Writer.MSWorksImportFilter",
95946f1
            "/writerperfect/qa/unit/data/writer/libwps/", aWpsOptional);
95946f1
     doTest("com.sun.star.comp.Writer.MWAWImportFilter",
07cdfb9
diff --git a/writerperfect/source/writer/wpftwriter.component b/writerperfect/source/writer/wpftwriter.component
95946f1
index 8ab436634052..2720023baedf 100644
07cdfb9
--- a/writerperfect/source/writer/wpftwriter.component
07cdfb9
+++ b/writerperfect/source/writer/wpftwriter.component
f311720
@@ -38,11 +38,6 @@
07cdfb9
     <service name="com.sun.star.document.ExtendedTypeDetection"/>
07cdfb9
     <service name="com.sun.star.document.ImportFilter"/>
07cdfb9
   </implementation>
f311720
-  
f311720
-      constructor="org_libreoffice_comp_Writer_EBookImportFilter_get_implementation">
07cdfb9
-    <service name="com.sun.star.document.ExtendedTypeDetection"/>
07cdfb9
-    <service name="com.sun.star.document.ImportFilter"/>
07cdfb9
-  </implementation>
f311720
   
f311720
       constructor="org_libreoffice_comp_Writer_PagesImportFilter_get_implementation">
a7b857d
     <service name="com.sun.star.document.ExtendedTypeDetection"/>
d0c0791
-- 
95946f1
2.25.1
d0c0791