From dfcfdf47b5da6a11b2c3118a0f63cc48c10c2cd7 Mon Sep 17 00:00:00 2001 From: Marco Cecchetti Date: Sun, 20 Oct 2019 13:18:51 +0200 Subject: lok: get spelling context menu on long press MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch handles a new flag attached to the invalidate view cursor message for informing the client when the text cursor is inside a mispelled word. This information is used for popping up the spelling context menu on a long press event instead of the standard context menu for a selected word. Change-Id: I13fcbe53c83ca6eb56300a601734cdc3211e88a0 Reviewed-on: https://gerrit.libreoffice.org/85244 Tested-by: Jenkins Reviewed-by: Tamás Zolnai --- include/LibreOfficeKit/LibreOfficeKitEnums.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/LibreOfficeKit') diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h b/include/LibreOfficeKit/LibreOfficeKitEnums.h index fb4822613724..e162620403f5 100644 --- a/include/LibreOfficeKit/LibreOfficeKitEnums.h +++ b/include/LibreOfficeKit/LibreOfficeKitEnums.h @@ -131,7 +131,12 @@ typedef enum /** * The size and/or the position of the visible cursor changed. * - * Rectangle format is the same as LOK_CALLBACK_INVALIDATE_TILES. + * Old format is the same as LOK_CALLBACK_INVALIDATE_TILES. + * New format is a JSON with 3 elements the 'viewId' element represented by + * an integer value, a 'rectangle' element in the format "x, y, width, height", + * and a 'mispelledWord' element represented by an integer value: '1' when + * a mispelled word is at the cursor position, '0' when the word is + * not mispelled. */ LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR = 1, /** -- cgit