ooxml: Preserve the original picture in artistic effects

Desktop / LibreOffice - Jacobo Aragunde Pérez [igalia.com] - 23 May 2014 03:04 UTC

When Word applies an artistic effect, it creates two embedded files; one contains the bitmap with the effect and the other one contains the original bitmap to be able to undo the effect.

This patch reads the original bitmap, stores it in the shape grab bag and saves it back to the docx file. Added unit tests too.

TODO: right now, if two effects point to the same original bitmap it is stored twice, we should improve this.

2e68a14 ooxml: Preserve the original picture in artistic effects
include/oox/drawingml/fillproperties.hxx | 2 +
include/oox/export/drawingml.hxx | 2 +
oox/source/drawingml/fillproperties.cxx | 8 +++-
.../drawingml/fillpropertiesgroupcontext.cxx | 13 +++++-
oox/source/export/drawingml.cxx | 30 +++++++++++-
sw/qa/extras/ooxmlexport/ooxmlsdrexport.cxx | 48 +++++++++++++++++++-
6 files changed, 98 insertions(+), 5 deletions(-)

Upstream: cgit.freedesktop.org


  • Share