diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-07-09 14:26:45 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-07-09 17:04:26 +0200 |
commit | 78c73f42c8079ed6d37784e68da5170c86a68616 (patch) | |
tree | 340637af042469ee69954be16ee4f14edbebd218 /include/svx | |
parent | 24c50b6029791ed9fd14ed2c75351acd6c55e895 (diff) |
SdrPaintWindow: optionally take a vcl::Window, too
Change-Id: Ibf6c0cc2e6dc8fe6979632f6acb1b065984cd73f
Diffstat (limited to 'include/svx')
-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; |