diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-06 09:21:38 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-10-06 10:18:42 +0200 |
commit | 94752d5970be7ce22e053f9cd83bd59711446a0a (patch) | |
tree | 519f75d5a7d07716cf421781c778fa8fce555464 /include | |
parent | 7e776c0027c19f1bb8e64dd68d3fd9ded0b5d896 (diff) |
LOK: add CALLBACK_SEARCH_RESULT_SELECTION and implement it in sw
Change-Id: I4c2a5418101976e1cb38c0fa71dbd66fc883f905
Diffstat (limited to 'include')
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKitEnums.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h b/include/LibreOfficeKit/LibreOfficeKitEnums.h index 97c089ffef50..b87f69a39989 100644 --- a/include/LibreOfficeKit/LibreOfficeKitEnums.h +++ b/include/LibreOfficeKit/LibreOfficeKitEnums.h @@ -161,7 +161,26 @@ typedef enum * Number of search results followed by the original searched phrase. * count;phrase */ - LOK_CALLBACK_SEARCH_RESULT_COUNT + LOK_CALLBACK_SEARCH_RESULT_COUNT, + + /** + * Selection rectangles of the search result when find all is performed. + * + * Payload format example, in case of two matches: + * + * { + * "searchString": "...", + * "searchResultSelection": [ + * "...", + * "..." + * ] + * } + * + * - searchString is the search query + * - searchResultSelection is an array of rectangle list, in + * LOK_CALLBACK_TEXT_SELECTION format. + */ + LOK_CALLBACK_SEARCH_RESULT_SELECTION } LibreOfficeKitCallbackType; |