From c544a8b674dd7ac9dd466a84a440ede030942438 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 20 Jun 2016 16:42:34 +0200 Subject: sw lok: add LOK_CALLBACK_INVALIDATE_VIEW_CURSOR So a view can be aware where cursors of other views are. Change-Id: I6133fb55aa2869843c0284b7d76264bab3b3d5da Reviewed-on: https://gerrit.libreoffice.org/26513 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- include/LibreOfficeKit/LibreOfficeKitEnums.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'include/LibreOfficeKit') diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h b/include/LibreOfficeKit/LibreOfficeKitEnums.h index 4b8ff351689d..4229e73e6728 100644 --- a/include/LibreOfficeKit/LibreOfficeKitEnums.h +++ b/include/LibreOfficeKit/LibreOfficeKitEnums.h @@ -312,6 +312,23 @@ typedef enum */ LOK_CALLBACK_CONTEXT_MENU, + /** + * 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: + * + * { + * "viewId": "..." + * "rectangle": "..." + * } + * + * - viewId is a value returned earlier by lok::Document::createView() + * - rectangle uses the format of LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR + */ + LOK_CALLBACK_INVALIDATE_VIEW_CURSOR, + } LibreOfficeKitCallbackType; -- cgit