LibreOffice Module svx (master)  1
viewcontactofsdrpage.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 
22 #include <svx/svdpage.hxx>
26 #include <svtools/colorcfg.hxx>
27 #include <tools/debug.hxx>
28 #include <vcl/svapp.hxx>
37 #include <vcl/lazydelete.hxx>
38 #include <vcl/settings.hxx>
41 #include <bitmaps.hlst>
42 
43 namespace sdr::contact {
44 
46 : mrParentViewContactOfSdrPage(rParentViewContactOfSdrPage)
47 {
48 }
49 
51 {
52 }
53 
55 {
57 }
58 
60 {
62 }
63 
65 {
66  ViewObjectContact* pRetval = new ViewObjectContactOfPageBackground(rObjectContact, *this);
67  DBG_ASSERT(pRetval, "ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
68 
69  return *pRetval;
70 }
71 
73 {
74  // We have only the page information, not the view information. Use the
75  // svtools::DOCCOLOR color for initialisation
76  const svtools::ColorConfig aColorConfig;
77  const Color aInitColor(aColorConfig.GetColorValue(svtools::DOCCOLOR).nColor);
78  const basegfx::BColor aRGBColor(aInitColor.getBColor());
81 
83 }
84 
86 : ViewContactOfPageSubObject(rParentViewContactOfSdrPage)
87 {
88 }
89 
91 {
92 }
93 
95 {
96  ViewObjectContact* pRetval = new ViewObjectContactOfPageShadow(rObjectContact, *this);
97  DBG_ASSERT(pRetval, "ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
98 
99  return *pRetval;
100 }
101 
103 {
104  static bool bUseOldPageShadow(false); // loplugin:constvars:ignore
105  const SdrPage& rPage = getPage();
106  basegfx::B2DHomMatrix aPageMatrix;
107  aPageMatrix.set(0, 0, static_cast<double>(rPage.GetWidth()));
108  aPageMatrix.set(1, 1, static_cast<double>(rPage.GetHeight()));
109 
110  if(bUseOldPageShadow)
111  {
112  // create page shadow polygon
113  const double fPageBorderFactor(1.0 / 256.0);
114  basegfx::B2DPolygon aPageShadowPolygon;
115  aPageShadowPolygon.append(basegfx::B2DPoint(1.0, fPageBorderFactor));
116  aPageShadowPolygon.append(basegfx::B2DPoint(1.0 + fPageBorderFactor, fPageBorderFactor));
117  aPageShadowPolygon.append(basegfx::B2DPoint(1.0 + fPageBorderFactor, 1.0 + fPageBorderFactor));
118  aPageShadowPolygon.append(basegfx::B2DPoint(fPageBorderFactor, 1.0 + fPageBorderFactor));
119  aPageShadowPolygon.append(basegfx::B2DPoint(fPageBorderFactor, 1.0));
120  aPageShadowPolygon.append(basegfx::B2DPoint(1.0, 1.0));
121  aPageShadowPolygon.setClosed(true);
122  aPageShadowPolygon.transform(aPageMatrix);
123 
124  // We have only the page information, not the view information. Use the
125  // svtools::FONTCOLOR color for initialisation
126  const svtools::ColorConfig aColorConfig;
127  const Color aShadowColor(aColorConfig.GetColorValue(svtools::FONTCOLOR).nColor);
128  const basegfx::BColor aRGBShadowColor(aShadowColor.getBColor());
131  basegfx::B2DPolyPolygon(aPageShadowPolygon),
132  aRGBShadowColor));
133 
135  }
136  else
137  {
139  BitmapEx(SIP_SA_PAGESHADOW35X35));
140 
141  if(aDiscreteShadow.get())
142  {
145  aPageMatrix,
146  *aDiscreteShadow.get()));
147 
149  }
150 
152  }
153 }
154 
156 : ViewContactOfPageSubObject(rParentViewContactOfSdrPage)
157 {
158 }
159 
161 {
162 }
163 
165 {
166  ViewObjectContact* pRetval = new ViewObjectContactOfMasterPage(rObjectContact, *this);
167  DBG_ASSERT(pRetval, "ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
168 
169  return *pRetval;
170 }
171 
173 {
175 
176  // this class is used when the page is a MasterPage and is responsible to
177  // create a visualisation for the MPBGO, if exists. This needs to be suppressed
178  // when a SdrPage which uses a MasterPage creates it's output. Suppression
179  // is done in the corresponding VOC since DisplayInfo data is needed
180  const SdrPage& rPage = getPage();
181 
182  if(rPage.IsMasterPage())
183  {
184  if(0 == rPage.GetPageNum())
185  {
186  // #i98063#
187  // filter MasterPage 0 since it's the HandoutPage. Thus, it's a
188  // MasterPage, but has no MPBGO, so there is nothing to do here.
189  }
190  else
191  {
193 
194  // #i110846# Suppress SdrPage FillStyle for MasterPages without StyleSheets,
195  // else the PoolDefault (XFILL_COLOR and Blue8) will be used. Normally, all
196  // MasterPages should have a StyleSheet exactly for this reason, but historically
197  // e.g. the Notes MasterPage has no StyleSheet set (and there maybe others).
198  if(rPage.getSdrPageProperties().GetStyleSheet())
199  {
200  // create page fill attributes with correct properties
202  rPage.getSdrPageProperties().GetItemSet());
203  }
204 
205  if(!aFill.isDefault())
206  {
207  // direct model data is the page size, get and use it
208  const basegfx::B2DRange aOuterRange(
209  0, 0, rPage.GetWidth(), rPage.GetHeight());
210  const basegfx::B2DRange aInnerRange(
211  rPage.GetLeftBorder(), rPage.GetUpperBorder(),
212  rPage.GetWidth() - rPage.GetRightBorder(), rPage.GetHeight() - rPage.GetLowerBorder());
213  bool const isFullSize(rPage.IsBackgroundFullSize());
214  const basegfx::B2DPolygon aFillPolygon(
215  basegfx::utils::createPolygonFromRect(isFullSize ? aOuterRange : aInnerRange));
218  basegfx::B2DPolyPolygon(aFillPolygon),
219  aFill,
221 
222  xRetval = drawinglayer::primitive2d::Primitive2DContainer { xReference };
223  }
224  }
225  }
226 
227  return xRetval;
228 }
229 
231 : ViewContactOfPageSubObject(rParentViewContactOfSdrPage)
232 {
233 }
234 
236 {
237 }
238 
240 {
241  ViewObjectContact* pRetval = new ViewObjectContactOfPageFill(rObjectContact, *this);
242  DBG_ASSERT(pRetval, "ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
243 
244  return *pRetval;
245 }
246 
248 {
249  const SdrPage& rPage = getPage();
250  const basegfx::B2DRange aPageFillRange(0.0, 0.0, static_cast<double>(rPage.GetWidth()), static_cast<double>(rPage.GetHeight()));
251  const basegfx::B2DPolygon aPageFillPolygon(basegfx::utils::createPolygonFromRect(aPageFillRange));
252 
253  // We have only the page information, not the view information. Use the
254  // svtools::DOCCOLOR color for initialisation
255  const svtools::ColorConfig aColorConfig;
256  const Color aPageFillColor(aColorConfig.GetColorValue(svtools::DOCCOLOR).nColor);
257 
258  // create and add primitive
259  const basegfx::BColor aRGBColor(aPageFillColor.getBColor());
261 
263 }
264 
266 : ViewContactOfPageSubObject(rParentViewContactOfSdrPage)
267 {
268 }
269 
271 {
272 }
273 
275 {
276  ViewObjectContact* pRetval = new ViewObjectContactOfOuterPageBorder(rObjectContact, *this);
277  DBG_ASSERT(pRetval, "ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
278 
279  return *pRetval;
280 }
281 
283 {
285  const SdrPage& rPage = getPage();
286  const basegfx::B2DRange aPageBorderRange(0.0, 0.0, static_cast<double>(rPage.GetWidth()), static_cast<double>(rPage.GetHeight()));
287 
288  // Changed to 0x949599 for renaissance, before svtools::FONTCOLOR was used.
289  // Added old case as fallback for HighContrast.
290  basegfx::BColor aRGBBorderColor(0x94 / double(0xff), 0x95 / double(0xff), 0x99 / double(0xff));
291 
292  if(Application::GetSettings().GetStyleSettings().GetHighContrastMode())
293  {
294  const svtools::ColorConfig aColorConfig;
295  const Color aBorderColor(aColorConfig.GetColorValue(svtools::FONTCOLOR).nColor);
296 
297  aRGBBorderColor = aBorderColor.getBColor();
298  }
299 
300  if(rPage.getPageBorderOnlyLeftRight())
301  {
302  // #i93597# for Report Designer, the page border shall be only displayed right and left,
303  // but not top and bottom. Create simplified geometry.
304  basegfx::B2DPolygon aLeft, aRight;
305 
306  aLeft.append(basegfx::B2DPoint(aPageBorderRange.getMinX(), aPageBorderRange.getMinY()));
307  aLeft.append(basegfx::B2DPoint(aPageBorderRange.getMinX(), aPageBorderRange.getMaxY()));
308 
309  aRight.append(basegfx::B2DPoint(aPageBorderRange.getMaxX(), aPageBorderRange.getMinY()));
310  aRight.append(basegfx::B2DPoint(aPageBorderRange.getMaxX(), aPageBorderRange.getMaxY()));
311 
312  xRetval.resize(2);
315  }
316  else
317  {
318  xRetval.resize(1);
319  const basegfx::B2DPolygon aPageBorderPolygon(basegfx::utils::createPolygonFromRect(aPageBorderRange));
321  }
322 
323  return xRetval;
324 }
325 
327 : ViewContactOfPageSubObject(rParentViewContactOfSdrPage)
328 {
329 }
330 
332 {
333 }
334 
336 {
337  ViewObjectContact* pRetval = new ViewObjectContactOfInnerPageBorder(rObjectContact, *this);
338  DBG_ASSERT(pRetval, "ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
339 
340  return *pRetval;
341 }
342 
344 {
345  const SdrPage& rPage = getPage();
346  const basegfx::B2DRange aPageBorderRange(
347  static_cast<double>(rPage.GetLeftBorder()), static_cast<double>(rPage.GetUpperBorder()),
348  static_cast<double>(rPage.GetWidth() - rPage.GetRightBorder()), static_cast<double>(rPage.GetHeight() - rPage.GetLowerBorder()));
349  const basegfx::B2DPolygon aPageBorderPolygon(basegfx::utils::createPolygonFromRect(aPageBorderRange));
350 
351  // We have only the page information, not the view information. Use the
352  // svtools::FONTCOLOR or svtools::DOCBOUNDARIES color for initialisation
353  const svtools::ColorConfig aColorConfig;
354  Color aBorderColor;
355 
356  if(Application::GetSettings().GetStyleSettings().GetHighContrastMode())
357  {
358  aBorderColor = aColorConfig.GetColorValue(svtools::FONTCOLOR).nColor;
359  }
360  else
361  {
362  svtools::ColorConfigValue aBorderConfig = aColorConfig.GetColorValue(svtools::DOCBOUNDARIES);
363  aBorderColor = aBorderConfig.bIsVisible ? aBorderConfig.nColor :
364  aColorConfig.GetColorValue(svtools::DOCCOLOR).nColor;
365  }
366 
367  // create page outer border primitive
368  const basegfx::BColor aRGBBorderColor(aBorderColor.getBColor());
369  const drawinglayer::primitive2d::Primitive2DReference xReference(new drawinglayer::primitive2d::PolygonHairlinePrimitive2D(aPageBorderPolygon, aRGBBorderColor));
370 
372 }
373 
375 : ViewContactOfPageSubObject(rParentViewContactOfSdrPage)
376 {
377 }
378 
380 {
381 }
382 
384 {
385  ViewObjectContact* pRetval = new ViewObjectContactOfPageHierarchy(rObjectContact, *this);
386  DBG_ASSERT(pRetval, "ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
387 
388  return *pRetval;
389 }
390 
392 {
393  // collect sub-hierarchy
395  const sal_uInt32 nObjectCount(GetObjectCount());
396 
397  // collect all sub-primitives
398  for(sal_uInt32 a(0); a < nObjectCount; a++)
399  {
400  const ViewContact& rCandidate(GetViewContact(a));
402 
403  xRetval.insert(xRetval.end(), aCandSeq.begin(), aCandSeq.end());
404  }
405 
406  return xRetval;
407 }
408 
410 : ViewContactOfPageSubObject(rParentViewContactOfSdrPage)
411 {
412 }
413 
415 {
416 }
417 
419 {
420  return getPage().GetObjCount();
421 }
422 
424 {
425  SdrObject* pObj = getPage().GetObj(nIndex);
426  assert(pObj && "ViewContactOfPageHierarchy::GetViewContact: Corrupt SdrObjList (!)");
427  return pObj->GetViewContact();
428 }
429 
431 {
432  ViewObjectContact* pRetval = new ViewObjectContactOfPageGrid(rObjectContact, *this);
433  DBG_ASSERT(pRetval, "ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
434 
435  return *pRetval;
436 }
437 
439 {
440  // We have only the page information, not the view information and thus no grid settings. Create empty
441  // default. For the view-dependent implementation, see ViewObjectContactOfPageGrid::createPrimitive2DSequence
443 }
444 
445 ViewContactOfGrid::ViewContactOfGrid(ViewContactOfSdrPage& rParentViewContactOfSdrPage, bool bFront)
446 : ViewContactOfPageSubObject(rParentViewContactOfSdrPage),
447  mbFront(bFront)
448 {
449 }
450 
452 {
453 }
454 
456 {
457  ViewObjectContact* pRetval = new ViewObjectContactOfPageHelplines(rObjectContact, *this);
458  DBG_ASSERT(pRetval, "ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
459 
460  return *pRetval;
461 }
462 
464 {
465  // We have only the page information, not the view information and thus no helplines. Create empty
466  // default. For the view-dependent implementation, see ViewObjectContactOfPageHelplines::createPrimitive2DSequence
468 }
469 
471 : ViewContactOfPageSubObject(rParentViewContactOfSdrPage),
472  mbFront(bFront)
473 {
474 }
475 
477 {
478 }
479 
480 // Create an Object-Specific ViewObjectContact, set ViewContact and
481 // ObjectContact. Always needs to return something.
483 {
484  ViewObjectContact* pRetval = new ViewObjectContactOfSdrPage(rObjectContact, *this);
485  DBG_ASSERT(pRetval, "ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
486 
487  return *pRetval;
488 }
489 
491 : mrPage(rPage),
492  maViewContactOfPageBackground(*this),
493  maViewContactOfPageShadow(*this),
494  maViewContactOfPageFill(*this),
495  maViewContactOfMasterPage(*this),
496  maViewContactOfOuterPageBorder(*this),
497  maViewContactOfInnerPageBorder(*this),
498  maViewContactOfGridBack(*this, false),
499  maViewContactOfHelplinesBack(*this, false),
500  maViewContactOfPageHierarchy(*this),
501  maViewContactOfGridFront(*this, true),
502  maViewContactOfHelplinesFront(*this, true)
503 {
504 }
505 
507 {
508 }
509 
510 // Access to possible sub-hierarchy
512 {
513  // Fixed count of content. It contains PageBackground (Wiese), PageShadow, PageFill,
514  // then - depending on if the page has a MasterPage - either MasterPage Hierarchy
515  // or MPBGO. Also OuterPageBorder, InnerPageBorder and two pairs of Grid and Helplines
516  // (for front and back) which internally are visible or not depending on the current
517  // front/back setting for those.
518  return 11;
519 }
520 
522 {
523  switch(nIndex)
524  {
525  case 0: return const_cast<ViewContactOfPageBackground&>(maViewContactOfPageBackground);
526  case 1: return const_cast<ViewContactOfPageShadow&>(maViewContactOfPageShadow);
527  case 2: return const_cast<ViewContactOfPageFill&>(maViewContactOfPageFill);
528  case 3:
529  {
530  const SdrPage& rPage = GetSdrPage();
531 
532  if(rPage.TRG_HasMasterPage())
533  {
535  }
536  else
537  {
539  }
540  }
543  case 6: return const_cast<ViewContactOfGrid&>(maViewContactOfGridBack);
544  case 7: return const_cast<ViewContactOfHelplines&>(maViewContactOfHelplinesBack);
545  case 8: return const_cast<ViewContactOfPageHierarchy&>(maViewContactOfPageHierarchy);
546  case 9: return const_cast<ViewContactOfGrid&>(maViewContactOfGridFront);
547  case 10: case 11: return const_cast<ViewContactOfHelplines&>(maViewContactOfHelplinesFront);
548  default: assert(false);return const_cast<ViewContactOfHelplines&>(maViewContactOfHelplinesFront);
549  }
550 }
551 
552 // React on changes of the object of this ViewContact
554 {
555  // call parent
557 
558  // apply to local viewContacts, they all rely on page information. Exception
559  // is the sub hierarchy; this will not be influenced by the change
563 
564  const SdrPage& rPage = GetSdrPage();
565 
566  if(rPage.TRG_HasMasterPage())
567  {
569  }
570  else if(rPage.IsMasterPage())
571  {
573  }
574 
581 }
582 
584 {
586 
587  // collect all sub-sequences including sub hierarchy.
591 
592  const SdrPage& rPage = GetSdrPage();
593 
594  if(rPage.TRG_HasMasterPage())
595  {
596  xRetval.append(
598  }
599  else if(rPage.IsMasterPage())
600  {
601  xRetval.append(
603  }
604 
608 
609  // Only add front versions of grid and helplines since no visibility test is done,
610  // so adding the back incarnations is not necessary. This makes the Front
611  // visualisation the default when no visibility tests are done.
612 
613  // Since we have no view here, no grid and helpline definitions are available currently. The used
614  // methods at ViewContactOfHelplines and ViewContactOfGrid return only empty sequences and
615  // do not need to be called ATM. This may change later if grid or helpline info gets
616  // model data (it should not). Keeping the lines commented to hold this hint.
617 
618  // drawinglayer::primitive2d::appendPrimitive2DSequenceToPrimitive2DSequence(xRetval, maViewContactOfGridFront.getViewIndependentPrimitive2DContainer());
619  // drawinglayer::primitive2d::appendPrimitive2DSequenceToPrimitive2DSequence(xRetval, maViewContactOfHelplinesFront.getViewIndependentPrimitive2DContainer());
620 
621  return xRetval;
622 }
623 
624 }
625 
626 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void append(const basegfx::B2DPoint &rPoint, sal_uInt32 nCount)
virtual sal_uInt32 GetObjectCount() const override
ViewContactOfHelplines(ViewContactOfSdrPage &rParentViewContactOfSdrPage, bool bFront)
void set(sal_uInt16 nRow, sal_uInt16 nColumn, double fValue)
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override
sal_Int32 GetHeight() const
Definition: svdpage.cxx:1454
attribute::SdrFillAttribute createNewSdrFillAttribute(const SfxItemSet &rSet)
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override
virtual ViewContact & GetViewContact(sal_uInt32 nIndex) const override
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
static const AllSettings & GetSettings()
ViewContactOfPageShadow(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
SdrObject * GetObj(size_t nNum) const
Definition: svdpage.cxx:822
sal_Int32 GetRightBorder() const
Definition: svdpage.cxx:1539
size_t GetObjCount() const
Definition: svdpage.cxx:816
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override
sal_Int32 GetLowerBorder() const
Definition: svdpage.cxx:1544
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
double getMaxX() const
sal_Int32 GetLeftBorder() const
Definition: svdpage.cxx:1529
sdr::contact::ViewContact & GetViewContact() const
Definition: svdobj.cxx:251
ViewContactOfPageShadow maViewContactOfPageShadow
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override
virtual sal_uInt32 GetObjectCount() const override
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override
ViewContactOfInnerPageBorder(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
ViewContactOfMasterPage(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
ViewContactOfOuterPageBorder maViewContactOfOuterPageBorder
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
double getMaxY() const
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override
ViewContactOfHelplines maViewContactOfHelplinesBack
This view contact corresponds with all SdrObject instances in a single SdrPage.
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
ViewContactOfPageBackground maViewContactOfPageBackground
ViewContactOfPageFill(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
#define DBG_ASSERT(sCon, aError)
uno_Any a
ViewContactOfGrid(ViewContactOfSdrPage &rParentViewContactOfSdrPage, bool bFront)
ViewContactOfOuterPageBorder(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
sal_Int32 GetUpperBorder() const
Definition: svdpage.cxx:1534
B2DPolygon createPolygonFromRect(const B2DRectangle &rRect, double fRadiusX, double fRadiusY)
drawinglayer::primitive2d::Primitive2DContainer getViewIndependentPrimitive2DContainer() const
ViewContactOfPageHierarchy maViewContactOfPageHierarchy
virtual void append(const Primitive2DReference &) override
ViewContactOfPageHierarchy(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
bool IsMasterPage() const
Definition: svdpage.hxx:451
const SfxItemSet & GetItemSet() const
Definition: svdpage.hxx:334
SdrPageProperties & getSdrPageProperties()
Definition: svdpage.cxx:1830
ViewContactOfPageSubObject(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
bool TRG_HasMasterPage() const
Definition: svdpage.hxx:487
Abstract DrawObject.
Definition: svdobj.hxx:259
virtual void ActionChanged()
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
void transform(const basegfx::B2DHomMatrix &rMatrix)
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override
void setClosed(bool bNew)
css::uno::Reference< css::graphic::XPrimitive2D > Primitive2DReference
double getMinY() const
sdr::contact::ViewContact & TRG_GetMasterPageDescriptorViewContact() const
Definition: svdpage.cxx:1649
ViewContactOfMasterPage maViewContactOfMasterPage
ViewContactOfHelplines maViewContactOfHelplinesFront
ColorConfigValue GetColorValue(ColorConfigEntry eEntry, bool bSmart=true) const
ViewContactOfPageBackground(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
SfxStyleSheet * GetStyleSheet() const
Definition: svdpage.hxx:341
ViewContactOfInnerPageBorder maViewContactOfInnerPageBorder
bool getPageBorderOnlyLeftRight() const
Definition: svdpage.hxx:466
basegfx::BColor getBColor() const
virtual ViewContact * GetParentContact() const override
double getMinX() const
bool IsBackgroundFullSize() const
Definition: svdpage.cxx:1558
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
Definition: svdpage.hxx:365
sal_Int32 GetWidth() const
Definition: svdpage.cxx:1428
virtual ViewContact & GetViewContact(sal_uInt32 nIndex) const override
sal_uInt16 GetPageNum() const
Definition: svdpage.cxx:1576
Primitive2DReference createPolyPolygonFillPrimitive(const basegfx::B2DPolyPolygon &rPolyPolygon, const attribute::SdrFillAttribute &rFill, const attribute::FillGradientAttribute &rFillGradient)