diff options
author | Michael Stahl <mstahl@redhat.com> | 2016-01-21 17:39:26 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-01-21 19:42:56 +0100 |
commit | 332a796366b7cb91dff41de4b9ffb17843112a3e (patch) | |
tree | b578760ddfffde56cfe9e876b3e86a0916ad79a0 /oox/source/drawingml/textbodycontext.cxx | |
parent | a73e606b8cd714520285b4e40890db9fd27d7ba5 (diff) |
oox: import Math objects from PPTX files
This is quite hacky and limited: in OOXML these are not OLE objects but
occur inside text boxes, and PPT 2010 allows inserting multiple Math
objects into one text box but Impress does not have as-character
anchored objects, so we can't import that properly; for now only import
Math if there is nothing else in the text box.
Also for now only import them as children of TextParagraphContext (a:p);
it's not clear what the possible parent elements could be since the
OOXML standard only lists WordProcessingML parent elements :(
Change-Id: I847f810084c9ddae4b60f93896fb73a742683cc2
Diffstat (limited to 'oox/source/drawingml/textbodycontext.cxx')
-rw-r--r-- | oox/source/drawingml/textbodycontext.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/oox/source/drawingml/textbodycontext.cxx b/oox/source/drawingml/textbodycontext.cxx index 20d3b2683d2d..84fc7690b331 100644 --- a/oox/source/drawingml/textbodycontext.cxx +++ b/oox/source/drawingml/textbodycontext.cxx @@ -26,6 +26,8 @@ #include "drawingml/textfield.hxx" #include "drawingml/textfieldcontext.hxx" +#include <oox/mathml/import.hxx> + using namespace ::oox::core; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::text; @@ -90,6 +92,9 @@ ContextHandlerRef TextParagraphContext::onCreateContext( sal_Int32 aElementToken case W_TOKEN( ins ): return this; break; + case OOX_TOKEN(a14, m): + return CreateLazyMathBufferingContext(*this, mrParagraph); + break; default: SAL_WARN("oox", "TextParagraphContext::onCreateContext: unhandled element: " << getBaseToken(aElementToken)); } |