summaryrefslogtreecommitdiff
path: root/writerperfect/source/writer/exp/txtparai.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-11-27 08:19:47 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-11-27 12:15:36 +0100
commit0b3a408cfdd0a212423bb172f091f2a0d1c83423 (patch)
treeab428228f4d858ef98be263c9c23e08589608683 /writerperfect/source/writer/exp/txtparai.cxx
parent9fc84943503be2433b7ec6ddb8487be80d155f24 (diff)
EPUB export: handle images outside spans
CreateParagraphOrSpanChildContext() is already a factory for paragraph-or-span parents, just move image handling there. Change-Id: Ieeb57dc0913a17e92fdc57d79c26326f9cecb6a4 Reviewed-on: https://gerrit.libreoffice.org/45307 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.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/writerperfect/source/writer/exp/txtparai.cxx b/writerperfect/source/writer/exp/txtparai.cxx
index 31df98fe7114..82d0b8ab6e3d 100644
--- a/writerperfect/source/writer/exp/txtparai.cxx
+++ b/writerperfect/source/writer/exp/txtparai.cxx
@@ -80,8 +80,6 @@ XMLSpanContext::XMLSpanContext(XMLImport &rImport, const librevenge::RVNGPropert
rtl::Reference<XMLImportContext> XMLSpanContext::CreateChildContext(const OUString &rName, const css::uno::Reference<css::xml::sax::XAttributeList> &/*xAttribs*/)
{
- if (rName == "draw:frame")
- return new XMLTextFrameContext(mrImport);
return CreateParagraphOrSpanChildContext(mrImport, rName, m_aPropertyList);
}
@@ -324,6 +322,8 @@ rtl::Reference<XMLImportContext> CreateParagraphOrSpanChildContext(XMLImport &rI
return new XMLSpaceContext(rImport, rTextPropertyList);
if (rName == "text:tab")
return new XMLTabContext(rImport, rTextPropertyList);
+ if (rName == "draw:frame")
+ return new XMLTextFrameContext(rImport);
return nullptr;
}