summaryrefslogtreecommitdiff
path: root/writerperfect/source/writer/exp/xmlimp.cxx
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2018-02-14 23:48:57 +0800
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-04-08 15:18:25 +0200
commite371819719a099e5c4fc0af1c2d1ee8ffc4e97c0 (patch)
treeaccfd0c720b59e635531fb85a758dcd9f560a900 /writerperfect/source/writer/exp/xmlimp.cxx
parent1e75673b50e7fcac11bbfaaf4ef7308e95c0a49d (diff)
tdf#115623: EPUB export: support style:master-page
Change-Id: I12d04c2e346c5202274a01b1f8950e3412dc9081 Reviewed-on: https://gerrit.libreoffice.org/52081 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'writerperfect/source/writer/exp/xmlimp.cxx')
-rw-r--r--writerperfect/source/writer/exp/xmlimp.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/writerperfect/source/writer/exp/xmlimp.cxx b/writerperfect/source/writer/exp/xmlimp.cxx
index 130d15b9fad3..b1991a5ce506 100644
--- a/writerperfect/source/writer/exp/xmlimp.cxx
+++ b/writerperfect/source/writer/exp/xmlimp.cxx
@@ -253,6 +253,8 @@ rtl::Reference<XMLImportContext> XMLOfficeDocContext::CreateChildContext(const O
return new XMLStylesContext(mrImport, XMLStylesContext::StyleType_AUTOMATIC);
if (rName == "office:styles")
return new XMLStylesContext(mrImport, XMLStylesContext::StyleType_NONE);
+ if (rName == "office:master-styles")
+ return new XMLStylesContext(mrImport, XMLStylesContext::StyleType_NONE);
if (rName == "office:font-face-decls")
return new XMLFontFaceDeclsContext(mrImport);
if (rName == "office:body")
@@ -531,6 +533,11 @@ std::map<OUString, librevenge::RVNGPropertyList> &XMLImport::GetPageLayouts()
return maPageLayouts;
}
+std::map<OUString, librevenge::RVNGPropertyList> &XMLImport::GetMasterStyles()
+{
+ return maMasterStyles;
+}
+
void XMLImport::startDocument()
{
mrGenerator.startDocument(librevenge::RVNGPropertyList());