diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-07-09 14:26:45 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-08-06 12:56:01 +0200 |
commit | bf3974cfef38d0a0ee1e6889dad73cc430f60071 (patch) | |
tree | e59469bdd6c5fd48957a93159474381f5c58e546 /include | |
parent | b0fd59da4dea311a3c36928a5f6e19351d6b8c1e (diff) |
SdrPaintWindow: optionally take a vcl::Window, too
Change-Id: Ibf6c0cc2e6dc8fe6979632f6acb1b065984cd73f
(cherry picked from commit 78c73f42c8079ed6d37784e68da5170c86a68616)
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/sdrpaintwindow.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/svx/sdrpaintwindow.hxx b/include/svx/sdrpaintwindow.hxx index ba267e3026d7..18a3482018b1 100644 --- a/include/svx/sdrpaintwindow.hxx +++ b/include/svx/sdrpaintwindow.hxx @@ -68,6 +68,9 @@ private: // the OutputDevice this window represents OutputDevice& mrOutputDevice; + /// In case mrOutputDevice is a buffer for a vcl::Window, this is the window. + vcl::Window* mpWindow; + // the SdrPaintView this window belongs to SdrPaintView& mrPaintView; @@ -95,12 +98,13 @@ private: void impCreateOverlayManager(); public: - SdrPaintWindow(SdrPaintView& rNewPaintView, OutputDevice& rOut); + SdrPaintWindow(SdrPaintView& rNewPaintView, OutputDevice& rOut, vcl::Window* pWindow = 0); ~SdrPaintWindow(); // data read accesses SdrPaintView& GetPaintView() const { return mrPaintView; } OutputDevice& GetOutputDevice() const { return mrOutputDevice; } + vcl::Window* GetWindow() const { return mpWindow; } // OVERLAYMANAGER rtl::Reference< sdr::overlay::OverlayManager > GetOverlayManager() const; |