[Libreoffice-commits] online.git: Branch 'distro/collabora/milestone-5' - loolwsd/bundled

Mihai Varga mihai.varga at collabora.com
Thu Oct 8 06:49:29 PDT 2015


 loolwsd/bundled/include/LibreOfficeKit/LibreOfficeKitEnums.h |   27 ++++++++++-
 1 file changed, 25 insertions(+), 2 deletions(-)

New commits:
commit 11f0554a4d072f6a33cb6deada34da6f608913b0
Author: Mihai Varga <mihai.varga at collabora.com>
Date:   Thu Oct 8 16:49:03 2015 +0300

    loolwsd: update the bundled headers

diff --git a/loolwsd/bundled/include/LibreOfficeKit/LibreOfficeKitEnums.h b/loolwsd/bundled/include/LibreOfficeKit/LibreOfficeKitEnums.h
index dc3e0f9..b87f69a 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;
 


More information about the Libreoffice-commits mailing list