[Libreoffice-commits] core.git: include/LibreOfficeKit
Jan Holesovsky
kendy at collabora.com
Tue Nov 15 12:09:55 UTC 2016
include/LibreOfficeKit/LibreOfficeKit.hxx | 12 ++++++++++++
1 file changed, 12 insertions(+)
New commits:
commit 6b4eaa7ee7837e7ff1439ebb06db9200b4b68b61
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
diff --git a/include/LibreOfficeKit/LibreOfficeKit.hxx b/include/LibreOfficeKit/LibreOfficeKit.hxx
index 1c9474f..447f44b 100644
--- a/include/LibreOfficeKit/LibreOfficeKit.hxx
+++ b/include/LibreOfficeKit/LibreOfficeKit.hxx
@@ -512,6 +512,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