[Libreoffice-commits] online.git: loolwsd/LibreOfficeKit.hpp

Ashod Nakashian ashod.nakashian at collabora.co.uk
Sun Oct 23 20:57:55 UTC 2016


 loolwsd/LibreOfficeKit.hpp |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit e5c9f61dd475c451b59c9ab1bf69dc96c6c71c1a
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Fri Oct 21 11:57:00 2016 -0400

    loolwsd: log possible document modifying calls in LOKit wrapper
    
    Change-Id: I439460347c598a54af74d264dbde2670cf3542ac
    Reviewed-on: https://gerrit.libreoffice.org/30189
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/loolwsd/LibreOfficeKit.hpp b/loolwsd/LibreOfficeKit.hpp
index 7f0c14f..15108ec 100644
--- a/loolwsd/LibreOfficeKit.hpp
+++ b/loolwsd/LibreOfficeKit.hpp
@@ -235,6 +235,8 @@ public:
      */
     inline void postKeyEvent(int nType, int nCharCode, int nKeyCode)
     {
+        Log::trace() << "lok::Document: postKeyEvent: Type=" << nType
+                     << ", CharCode=" << nCharCode << ", KeyCode=" << nKeyCode << Log::end;
         _pDoc->pClass->postKeyEvent(_pDoc, nType, nCharCode, nKeyCode);
     }
 
@@ -250,6 +252,9 @@ public:
      */
     inline void postMouseEvent(int nType, int nX, int nY, int nCount, int nButtons, int nModifier)
     {
+        Log::trace() << "lok::Document: postMouseEvent: Type=" << nType
+                     << ", X=" << nX << ", nY=" << nY << ", Count=" << nCount
+                     << ", Buttons=" << nButtons << ", Modifier=" << nModifier << Log::end;
         _pDoc->pClass->postMouseEvent(_pDoc, nType, nX, nY, nCount, nButtons, nModifier);
     }
 
@@ -276,6 +281,9 @@ public:
      */
     inline void postUnoCommand(const char* pCommand, const char* pArguments = NULL, bool bNotifyWhenFinished = false)
     {
+        Log::trace() << "lok::Document: postUnoCommand: Command=" << pCommand
+                     << ", Args=" << (pArguments ? pArguments : "''")
+                     << ", NotifyWhenFinished=" << bNotifyWhenFinished << Log::end;
         _pDoc->pClass->postUnoCommand(_pDoc, pCommand, pArguments, bNotifyWhenFinished);
     }
 


More information about the Libreoffice-commits mailing list