summaryrefslogtreecommitdiff
path: root/include
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 13:01:55 +0100
commit7dc11857e2547c9d6a9603259a648c7c7a6ed2d8 (patch)
tree69edffe9a958a605387639994430d2d0322093c0 /include
parent693f6481d961357426e2ca4337d4a73ed8dfaa20 (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')
-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 bf987a81c2c3..dc200f220b68 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,