summaryrefslogtreecommitdiff
path: root/writerperfect/source/writer/exp/txtparai.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-08-17 18:03:53 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-08-17 20:30:11 +0200
commit28102e471d3cb6b6976380ca84b1094078ac1af1 (patch)
tree12cefdf9b5c7b726b17643eb29e376ea06d840c1 /writerperfect/source/writer/exp/txtparai.cxx
parentdc9d435f6fcfe413c5891aac8d1fe236ee11ccb6 (diff)
EPUB export: handle inline images
Just the bare minimum, so that the binary file-related member functions of the package interface are triggered, so I can implement them. Change-Id: I996659126667423fded1f89f8097ac726418fa00 Reviewed-on: https://gerrit.libreoffice.org/41261 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.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/writerperfect/source/writer/exp/txtparai.cxx b/writerperfect/source/writer/exp/txtparai.cxx
index 72cc401ceb91..600709d9fec8 100644
--- a/writerperfect/source/writer/exp/txtparai.cxx
+++ b/writerperfect/source/writer/exp/txtparai.cxx
@@ -9,6 +9,7 @@
#include "txtparai.hxx"
+#include "XMLTextFrameContext.hxx"
#include "xmlimp.hxx"
using namespace com::sun::star;
@@ -24,6 +25,8 @@ class XMLSpanContext : public XMLImportContext
public:
XMLSpanContext(XMLImport &rImport);
+ XMLImportContext *CreateChildContext(const OUString &rName, const css::uno::Reference<css::xml::sax::XAttributeList> &xAttribs) override;
+
void SAL_CALL startElement(const OUString &rName, const css::uno::Reference<css::xml::sax::XAttributeList> &xAttribs) override;
void SAL_CALL endElement(const OUString &rName) override;
void SAL_CALL characters(const OUString &rChars) override;
@@ -34,6 +37,13 @@ XMLSpanContext::XMLSpanContext(XMLImport &rImport)
{
}
+XMLImportContext *XMLSpanContext::CreateChildContext(const OUString &rName, const css::uno::Reference<css::xml::sax::XAttributeList> &/*xAttribs*/)
+{
+ if (rName == "draw:frame")
+ return new XMLTextFrameContext(mrImport);
+ return nullptr;
+}
+
void XMLSpanContext::startElement(const OUString &/*rName*/, const css::uno::Reference<css::xml::sax::XAttributeList> &/*xAttribs*/)
{
mrImport.GetGenerator().openSpan(librevenge::RVNGPropertyList());