summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-10-06 09:21:38 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-10-07 11:56:38 +0200
commitc022211c1c09049c70d44bb60b8047ace3732d23 (patch)
treef86450bb1edd8ca2ff10bdf58a1c20d7db36839c /include
parentLOK: add mouse button type and modifier on android (diff)
downloadcore-c022211c1c09049c70d44bb60b8047ace3732d23.tar.gz
core-c022211c1c09049c70d44bb60b8047ace3732d23.zip
LOK: add CALLBACK_SEARCH_RESULT_SELECTION and implement it in sw
(cherry picked from commit 94752d5970be7ce22e053f9cd83bd59711446a0a) Conflicts: sw/source/uibase/uiview/viewsrch.cxx Change-Id: I4c2a5418101976e1cb38c0fa71dbd66fc883f905
Diffstat (limited to 'include')
-rw-r--r--include/LibreOfficeKit/LibreOfficeKitEnums.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h b/include/LibreOfficeKit/LibreOfficeKitEnums.h
index 1a4b571dbb49..39a324e7279b 100644
--- a/include/LibreOfficeKit/LibreOfficeKitEnums.h
+++ b/include/LibreOfficeKit/LibreOfficeKitEnums.h
@@ -164,7 +164,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;