Kaydet (Commit) 78c73f42 authored tarafından Miklos Vajna's avatar Miklos Vajna

SdrPaintWindow: optionally take a vcl::Window, too

Change-Id: Ibf6c0cc2e6dc8fe6979632f6acb1b065984cd73f
üst 24c50b60
......@@ -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;
......
......@@ -244,8 +244,9 @@ void SdrPaintWindow::impCreateOverlayManager()
}
}
SdrPaintWindow::SdrPaintWindow(SdrPaintView& rNewPaintView, OutputDevice& rOut)
SdrPaintWindow::SdrPaintWindow(SdrPaintView& rNewPaintView, OutputDevice& rOut, vcl::Window* pWindow)
: mrOutputDevice(rOut),
mpWindow(pWindow),
mrPaintView(rNewPaintView),
mpPreRenderDevice(0L),
mbTemporaryTarget(false), // #i72889#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment