Bug 97356 - implement fallback export of Math object in PPTX
Summary: implement fallback export of Math object in PPTX
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
(earliest affected) Master
Hardware: All All
: medium enhancement
Assignee: Not Assigned
Keywords: difficultyBeginner, easyHack, filter:ooxml, skillCpp
Depends on: 53419
  Show dependency treegraph
Reported: 2016-01-25 10:14 UTC by Michael Stahl (CIB)
Modified: 2017-05-14 07:43 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Michael Stahl (CIB) 2016-01-25 10:14:55 UTC
commit cb890ae43bacd2be24bc74fad2e2e5cce8910995 added OOXML Math export in PPTX files.

unfortunately OOXML Math markup in PPTX isn't actually specified in ECMA-376 3rd ed., and can only be read by PPT 2010, not by PPT 2007.

so we use MCE (Markup Compatibility and Extensibility) to write the Math markup as an "extension" and a fallback.

currently the fallback is empty, but we could write a bitmap image shape instead, which could then be imported by PPT 2007 and older LibreOffice versions.

the implementation is in ShapeExport::WriteMathShape() in oox/source/export/shapes.cxx, see the "TODO: export bitmap shape as fallback"

functions to export bitmap shapes already exist in ShapeExport, and the model of the Math embedded object can be used to retrieve a preview image.
Comment 1 Robinson Tryon (qubit) 2016-02-18 14:51:47 UTC Comment hidden (obsolete)
Comment 2 Jaskaran Singh 2016-03-10 13:33:20 UTC
I would like to work on this task. I could not understand the part relating to math embedded object.I would request you to provide some guidance.