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 /oox/Library_oox.mk | |
parent | unotools: add menu option to enable/disable Smart-Art lock (diff) | |
download | core-c0e3574ce0434d295f7e6f4c66c9656847b22e30.tar.gz core-c0e3574ce0434d295f7e6f4c66c9656847b22e30.zip |
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 'oox/Library_oox.mk')
-rw-r--r-- | oox/Library_oox.mk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/oox/Library_oox.mk b/oox/Library_oox.mk index a20b548c2e48..dd30e70c3735 100644 --- a/oox/Library_oox.mk +++ b/oox/Library_oox.mk @@ -39,6 +39,7 @@ $(eval $(call gb_Library_use_libraries,oox,\ cppu \ cppuhelper \ editeng \ + drawinglayer \ msfilter \ sal \ i18nlangtag \ @@ -46,6 +47,7 @@ $(eval $(call gb_Library_use_libraries,oox,\ sfx \ svl \ svt \ + svx \ svxcore \ sot \ tl \ |