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  {
140  BitmapEx(SIP_SA_PAGESHADOW35X35)));
141 
142  if(aDiscreteShadow.get())
143  {
146  aPageMatrix,
147  *aDiscreteShadow.get()));
148 
150  }
151 
153  }
154 }
155 
157 : ViewContactOfPageSubObject(rParentViewContactOfSdrPage)
158 {
159 }
160 
162 {
163 }
164 
166 {
167  ViewObjectContact* pRetval = new ViewObjectContactOfMasterPage(rObjectContact, *this);
168  DBG_ASSERT(pRetval, "ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
169 
170  return *pRetval;
171 }
172 
174 {
176 
177  // this class is used when the page is a MasterPage and is responsible to
178  // create a visualisation for the MPBGO, if exists. This needs to be suppressed
179  // when a SdrPage which uses a MasterPage creates it's output. Suppression
180  // is done in the corresponding VOC since DisplayInfo data is needed
181  const SdrPage& rPage = getPage();
182 
183  if(rPage.IsMasterPage())
184  {
185  if(0 == rPage.GetPageNum())
186  {
187  // #i98063#
188  // filter MasterPage 0 since it's the HandoutPage. Thus, it's a
189  // MasterPage, but has no MPBGO, so there is nothing to do here.
190  }
191  else
192  {
194 
195  // #i110846# Suppress SdrPage FillStyle for MasterPages without StyleSheets,
196  // else the PoolDefault (XFILL_COLOR and Blue8) will be used. Normally, all
197  // MasterPages should have a StyleSheet exactly for this reason, but historically
198  // e.g. the Notes MasterPage has no StyleSheet set (and there maybe others).
199  if(rPage.getSdrPageProperties().GetStyleSheet())
200  {
201  // create page fill attributes with correct properties
203  rPage.getSdrPageProperties().GetItemSet());
204  }
205 
206  if(!aFill.isDefault())
207  {
208  // direct model data is the page size, get and use it
209  const basegfx::B2DRange aInnerRange(
210  rPage.GetLeftBorder(), rPage.GetUpperBorder(),
211  rPage.GetWidth() - rPage.GetRightBorder(), rPage.GetHeight() - rPage.GetLowerBorder());
212  const basegfx::B2DPolygon aInnerPolgon(basegfx::utils::createPolygonFromRect(aInnerRange));
215  basegfx::B2DPolyPolygon(aInnerPolgon),
216  aFill,
218 
219  xRetval = drawinglayer::primitive2d::Primitive2DContainer { xReference };
220  }
221  }
222  }
223 
224  return xRetval;
225 }
226 
228 : ViewContactOfPageSubObject(rParentViewContactOfSdrPage)
229 {
230 }
231 
233 {
234 }
235 
237 {
238  ViewObjectContact* pRetval = new ViewObjectContactOfPageFill(rObjectContact, *this);
239  DBG_ASSERT(pRetval, "ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
240 
241  return *pRetval;
242 }
243 
245 {
246  const SdrPage& rPage = getPage();
247  const basegfx::B2DRange aPageFillRange(0.0, 0.0, static_cast<double>(rPage.GetWidth()), static_cast<double>(rPage.GetHeight()));
248  const basegfx::B2DPolygon aPageFillPolygon(basegfx::utils::createPolygonFromRect(aPageFillRange));
249 
250  // We have only the page information, not the view information. Use the
251  // svtools::DOCCOLOR color for initialisation
252  const svtools::ColorConfig aColorConfig;
253  const Color aPageFillColor(aColorConfig.GetColorValue(svtools::DOCCOLOR).nColor);
254 
255  // create and add primitive
256  const basegfx::BColor aRGBColor(aPageFillColor.getBColor());
258 
260 }
261 
263 : ViewContactOfPageSubObject(rParentViewContactOfSdrPage)
264 {
265 }
266 
268 {
269 }
270 
272 {
273  ViewObjectContact* pRetval = new ViewObjectContactOfOuterPageBorder(rObjectContact, *this);
274  DBG_ASSERT(pRetval, "ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
275 
276  return *pRetval;
277 }
278 
280 {
282  const SdrPage& rPage = getPage();
283  const basegfx::B2DRange aPageBorderRange(0.0, 0.0, static_cast<double>(rPage.GetWidth()), static_cast<double>(rPage.GetHeight()));
284 
285  // Changed to 0x949599 for renaissance, before svtools::FONTCOLOR was used.
286  // Added old case as fallback for HighContrast.
287  basegfx::BColor aRGBBorderColor(0x94 / double(0xff), 0x95 / double(0xff), 0x99 / double(0xff));
288 
289  if(Application::GetSettings().GetStyleSettings().GetHighContrastMode())
290  {
291  const svtools::ColorConfig aColorConfig;
292  const Color aBorderColor(aColorConfig.GetColorValue(svtools::FONTCOLOR).nColor);
293 
294  aRGBBorderColor = aBorderColor.getBColor();
295  }
296 
297  if(rPage.getPageBorderOnlyLeftRight())
298  {
299  // #i93597# for Report Designer, the page border shall be only displayed right and left,
300  // but not top and bottom. Create simplified geometry.
301  basegfx::B2DPolygon aLeft, aRight;
302 
303  aLeft.append(basegfx::B2DPoint(aPageBorderRange.getMinX(), aPageBorderRange.getMinY()));
304  aLeft.append(basegfx::B2DPoint(aPageBorderRange.getMinX(), aPageBorderRange.getMaxY()));
305 
306  aRight.append(basegfx::B2DPoint(aPageBorderRange.getMaxX(), aPageBorderRange.getMinY()));
307  aRight.append(basegfx::B2DPoint(aPageBorderRange.getMaxX(), aPageBorderRange.getMaxY()));
308 
309  xRetval.resize(2);
312  }
313  else
314  {
315  xRetval.resize(1);
316  const basegfx::B2DPolygon aPageBorderPolygon(basegfx::utils::createPolygonFromRect(aPageBorderRange));
318  }
319 
320  return xRetval;
321 }
322 
324 : ViewContactOfPageSubObject(rParentViewContactOfSdrPage)
325 {
326 }
327 
329 {
330 }
331 
333 {
334  ViewObjectContact* pRetval = new ViewObjectContactOfInnerPageBorder(rObjectContact, *this);
335  DBG_ASSERT(pRetval, "ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
336 
337  return *pRetval;
338 }
339 
341 {
342  const SdrPage& rPage = getPage();
343  const basegfx::B2DRange aPageBorderRange(
344  static_cast<double>(rPage.GetLeftBorder()), static_cast<double>(rPage.GetUpperBorder()),
345  static_cast<double>(rPage.GetWidth() - rPage.GetRightBorder()), static_cast<double>(rPage.GetHeight() - rPage.GetLowerBorder()));
346  const basegfx::B2DPolygon aPageBorderPolygon(basegfx::utils::createPolygonFromRect(aPageBorderRange));
347 
348  // We have only the page information, not the view information. Use the
349  // svtools::FONTCOLOR or svtools::DOCBOUNDARIES color for initialisation
350  const svtools::ColorConfig aColorConfig;
351  Color aBorderColor;
352 
353  if(Application::GetSettings().GetStyleSettings().GetHighContrastMode())
354  {
355  aBorderColor = aColorConfig.GetColorValue(svtools::FONTCOLOR).nColor;
356  }
357  else
358  {
359  svtools::ColorConfigValue aBorderConfig = aColorConfig.GetColorValue(svtools::DOCBOUNDARIES);
360  aBorderColor = aBorderConfig.bIsVisible ? aBorderConfig.nColor :
361  aColorConfig.GetColorValue(svtools::DOCCOLOR).nColor;
362  }
363 
364  // create page outer border primitive
365  const basegfx::BColor aRGBBorderColor(aBorderColor.getBColor());
366  const drawinglayer::primitive2d::Primitive2DReference xReference(new drawinglayer::primitive2d::PolygonHairlinePrimitive2D(aPageBorderPolygon, aRGBBorderColor));
367 
369 }
370 
372 : ViewContactOfPageSubObject(rParentViewContactOfSdrPage)
373 {
374 }
375 
377 {
378 }
379 
381 {
382  ViewObjectContact* pRetval = new ViewObjectContactOfPageHierarchy(rObjectContact, *this);
383  DBG_ASSERT(pRetval, "ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
384 
385  return *pRetval;
386 }
387 
389 {
390  // collect sub-hierarchy
392  const sal_uInt32 nObjectCount(GetObjectCount());
393 
394  // collect all sub-primitives
395  for(sal_uInt32 a(0); a < nObjectCount; a++)
396  {
397  const ViewContact& rCandidate(GetViewContact(a));
399 
400  xRetval.insert(xRetval.end(), aCandSeq.begin(), aCandSeq.end());
401  }
402 
403  return xRetval;
404 }
405 
407 : ViewContactOfPageSubObject(rParentViewContactOfSdrPage)
408 {
409 }
410 
412 {
413 }
414 
416 {
417  return getPage().GetObjCount();
418 }
419 
421 {
422  SdrObject* pObj = getPage().GetObj(nIndex);
423  assert(pObj && "ViewContactOfPageHierarchy::GetViewContact: Corrupt SdrObjList (!)");
424  return pObj->GetViewContact();
425 }
426 
428 {
429  ViewObjectContact* pRetval = new ViewObjectContactOfPageGrid(rObjectContact, *this);
430  DBG_ASSERT(pRetval, "ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
431 
432  return *pRetval;
433 }
434 
436 {
437  // We have only the page information, not the view information and thus no grid settings. Create empty
438  // default. For the view-dependent implementation, see ViewObjectContactOfPageGrid::createPrimitive2DSequence
440 }
441 
442 ViewContactOfGrid::ViewContactOfGrid(ViewContactOfSdrPage& rParentViewContactOfSdrPage, bool bFront)
443 : ViewContactOfPageSubObject(rParentViewContactOfSdrPage),
444  mbFront(bFront)
445 {
446 }
447 
449 {
450 }
451 
453 {
454  ViewObjectContact* pRetval = new ViewObjectContactOfPageHelplines(rObjectContact, *this);
455  DBG_ASSERT(pRetval, "ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
456 
457  return *pRetval;
458 }
459 
461 {
462  // We have only the page information, not the view information and thus no helplines. Create empty
463  // default. For the view-dependent implementation, see ViewObjectContactOfPageHelplines::createPrimitive2DSequence
465 }
466 
468 : ViewContactOfPageSubObject(rParentViewContactOfSdrPage),
469  mbFront(bFront)
470 {
471 }
472 
474 {
475 }
476 
477 // Create an Object-Specific ViewObjectContact, set ViewContact and
478 // ObjectContact. Always needs to return something.
480 {
481  ViewObjectContact* pRetval = new ViewObjectContactOfSdrPage(rObjectContact, *this);
482  DBG_ASSERT(pRetval, "ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
483 
484  return *pRetval;
485 }
486 
488 : ViewContact(),
489  mrPage(rPage),
490  maViewContactOfPageBackground(*this),
491  maViewContactOfPageShadow(*this),
492  maViewContactOfPageFill(*this),
493  maViewContactOfMasterPage(*this),
494  maViewContactOfOuterPageBorder(*this),
495  maViewContactOfInnerPageBorder(*this),
496  maViewContactOfGridBack(*this, false),
497  maViewContactOfHelplinesBack(*this, false),
498  maViewContactOfPageHierarchy(*this),
499  maViewContactOfGridFront(*this, true),
500  maViewContactOfHelplinesFront(*this, true)
501 {
502 }
503 
505 {
506 }
507 
508 // Access to possible sub-hierarchy
510 {
511  // Fixed count of content. It contains PageBackground (Wiese), PageShadow, PageFill,
512  // then - depending on if the page has a MasterPage - either MasterPage Hierarchy
513  // or MPBGO. Also OuterPageBorder, InnerPageBorder and two pairs of Grid and Helplines
514  // (for front and back) which internally are visible or not depending on the current
515  // front/back setting for those.
516  return 11;
517 }
518 
520 {
521  switch(nIndex)
522  {
523  case 0: return const_cast<ViewContactOfPageBackground&>(maViewContactOfPageBackground);
524  case 1: return const_cast<ViewContactOfPageShadow&>(maViewContactOfPageShadow);
525  case 2: return const_cast<ViewContactOfPageFill&>(maViewContactOfPageFill);
526  case 3:
527  {
528  const SdrPage& rPage = GetSdrPage();
529 
530  if(rPage.TRG_HasMasterPage())
531  {
533  }
534  else
535  {
537  }
538  }
541  case 6: return const_cast<ViewContactOfGrid&>(maViewContactOfGridBack);
542  case 7: return const_cast<ViewContactOfHelplines&>(maViewContactOfHelplinesBack);
543  case 8: return const_cast<ViewContactOfPageHierarchy&>(maViewContactOfPageHierarchy);
544  case 9: return const_cast<ViewContactOfGrid&>(maViewContactOfGridFront);
545  case 10: case 11: return const_cast<ViewContactOfHelplines&>(maViewContactOfHelplinesFront);
546  default: assert(false);return const_cast<ViewContactOfHelplines&>(maViewContactOfHelplinesFront);
547  }
548 }
549 
550 // React on changes of the object of this ViewContact
552 {
553  // call parent
555 
556  // apply to local viewContacts, they all rely on page information. Exception
557  // is the sub hierarchy; this will not be influenced by the change
561 
562  const SdrPage& rPage = GetSdrPage();
563 
564  if(rPage.TRG_HasMasterPage())
565  {
567  }
568  else if(rPage.IsMasterPage())
569  {
571  }
572 
579 }
580 
582 {
584 
585  // collect all sub-sequences including sub hierarchy.
589 
590  const SdrPage& rPage = GetSdrPage();
591 
592  if(rPage.TRG_HasMasterPage())
593  {
594  xRetval.append(
596  }
597  else if(rPage.IsMasterPage())
598  {
599  xRetval.append(
601  }
602 
606 
607  // Only add front versions of grid and helplines since no visibility test is done,
608  // so adding the back incarnations is not necessary. This makes the Front
609  // visualisation the default when no visibility tests are done.
610 
611  // Since we have no view here, no grid and helpline definitions are available currently. The used
612  // methods at ViewContactOfHelplines and ViewContactOfGrid return only empty sequences and
613  // do not need to be called ATM. This may change later if grid or helpline info gets
614  // model data (it should not). Keeping the lines commented to hold this hint.
615 
616  // drawinglayer::primitive2d::appendPrimitive2DSequenceToPrimitive2DSequence(xRetval, maViewContactOfGridFront.getViewIndependentPrimitive2DContainer());
617  // drawinglayer::primitive2d::appendPrimitive2DSequenceToPrimitive2DSequence(xRetval, maViewContactOfHelplinesFront.getViewIndependentPrimitive2DContainer());
618 
619  return xRetval;
620 }
621 
622 }
623 
624 /* 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:1393
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:758
sal_Int32 GetRightBorder() const
Definition: svdpage.cxx:1478
size_t GetObjCount() const
Definition: svdpage.cxx:752
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override
sal_Int32 GetLowerBorder() const
Definition: svdpage.cxx:1483
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
double getMaxX() const
sal_Int32 GetLeftBorder() const
Definition: svdpage.cxx:1468
sdr::contact::ViewContact & GetViewContact() const
Definition: svdobj.cxx:245
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
const BorderLinePrimitive2D *pCandidateB assert(pCandidateA)
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:1473
B2DPolygon createPolygonFromRect(const B2DRectangle &rRect, double fRadiusX, double fRadiusY)
ViewContactOfPageHierarchy maViewContactOfPageHierarchy
virtual void append(const Primitive2DReference &) override
ViewContactOfPageHierarchy(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
bool IsMasterPage() const
Definition: svdpage.hxx:450
const SfxItemSet & GetItemSet() const
Definition: svdpage.hxx:334
SdrPageProperties & getSdrPageProperties()
Definition: svdpage.cxx:1755
ViewContactOfPageSubObject(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
bool TRG_HasMasterPage() const
Definition: svdpage.hxx:484
Abstract DrawObject.
Definition: svdobj.hxx:312
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
drawinglayer::primitive2d::Primitive2DContainer const & getViewIndependentPrimitive2DContainer() const
sdr::contact::ViewContact & TRG_GetMasterPageDescriptorViewContact() const
Definition: svdpage.cxx:1574
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:465
basegfx::BColor getBColor() const
virtual ViewContact * GetParentContact() const override
double getMinX() const
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:1367
virtual ViewContact & GetViewContact(sal_uInt32 nIndex) const override
sal_uInt16 GetPageNum() const
Definition: svdpage.cxx:1501
Primitive2DReference createPolyPolygonFillPrimitive(const basegfx::B2DPolyPolygon &rPolyPolygon, const attribute::SdrFillAttribute &rFill, const attribute::FillGradientAttribute &rFillGradient)