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>
35 #include <tools/debug.hxx>
36 #include <vcl/window.hxx>
37 
38 using namespace ::com::sun::star;
39 
41 {
42  // #110094# ObjectContact section
44 
45  // the SdrPageView this window belongs to
47 
48  // the PaintWindow to paint on. Here is access to OutDev etc.
49  // #i72752# change to pointer to allow patcing it in DrawLayer() if necessary
52 
53  // UNO stuff for xControls
54  uno::Reference<awt::XControlContainer> mxControlContainer;
55 
56  Impl( SdrPageView& rPageView, SdrPaintWindow& rPaintWindow ) :
57  mpObjectContact(nullptr),
58  mrPageView(rPageView),
59  mpPaintWindow(&rPaintWindow),
60  mpOriginalPaintWindow(nullptr)
61  {
62  }
63 };
64 
65 
66 uno::Reference<awt::XControlContainer> const & SdrPageWindow::GetControlContainer( bool _bCreateIfNecessary ) const
67 {
68  if (!mpImpl->mxControlContainer.is() && _bCreateIfNecessary)
69  {
70  SdrView& rView = GetPageView().GetView();
71 
73  if ( rPaintWindow.OutputToWindow() && !rView.IsPrintPreview() )
74  {
75  vcl::Window* pWindow = rPaintWindow.GetOutputDevice().GetOwnerWindow();
76  const_cast< SdrPageWindow* >( this )->mpImpl->mxControlContainer = VCLUnoHelper::CreateControlContainer( pWindow );
77 
78  // #100394# xC->setVisible triggers window->Show() and this has
79  // problems when the view is not completely constructed which may
80  // happen when loading. This leads to accessibility broadcasts which
81  // throw asserts due to the not finished view. All this chain can be avoided
82  // since xC->setVisible is here called only for the side effect in
83  // UnoControlContainer::setVisible(...) which calls createPeer(...).
84  // This will now be called directly from here.
85 
86  uno::Reference< awt::XControl > xControl(mpImpl->mxControlContainer, uno::UNO_QUERY);
87  if(xControl.is())
88  {
89  uno::Reference< uno::XInterface > xContext = xControl->getContext();
90  if(!xContext.is())
91  {
92  xControl->createPeer( uno::Reference<awt::XToolkit>(), uno::Reference<awt::XWindowPeer>() );
93  }
94  }
95  }
96  else
97  {
98  // Printer and VirtualDevice, or rather: no OutDev
99  uno::Reference< lang::XMultiServiceFactory > xFactory( ::comphelper::getProcessServiceFactory() );
100  const_cast< SdrPageWindow* >( this )->mpImpl->mxControlContainer.set(xFactory->createInstance("com.sun.star.awt.UnoControlContainer"), uno::UNO_QUERY);
101  uno::Reference< awt::XControlModel > xModel(xFactory->createInstance("com.sun.star.awt.UnoControlContainerModel"), uno::UNO_QUERY);
102  uno::Reference< awt::XControl > xControl(mpImpl->mxControlContainer, uno::UNO_QUERY);
103  if (xControl.is())
104  xControl->setModel(xModel);
105 
106  OutputDevice& rOutDev = rPaintWindow.GetOutputDevice();
107  Point aPosPix = rOutDev.GetMapMode().GetOrigin();
108  Size aSizePix = rOutDev.GetOutputSizePixel();
109 
110  uno::Reference< awt::XWindow > xContComp(mpImpl->mxControlContainer, uno::UNO_QUERY);
111  if( xContComp.is() )
112  xContComp->setPosSize(aPosPix.X(), aPosPix.Y(), aSizePix.Width(), aSizePix.Height(), awt::PosSize::POSSIZE);
113  }
114 
115  FmFormView* pViewAsFormView = dynamic_cast< FmFormView* >( &rView );
116  if ( pViewAsFormView )
117  pViewAsFormView->InsertControlContainer(mpImpl->mxControlContainer);
118  }
119  return mpImpl->mxControlContainer;
120 }
121 
123  mpImpl(new Impl(rPageView, rPaintWindow))
124 {
125 }
126 
128 {
129  // #i26631#
131 
132  if (!mpImpl->mxControlContainer.is())
133  return;
134 
135  auto & rView = static_cast<SdrPaintView &>(GetPageView().GetView());
136 
137  // notify derived views
138  FmFormView* pViewAsFormView = dynamic_cast< FmFormView* >( &rView );
139  if ( pViewAsFormView )
140  pViewAsFormView->RemoveControlContainer(mpImpl->mxControlContainer);
141 
142  // dispose the control container
143  uno::Reference< lang::XComponent > xComponent(mpImpl->mxControlContainer, uno::UNO_QUERY);
144  xComponent->dispose();
145 }
146 
148 {
149  return mpImpl->mrPageView;
150 }
151 
153 {
154  return *mpImpl->mpPaintWindow;
155 }
156 
158 {
159  return mpImpl->mpOriginalPaintWindow;
160 }
161 
162 // OVERLAY MANAGER
164 {
166 }
167 
169 {
170  if (!mpImpl->mpOriginalPaintWindow)
171  {
172  // first patch
173  mpImpl->mpOriginalPaintWindow = mpImpl->mpPaintWindow;
174  mpImpl->mpPaintWindow = &rPaintWindow;
175  mpImpl->mpOriginalPaintWindow->setPatched(&rPaintWindow);
176  return mpImpl->mpOriginalPaintWindow;
177  }
178  else
179  {
180  // second or more patch
181  auto pPreviousPaintWindow = mpImpl->mpPaintWindow;
182  mpImpl->mpPaintWindow = &rPaintWindow;
183  mpImpl->mpOriginalPaintWindow->setPatched(&rPaintWindow);
184  return pPreviousPaintWindow;
185  }
186 }
187 
189 {
190  if (pPreviousPaintWindow == mpImpl->mpOriginalPaintWindow)
191  {
192  // first patch
193  mpImpl->mpPaintWindow = mpImpl->mpOriginalPaintWindow;
194  mpImpl->mpOriginalPaintWindow->setPatched(nullptr);
195  mpImpl->mpOriginalPaintWindow = nullptr;
196  }
197  else
198  {
199  // second or more patch
200  mpImpl->mpPaintWindow = pPreviousPaintWindow;
201  mpImpl->mpOriginalPaintWindow->setPatched(pPreviousPaintWindow);
202  }
203 }
204 
206 {
207  // give OC the chance to do ProcessDisplay preparations
208  if(HasObjectContact())
209  {
211  }
212 }
213 
215 {
216  // give OC the chance to do ProcessDisplay preparations
217  if(HasObjectContact())
218  {
220  }
221 
222  // if necessary, remember changed RedrawArea at PaintWindow for usage with
223  // overlay and PreRenderDevice stuff
225 }
226 
227 
228 // clip test
229 #ifdef CLIPPER_TEST
230 #include <svx/svdopath.hxx>
232 #include <tools/helpers.hxx>
237 
238 // for ::std::sort
239 #include <algorithm>
240 
241 namespace
242 {
243  void impPaintStrokePolygon(const basegfx::B2DPolygon& rCandidate, OutputDevice& rOutDev, Color aColor)
244  {
245  basegfx::B2DPolygon aCandidate(rCandidate);
246 
247  if(aCandidate.areControlPointsUsed())
248  {
249  aCandidate = basegfx::utils::adaptiveSubdivideByAngle(rCandidate);
250  }
251 
252  if(aCandidate.count())
253  {
254  const sal_uInt32 nLoopCount(aCandidate.isClosed() ? aCandidate.count() : aCandidate.count() - 1);
255  rOutDev.SetFillColor();
256  rOutDev.SetLineColor(aColor);
257 
258  for(sal_uInt32 a(0); a < nLoopCount; a++)
259  {
260  const basegfx::B2DPoint aBStart(aCandidate.getB2DPoint(a));
261  const basegfx::B2DPoint aBEnd(aCandidate.getB2DPoint((a + 1) % aCandidate.count()));
262  const Point aStart(FRound(aBStart.getX()), FRound(aBStart.getY()));
263  const Point aEnd(FRound(aBEnd.getX()), FRound(aBEnd.getY()));
264  rOutDev.DrawLine(aStart, aEnd);
265  }
266  }
267  }
268 
269  void impTryTest(const SdrPageView& rPageView, OutputDevice& rOutDev)
270  {
271  if(rPageView.GetPage() && rPageView.GetPage()->GetObjCount() >= 2)
272  {
273  SdrPage* pPage = rPageView.GetPage();
274  SdrObject* pObjA = pPage->GetObj(0);
275 
276  if(dynamic_cast<const SdrPathObj*>( pObjA))
277  {
278  basegfx::B2DPolyPolygon aPolyA(pObjA->GetPathPoly());
279  aPolyA = basegfx::utils::correctOrientations(aPolyA);
280 
282 
283  for(sal_uInt32 a(1); a < rPageView.GetPage()->GetObjCount(); a++)
284  {
285  SdrObject* pObjB = pPage->GetObj(a);
286 
287  if(dynamic_cast<const SdrPathObj*>( pObjB))
288  {
289  basegfx::B2DPolyPolygon aCandidate(pObjB->GetPathPoly());
290  aCandidate = basegfx::utils::correctOrientations(aCandidate);
291  aPolyB.append(aCandidate);
292  }
293  }
294 
295  if(aPolyA.count() && aPolyA.isClosed() && aPolyB.count())
296  {
297  // poly A is the clipregion, clip poly b against it. Algo depends on
298  // poly b being closed.
300 
301  for(auto const& rPolygon : aResult)
302  {
306  Color aColor(nR, nG, nB);
307  impPaintStrokePolygon(rPolygon, rOutDev, aColor);
308  }
309  }
310  }
311  }
312  }
313 } // end of anonymous namespace
314 #endif // CLIPPER_TEST
315 
316 
318 {
319  // set Redirector
321 
322  // set PaintingPageView
323  const SdrView& rView = mpImpl->mrPageView.GetView();
324  SdrModel& rModel = *(rView.GetModel());
325 
326  // get to be processed layers
327  const bool bPrinter(GetPaintWindow().OutputToPrinter());
328  SdrLayerIDSet aProcessLayers = bPrinter ? mpImpl->mrPageView.GetPrintableLayers() : mpImpl->mrPageView.GetVisibleLayers();
329 
330  // create PaintInfoRec; use Rectangle only temporarily
331  const vcl::Region& rRegion = GetPaintWindow().GetRedrawRegion();
332 
333  // create processing data
334  sdr::contact::DisplayInfo aDisplayInfo;
335 
336  // Draw all layers. do NOT draw form layer from CompleteRedraw, this is done separately
337  // as a single layer paint
338  const SdrLayerAdmin& rLayerAdmin = rModel.GetLayerAdmin();
339  const SdrLayerID nControlLayerId = rLayerAdmin.GetLayerID(rLayerAdmin.GetControlLayerName());
340  aProcessLayers.Clear(nControlLayerId);
341 
342  // still something to paint?
343  if(!aProcessLayers.IsEmpty())
344  {
345  aDisplayInfo.SetProcessLayers(aProcessLayers);
346 
347  // Set region as redraw area
348  aDisplayInfo.SetRedrawArea(rRegion);
349 
350  // Draw/Impress
351  aDisplayInfo.SetPageProcessingActive(rView.IsPagePaintingAllowed()); // #i72889#
352 
353  // paint page
354  GetObjectContact().ProcessDisplay(aDisplayInfo);
355  }
356 
357  // reset redirector
359 
360  // LineClip test
361 #ifdef CLIPPER_TEST
362  if(true)
363  {
364  impTryTest(GetPageView(), GetPaintWindow().GetOutputDevice());
365  }
366 #endif // CLIPPER_TEST
367 }
368 
371  basegfx::B2IRectangle const*const pPageFrame)
372 {
373  // set redirector
375 
376  // set PaintingPageView
377  const SdrView& rView = mpImpl->mrPageView.GetView();
378  SdrModel& rModel = *(rView.GetModel());
379 
380  // get the layers to process
381  const bool bPrinter(GetPaintWindow().OutputToPrinter());
382  SdrLayerIDSet aProcessLayers = bPrinter ? mpImpl->mrPageView.GetPrintableLayers() : mpImpl->mrPageView.GetVisibleLayers();
383 
384  // is the given layer visible at all?
385  if(aProcessLayers.IsSet(*pId))
386  {
387  // find out if we are painting the ControlLayer
388  const SdrLayerAdmin& rLayerAdmin = rModel.GetLayerAdmin();
389  const SdrLayerID nControlLayerId = rLayerAdmin.GetLayerID(rLayerAdmin.GetControlLayerName());
390  const bool bControlLayerProcessingActive(nControlLayerId == *pId);
391 
392  // create PaintInfoRec, use Rectangle only temporarily
393  const vcl::Region& rRegion = GetPaintWindow().GetRedrawRegion();
394 
395  // create processing data
396  sdr::contact::DisplayInfo aDisplayInfo;
397 
398  // is it the control layer? If Yes, set flag
399  aDisplayInfo.SetControlLayerProcessingActive(bControlLayerProcessingActive);
400 
401  // Draw just the one given layer
402  aProcessLayers.ClearAll();
403  aProcessLayers.Set(*pId);
404 
405  aDisplayInfo.SetProcessLayers(aProcessLayers);
406 
407  // Set region as redraw area
408  aDisplayInfo.SetRedrawArea(rRegion);
409 
410  // Writer or calc, coming from original RedrawOneLayer.
411  // #i72889# no page painting for layer painting
412  aDisplayInfo.SetPageProcessingActive(false);
413 
414  if (pPageFrame) // Writer page frame for anchor based clipping
415  {
416  aDisplayInfo.SetWriterPageFrame(*pPageFrame);
417  }
418 
419  // paint page
420  GetObjectContact().ProcessDisplay(aDisplayInfo);
421  }
422 
423  // reset redirector
425 }
426 
427 // Invalidate call, used from ObjectContact(OfPageView) in InvalidatePartOfView(...)
429 {
430  if (GetPageView().IsVisible() && GetPaintWindow().OutputToWindow())
431  {
432  OutputDevice& rWindow(GetPaintWindow().GetOutputDevice());
433  basegfx::B2DRange aDiscreteRange(rRange);
434  aDiscreteRange.transform(rWindow.GetViewTransformation());
435 
437  {
438  // invalidate one discrete unit more under the assumption that AA
439  // needs one pixel more
440  aDiscreteRange.grow(1.0);
441  }
442 
443  const tools::Rectangle aVCLDiscreteRectangle(
444  static_cast<tools::Long>(floor(aDiscreteRange.getMinX())),
445  static_cast<tools::Long>(floor(aDiscreteRange.getMinY())),
446  static_cast<tools::Long>(ceil(aDiscreteRange.getMaxX())),
447  static_cast<tools::Long>(ceil(aDiscreteRange.getMaxY())));
448 
449  const bool bWasMapModeEnabled(rWindow.IsMapModeEnabled());
450  rWindow.EnableMapMode(false);
451  GetPageView().GetView().InvalidateOneWin(rWindow, aVCLDiscreteRectangle);
452  rWindow.EnableMapMode(bWasMapModeEnabled);
453  }
455  {
456  // we don't really have to have a paint window with LOK; OTOH we know
457  // that the drawinglayer units are 100ths of mm, so they are easy to
458  // convert to twips
459  const tools::Rectangle aRect100thMM(
460  static_cast<tools::Long>(floor(rRange.getMinX())),
461  static_cast<tools::Long>(floor(rRange.getMinY())),
462  static_cast<tools::Long>(ceil(rRange.getMaxX())),
463  static_cast<tools::Long>(ceil(rRange.getMaxY())));
464 
465  const tools::Rectangle aRectTwips = o3tl::convert(aRect100thMM, o3tl::Length::mm100, o3tl::Length::twip);
466 
467  if (SfxViewShell* pViewShell = SfxViewShell::Current())
468  SfxLokHelper::notifyInvalidation(pViewShell, &aRectTwips);
469  }
470 }
471 
472 // ObjectContact section
474 {
475  if (!mpImpl->mpObjectContact)
476  {
478  const_cast<SdrPageWindow&>(*this),
479  "svx::svdraw::SdrPageWindow mpObjectContact");
480  }
481 
482  return *mpImpl->mpObjectContact;
483 }
484 
486 {
487  if (!mpImpl->mpObjectContact)
488  {
490  *this,
491  "svx::svdraw::SdrPageWindow mpObjectContact" );
492  }
493 
494  return *mpImpl->mpObjectContact;
495 }
496 
498 {
499  return mpImpl->mpObjectContact != nullptr;
500 }
501 
502 // #i26631#
504 {
505  if (mpImpl->mpObjectContact)
506  {
507  delete mpImpl->mpObjectContact;
508  mpImpl->mpObjectContact = nullptr;
509  }
510 }
511 
512 void SdrPageWindow::SetDesignMode( bool _bDesignMode ) const
513 {
515  DBG_ASSERT( pOC, "SdrPageWindow::SetDesignMode: invalid object contact!" );
516  if ( pOC )
517  pOC->SetUNOControlsDesignMode( _bDesignMode );
518 }
519 
520 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
rtl::Reference< sdr::overlay::OverlayManager > const & GetOverlayManager() const
SdrPaintWindow * mpOriginalPaintWindow
void SetWriterPageFrame(basegfx::B2IRectangle const &rPageFrame)
Definition: displayinfo.cxx:46
static void notifyInvalidation(SfxViewShell const *pThisView, tools::Rectangle const *)
void Set(SdrLayerID a)
Definition: svdsob.hxx:46
const SdrPaintWindow * GetOriginalPaintWindow() const
virtual void PrepareProcessDisplay()
uno::Reference< awt::XControlContainer > mxControlContainer
rtl::Reference< sdr::overlay::OverlayManager > const & GetOverlayManager() const
SdrView & GetView()
Definition: svdpagv.hxx:130
long Long
bool IsMapModeEnabled() const
constexpr Point convert(const Point &rPoint, o3tl::Length eFrom, o3tl::Length eTo)
SdrObject * GetObj(size_t nNum) const
Definition: svdpage.cxx:822
css::uno::Reference< css::awt::XControlContainer > const & GetControlContainer(bool _bCreateIfNecessary=true) const
size_t GetObjCount() const
Definition: svdpage.cxx:816
sdr::contact::ObjectContact * mpObjectContact
bool IsEmpty() const
Definition: svdlayer.cxx:25
const MapMode & GetMapMode() const
void SetControlLayerProcessingActive(bool bDoPaint)
Definition: displayinfo.cxx:51
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)
constexpr tools::Long Width() const
void RedrawLayer(const SdrLayerID *pId, sdr::contact::ViewObjectContactRedirector *pRedirector, basegfx::B2IRectangle const *)
void SetProcessLayers(const SdrLayerIDSet &rSet)
Definition: displayinfo.cxx:35
void RemoveControlContainer(const css::uno::Reference< css::awt::XControlContainer > &xCC)
Definition: fmview.cxx:431
void SetPageProcessingActive(bool bDoPaint)
Definition: displayinfo.cxx:59
BASEGFX_DLLPUBLIC void transform(const B2DHomMatrix &rMatrix)
bool OutputToWindow() const
bool IsPagePaintingAllowed() const
Definition: svdpntv.hxx:203
static SfxViewShell * Current()
void InsertControlContainer(const css::uno::Reference< css::awt::XControlContainer > &xCC)
Definition: fmview.cxx:409
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:149
#define DBG_ASSERT(sCon, aError)
uno_Any a
SdrPaintWindow * patchPaintWindow(SdrPaintWindow &rPaintWindow)
tools::Long FRound(double fVal)
Impl(SdrPageView &rPageView, SdrPaintWindow &rPaintWindow)
void SetFillColor()
void SetRedrawArea(const vcl::Region &rRegion)
Definition: displayinfo.cxx:41
const vcl::Region & GetRedrawRegion() const
void SetViewObjectContactRedirector(ViewObjectContactRedirector *pNew)
Size GetOutputSizePixel() const
const sdr::contact::ObjectContact & GetObjectContact() const
Abstract DrawObject.
Definition: svdobj.hxx:259
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:1537
void append(const B2DPolygon &rPolygon, sal_uInt32 nCount=1)
bool IsSet(SdrLayerID a) const
Definition: svdsob.hxx:64
Reference< XMultiServiceFactory > getProcessServiceFactory()
double getMinY() const
sal_uInt32 count() const
SdrPageWindow(const SdrPageWindow &)=delete
B2DPolygon adaptiveSubdivideByAngle(const B2DPolygon &rCandidate, double fAngleBound)
constexpr tools::Long Height() const
SdrPage * GetPage() const
Definition: svdpagv.hxx:166
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:486
const Point & GetOrigin() const
Reference< XSingleServiceFactory > xFactory
Reference< XModel > xModel
double getMinX() const
void ClearAll()
Definition: svdsob.hxx:74
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:308
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:856
void Clear(SdrLayerID a)
Definition: svdsob.hxx:51
SdrLayerID GetLayerID(const OUString &rName) const
Definition: svdlayer.cxx:228
basegfx::B2DHomMatrix GetViewTransformation() const
SdrModel * GetModel() const
Definition: svdpntv.hxx:260
virtual vcl::Window * GetOwnerWindow() const
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