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>
32#include <svx/fmview.hxx>
33#include <sfx2/lokhelper.hxx>
35#include <tools/debug.hxx>
36#include <vcl/window.hxx>
37
38using 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),
61 {
62 }
63};
64
65
66uno::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)
171 return nullptr;
172
173 if (!mpImpl->mpOriginalPaintWindow)
174 {
175 // first patch
176 mpImpl->mpOriginalPaintWindow = mpImpl->mpPaintWindow;
177 mpImpl->mpPaintWindow = &rPaintWindow;
178 mpImpl->mpOriginalPaintWindow->setPatched(&rPaintWindow);
179 return mpImpl->mpOriginalPaintWindow;
180 }
181 else
182 {
183 // second or more patch
184 auto pPreviousPaintWindow = mpImpl->mpPaintWindow;
185 mpImpl->mpPaintWindow = &rPaintWindow;
186 mpImpl->mpOriginalPaintWindow->setPatched(&rPaintWindow);
187 return pPreviousPaintWindow;
188 }
189}
190
192{
193 if (pPreviousPaintWindow == mpImpl->mpOriginalPaintWindow)
194 {
195 // first patch
196 mpImpl->mpPaintWindow = mpImpl->mpOriginalPaintWindow;
197 mpImpl->mpOriginalPaintWindow->setPatched(nullptr);
198 mpImpl->mpOriginalPaintWindow = nullptr;
199 }
200 else
201 {
202 // second or more patch
203 mpImpl->mpPaintWindow = pPreviousPaintWindow;
204 mpImpl->mpOriginalPaintWindow->setPatched(pPreviousPaintWindow);
205 }
206}
207
209{
210 // give OC the chance to do ProcessDisplay preparations
211 if(HasObjectContact())
212 {
214 }
215}
216
218{
219 // give OC the chance to do ProcessDisplay preparations
220 if(HasObjectContact())
221 {
223 }
224
225 // if necessary, remember changed RedrawArea at PaintWindow for usage with
226 // overlay and PreRenderDevice stuff
228}
229
230
231// clip test
232#ifdef CLIPPER_TEST
233#include <svx/svdopath.hxx>
235#include <tools/helpers.hxx>
240
241// for ::std::sort
242#include <algorithm>
243
244namespace
245{
246 void impPaintStrokePolygon(const basegfx::B2DPolygon& rCandidate, OutputDevice& rOutDev, Color aColor)
247 {
248 basegfx::B2DPolygon aCandidate(rCandidate);
249
250 if(aCandidate.areControlPointsUsed())
251 {
252 aCandidate = basegfx::utils::adaptiveSubdivideByAngle(rCandidate);
253 }
254
255 if(aCandidate.count())
256 {
257 const sal_uInt32 nLoopCount(aCandidate.isClosed() ? aCandidate.count() : aCandidate.count() - 1);
258 rOutDev.SetFillColor();
259 rOutDev.SetLineColor(aColor);
260
261 for(sal_uInt32 a(0); a < nLoopCount; a++)
262 {
263 const basegfx::B2DPoint aBStart(aCandidate.getB2DPoint(a));
264 const basegfx::B2DPoint aBEnd(aCandidate.getB2DPoint((a + 1) % aCandidate.count()));
265 const Point aStart(FRound(aBStart.getX()), FRound(aBStart.getY()));
266 const Point aEnd(FRound(aBEnd.getX()), FRound(aBEnd.getY()));
267 rOutDev.DrawLine(aStart, aEnd);
268 }
269 }
270 }
271
272 void impTryTest(const SdrPageView& rPageView, OutputDevice& rOutDev)
273 {
274 if(rPageView.GetPage() && rPageView.GetPage()->GetObjCount() >= 2)
275 {
276 SdrPage* pPage = rPageView.GetPage();
277 SdrObject* pObjA = pPage->GetObj(0);
278
279 if(dynamic_cast<const SdrPathObj*>( pObjA))
280 {
281 basegfx::B2DPolyPolygon aPolyA(pObjA->GetPathPoly());
283
285
286 for(sal_uInt32 a(1); a < rPageView.GetPage()->GetObjCount(); a++)
287 {
288 SdrObject* pObjB = pPage->GetObj(a);
289
290 if(dynamic_cast<const SdrPathObj*>( pObjB))
291 {
292 basegfx::B2DPolyPolygon aCandidate(pObjB->GetPathPoly());
293 aCandidate = basegfx::utils::correctOrientations(aCandidate);
294 aPolyB.append(aCandidate);
295 }
296 }
297
298 if(aPolyA.count() && aPolyA.isClosed() && aPolyB.count())
299 {
300 // poly A is the clipregion, clip poly b against it. Algo depends on
301 // poly b being closed.
303
304 for(auto const& rPolygon : aResult)
305 {
309 Color aColor(nR, nG, nB);
310 impPaintStrokePolygon(rPolygon, rOutDev, aColor);
311 }
312 }
313 }
314 }
315 }
316} // end of anonymous namespace
317#endif // CLIPPER_TEST
318
319
321{
322 // set Redirector
324
325 // set PaintingPageView
326 const SdrView& rView = mpImpl->mrPageView.GetView();
327 SdrModel& rModel = rView.GetModel();
328
329 // get to be processed layers
330 const bool bPrinter(GetPaintWindow().OutputToPrinter());
331 SdrLayerIDSet aProcessLayers = bPrinter ? mpImpl->mrPageView.GetPrintableLayers() : mpImpl->mrPageView.GetVisibleLayers();
332
333 // create PaintInfoRec; use Rectangle only temporarily
334 const vcl::Region& rRegion = GetPaintWindow().GetRedrawRegion();
335
336 // create processing data
337 sdr::contact::DisplayInfo aDisplayInfo;
338
339 // Draw all layers. do NOT draw form layer from CompleteRedraw, this is done separately
340 // as a single layer paint
341 const SdrLayerAdmin& rLayerAdmin = rModel.GetLayerAdmin();
342 const SdrLayerID nControlLayerId = rLayerAdmin.GetLayerID(rLayerAdmin.GetControlLayerName());
343 aProcessLayers.Clear(nControlLayerId);
344
345 // still something to paint?
346 if(!aProcessLayers.IsEmpty())
347 {
348 aDisplayInfo.SetProcessLayers(aProcessLayers);
349
350 // Set region as redraw area
351 aDisplayInfo.SetRedrawArea(rRegion);
352
353 // Draw/Impress
354 aDisplayInfo.SetPageProcessingActive(rView.IsPagePaintingAllowed()); // #i72889#
355
356 // paint page
357 GetObjectContact().ProcessDisplay(aDisplayInfo);
358 }
359
360 // reset redirector
362
363 // LineClip test
364#ifdef CLIPPER_TEST
365 if(true)
366 {
367 impTryTest(GetPageView(), GetPaintWindow().GetOutputDevice());
368 }
369#endif // CLIPPER_TEST
370}
371
374 basegfx::B2IRectangle const*const pPageFrame)
375{
376 // set redirector
378
379 // set PaintingPageView
380 const SdrView& rView = mpImpl->mrPageView.GetView();
381 SdrModel& rModel = rView.GetModel();
382
383 // get the layers to process
384 const bool bPrinter(GetPaintWindow().OutputToPrinter());
385 SdrLayerIDSet aProcessLayers = bPrinter ? mpImpl->mrPageView.GetPrintableLayers() : mpImpl->mrPageView.GetVisibleLayers();
386
387 // is the given layer visible at all?
388 if(aProcessLayers.IsSet(*pId))
389 {
390 // find out if we are painting the ControlLayer
391 const SdrLayerAdmin& rLayerAdmin = rModel.GetLayerAdmin();
392 const SdrLayerID nControlLayerId = rLayerAdmin.GetLayerID(rLayerAdmin.GetControlLayerName());
393 const bool bControlLayerProcessingActive(nControlLayerId == *pId);
394
395 // create PaintInfoRec, use Rectangle only temporarily
396 const vcl::Region& rRegion = GetPaintWindow().GetRedrawRegion();
397
398 // create processing data
399 sdr::contact::DisplayInfo aDisplayInfo;
400
401 // is it the control layer? If Yes, set flag
402 aDisplayInfo.SetControlLayerProcessingActive(bControlLayerProcessingActive);
403
404 // Draw just the one given layer
405 aProcessLayers.ClearAll();
406 aProcessLayers.Set(*pId);
407
408 aDisplayInfo.SetProcessLayers(aProcessLayers);
409
410 // Set region as redraw area
411 aDisplayInfo.SetRedrawArea(rRegion);
412
413 // Writer or calc, coming from original RedrawOneLayer.
414 // #i72889# no page painting for layer painting
415 aDisplayInfo.SetPageProcessingActive(false);
416
417 if (pPageFrame) // Writer page frame for anchor based clipping
418 {
419 aDisplayInfo.SetWriterPageFrame(*pPageFrame);
420 }
421
422 // paint page
423 GetObjectContact().ProcessDisplay(aDisplayInfo);
424 }
425
426 // reset redirector
428}
429
430// Invalidate call, used from ObjectContact(OfPageView) in InvalidatePartOfView(...)
432{
433 if (GetPageView().IsVisible() && GetPaintWindow().OutputToWindow())
434 {
435 OutputDevice& rWindow(GetPaintWindow().GetOutputDevice());
436 basegfx::B2DRange aDiscreteRange(rRange);
437 aDiscreteRange.transform(rWindow.GetViewTransformation());
438
440 {
441 // invalidate one discrete unit more under the assumption that AA
442 // needs one pixel more
443 aDiscreteRange.grow(1.0);
444 }
445
446 // If the shapes use negative X coordinates, make them positive before sending
447 // the invalidation rectangle.
448 bool bNegativeX = mpImpl->mrPageView.GetView().IsNegativeX();
449
450 const tools::Rectangle aVCLDiscreteRectangle(
451 static_cast<tools::Long>(bNegativeX ? std::max(0.0, ceil(-aDiscreteRange.getMaxX())) : floor(aDiscreteRange.getMinX())),
452 static_cast<tools::Long>(floor(aDiscreteRange.getMinY())),
453 static_cast<tools::Long>(bNegativeX ? std::max(0.0, floor(-aDiscreteRange.getMinX())) : ceil(aDiscreteRange.getMaxX())),
454 static_cast<tools::Long>(ceil(aDiscreteRange.getMaxY())));
455
456 const bool bWasMapModeEnabled(rWindow.IsMapModeEnabled());
457 rWindow.EnableMapMode(false);
458 GetPageView().GetView().InvalidateOneWin(rWindow, aVCLDiscreteRectangle);
459 rWindow.EnableMapMode(bWasMapModeEnabled);
460 }
462 {
463 // we don't really have to have a paint window with LOK; OTOH we know
464 // that the drawinglayer units are 100ths of mm, so they are easy to
465 // convert to twips
466
467 // If the shapes use negative X coordinates, make them positive before sending
468 // the invalidation rectangle.
469 bool bNegativeX = mpImpl->mrPageView.GetView().IsNegativeX();
470 const tools::Rectangle aRect100thMM(
471 static_cast<tools::Long>(bNegativeX ? std::max(0.0, ceil(-rRange.getMaxX())) : floor(rRange.getMinX())),
472 static_cast<tools::Long>(floor(rRange.getMinY())),
473 static_cast<tools::Long>(bNegativeX ? std::max(0.0, floor(-rRange.getMinX())) : ceil(rRange.getMaxX())),
474 static_cast<tools::Long>(ceil(rRange.getMaxY())));
475
476 const tools::Rectangle aRectTwips = o3tl::convert(aRect100thMM, o3tl::Length::mm100, o3tl::Length::twip);
477
478 if (SfxViewShell* pViewShell = SfxViewShell::Current())
479 SfxLokHelper::notifyInvalidation(pViewShell, &aRectTwips);
480 }
481}
482
483// ObjectContact section
485{
486 if (!mpImpl->mpObjectContact)
487 {
489 const_cast<SdrPageWindow&>(*this),
490 "svx::svdraw::SdrPageWindow mpObjectContact");
491 }
492
493 return *mpImpl->mpObjectContact;
494}
495
497{
498 if (!mpImpl->mpObjectContact)
499 {
501 *this,
502 "svx::svdraw::SdrPageWindow mpObjectContact" );
503 }
504
505 return *mpImpl->mpObjectContact;
506}
507
509{
510 return mpImpl->mpObjectContact != nullptr;
511}
512
513// #i26631#
515{
516 if (mpImpl->mpObjectContact)
517 {
518 delete mpImpl->mpObjectContact;
519 mpImpl->mpObjectContact = nullptr;
520 }
521}
522
523void SdrPageWindow::SetDesignMode( bool _bDesignMode ) const
524{
526 DBG_ASSERT( pOC, "SdrPageWindow::SetDesignMode: invalid object contact!" );
527 if ( pOC )
528 pOC->SetUNOControlsDesignMode( _bDesignMode );
529}
530
531/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void RemoveControlContainer(const css::uno::Reference< css::awt::XControlContainer > &xCC)
Definition: fmview.cxx:426
void InsertControlContainer(const css::uno::Reference< css::awt::XControlContainer > &xCC)
Definition: fmview.cxx:404
const Point & GetOrigin() const
void EnableMapMode(bool bEnable=true)
basegfx::B2DHomMatrix GetViewTransformation() const
Size GetOutputSizePixel() const
void DrawLine(const Point &rStartPt, const Point &rEndPt)
void SetLineColor()
void SetFillColor()
const MapMode & GetMapMode() const
virtual vcl::Window * GetOwnerWindow() const
bool IsMapModeEnabled() const
const OUString & GetControlLayerName() const
Definition: svdlayer.hxx:149
SdrLayerID GetLayerID(const OUString &rName) const
Definition: svdlayer.cxx:231
void Set(SdrLayerID a)
Definition: svdsob.hxx:47
void Clear(SdrLayerID a)
Definition: svdsob.hxx:54
bool IsEmpty() const
Definition: svdlayer.cxx:28
bool IsSet(SdrLayerID a) const
Definition: svdsob.hxx:69
void ClearAll()
Definition: svdsob.hxx:80
const SdrLayerAdmin & GetLayerAdmin() const
Definition: svdmodel.hxx:315
SdrObject * GetObj(size_t nNum) const
Definition: svdpage.cxx:784
size_t GetObjCount() const
Definition: svdpage.cxx:778
Abstract DrawObject.
Definition: svdobj.hxx:260
SdrView & GetView()
Definition: svdpagv.hxx:130
SdrPage * GetPage() const
Definition: svdpagv.hxx:166
void unpatchPaintWindow(SdrPaintWindow *pPreviousPaintWindow)
std::unique_ptr< Impl > mpImpl
rtl::Reference< sdr::overlay::OverlayManager > const & GetOverlayManager() const
bool HasObjectContact() const
determines whether there already exists an ObjectContact
SdrPaintWindow * patchPaintWindow(SdrPaintWindow &rPaintWindow)
css::uno::Reference< css::awt::XControlContainer > const & GetControlContainer(bool _bCreateIfNecessary=true) const
void PrepareRedraw(const vcl::Region &rReg)
void InvalidatePageWindow(const basegfx::B2DRange &rRange)
void SetDesignMode(bool _bDesignMode) const
sets all elements in the view which support a design and an alive mode into the given mode
SdrPaintWindow & GetPaintWindow() const
SdrPageWindow(const SdrPageWindow &)=delete
void RedrawLayer(const SdrLayerID *pId, sdr::contact::ViewObjectContactRedirector *pRedirector, basegfx::B2IRectangle const *)
const sdr::contact::ObjectContact & GetObjectContact() const
void RedrawAll(sdr::contact::ViewObjectContactRedirector *pRedirector)
void ResetObjectContact()
const SdrPaintWindow * GetOriginalPaintWindow() const
SdrPageView & GetPageView() const
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
Definition: svdpage.hxx:377
bool IsPrintPreview() const
Definition: svdpntv.hxx:487
bool IsPagePaintingAllowed() const
Definition: svdpntv.hxx:203
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:863
SdrModel & GetModel() const
Definition: svdpntv.hxx:259
const vcl::Region & GetRedrawRegion() const
rtl::Reference< sdr::overlay::OverlayManager > const & GetOverlayManager() const
OutputDevice & GetOutputDevice() const
bool OutputToWindow() const
void SetRedrawRegion(const vcl::Region &rNew)
virtual sdr::contact::ObjectContact * createViewSpecificObjectContact(SdrPageWindow &rPageWindow, const char *pDebugName) const
Definition: svdview.cxx:1537
static void notifyInvalidation(SfxViewShell const *pThisView, tools::Rectangle const *)
static SAL_WARN_UNUSED_RESULT SfxViewShell * Current()
constexpr tools::Long Height() const
constexpr tools::Long Width() const
static css::uno::Reference< css::awt::XControlContainer > CreateControlContainer(vcl::Window *pWindow)
void append(const B2DPolygon &rPolygon, sal_uInt32 nCount=1)
sal_uInt32 count() const
BASEGFX_DLLPUBLIC void transform(const B2DHomMatrix &rMatrix)
TYPE getMaxX() const
void grow(TYPE fValue)
TYPE getMinX() const
TYPE getMinY() const
TYPE getMaxY() const
void SetWriterPageFrame(basegfx::B2IRectangle const &rPageFrame)
Definition: displayinfo.cxx:46
void SetProcessLayers(const SdrLayerIDSet &rSet)
Definition: displayinfo.cxx:35
void SetRedrawArea(const vcl::Region &rRegion)
Definition: displayinfo.cxx:41
void SetControlLayerProcessingActive(bool bDoPaint)
Definition: displayinfo.cxx:51
void SetPageProcessingActive(bool bDoPaint)
Definition: displayinfo.cxx:59
void SetUNOControlsDesignMode(bool _bDesignMode) const
sets all UNO controls which are associated with this ObjectContact to design or alive mode.
virtual void ProcessDisplay(DisplayInfo &rDisplayInfo)
void SetViewObjectContactRedirector(ViewObjectContactRedirector *pNew)
virtual void PrepareProcessDisplay()
#define DBG_ASSERT(sCon, aError)
Reference< XSingleServiceFactory > xFactory
tools::Long FRound(double fVal)
uno_Any a
B2DPolygon adaptiveSubdivideByAngle(const B2DPolygon &rCandidate, double fAngleBound)
B2DPolyPolygon correctOrientations(const B2DPolyPolygon &rCandidate)
B2DPolyPolygon clipPolyPolygonOnPolyPolygon(const B2DPolyPolygon &rCandidate, const B2DPolyPolygon &rClip, bool bInside, bool bStroke, size_t *pPointLimit)
int uniform_int_distribution(int a, int b)
constexpr Point convert(const Point &rPoint, o3tl::Length eFrom, o3tl::Length eTo)
long Long
SdrPaintWindow * mpPaintWindow
sdr::contact::ObjectContact * mpObjectContact
SdrPageView & mrPageView
SdrPaintWindow * mpOriginalPaintWindow
uno::Reference< awt::XControlContainer > mxControlContainer
Impl(SdrPageView &rPageView, SdrPaintWindow &rPaintWindow)
Reference< XModel > xModel