summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--download.lst4
-rw-r--r--writerperfect/qa/unit/data/writer/libe-book/pass/Broad_Band_eBook.lrfbin0 -> 1477 bytes
-rw-r--r--writerperfect/source/writer/EBookImportFilter.cxx5
3 files changed, 7 insertions, 2 deletions
diff --git a/download.lst b/download.lst
index eb3a6ad17e25..c60c5efcee7d 100644
--- a/download.lst
+++ b/download.lst
@@ -31,8 +31,8 @@ export CT2N_TARBALL := 451ccf439a36a568653b024534669971-ConvertTextToNumber-1.3.
export CURL_MD5SUM := e6d1f9d1b59da5062109ffe14e0569a4
export CURL_TARBALL := curl-7.36.0.tar.bz2
export DBGHELP_DLL := 13fbc2e8b37ddf28181dd6d8081c2b8e-dbghelp.dll
-export EBOOK_MD5SUM := c25a881d21abc5b4da19205db513cc22
-export EBOOK_TARBALL := libe-book-0.1.1.tar.bz2
+export EBOOK_MD5SUM := 6b48eda57914e6343efebc9381027b78
+export EBOOK_TARBALL := libe-book-0.1.2.tar.bz2
export EPM_TARBALL := 3ade8cfe7e59ca8e65052644fed9fca4-epm-3.7.tar.gz
export ETONYEK_MD5SUM := 805f941b06448212a988cb65f0691a7a
export ETONYEK_TARBALL := libetonyek-0.1.1.tar.bz2
diff --git a/writerperfect/qa/unit/data/writer/libe-book/pass/Broad_Band_eBook.lrf b/writerperfect/qa/unit/data/writer/libe-book/pass/Broad_Band_eBook.lrf
new file mode 100644
index 000000000000..5e5b69d65ad1
--- /dev/null
+++ b/writerperfect/qa/unit/data/writer/libe-book/pass/Broad_Band_eBook.lrf
Binary files differ
diff --git a/writerperfect/source/writer/EBookImportFilter.cxx b/writerperfect/source/writer/EBookImportFilter.cxx
index c6a4ce8e14f7..a7db6c243cdc 100644
--- a/writerperfect/source/writer/EBookImportFilter.cxx
+++ b/writerperfect/source/writer/EBookImportFilter.cxx
@@ -35,6 +35,8 @@ bool EBookImportFilter::doImportDocument(librevenge::RVNGInputStream &rInput, Od
rDescriptor[utl::MediaDescriptor::PROP_FILTERNAME()] >>= aFilterName;
assert(!aFilterName.isEmpty());
+ if (aFilterName == "BroadBand eBook")
+ type = EBOOKDocument::TYPE_BBEB;
if (aFilterName == "FictionBook 2")
type = EBOOKDocument::TYPE_FICTIONBOOK2;
else if (aFilterName == "PalmDoc")
@@ -64,6 +66,9 @@ bool EBookImportFilter::doDetectFormat(librevenge::RVNGInputStream &rInput, OUSt
{
switch (type)
{
+ case EBOOKDocument::TYPE_BBEB :
+ rTypeName = "writer_BroadBand_eBook";
+ break;
case EBOOKDocument::TYPE_FICTIONBOOK2 :
rTypeName = "writer_FictionBook_2";
break;