From 682ab832522b1349f1714bcb16f6e83468ea2920 Mon Sep 17 00:00:00 2001 From: Zolnai Tamás Date: Wed, 12 Feb 2014 12:06:10 +0100 Subject: 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 --- offapi/com/sun/star/drawing/FillProperties.idl | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'offapi/com') 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; + }; -- cgit