Kaydet (Commit) 5ccaa897 authored tarafından Caolán McNamara's avatar Caolán McNamara

allow overruling treatment as not-Window

Change-Id: I26f987b1c2993f50cb67d89a68daf4ec82641700
Reviewed-on: https://gerrit.libreoffice.org/72383Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 55961e11
......@@ -87,6 +87,8 @@ private:
// #i72889# flag if this is only a temporary target for repaint, default is false
bool mbTemporaryTarget : 1;
bool mbOutputToWindow : 1;
// helpers
void impCreateOverlayManager();
......@@ -112,7 +114,9 @@ public:
bool OutputToPrinter() const { return (OUTDEV_PRINTER == mpOutputDevice->GetOutDevType()); }
// Is OutDev a window?
bool OutputToWindow() const { return (OUTDEV_WINDOW == mpOutputDevice->GetOutDevType()); }
bool OutputToWindow() const { return mbOutputToWindow; }
void SetOutputToWindow(bool bOutputToWindow) { mbOutputToWindow = bOutputToWindow; }
// Is OutDev a VirtualDevice?
bool OutputIsVirtualDevice() const { return mpOutputDevice->IsVirtual(); }
......
......@@ -236,7 +236,8 @@ SdrPaintWindow::SdrPaintWindow(SdrPaintView& rNewPaintView, OutputDevice& rOut,
: mpOutputDevice(&rOut),
mpWindow(pWindow),
mrPaintView(rNewPaintView),
mbTemporaryTarget(false) // #i72889#
mbTemporaryTarget(false), // #i72889#
mbOutputToWindow(OUTDEV_WINDOW == mpOutputDevice->GetOutDevType())
{
}
......
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