[Libreoffice-commits] online.git: loolwsd/ChildProcessSession.cpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Sun May 8 04:37:32 UTC 2016


 loolwsd/ChildProcessSession.cpp |   16 ++++++++++++++++
 1 file changed, 16 insertions(+)

New commits:
commit e7d2ed499fdadc9afc21dd524cefeb662c2e3f52
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Sat May 7 23:56:04 2016 -0400

    loolwsd: more notifications to replay on re-activating clients
    
    Change-Id: Ieb91eee0cb4ff66cd6bea129039f8fe328939888
    Reviewed-on: https://gerrit.libreoffice.org/24749
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loolwsd/ChildProcessSession.cpp b/loolwsd/ChildProcessSession.cpp
index db9424d..10183ac 100644
--- a/loolwsd/ChildProcessSession.cpp
+++ b/loolwsd/ChildProcessSession.cpp
@@ -82,6 +82,10 @@ public:
         // Cache important notifications to replay them when our client
         // goes inactive and loses them.
         if (nType == LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR ||
+            nType == LOK_CALLBACK_CURSOR_VISIBLE ||
+            nType == LOK_CALLBACK_CELL_CURSOR ||
+            nType == LOK_CALLBACK_CELL_FORMULA ||
+            nType == LOK_CALLBACK_GRAPHIC_SELECTION ||
             nType == LOK_CALLBACK_TEXT_SELECTION ||
             nType == LOK_CALLBACK_TEXT_SELECTION_START ||
             nType == LOK_CALLBACK_TEXT_SELECTION_END ||
@@ -369,6 +373,18 @@ bool ChildProcessSession::_handleInput(const char *buffer, int length)
                 case LOK_CALLBACK_TEXT_SELECTION_END:
                     sendTextFrame("textselectionend: " + pair.second);
                     break;
+                case LOK_CALLBACK_CURSOR_VISIBLE:
+                    sendTextFrame("cursorvisible: " + pair.second);
+                    break;
+                case LOK_CALLBACK_GRAPHIC_SELECTION:
+                    sendTextFrame("graphicselection: " + pair.second);
+                    break;
+                case LOK_CALLBACK_CELL_CURSOR:
+                    sendTextFrame("cellcursor: " + pair.second);
+                    break;
+                case LOK_CALLBACK_CELL_FORMULA:
+                    sendTextFrame("cellformula: " + pair.second);
+                    break;
                 case LOK_CALLBACK_DOCUMENT_SIZE_CHANGED:
                     getStatus("", 0);
                     getPartPageRectangles("", 0);


More information about the Libreoffice-commits mailing list