LibreOffice Module svx (master)  1
sdrpagewindow.cxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #include <svx/sdrpagewindow.hxx>
21 #include <com/sun/star/awt/XWindow.hpp>
22 #include <com/sun/star/awt/PosSize.hpp>
23 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
24 #include <comphelper/lok.hxx>
27 #include <svx/svdview.hxx>
28 #include <svx/svdpagv.hxx>
29 #include <svx/sdrpaintwindow.hxx>
32 #include <svx/fmview.hxx>
33 #include <sfx2/lokhelper.hxx>
34 #include <tools/debug.hxx>
35 
36 using namespace ::com::sun::star;
37 
39 {
40  // #110094# ObjectContact section
42 
43  // the SdrPageView this window belongs to
45 
46  // the PaintWindow to paint on. Here is access to OutDev etc.
47  // #i72752# change to pointer to allow patcing it in DrawLayer() if necessary
50 
51  // UNO stuff for xControls
52  uno::Reference<awt::XControlContainer> mxControlContainer;
53 
54  Impl( SdrPageView& rPageView, SdrPaintWindow& rPaintWindow ) :
55  mpObjectContact(nullptr),
56  mrPageView(rPageView),
57  mpPaintWindow(&rPaintWindow),
58  mpOriginalPaintWindow(nullptr)
59  {
60  }
61 };
62 
63 
64 uno::Reference<awt::XControlContainer> const & SdrPageWindow::GetControlContainer( bool _bCreateIfNecessary ) const
65 {
66  if (!mpImpl->mxControlContainer.is() && _bCreateIfNecessary)
67  {
68  SdrView& rView = GetPageView().GetView();
69 
71  if ( rPaintWindow.OutputToWindow() && !rView.IsPrintPreview() )
72  {
73  vcl::Window& rWindow = dynamic_cast< vcl::Window& >( rPaintWindow.GetOutputDevice() );
74  const_cast< SdrPageWindow* >( this )->mpImpl->mxControlContainer = VCLUnoHelper::CreateControlContainer( &rWindow );
75 
76  // #100394# xC->setVisible triggers window->Show() and this has
77  // problems when the view is not completely constructed which may
78  // happen when loading. This leads to accessibility broadcasts which
79  // throw asserts due to the not finished view. All this chain can be avoided
80  // since xC->setVisible is here called only for the side effect in
81  // UnoControlContainer::setVisible(...) which calls createPeer(...).
82  // This will now be called directly from here.
83 
84  uno::Reference< awt::XControl > xControl(mpImpl->mxControlContainer, uno::UNO_QUERY);
85  if(xControl.is())
86  {
87  uno::Reference< uno::XInterface > xContext = xControl->getContext();
88  if(!xContext.is())
89  {
90  xControl->createPeer( uno::Reference<awt::XToolkit>(), uno::Reference<awt::XWindowPeer>() );
91  }
92  }
93  }
94  else
95  {
96  // Printer and VirtualDevice, or rather: no OutDev
97  uno::Reference< lang::XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() );
98  const_cast< SdrPageWindow* >( this )->mpImpl->mxControlContainer.set(xFactory->createInstance("com.sun.star.awt.UnoControlContainer"), uno::UNO_QUERY);
99  uno::Reference< awt::XControlModel > xModel(xFactory->createInstance("com.sun.star.awt.UnoControlContainerModel"), uno::UNO_QUERY);
100  uno::Reference< awt::XControl > xControl(mpImpl->mxControlContainer, uno::UNO_QUERY);
101  if (xControl.is())
102  xControl->setModel(xModel);
103 
104  OutputDevice& rOutDev = rPaintWindow.GetOutputDevice();
105  Point aPosPix = rOutDev.GetMapMode().GetOrigin();
106  Size aSizePix = rOutDev.GetOutputSizePixel();
107 
108  uno::Reference< awt::XWindow > xContComp(mpImpl->mxControlContainer, uno::UNO_QUERY);
109  if( xContComp.is() )
110  xContComp->setPosSize(aPosPix.X(), aPosPix.Y(), aSizePix.Width(), aSizePix.Height(), awt::PosSize::POSSIZE);
111  }
112 
113  FmFormView* pViewAsFormView = dynamic_cast< FmFormView* >( &rView );
114  if ( pViewAsFormView )
115  pViewAsFormView->InsertControlContainer(mpImpl->mxControlContainer);
116  }
117  return mpImpl->mxControlContainer;
118 }
119 
121  mpImpl(new Impl(rPageView, rPaintWindow))
122 {
123 }
124 
126 {
127  // #i26631#
129 
130  if (!mpImpl->mxControlContainer.is())
131  return;
132 
133  auto & rView = static_cast<SdrPaintView &>(GetPageView().GetView());
134 
135  // notify derived views
136  FmFormView* pViewAsFormView = dynamic_cast< FmFormView* >( &rView );
137  if ( pViewAsFormView )
138  pViewAsFormView->RemoveControlContainer(mpImpl->mxControlContainer);
139 
140  // dispose the control container
141  uno::Reference< lang::XComponent > xComponent(mpImpl->mxControlContainer, uno::UNO_QUERY);
142  xComponent->dispose();
143 }
144 
146 {
147  return mpImpl->mrPageView;
148 }
149 
151 {
152  return *mpImpl->mpPaintWindow;
153 }
154 
156 {
157  return mpImpl->mpOriginalPaintWindow;
158 }
159 
160 // OVERLAY MANAGER
162 {
164 }
165 
167 {
168  if (!mpImpl->mpOriginalPaintWindow)
169  {
170  // first patch
171  mpImpl->mpOriginalPaintWindow = mpImpl->mpPaintWindow;
172  mpImpl->mpPaintWindow = &rPaintWindow;
173  mpImpl->mpOriginalPaintWindow->setPatched(&rPaintWindow);
174  return mpImpl->mpOriginalPaintWindow;
175  }
176  else
177  {
178  // second or more patch
179  auto pPreviousPaintWindow = mpImpl->mpPaintWindow;
180  mpImpl->mpPaintWindow = &rPaintWindow;
181  mpImpl->mpOriginalPaintWindow->setPatched(&rPaintWindow);
182  return pPreviousPaintWindow;
183  }
184 }
185 
187 {
188  if (pPreviousPaintWindow == mpImpl->mpOriginalPaintWindow)
189  {
190  // first patch
191  mpImpl->mpPaintWindow = mpImpl->mpOriginalPaintWindow;
192  mpImpl->mpOriginalPaintWindow->setPatched(nullptr);
193  mpImpl->mpOriginalPaintWindow = nullptr;
194  }
195  else
196  {
197  // second or more patch
198  mpImpl->mpPaintWindow = pPreviousPaintWindow;
199  mpImpl->mpOriginalPaintWindow->setPatched(pPreviousPaintWindow);
200  }
201 }
202 
204 {
205  // give OC the chance to do ProcessDisplay preparations
206  if(HasObjectContact())
207  {
209  }
210 }
211 
213 {
214  // give OC the chance to do ProcessDisplay preparations
215  if(HasObjectContact())
216  {
218  }
219 
220  // if necessary, remember changed RedrawArea at PaintWindow for usage with
221  // overlay and PreRenderDevice stuff
223 }
224 
225 
226 // clip test
227 #ifdef CLIPPER_TEST
228 #include <svx/svdopath.hxx>
230 #include <tools/helpers.hxx>
235 
236 // for ::std::sort
237 #include <algorithm>
238 
239 namespace
240 {
241  void impPaintStrokePolygon(const basegfx::B2DPolygon& rCandidate, OutputDevice& rOutDev, Color aColor)
242  {
243  basegfx::B2DPolygon aCandidate(rCandidate);
244 
245  if(aCandidate.areControlPointsUsed())
246  {
247  aCandidate = basegfx::utils::adaptiveSubdivideByAngle(rCandidate);
248  }
249 
250  if(aCandidate.count())
251  {
252  const sal_uInt32 nLoopCount(aCandidate.isClosed() ? aCandidate.count() : aCandidate.count() - 1);
253  rOutDev.SetFillColor();
254  rOutDev.SetLineColor(aColor);
255 
256  for(sal_uInt32 a(0); a < nLoopCount; a++)
257  {
258  const basegfx::B2DPoint aBStart(aCandidate.getB2DPoint(a));
259  const basegfx::B2DPoint aBEnd(aCandidate.getB2DPoint((a + 1) % aCandidate.count()));
260  const Point aStart(FRound(aBStart.getX()), FRound(aBStart.getY()));
261  const Point aEnd(FRound(aBEnd.getX()), FRound(aBEnd.getY()));
262  rOutDev.DrawLine(aStart, aEnd);
263  }
264  }
265  }
266 
267  void impTryTest(const SdrPageView& rPageView, OutputDevice& rOutDev)
268  {
269  if(rPageView.GetPage() && rPageView.GetPage()->GetObjCount() >= 2)
270  {
271  SdrPage* pPage = rPageView.GetPage();
272  SdrObject* pObjA = pPage->GetObj(0);
273 
274  if(dynamic_cast<const SdrPathObj*>( pObjA))
275  {
276  basegfx::B2DPolyPolygon aPolyA(pObjA->GetPathPoly());
277  aPolyA = basegfx::utils::correctOrientations(aPolyA);
278 
280 
281  for(sal_uInt32 a(1); a < rPageView.GetPage()->GetObjCount(); a++)
282  {
283  SdrObject* pObjB = pPage->GetObj(a);
284 
285  if(dynamic_cast<const SdrPathObj*>( pObjB))
286  {
287  basegfx::B2DPolyPolygon aCandidate(pObjB->GetPathPoly());
288  aCandidate = basegfx::utils::correctOrientations(aCandidate);
289  aPolyB.append(aCandidate);
290  }
291  }
292 
293  if(aPolyA.count() && aPolyA.isClosed() && aPolyB.count())
294  {
295  // poly A is the clipregion, clip poly b against it. Algo depends on
296  // poly b being closed.
298 
299  for(auto const& rPolygon : aResult)
300  {
304  Color aColor(nR, nG, nB);
305  impPaintStrokePolygon(rPolygon, rOutDev, aColor);
306  }
307  }
308  }
309  }
310  }
311 } // end of anonymous namespace
312 #endif // CLIPPER_TEST
313 
314 
316 {
317  // set Redirector
319 
320  // set PaintingPageView
321  const SdrView& rView = mpImpl->mrPageView.GetView();
322  SdrModel& rModel = *(rView.GetModel());
323 
324  // get to be processed layers
325  const bool bPrinter(GetPaintWindow().OutputToPrinter());
326  SdrLayerIDSet aProcessLayers = bPrinter ? mpImpl->mrPageView.GetPrintableLayers() : mpImpl->mrPageView.GetVisibleLayers();
327 
328  // create PaintInfoRec; use Rectangle only temporarily
329  const vcl::Region& rRegion = GetPaintWindow().GetRedrawRegion();
330 
331  // create processing data
332  sdr::contact::DisplayInfo aDisplayInfo;
333 
334  // Draw all layers. do NOT draw form layer from CompleteRedraw, this is done separately
335  // as a single layer paint
336  const SdrLayerAdmin& rLayerAdmin = rModel.GetLayerAdmin();
337  const SdrLayerID nControlLayerId = rLayerAdmin.GetLayerID(rLayerAdmin.GetControlLayerName());
338  aProcessLayers.Clear(nControlLayerId);
339 
340  // still something to paint?
341  if(!aProcessLayers.IsEmpty())
342  {
343  aDisplayInfo.SetProcessLayers(aProcessLayers);
344 
345  // Set region as redraw area
346  aDisplayInfo.SetRedrawArea(rRegion);
347 
348  // Draw/Impress
349  aDisplayInfo.SetPageProcessingActive(rView.IsPagePaintingAllowed()); // #i72889#
350 
351  // paint page
352  GetObjectContact().ProcessDisplay(aDisplayInfo);
353  }
354 
355  // reset redirector
357 
358  // LineClip test
359 #ifdef CLIPPER_TEST
360  if(true)
361  {
362  impTryTest(GetPageView(), GetPaintWindow().GetOutputDevice());
363  }
364 #endif // CLIPPER_TEST
365 }
366 
369  basegfx::B2IRectangle const*const pPageFrame)
370 {
371  // set redirector
373 
374  // set PaintingPageView
375  const SdrView& rView = mpImpl->mrPageView.GetView();
376  SdrModel& rModel = *(rView.GetModel());
377 
378  // get the layers to process
379  const bool bPrinter(GetPaintWindow().OutputToPrinter());
380  SdrLayerIDSet aProcessLayers = bPrinter ? mpImpl->mrPageView.GetPrintableLayers() : mpImpl->mrPageView.GetVisibleLayers();
381 
382  // is the given layer visible at all?
383  if(aProcessLayers.IsSet(*pId))
384  {
385  // find out if we are painting the ControlLayer
386  const SdrLayerAdmin& rLayerAdmin = rModel.GetLayerAdmin();
387  const SdrLayerID nControlLayerId = rLayerAdmin.GetLayerID(rLayerAdmin.GetControlLayerName());
388  const bool bControlLayerProcessingActive(nControlLayerId == *pId);
389 
390  // create PaintInfoRec, use Rectangle only temporarily
391  const vcl::Region& rRegion = GetPaintWindow().GetRedrawRegion();
392 
393  // create processing data
394  sdr::contact::DisplayInfo aDisplayInfo;
395 
396  // is it the control layer? If Yes, set flag
397  aDisplayInfo.SetControlLayerProcessingActive(bControlLayerProcessingActive);
398 
399  // Draw just the one given layer
400  aProcessLayers.ClearAll();
401  aProcessLayers.Set(*pId);
402 
403  aDisplayInfo.SetProcessLayers(aProcessLayers);
404 
405  // Set region as redraw area
406  aDisplayInfo.SetRedrawArea(rRegion);
407 
408  // Writer or calc, coming from original RedrawOneLayer.
409  // #i72889# no page painting for layer painting
410  aDisplayInfo.SetPageProcessingActive(false);
411 
412  if (pPageFrame) // Writer page frame for anchor based clipping
413  {
414  aDisplayInfo.SetWriterPageFrame(*pPageFrame);
415  }
416 
417  // paint page
418  GetObjectContact().ProcessDisplay(aDisplayInfo);
419  }
420 
421  // reset redirector
423 }
424 
425 // Invalidate call, used from ObjectContact(OfPageView) in InvalidatePartOfView(...)
427 {
428  if (GetPageView().IsVisible() && GetPaintWindow().OutputToWindow())
429  {
430  const SvtOptionsDrawinglayer aDrawinglayerOpt;
431  OutputDevice& rWindow(GetPaintWindow().GetOutputDevice());
432  basegfx::B2DRange aDiscreteRange(rRange);
433  aDiscreteRange.transform(rWindow.GetViewTransformation());
434 
435  if (aDrawinglayerOpt.IsAntiAliasing())
436  {
437  // invalidate one discrete unit more under the assumption that AA
438  // needs one pixel more
439  aDiscreteRange.grow(1.0);
440  }
441 
442  const tools::Rectangle aVCLDiscreteRectangle(
443  static_cast<long>(floor(aDiscreteRange.getMinX())),
444  static_cast<long>(floor(aDiscreteRange.getMinY())),
445  static_cast<long>(ceil(aDiscreteRange.getMaxX())),
446  static_cast<long>(ceil(aDiscreteRange.getMaxY())));
447 
448  const bool bWasMapModeEnabled(rWindow.IsMapModeEnabled());
449  rWindow.EnableMapMode(false);
450  GetPageView().GetView().InvalidateOneWin(rWindow, aVCLDiscreteRectangle);
451  rWindow.EnableMapMode(bWasMapModeEnabled);
452  }
454  {
455  // we don't really have to have a paint window with LOK; OTOH we know
456  // that the drawinglayer units are 100ths of mm, so they are easy to
457  // convert to twips
458  const tools::Rectangle aRect100thMM(
459  static_cast<long>(floor(rRange.getMinX())),
460  static_cast<long>(floor(rRange.getMinY())),
461  static_cast<long>(ceil(rRange.getMaxX())),
462  static_cast<long>(ceil(rRange.getMaxY())));
463 
464  const tools::Rectangle aRectTwips = OutputDevice::LogicToLogic(aRect100thMM, MapMode(MapUnit::Map100thMM), MapMode(MapUnit::MapTwip));
465 
466  if (SfxViewShell* pViewShell = SfxViewShell::Current())
467  SfxLokHelper::notifyInvalidation(pViewShell, aRectTwips.toString());
468  }
469 }
470 
471 // ObjectContact section
473 {
474  if (!mpImpl->mpObjectContact)
475  {
477  const_cast<SdrPageWindow&>(*this),
478  "svx::svdraw::SdrPageWindow mpObjectContact");
479  }
480 
481  return *mpImpl->mpObjectContact;
482 }
483 
485 {
486  if (!mpImpl->mpObjectContact)
487  {
489  *this,
490  "svx::svdraw::SdrPageWindow mpObjectContact" );
491  }
492 
493  return *mpImpl->mpObjectContact;
494 }
495 
497 {
498  return mpImpl->mpObjectContact != nullptr;
499 }
500 
501 // #i26631#
503 {
504  if (mpImpl->mpObjectContact)
505  {
506  delete mpImpl->mpObjectContact;
507  mpImpl->mpObjectContact = nullptr;
508  }
509 }
510 
511 void SdrPageWindow::SetDesignMode( bool _bDesignMode ) const
512 {
514  DBG_ASSERT( pOC, "SdrPageWindow::SetDesignMode: invalid object contact!" );
515  if ( pOC )
516  pOC->SetUNOControlsDesignMode( _bDesignMode );
517 }
518 
519 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
long Width() const
rtl::Reference< sdr::overlay::OverlayManager > const & GetOverlayManager() const
SdrPaintWindow * mpOriginalPaintWindow
void SetWriterPageFrame(basegfx::B2IRectangle const &rPageFrame)
Definition: displayinfo.cxx:47
void Set(SdrLayerID a)
Definition: svdsob.hxx:48
const SdrPaintWindow * GetOriginalPaintWindow() const
virtual void PrepareProcessDisplay()
uno::Reference< awt::XControlContainer > mxControlContainer
long FRound(double fVal)
rtl::Reference< sdr::overlay::OverlayManager > const & GetOverlayManager() const
Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
long Height() const
SdrView & GetView()
Definition: svdpagv.hxx:135
bool IsMapModeEnabled() const
SdrObject * GetObj(size_t nNum) const
Definition: svdpage.cxx:758
css::uno::Reference< css::awt::XControlContainer > const & GetControlContainer(bool _bCreateIfNecessary=true) const
size_t GetObjCount() const
Definition: svdpage.cxx:752
sdr::contact::ObjectContact * mpObjectContact
bool IsEmpty() const
Definition: svdlayer.cxx:25
const MapMode & GetMapMode() const
void SetControlLayerProcessingActive(bool bDoPaint)
Definition: displayinfo.cxx:52
static css::uno::Reference< css::awt::XControlContainer > CreateControlContainer(vcl::Window *pWindow)
void EnableMapMode(bool bEnable=true)
double getMaxX() const
B2DPolyPolygon clipPolyPolygonOnPolyPolygon(const B2DPolyPolygon &rCandidate, const B2DPolyPolygon &rClip, bool bInside, bool bStroke)
void SetRedrawRegion(const vcl::Region &rNew)
void RedrawLayer(const SdrLayerID *pId, sdr::contact::ViewObjectContactRedirector *pRedirector, basegfx::B2IRectangle const *)
void SetProcessLayers(const SdrLayerIDSet &rSet)
Definition: displayinfo.cxx:36
static void notifyInvalidation(SfxViewShell const *pThisView, const OString &rPayload)
void RemoveControlContainer(const css::uno::Reference< css::awt::XControlContainer > &xCC)
Definition: fmview.cxx:427
void SetPageProcessingActive(bool bDoPaint)
Definition: displayinfo.cxx:60
BASEGFX_DLLPUBLIC void transform(const B2DHomMatrix &rMatrix)
bool OutputToWindow() const
bool IsPagePaintingAllowed() const
Definition: svdpntv.hxx:207
static SfxViewShell * Current()
void InsertControlContainer(const css::uno::Reference< css::awt::XControlContainer > &xCC)
Definition: fmview.cxx:405
void unpatchPaintWindow(SdrPaintWindow *pPreviousPaintWindow)
double getMaxY() const
void SetUNOControlsDesignMode(bool _bDesignMode) const
sets all UNO controls which are associated with this ObjectContact to design or alive mode...
void DrawLine(const Point &rStartPt, const Point &rEndPt)
void ResetObjectContact()
void grow(double fValue)
void SetLineColor()
SdrPageView & mrPageView
const OUString & GetControlLayerName() const
Definition: svdlayer.hxx:151
#define DBG_ASSERT(sCon, aError)
uno_Any a
SdrPaintWindow * patchPaintWindow(SdrPaintWindow &rPaintWindow)
Impl(SdrPageView &rPageView, SdrPaintWindow &rPaintWindow)
void SetFillColor()
void SetRedrawArea(const vcl::Region &rRegion)
Definition: displayinfo.cxx:42
const vcl::Region & GetRedrawRegion() const
void SetViewObjectContactRedirector(ViewObjectContactRedirector *pNew)
Size GetOutputSizePixel() const
const sdr::contact::ObjectContact & GetObjectContact() const
Abstract DrawObject.
Definition: svdobj.hxx:312
void RedrawAll(sdr::contact::ViewObjectContactRedirector *pRedirector)
void PrepareRedraw(const vcl::Region &rReg)
virtual sdr::contact::ObjectContact * createViewSpecificObjectContact(SdrPageWindow &rPageWindow, const char *pDebugName) const
Definition: svdview.cxx:1452
void append(const B2DPolygon &rPolygon, sal_uInt32 nCount=1)
bool IsSet(SdrLayerID a) const
Definition: svdsob.hxx:66
Reference< XMultiServiceFactory > getProcessServiceFactory()
double getMinY() const
sal_uInt32 count() const
SdrPageWindow(const SdrPageWindow &)=delete
B2DPolygon adaptiveSubdivideByAngle(const B2DPolygon &rCandidate, double fAngleBound)
SdrPage * GetPage() const
Definition: svdpagv.hxx:171
bool HasObjectContact() const
determines whether there already exists an ObjectContact
int uniform_int_distribution(int a, int b)
SdrPaintWindow * mpPaintWindow
SdrPaintWindow & GetPaintWindow() const
void InvalidatePageWindow(const basegfx::B2DRange &rRange)
std::unique_ptr< Impl > mpImpl
virtual void ProcessDisplay(DisplayInfo &rDisplayInfo)
bool IsPrintPreview() const
Definition: svdpntv.hxx:491
const Point & GetOrigin() const
bool IsAntiAliasing() const
Reference< XSingleServiceFactory > xFactory
Reference< XModel > xModel
double getMinX() const
void ClearAll()
Definition: svdsob.hxx:76
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
Definition: svdpage.hxx:365
B2DPolyPolygon correctOrientations(const B2DPolyPolygon &rCandidate)
const SdrLayerAdmin & GetLayerAdmin() const
Definition: svdmodel.hxx:310
virtual void InvalidateOneWin(OutputDevice &rWin)
If the View should not call Invalidate() on the windows, override the following 2 methods and do some...
Definition: svdpntv.cxx:862
void Clear(SdrLayerID a)
Definition: svdsob.hxx:53
SdrLayerID GetLayerID(const OUString &rName) const
Definition: svdlayer.cxx:228
basegfx::B2DHomMatrix GetViewTransformation() const
SdrModel * GetModel() const
Definition: svdpntv.hxx:265
OutputDevice & GetOutputDevice() const
void SetDesignMode(bool _bDesignMode) const
sets all elements in the view which support a design and an alive mode into the given mode ...
SdrPageView & GetPageView() const