summaryrefslogtreecommitdiff
path: root/offapi
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-02-12 12:06:10 +0100
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-02-12 13:20:31 +0100
commit682ab832522b1349f1714bcb16f6e83468ea2920 (patch)
tree4371361c2a94bb85cd9cb458db9a90022d271460 /offapi
parentb16f90f33143e6c8c9e8e2fa9cc55797b5bbff12 (diff)
drawingML export\import: cropping of shape's fill texture
In Writer shapes had no cropping property so far. With this commit this is introduced as a FillProperty and has the same type as the cropping used for pictures (Picture context menu > Picture > Crop). Layout and UI will be an other step. On the UI it would be placed on the Shape context menu -> Area, when Bitmap is selected as fill type. Note: In case of picture/graphic, cropping property is imported from and exported to a:srcRect instead of a:fillRect. Change-Id: Idc1ed2d40cb20b6992e94f14e7e4d853e1f55d02
Diffstat (limited to 'offapi')
-rw-r--r--offapi/com/sun/star/drawing/FillProperties.idl10
1 files changed, 10 insertions, 0 deletions
diff --git a/offapi/com/sun/star/drawing/FillProperties.idl b/offapi/com/sun/star/drawing/FillProperties.idl
index eee9592e1339..77a99e08c936 100644
--- a/offapi/com/sun/star/drawing/FillProperties.idl
+++ b/offapi/com/sun/star/drawing/FillProperties.idl
@@ -209,6 +209,16 @@ published service FillProperties
*/
[optional, property] boolean FillBitmapTile;
+ /** contains the cropping of the object.
+
+ If the property #FillBitmapMode is set to BitmapMode::STRETCH,
+ this is the cropping, otherwise it is empty.
+
+ @see com::sun::star::text::GraphicCrop
+ @since LibreOffice 4.3
+ */
+ [optional, property] com::sun::star::text::GraphicCrop GraphicCrop;
+
};