From 9cdaccc0cc5664ffb22035f65135b6be876de92f Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Thu, 3 Aug 2017 14:42:55 +0530 Subject: lokdialog: Support for rendering floating window dialog widgets Now gtktiledviewer can show floating window dialog widgets when user clicks any of such widget in the dialog. Change-Id: I13d756f236379bc8b2041ed41cb7b502f7fd9b24 --- include/LibreOfficeKit/LibreOfficeKit.h | 2 ++ include/LibreOfficeKit/LibreOfficeKitEnums.h | 20 +++++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) (limited to 'include/LibreOfficeKit') diff --git a/include/LibreOfficeKit/LibreOfficeKit.h b/include/LibreOfficeKit/LibreOfficeKit.h index 5a099f7c7f67..529a1336ca76 100644 --- a/include/LibreOfficeKit/LibreOfficeKit.h +++ b/include/LibreOfficeKit/LibreOfficeKit.h @@ -269,6 +269,8 @@ struct _LibreOfficeKitDocumentClass /// WIP void (*paintDialog) (LibreOfficeKitDocument* pThis, const char* pDialogId, unsigned char* pBuffer, int* nWidth, int* nHeight); + void (*paintActiveFloatingWindow) (LibreOfficeKitDocument* pThis, const char* pDialogId, unsigned char* pBuffer, int* nWidth, int* nHeight); + /// WIP void (*postDialogKeyEvent) (LibreOfficeKitDocument* pThis, const char* pDialogId, diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h b/include/LibreOfficeKit/LibreOfficeKitEnums.h index fdad6919e0e1..4c70560690da 100644 --- a/include/LibreOfficeKit/LibreOfficeKitEnums.h +++ b/include/LibreOfficeKit/LibreOfficeKitEnums.h @@ -525,8 +525,26 @@ typedef enum /** * Dialog invalidation */ - LOK_CALLBACK_DIALOG_INVALIDATE = 36 + LOK_CALLBACK_DIALOG_INVALIDATE = 36, + /** + * Invalidation corresponding to dialog's children. + * Eg: Floating window etc. + * + * Payload example: + * { + * "dialogID": "SpellDialog", + * "action": "close" + * } + * + * - dialogID is the UNO command of the dialog + * - action can be + * - close, means dialog child window is closed now + * - invalidate, means dialog child window is invalidated + * It also means that dialog child window is created if it's the first + * invalidate + */ + LOK_CALLBACK_DIALOG_CHILD = 37 } LibreOfficeKitCallbackType; -- cgit