diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-12-01 16:35:05 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-12-04 09:08:14 +0100 |
commit | 32fd735a6a30a8e552488f78a1577755a0e3db3d (patch) | |
tree | fe3b0d275919cd5b8890f4d78f533b7ecc4e3115 /writerperfect | |
parent | d4246aeaa2b182c3defcefb68426d1be8e2caf75 (diff) |
EPUB export, fixed layout always means "split at the end of the page"
So disable split type on the UI, as it has no effect.
Change-Id: Ia16e8050a732fce2f7881eee1b64e4487e843574
Reviewed-on: https://gerrit.libreoffice.org/45691
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/source/writer/EPUBExportDialog.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/writerperfect/source/writer/EPUBExportDialog.cxx b/writerperfect/source/writer/EPUBExportDialog.cxx index 232ca4128fec..2d429abf657c 100644 --- a/writerperfect/source/writer/EPUBExportDialog.cxx +++ b/writerperfect/source/writer/EPUBExportDialog.cxx @@ -9,8 +9,11 @@ #include "EPUBExportDialog.hxx" +#include <libepubgen/libepubgen.h> + #include <com/sun/star/ui/dialogs/ExecutableDialogResults.hpp> #include <com/sun/star/ui/dialogs/FolderPicker.hpp> +#include <config_libepubgen.h> #include <sfx2/opengrf.hxx> #include "EPUBExportFilter.hxx" @@ -147,6 +150,9 @@ IMPL_LINK_NOARG(EPUBExportDialog, LayoutSelectHdl, ListBox &, void) // No conversion, 1:1 mapping between entry positions and // libepubgen::EPUBLayoutMethod. mrFilterData["EPUBLayoutMethod"] <<= m_pLayout->GetSelectedEntryPos(); +#if LIBEPUBGEN_VERSION_SUPPORT + m_pSplit->Enable(m_pLayout->GetSelectedEntryPos() != libepubgen::EPUB_LAYOUT_METHOD_FIXED); +#endif } IMPL_LINK_NOARG(EPUBExportDialog, CoverClickHdl, Button *, void) |