summaryrefslogtreecommitdiff
path: root/writerperfect/source/writer/exp/xmltbli.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-09-08 15:39:14 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-09-08 19:19:23 +0200
commit6e260dbebc91f137d6f797dd10d64e53a063dc0b (patch)
treea0c74c73b2df4b47e51dece0b17ddede0d4d98fc /writerperfect/source/writer/exp/xmltbli.cxx
parent1079893be5593268eff0867be87b0291546d88c7 (diff)
EPUB export: handle section content
Just the minimum so content is not completely ignored on export. Change-Id: I2880780ed3ce5d1dd15adbd9222296f52a5e7c3d Reviewed-on: https://gerrit.libreoffice.org/42115 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'writerperfect/source/writer/exp/xmltbli.cxx')
-rw-r--r--writerperfect/source/writer/exp/xmltbli.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/writerperfect/source/writer/exp/xmltbli.cxx b/writerperfect/source/writer/exp/xmltbli.cxx
index bcdc4cb46220..735e276de241 100644
--- a/writerperfect/source/writer/exp/xmltbli.cxx
+++ b/writerperfect/source/writer/exp/xmltbli.cxx
@@ -11,6 +11,7 @@
#include "txtparai.hxx"
#include "xmlimp.hxx"
+#include "xmltext.hxx"
using namespace com::sun::star;
@@ -38,11 +39,7 @@ XMLTableCellContext::XMLTableCellContext(XMLImport &rImport)
XMLImportContext *XMLTableCellContext::CreateChildContext(const OUString &rName, const css::uno::Reference<css::xml::sax::XAttributeList> &/*xAttribs*/)
{
- if (rName == "text:p" || rName == "text:h")
- return new XMLParaContext(mrImport);
- if (rName == "table:table")
- return new XMLTableContext(mrImport);
- return nullptr;
+ return CreateTextChildContext(mrImport, rName);
}
void XMLTableCellContext::startElement(const OUString &/*rName*/, const css::uno::Reference<css::xml::sax::XAttributeList> &/*xAttribs*/)