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: ...@@ -68,6 +68,9 @@ private:
// the OutputDevice this window represents // the OutputDevice this window represents
OutputDevice& mrOutputDevice; 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 // the SdrPaintView this window belongs to
SdrPaintView& mrPaintView; SdrPaintView& mrPaintView;
...@@ -95,12 +98,13 @@ private: ...@@ -95,12 +98,13 @@ private:
void impCreateOverlayManager(); void impCreateOverlayManager();
public: public:
SdrPaintWindow(SdrPaintView& rNewPaintView, OutputDevice& rOut); SdrPaintWindow(SdrPaintView& rNewPaintView, OutputDevice& rOut, vcl::Window* pWindow = 0);
~SdrPaintWindow(); ~SdrPaintWindow();
// data read accesses // data read accesses
SdrPaintView& GetPaintView() const { return mrPaintView; } SdrPaintView& GetPaintView() const { return mrPaintView; }
OutputDevice& GetOutputDevice() const { return mrOutputDevice; } OutputDevice& GetOutputDevice() const { return mrOutputDevice; }
vcl::Window* GetWindow() const { return mpWindow; }
// OVERLAYMANAGER // OVERLAYMANAGER
rtl::Reference< sdr::overlay::OverlayManager > GetOverlayManager() const; rtl::Reference< sdr::overlay::OverlayManager > GetOverlayManager() const;
......
...@@ -244,8 +244,9 @@ void SdrPaintWindow::impCreateOverlayManager() ...@@ -244,8 +244,9 @@ void SdrPaintWindow::impCreateOverlayManager()
} }
} }
SdrPaintWindow::SdrPaintWindow(SdrPaintView& rNewPaintView, OutputDevice& rOut) SdrPaintWindow::SdrPaintWindow(SdrPaintView& rNewPaintView, OutputDevice& rOut, vcl::Window* pWindow)
: mrOutputDevice(rOut), : mrOutputDevice(rOut),
mpWindow(pWindow),
mrPaintView(rNewPaintView), mrPaintView(rNewPaintView),
mpPreRenderDevice(0L), mpPreRenderDevice(0L),
mbTemporaryTarget(false), // #i72889# 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