[Libreoffice-commits] core.git: include/LibreOfficeKit libreofficekit/source
Szymon Kłos (via logerrit)
logerrit at kemper.freedesktop.org
Mon Sep 30 09:26:11 UTC 2019
include/LibreOfficeKit/LibreOfficeKitEnums.h | 8 ++++++++
libreofficekit/source/gtk/lokdocview.cxx | 1 +
2 files changed, 9 insertions(+)
New commits:
commit 2e347c94503321c2102c6f78f5f5bcb771727e69
Author: Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Sep 24 17:29:53 2019 +0200
Commit: Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Mon Sep 30 11:25:23 2019 +0200
jsdialogs: add callback LOK_CALLBACK_JSDIALOG
Change-Id: Ie79e24ae3a376e0de3d82daff4a1263c7ce3b33a
Reviewed-on: https://gerrit.libreoffice.org/79825
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h b/include/LibreOfficeKit/LibreOfficeKitEnums.h
index 17e1c3e27740..829eca07e500 100644
--- a/include/LibreOfficeKit/LibreOfficeKitEnums.h
+++ b/include/LibreOfficeKit/LibreOfficeKitEnums.h
@@ -703,6 +703,12 @@ typedef enum
* }
*/
LOK_CALLBACK_REFERENCE_MARKS = 45,
+
+ /**
+ * Callback related to native dialogs generated in JavaScript from
+ * the description.
+ */
+ LOK_CALLBACK_JSDIALOG = 46,
}
LibreOfficeKitCallbackType;
@@ -823,6 +829,8 @@ static inline const char* lokCallbackTypeToString(int nType)
return "LOK_CALLBACK_TABLE_SELECTED";
case LOK_CALLBACK_REFERENCE_MARKS:
return "LOK_CALLBACK_REFERENCE_MARKS";
+ case LOK_CALLBACK_JSDIALOG:
+ return "LOK_CALLBACK_JSDIALOG";
}
assert(!"Unknown LibreOfficeKitCallbackType type.");
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index f2b35617c952..96e2c12b17ba 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -1391,6 +1391,7 @@ callback (gpointer pData)
case LOK_CALLBACK_CELL_SELECTION_AREA:
case LOK_CALLBACK_CELL_AUTO_FILL_AREA:
case LOK_CALLBACK_TABLE_SELECTED:
+ case LOK_CALLBACK_JSDIALOG:
{
// TODO: Implement me
break;
More information about the Libreoffice-commits
mailing list