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/docvw/romenu.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/docvw/romenu.hxx')
-rw-r--r-- | sw/source/uibase/docvw/romenu.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/uibase/docvw/romenu.hxx b/sw/source/uibase/docvw/romenu.hxx index 8961b93d7f12..1af58d3dee6d 100644 --- a/sw/source/uibase/docvw/romenu.hxx +++ b/sw/source/uibase/docvw/romenu.hxx @@ -20,6 +20,7 @@ #pragma once #include <editeng/brushitem.hxx> +#include <toolkit/awt/vclxmenu.hxx> #include <vcl/builder.hxx> #include <vcl/graph.hxx> #include <vcl/menu.hxx> @@ -70,7 +71,7 @@ class SwReadOnlyPopup public: SwReadOnlyPopup(const Point &rDPos, SwView &rV); - css::uno::Reference<css::awt::XPopupMenu> CreateMenuInterface() { return m_xMenu->CreateMenuInterface(); } + rtl::Reference<VCLXPopupMenu> CreateMenuInterface() { return new VCLXPopupMenu(m_xMenu); } ~SwReadOnlyPopup(); void Execute( vcl::Window* pWin, const Point &rPPos ); |