oox: import Math objects from PPTX files

Desktop / LibreOffice - Michael Stahl [redhat.com] - 21 January 2016 12:42 UTC

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 :(

332a796 oox: import Math objects from PPTX files
include/oox/mathml/import.hxx | 11 ++-
oox/inc/drawingml/textparagraph.hxx | 13 +++
oox/source/core/xmlfilterbase.cxx | 4 +
oox/source/drawingml/shape.cxx | 51 +++++++++++-
oox/source/drawingml/textbodycontext.cxx | 5 ++
oox/source/drawingml/textparagraph.cxx | 10 +++
oox/source/mathml/import.cxx | 92 ++++++++++++++++++++-
sd/qa/unit/export-tests.cxx | 25 +++++-
writerfilter/source/dmapper/DomainMapper_Impl.cxx | 1 +
9 files changed, 207 insertions(+), 5 deletions(-)

Upstream: cgit.freedesktop.org


  • Share