diff options
author | Andres Gomez <agomez@igalia.com> | 2013-09-26 20:35:48 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-10-16 10:24:13 +0000 |
commit | c0e3574ce0434d295f7e6f4c66c9656847b22e30 (patch) | |
tree | 97772f5d83186eb1999e512210eb09576a7244dc /include/oox | |
parent | 2eba5391d3fa3232ba2b0a187c4c51736ab2ec3d (diff) |
oox: added methods to lock Smart-Art edition
Added the possibility of rendering the basic shapes generated for a
Smart-Art into a bitmap and replacing them with it in order to not
letting to edit the Smart-Art. This possibility is controlled using a
configuration parameter located at Options -> Load/Save -> MS Office
-> SmartArt to LibreOffice shapes or reverse.
Made the "oox" library to depend on the "drawinglayer" and "svx"
libraries.
Made the "ooxmlexport" C++ unit tests in the "sw" module to depend on
the "drawinglayer" and "svx" components.
Fixed to set to diagram type a new "oox::drawingml::Shape"
representing a Smart-Art in the "getShape" method of the
"oox::shape::ShapeContextHandler" class.
Added the "keepDiagramCompatibilityInfo" and "renderDiagramToGraphic"
protected methods to the "oox::drawingml::Shape"
class. "keepDiagramCompatibilityInfo" is now called after an instance
of type "FRAMETYPE_DIAGRAM" has added all its children in the
"addShape" method and the proper setting is in place.
"keepDiagramCompatibilityInfo" substitutes previous similar code in
the "createAndInsert" method and also calls "renderDiagramToGraphic".
The "renderDiagramToGraphic" renders the basic shapes in a Smart-Art
into a PNG image and replaces these basic shapes with a new
"GraphicObjectShape" filled with the new PNG image. It also sets the
"MoveProtect" and "SizeProtect" properties of the
"GraphicObjectShape".
Change-Id: Ie4002238ff5fae758a5881b03735bf1f0721ed5b
Reviewed-on: https://gerrit.libreoffice.org/6059
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'include/oox')
-rw-r--r-- | include/oox/drawingml/shape.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/oox/drawingml/shape.hxx b/include/oox/drawingml/shape.hxx index 95108e7b31e2..0631c0aa3470 100644 --- a/include/oox/drawingml/shape.hxx +++ b/include/oox/drawingml/shape.hxx @@ -201,6 +201,11 @@ protected: ShapeIdMap* pShapeMap, basegfx::B2DHomMatrix& aTransformation ); + void keepDiagramCompatibilityInfo( ::oox::core::XmlFilterBase& rFilterBase ); + + ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > + renderDiagramToGraphic( ::oox::core::XmlFilterBase& rFilterBase ); + virtual OUString finalizeServiceName( ::oox::core::XmlFilterBase& rFilter, const OUString& rServiceName, |