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/inc | |
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/inc')
-rw-r--r-- | oox/inc/drawingml/textparagraph.hxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/oox/inc/drawingml/textparagraph.hxx b/oox/inc/drawingml/textparagraph.hxx index f96989cffa8e..43bf51a363fa 100644 --- a/oox/inc/drawingml/textparagraph.hxx +++ b/oox/inc/drawingml/textparagraph.hxx @@ -28,6 +28,11 @@ #include <drawingml/textliststyle.hxx> #include <drawingml/textparagraphproperties.hxx> + +namespace oox { namespace formulaimport { + class XmlStreamBuilder; +} } + namespace oox { namespace drawingml { typedef RefVector< TextRun > TextRunVector; @@ -57,10 +62,18 @@ public: bool bFirst = false, float nDefaultCharHeight = 0) const; + bool HasMathXml() const + { + return m_pMathXml != nullptr; + } + formulaimport::XmlStreamBuilder & GetMathXml(); + private: TextParagraphProperties maProperties; TextCharacterProperties maEndProperties; TextRunVector maRuns; + // temporarily store this here + std::unique_ptr<formulaimport::XmlStreamBuilder> m_pMathXml; }; } } |