diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2019-04-29 16:58:03 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2019-05-06 15:42:12 +0200 |
commit | 3ef1164bc3a13af481102e0abef06929c53bad8b (patch) | |
tree | 67c938a731d880a06b9b8260e5159eb97d4a7b70 | |
parent | 4a226f94f506dc87fcb34486b6a00cfa2f4f0e35 (diff) |
libreofficekit: send show/hide messages for dialogscp-6.0-30
Change-Id: I2b3ff5e5122b2be099be500ac544bf81f8d1b2ae
Reviewed-on: https://gerrit.libreoffice.org/71544
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/71545
Tested-by: Jan Holesovsky <kendy@collabora.com>
-rw-r--r-- | include/LibreOfficeKit/LibreOfficeKitEnums.h | 2 | ||||
-rw-r--r-- | vcl/source/window/dialog.cxx | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h b/include/LibreOfficeKit/LibreOfficeKitEnums.h index 7ff69d1b350b..2c29ef201519 100644 --- a/include/LibreOfficeKit/LibreOfficeKitEnums.h +++ b/include/LibreOfficeKit/LibreOfficeKitEnums.h @@ -605,6 +605,8 @@ typedef enum * - "cursor_visible" - cursor visible status is changed. Status is available * in "visible" field * - "close" - window is closed + * - "show" - show the window + * - "hide" - hide the window */ LOK_CALLBACK_WINDOW = 36, diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx index 84d98914fd74..f050e33ffb16 100644 --- a/vcl/source/window/dialog.cxx +++ b/vcl/source/window/dialog.cxx @@ -763,6 +763,13 @@ void Dialog::StateChanged( StateChangedType nType ) aObject.EventName = "ModelessDialogVisible"; xEventBroadcaster->documentEventOccured(aObject); UITestLogger::getInstance().log("Modeless Dialog Visible"); + + if (const vcl::ILibreOfficeKitNotifier* pNotifier = GetLOKNotifier()) + { + std::vector<vcl::LOKPayloadItem> aPayload; + aPayload.emplace_back("title", GetText().toUtf8()); + pNotifier->notifyWindow(GetLOKWindowId(), IsVisible()? OUString("show"): OUString("hide"), aPayload); + } } } |