summaryrefslogtreecommitdiff
path: root/writerperfect
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2017-08-21 12:46:26 +0200
committerDavid Tardon <dtardon@redhat.com>2017-08-21 12:47:26 +0200
commitbf7d2ef17aece06e835b092bc75884b15aa697e7 (patch)
tree5d217674c33fb0de37997eaad74efb2f3b5468d3 /writerperfect
parentfabafcfc1861646c7e39810d262777010200dbd1 (diff)
allow to build with released libepubgen
Change-Id: I12d297e8a3e57a3b24d85e4c537996cad0106125
Diffstat (limited to 'writerperfect')
-rw-r--r--writerperfect/source/writer/EPUBExportFilter.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/writerperfect/source/writer/EPUBExportFilter.cxx b/writerperfect/source/writer/EPUBExportFilter.cxx
index 8a8e14c72ce8..2cc5c6479aa8 100644
--- a/writerperfect/source/writer/EPUBExportFilter.cxx
+++ b/writerperfect/source/writer/EPUBExportFilter.cxx
@@ -7,6 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include "config_libepubgen.h"
+
#include "EPUBExportFilter.hxx"
#include <libepubgen/EPUBTextGenerator.h>
@@ -36,7 +38,11 @@ sal_Bool EPUBExportFilter::filter(const uno::Sequence<beans::PropertyValue> &rDe
// file, the flat ODF filter has access to the doc model, everything else
// is in-between.
EPUBPackage aPackage(mxContext, rDescriptor);
- libepubgen::EPUBTextGenerator aGenerator(&aPackage, libepubgen::EPUB_SPLIT_METHOD_HEADING, /*version=*/30);
+ libepubgen::EPUBTextGenerator aGenerator(&aPackage, libepubgen::EPUB_SPLIT_METHOD_HEADING
+#if defined(LIBEPUBGEN_VERSION_SUPPORT)
+ , /*version=*/30
+#endif
+ );
uno::Reference<xml::sax::XDocumentHandler> xExportHandler(new exp::XMLImport(aGenerator));
uno::Reference<lang::XInitialization> xInitialization(mxContext->getServiceManager()->createInstanceWithContext("com.sun.star.comp.Writer.XMLOasisExporter", mxContext), uno::UNO_QUERY);