diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-06-21 11:29:49 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-06-21 11:17:10 +0000 |
commit | 9f66db9c474f71f43d7a3667230241fd4fa4183f (patch) | |
tree | 858e2948669d573d3c54352ae5dcc3e6c217cb0f /include/LibreOfficeKit | |
parent | simplify (diff) | |
download | core-9f66db9c474f71f43d7a3667230241fd4fa4183f.tar.gz core-9f66db9c474f71f43d7a3667230241fd4fa4183f.zip |
sw lok: add LOK_CALLBACK_TEXT_VIEW_SELECTION
So a view can be aware where selections of other views are.
Change-Id: I5026b1ff2b99a4eedfd0bde32a05ceb8e2f424bc
Reviewed-on: https://gerrit.libreoffice.org/26542
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'include/LibreOfficeKit')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKitEnums.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h b/include/LibreOfficeKit/LibreOfficeKitEnums.h index 4229e73e6728..4dfb8be670a1 100644 --- a/include/LibreOfficeKit/LibreOfficeKitEnums.h +++ b/include/LibreOfficeKit/LibreOfficeKitEnums.h @@ -316,7 +316,6 @@ typedef enum * The size and/or the position of the view cursor changed. A view cursor * is a cursor of an other view, the current view can't change it. * - * Rectangle format is the same as LOK_CALLBACK_INVALIDATE_TILES. * The payload format: * * { @@ -329,6 +328,21 @@ typedef enum */ LOK_CALLBACK_INVALIDATE_VIEW_CURSOR, + /** + * The the text selection in one of the other views has changed. + * + * The payload format: + * + * { + * "viewId": "..." + * "selection": "..." + * } + * + * - viewId is a value returned earlier by lok::Document::createView() + * - selection uses the format of LOK_CALLBACK_TEXT_SELECTION. + */ + LOK_CALLBACK_TEXT_VIEW_SELECTION, + } LibreOfficeKitCallbackType; |