diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-11-24 01:40:38 +0530 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-11-29 10:16:54 +0100 |
commit | e8c7420cc49238a88a66b6514c72e63df56d430a (patch) | |
tree | eae19dfff135f68e9942dd644886e9921d00d43d /sfx2 | |
parent | faf01731b20b96c2863b7a26277472cb47bb544a (diff) |
lokdialog: Notify dialog closure from sfx2/, instead of vcl/
Change-Id: I49f5e0d5f6c7c0077a6d4390f8788c1691d47bd6
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/tabdlg.cxx | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx index 3a4b64335139..17f64d51a063 100644 --- a/sfx2/source/dialog/tabdlg.cxx +++ b/sfx2/source/dialog/tabdlg.cxx @@ -21,12 +21,9 @@ #include <limits.h> #include <stdlib.h> #include <algorithm> -#include <vcl/builder.hxx> -#include <vcl/msgbox.hxx> -#include <vcl/IDialogRenderable.hxx> -#include <unotools/viewoptions.hxx> #include <appdata.hxx> +#include <comphelper/lok.hxx> #include <sfxtypes.hxx> #include <sfx2/tabdlg.hxx> #include <sfx2/viewfrm.hxx> @@ -38,8 +35,11 @@ #include <sfx2/sfxdlg.hxx> #include <sfx2/itemconnect.hxx> #include <sfx2/viewsh.hxx> - #include <uitest/sfx_uiobject.hxx> +#include <unotools/viewoptions.hxx> +#include <vcl/builder.hxx> +#include <vcl/msgbox.hxx> +#include <vcl/IDialogRenderable.hxx> #include <sfx2/strings.hrc> #include <helpids.h> @@ -403,6 +403,13 @@ void SfxTabDialog::dispose() m_pBaseFmtBtn.clear(); m_pActionArea.clear(); + SfxViewShell* pViewShell = SfxViewShell::Current(); + if (comphelper::LibreOfficeKit::isActive() && pViewShell) + { + pViewShell->notifyDialog(maID, "close"); + pViewShell->UnregisterDlg(maID); + } + TabDialog::dispose(); } @@ -512,7 +519,7 @@ short SfxTabDialog::Execute() Start_Impl(); SfxViewShell* pViewShell = SfxViewShell::Current(); - if (pViewShell) + if (comphelper::LibreOfficeKit::isActive() && pViewShell) { pViewShell->RegisterDlg(maID, this); registerDialogNotifier(static_cast<vcl::IDialogNotifier*>(pViewShell)); |