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

Henry Castro hcastro at collabora.com
Sat Feb 20 20:45:35 UTC 2016


 loolwsd/ChildProcessSession.cpp |    1 +
 loolwsd/protocol.txt            |   12 ++++++++++++
 2 files changed, 13 insertions(+)

New commits:
commit c2413998be2bf2980f2e27a591a450d67005dfd5
Author: Henry Castro <hcastro at collabora.com>
Date:   Sat Feb 20 16:45:40 2016 -0400

    loolwsd: add partscountchanged protocol

diff --git a/loolwsd/ChildProcessSession.cpp b/loolwsd/ChildProcessSession.cpp
index 5bfd320..d503695 100644
--- a/loolwsd/ChildProcessSession.cpp
+++ b/loolwsd/ChildProcessSession.cpp
@@ -244,6 +244,7 @@ public:
             }
             break;
         case LOK_CALLBACK_PARTS_COUNT_CHANGED:
+            _session.sendTextFrame("partscountchanged: " + rPayload);
             break;
         }
     }
diff --git a/loolwsd/protocol.txt b/loolwsd/protocol.txt
index 3b35bde..cf08bb4 100644
--- a/loolwsd/protocol.txt
+++ b/loolwsd/protocol.txt
@@ -235,6 +235,18 @@ unocommandresult: <payload>
 Callback that an UNO command has finished.
 See LOK_CALLBACK_UNO_COMMAND_RESULT for details.
 
+partscountchanged: action=<PartInserted|PartDeleted> part=<index>
+
+    Callback action performed:
+
+    PartInserted. The document parts has changed by the action
+    Insert.
+
+    PartDeleted. The document parts has changed by the action
+    Delete.
+
+    <index> The index of the part <PartInserted|PartDeleted>
+
 child -> parent
 ===============
 


More information about the Libreoffice-commits mailing list