diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-03-08 21:07:40 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-27 12:22:56 +0200 |
commit | 43770a7aece6708d5ae6a55339e35f7145e85c6f (patch) | |
tree | 37f96bd6bd99c2e34afb9a58def57783cb212eee /include | |
parent | 7337baa159ff11b037e688d37e2ee59d24b553e2 (diff) |
lokdialog: Tunnel the spell-checking context menu with recommendations.
Change-Id: I1a7952e88a3f89346c97d2516628b4a7a0423de6
Reviewed-on: https://gerrit.libreoffice.org/51062
Reviewed-by: pranavk <pranavk@collabora.co.uk>
Tested-by: pranavk <pranavk@collabora.co.uk>
Reviewed-on: https://gerrit.libreoffice.org/51166
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
(cherry picked from commit 8938e8b153f32f3f5926baddb87cb76c8e72755a)
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/menu.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx index 2728b1ac8f21..a746414b462b 100644 --- a/include/vcl/menu.hxx +++ b/include/vcl/menu.hxx @@ -60,6 +60,7 @@ namespace vcl class Window; struct MenuLayoutData; typedef OutputDevice RenderContext; // same as in include/vcl/outdev.hxx +class ILibreOfficeKitNotifier; } #define MENU_APPEND (sal_uInt16(0xFFFF)) @@ -484,6 +485,8 @@ class VCL_DLLPUBLIC PopupMenu : public Menu friend struct MenuItemData; private: + const vcl::ILibreOfficeKitNotifier* mpLOKNotifier; ///< To emit the LOK callbacks eg. for dialog tunneling. + SAL_DLLPRIVATE MenuFloatingWindow * ImplGetFloatingWindow() const; protected: @@ -518,6 +521,12 @@ public: static bool IsInExecute(); static PopupMenu* GetActivePopupMenu(); + /// Interface to register for dialog / window tunneling. + void SetLOKNotifier(const vcl::ILibreOfficeKitNotifier* pNotifier) + { + mpLOKNotifier = pNotifier; + } + PopupMenu& operator=( const PopupMenu& rMenu ); }; |