summaryrefslogtreecommitdiff
path: root/include/vcl/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-05-12 15:07:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-05-12 19:57:24 +0200
commitf7a86c5cdf4323c99d26512bf78de7f7c380667d (patch)
treef299cbf4ca27b5db0e81a90cc6551469fa280e63 /include/vcl/toolkit
parentc5e5467f6a13aba68b4706a4d7feb130e824bcc6 (diff)
simplify the vcl<->toolkit connection
No need to store two different pointers and hide the underlying class behind an UNO interface Change-Id: I72c55e912caa9eae1cffa6c9d1b1d480e5668d40 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115496 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/toolkit')
-rw-r--r--include/vcl/toolkit/unowrap.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/vcl/toolkit/unowrap.hxx b/include/vcl/toolkit/unowrap.hxx
index 46f1e0845cc0..66fc099819aa 100644
--- a/include/vcl/toolkit/unowrap.hxx
+++ b/include/vcl/toolkit/unowrap.hxx
@@ -27,6 +27,7 @@
#include <com/sun/star/uno/Reference.h>
#include <vcl/dllapi.h>
#include <vcl/vclptr.hxx>
+#include <toolkit/awt/vclxwindow.hxx>
namespace vcl { class Window; }
class Menu;
@@ -56,8 +57,8 @@ public:
virtual void ReleaseAllGraphics( OutputDevice* pOutDev ) = 0;
// Window
- virtual css::uno::Reference<css::awt::XWindowPeer> GetWindowInterface( vcl::Window* pWindow ) = 0;
- virtual void SetWindowInterface( vcl::Window* pWindow, css::uno::Reference< css::awt::XWindowPeer > xIFace ) = 0;
+ virtual rtl::Reference<VCLXWindow> GetWindowInterface( vcl::Window* pWindow ) = 0;
+ virtual void SetWindowInterface( vcl::Window* pWindow, VCLXWindow* pIFace ) = 0;
virtual VclPtr<vcl::Window> GetWindow(const css::uno::Reference<css::awt::XWindow>& rxWindow) = 0;
// PopupMenu