From a4003470e3a91041f897ba5a6e31861ff17a5974 Mon Sep 17 00:00:00 2001 From: Mihai Varga Date: Thu, 8 Oct 2015 16:49:03 +0300 Subject: [PATCH] loolwsd: update the bundled headers --- .../LibreOfficeKit/LibreOfficeKitEnums.h | 27 +++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/loolwsd/bundled/include/LibreOfficeKit/LibreOfficeKitEnums.h b/loolwsd/bundled/include/LibreOfficeKit/LibreOfficeKitEnums.h index dc3e0f94f..b87f69a39 100644 --- a/loolwsd/bundled/include/LibreOfficeKit/LibreOfficeKitEnums.h +++ b/loolwsd/bundled/include/LibreOfficeKit/LibreOfficeKitEnums.h @@ -156,8 +156,31 @@ typedef enum * Payload is a single 0-based integer. */ LOK_CALLBACK_SET_PART, - /// Number of search results, in case something is found. - LOK_CALLBACK_SEARCH_RESULT_COUNT + + /** + * Number of search results followed by the original searched phrase. + * count;phrase + */ + 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;