diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-13 14:50:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-01-14 06:36:24 +0000 |
commit | 793904ff3a7d8cceafab3d83a562261c4c17fd14 (patch) | |
tree | 66678c358588a687d56e8d1df221f13f24806b18 /sw/source/uibase/inc/olmenu.hxx | |
parent | 2ec4a66b6d049f5d11f4ceb993ed907c790ed592 (diff) |
use more VCLXPopupMenu instead of XPopupMenu
which avoids a bunch of casting and makes the dependency explicit
instead of implicit
Change-Id: I754da72916fbbc51e7edc3c806155da34d347bd8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145472
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/inc/olmenu.hxx')
-rw-r--r-- | sw/source/uibase/inc/olmenu.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/inc/olmenu.hxx b/sw/source/uibase/inc/olmenu.hxx index fc043046c93e..a071b6b5cf5f 100644 --- a/sw/source/uibase/inc/olmenu.hxx +++ b/sw/source/uibase/inc/olmenu.hxx @@ -24,6 +24,7 @@ #include <com/sun/star/uno/Sequence.h> #include <rtl/ustring.hxx> +#include <toolkit/awt/vclxmenu.hxx> #include <vcl/builder.hxx> #include <vcl/menu.hxx> @@ -129,7 +130,7 @@ public: return *m_xPopupMenu; } - css::uno::Reference<css::awt::XPopupMenu> CreateMenuInterface() { return m_xPopupMenu->CreateMenuInterface(); } + rtl::Reference<VCLXPopupMenu> CreateMenuInterface() { return new VCLXPopupMenu(m_xPopupMenu); } void Execute( const tools::Rectangle& rPopupPos, vcl::Window* pWin ); void Execute( sal_uInt16 nId ); |