[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.1' - include/LibreOfficeKit

Jan Holesovsky kendy at collabora.com
Tue Nov 15 12:10:33 UTC 2016


 include/LibreOfficeKit/LibreOfficeKit.hxx |   12 ++++++++++++
 1 file changed, 12 insertions(+)

New commits:
commit b5a15bc844d642e795864c4d3f13265bd37ee451
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Tue Nov 15 13:07:16 2016 +0100

    Add the missing lok::Office::registerCallback().
    
    Change-Id: I0aebf12c4d685f69f094b9acbe6b04bb5b3234a4
    (cherry picked from commit 6b4eaa7ee7837e7ff1439ebb06db9200b4b68b61)

diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx
index 887bf36..eaee8a3 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.hxx
+++ b/include/LibreOfficeKit/LibreOfficeKit.hxx
@@ -508,6 +508,18 @@ public:
 
 #if defined LOK_USE_UNSTABLE_API || defined LIBO_INTERNAL_ONLY
     /**
+     * Registers a callback. LOK will invoke this function when it wants to
+     * inform the client about events.
+     *
+     * @param pCallback the callback to invoke
+     * @param pData the user data, will be passed to the callback on invocation
+     */
+    inline void registerCallback(LibreOfficeKitCallback pCallback, void* pData)
+    {
+        mpThis->pClass->registerCallback(mpThis, pCallback, pData);
+    }
+
+    /**
      * Returns details of filter types.
      *
      * Example returned string:


More information about the Libreoffice-commits mailing list