summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-02-10 10:45:18 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-02-16 09:20:46 +0100
commitd25f9a01c1ee3b4c46c04cfe66a662a01c11207e (patch)
tree9f42bcd0bc9869cbb6003bdff36e99802ee46679 /include
parent5dee910234067175b8be2fe5a6ea93dd0fdc8de9 (diff)
LOK: add LOK_CALLBACK_TEXT_SELECTION_START/END
Without this, it's really hard to figure out where to put selection handles based on the selection polygon. Change-Id: I7fde038a33633796a43f0b454a5a7cff701c5dc3
Diffstat (limited to 'include')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKit.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h
index 1ef70e513c19..204479502eb7 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.h
+++ b/include/LibreOfficeKit/LibreOfficeKit.h
@@ -75,7 +75,25 @@ typedef enum
* LOK_CALLBACK_INVALIDATE_TILES. When there is no selection, an empty
* string is provided.
*/
- LOK_CALLBACK_TEXT_SELECTION
+ LOK_CALLBACK_TEXT_SELECTION,
+ /**
+ * The size and/or the position of the cursor rectangle at the text
+ * selection start changed.
+ *
+ * If this callback is emitted, it's always followed by a
+ * LOK_CALLBACK_TEXT_SELECTION one. Rectangle format is the same as
+ * LOK_CALLBACK_INVALIDATE_TILES.
+ */
+ LOK_CALLBACK_TEXT_SELECTION_START,
+ /**
+ * The size and/or the position of the cursor rectangle at the text
+ * selection end changed.
+ *
+ * If this callback is emitted, it's always followed by a
+ * LOK_CALLBACK_TEXT_SELECTION one. Rectangle format is the same as
+ * LOK_CALLBACK_INVALIDATE_TILES.
+ */
+ LOK_CALLBACK_TEXT_SELECTION_END
}
LibreOfficeKitCallbackType;