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 /include/sfx2/viewsh.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 'include/sfx2/viewsh.hxx')
-rw-r--r-- | include/sfx2/viewsh.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/sfx2/viewsh.hxx b/include/sfx2/viewsh.hxx index bb805cdc4179..8efa98a13e4f 100644 --- a/include/sfx2/viewsh.hxx +++ b/include/sfx2/viewsh.hxx @@ -57,6 +57,7 @@ class NotifyEvent; class SfxInPlaceClient; class SfxLokCallbackInterface; class SfxStoringHelper; +class VCLXPopupMenu; namespace rtl { class OStringBuffer; } namespace vcl { class PrinterController; } @@ -304,11 +305,11 @@ public: void SetController( SfxBaseController* pController ); css::uno::Reference<css::frame::XController> GetController() const; - bool TryContextMenuInterception(const css::uno::Reference<css::awt::XPopupMenu>& rIn, + bool TryContextMenuInterception(const rtl::Reference<VCLXPopupMenu>& rIn, const OUString& rMenuIdentifier, - css::uno::Reference<css::awt::XPopupMenu>& rOut, + rtl::Reference<VCLXPopupMenu>& rOut, css::ui::ContextMenuExecuteEvent aEvent); - bool TryContextMenuInterception(const css::uno::Reference<css::awt::XPopupMenu>&, + bool TryContextMenuInterception(const rtl::Reference<VCLXPopupMenu>&, const OUString& rMenuIdentifier, css::ui::ContextMenuExecuteEvent aEvent); |