summaryrefslogtreecommitdiff
path: root/writerperfect/source/writer/exp/txtparai.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-12-01 10:56:03 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-12-01 16:30:53 +0100
commit89e7a00080aadeba08ee649877b2507dc312f9f8 (patch)
tree81e4273ba67073f9b2327480ab8f1bd7b051204d /writerperfect/source/writer/exp/txtparai.cxx
parent913fbc822c0f0e285cd0dc3f919a2fb43a94c7ad (diff)
EPUB export: handle page size in fixed layout
Requires parsing master pages and page layouts. Change-Id: Ia8b9e59a9355396d3776af06e8e67ec88033754b Reviewed-on: https://gerrit.libreoffice.org/45645 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'writerperfect/source/writer/exp/txtparai.cxx')
-rw-r--r--writerperfect/source/writer/exp/txtparai.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/writerperfect/source/writer/exp/txtparai.cxx b/writerperfect/source/writer/exp/txtparai.cxx
index 309f80ce607a..95f85d86f454 100644
--- a/writerperfect/source/writer/exp/txtparai.cxx
+++ b/writerperfect/source/writer/exp/txtparai.cxx
@@ -397,6 +397,13 @@ void XMLParaContext::startElement(const OUString &/*rName*/, const css::uno::Ref
}
}
+ if (!mrImport.IsPageSpanOpened())
+ {
+ auto it = mrImport.GetMasterPages().find("Standard");
+ if (it != mrImport.GetMasterPages().end())
+ mrImport.GetGenerator().openPageSpan(it->second);
+ mrImport.SetPageSpanOpened(true);
+ }
mrImport.GetGenerator().openParagraph(aPropertyList);
}