summaryrefslogtreecommitdiff
path: root/include/LibreOfficeKit
diff options
context:
space:
mode:
authorMarco Cecchetti <mrcekets@gmail.com>2018-11-29 22:37:45 +0100
committerJan Holesovsky <kendy@collabora.com>2018-12-10 12:40:24 +0100
commite9164b9bc8bd39e02f99cf7c08e38ea0b1e1134a (patch)
tree5f4a3c037b9dc85d49c950ce40c4cf74e5ef77a9 /include/LibreOfficeKit
parentdd89dc8df8d82ab43f34a0c8fcfa67f93aefcb99 (diff)
lok: shape scaling rework
Now shape scaling is handled through the transform dialog instead of simulating a drag and drop event in core. For Impress the unit used for length is '100th mm' instead of twips, so we need to transform positions and size from twips to '100th mm'. Anyway since we don't know in SetGeoAttrToMarked if the new data is due to a mouse event or by entering a new value in the transormation dialog or in the side pane, for Impress we need to convert the new values sent by the dialogs from '100th mm' to twips which are converted back in SetGeoAttrToMarked. For performing a uniform scaling when the shape/image is rotated we need to inform the client about the rotation angle for the selected graphic object that has been achieved but appending an angle argument to the graphic selection callback. Now it is also possible to reverse shapes/images through negative scaling. Change-Id: I8a32f3e4b28f36e884a59c59b7e1351e85ef4489 Reviewed-on: https://gerrit.libreoffice.org/64696 Tested-by: Jenkins Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'include/LibreOfficeKit')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKitEnums.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h b/include/LibreOfficeKit/LibreOfficeKitEnums.h
index cb9091711acc..1d55ce8583b3 100644
--- a/include/LibreOfficeKit/LibreOfficeKitEnums.h
+++ b/include/LibreOfficeKit/LibreOfficeKitEnums.h
@@ -161,9 +161,11 @@ typedef enum
*/
LOK_CALLBACK_CURSOR_VISIBLE = 5,
/**
- * The size and/or the position of the graphic selection changed.
+ * The size and/or the position of the graphic selection changed and
+ * the rotation angle of the embedded graphic object
*
- * Rectangle format is the same as LOK_CALLBACK_INVALIDATE_TILES.
+ * Format is "x, y, width, height, angle", where angle is in 100th
+ * of degree.
*/
LOK_CALLBACK_GRAPHIC_SELECTION = 6,