diff options
author | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2014-05-20 21:05:10 +0200 |
---|---|---|
committer | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2014-05-23 10:03:59 +0200 |
commit | 642a252cf1a2f1d08c4bbfcae15527bb82c7664d (patch) | |
tree | 605b6c546b61972a9c6dd6b1fd1b3a89d3b9f0e0 /include/basic/sbuno.hxx | |
parent | 21d4cfe19e2796ebf89c408e292c4473924b2bc4 (diff) |
ooxml: preserve artistic effects on shapes.
Bitmaps can define artistic effects like in the following example:
<a:blip r:embed="rId5">
<a:extLst>
<a:ext uri="{BEBA8EAE-BF5A-486C-A8C5-ECC9F3942E4B}">
<a14:imgProps
xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main">
<a14:imgLayer r:embed="rId6">
<a14:imgEffect>
<a14:artisticMarker trans="14000" size="80" />
</a14:imgEffect>
</a14:imgLayer>
</a14:imgProps>
</a:ext>
</a:extLst>
</a:blip>
LO core doesn't support them, but I'm preserving them using the shape
grab bag. Bitmaps must not be transformed to a SwXTextGraphicObject
so the grab bag of the XShape is not discarded.
Added several Context and Properties objects on the import side to
traverse and save the relevant tags, and added the corresponding code
on the export side to extract the grab bag and output the effect back.
Also added a unit test for a selection of artistic effects.
TODO: Word saves the original bitmap as an embedded wdp file so the
effect can be undone. We must preserve it too and add the reference to
the a14:imgLayer tag.
Change-Id: I61d427f83e4c8f353eb073da0114cd73ba50ba4b
Diffstat (limited to 'include/basic/sbuno.hxx')
0 files changed, 0 insertions, 0 deletions