summaryrefslogtreecommitdiff
path: root/include/oox/mathml
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-01-21 17:39:26 +0100
committerMichael Stahl <mstahl@redhat.com>2016-01-21 19:42:56 +0100
commit332a796366b7cb91dff41de4b9ffb17843112a3e (patch)
treeb578760ddfffde56cfe9e876b3e86a0916ad79a0 /include/oox/mathml
parenta73e606b8cd714520285b4e40890db9fd27d7ba5 (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 'include/oox/mathml')
-rw-r--r--include/oox/mathml/import.hxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/oox/mathml/import.hxx b/include/oox/mathml/import.hxx
index 2617ff53e67c..b2ed99b55053 100644
--- a/include/oox/mathml/import.hxx
+++ b/include/oox/mathml/import.hxx
@@ -9,10 +9,11 @@
#ifndef INCLUDED_OOX_MATHML_IMPORT_HXX
#define INCLUDED_OOX_MATHML_IMPORT_HXX
-#include <com/sun/star/embed/XEmbeddedObject.hpp>
+#include <oox/dllapi.h>
+
#include <tools/gen.hxx>
-#include <oox/dllapi.h>
+#include <rtl/ref.hxx>
namespace oox
{
@@ -39,6 +40,12 @@ protected:
~FormulaImportBase() {}
};
+namespace core { class ContextHandler; }
+namespace drawingml { class TextParagraph; }
+
+::rtl::Reference<core::ContextHandler> CreateLazyMathBufferingContext(
+ core::ContextHandler const& rParent, drawingml::TextParagraph & rPara);
+
} // namespace
#endif