41 #include <bitmaps.hlst>
46 : mrParentViewContactOfSdrPage(rParentViewContactOfSdrPage)
67 DBG_ASSERT(pRetval,
"ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
97 DBG_ASSERT(pRetval,
"ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
104 static bool bUseOldPageShadow(
false);
107 aPageMatrix.
set(0, 0, static_cast<double>(rPage.
GetWidth()));
108 aPageMatrix.
set(1, 1, static_cast<double>(rPage.
GetHeight()));
110 if(bUseOldPageShadow)
113 const double fPageBorderFactor(1.0 / 256.0);
122 aPageShadowPolygon.
transform(aPageMatrix);
142 if(aDiscreteShadow.
get())
147 *aDiscreteShadow.
get()));
168 DBG_ASSERT(pRetval,
"ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
243 DBG_ASSERT(pRetval,
"ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
278 DBG_ASSERT(pRetval,
"ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
291 basegfx::BColor aRGBBorderColor(0x94 /
double(0xff), 0x95 /
double(0xff), 0x99 /
double(0xff));
298 aRGBBorderColor = aBorderColor.getBColor();
339 DBG_ASSERT(pRetval,
"ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
387 DBG_ASSERT(pRetval,
"ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
399 for(sal_uInt32
a(0);
a < nObjectCount;
a++)
404 xRetval.insert(xRetval.end(), aCandSeq.begin(), aCandSeq.end());
427 assert(pObj &&
"ViewContactOfPageHierarchy::GetViewContact: Corrupt SdrObjList (!)");
434 DBG_ASSERT(pRetval,
"ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
459 DBG_ASSERT(pRetval,
"ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
486 DBG_ASSERT(pRetval,
"ViewContact::CreateObjectSpecificViewObjectContact() failed (!)");
494 maViewContactOfPageBackground(*this),
495 maViewContactOfPageShadow(*this),
496 maViewContactOfPageFill(*this),
497 maViewContactOfMasterPage(*this),
498 maViewContactOfOuterPageBorder(*this),
499 maViewContactOfInnerPageBorder(*this),
500 maViewContactOfGridBack(*this, false),
501 maViewContactOfHelplinesBack(*this, false),
502 maViewContactOfPageHierarchy(*this),
503 maViewContactOfGridFront(*this, true),
504 maViewContactOfHelplinesFront(*this, true)
virtual ~ViewContactOfPageHierarchy() override
ViewContactOfGrid maViewContactOfGridBack
virtual ~ViewContactOfPageShadow() override
void append(const basegfx::B2DPoint &rPoint, sal_uInt32 nCount)
virtual sal_uInt32 GetObjectCount() const override
void set(sal_uInt16 nRow, sal_uInt16 nColumn, double fValue)
const SdrPage & getPage() const
sal_Int32 GetHeight() const
attribute::SdrFillAttribute createNewSdrFillAttribute(const SfxItemSet &rSet)
ViewContactOfSdrPage & mrParentViewContactOfSdrPage
virtual ~ViewContactOfOuterPageBorder() override
SdrPage & GetSdrPage() const
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
sal_Int32 GetRightBorder() const
size_t GetObjCount() const
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override
sal_Int32 GetLowerBorder() const
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
sal_Int32 GetLeftBorder() const
sdr::contact::ViewContact & GetViewContact() const
virtual ~ViewContactOfInnerPageBorder() override
ViewContactOfPageShadow maViewContactOfPageShadow
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override
virtual sal_uInt32 GetObjectCount() const override
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const 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
virtual ~ViewContactOfPageBackground() override
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override
ViewContactOfHelplines maViewContactOfHelplinesBack
This view contact corresponds with all SdrObject instances in a single SdrPage.
ViewContactOfPageBackground maViewContactOfPageBackground
ViewContactOfPageFill(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
virtual ~ViewContactOfPageFill() override
ViewContactOfGrid maViewContactOfGridFront
#define DBG_ASSERT(sCon, aError)
ViewContactOfSdrPage(SdrPage &rObj)
ViewContactOfOuterPageBorder(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
virtual drawinglayer::primitive2d::Primitive2DContainer createViewIndependentPrimitive2DSequence() const override
virtual ViewObjectContact & CreateObjectSpecificViewObjectContact(ObjectContact &rObjectContact) override
sal_Int32 GetUpperBorder() const
B2DPolygon createPolygonFromRect(const B2DRectangle &rRect, double fRadiusX, double fRadiusY)
ViewContactOfPageHierarchy maViewContactOfPageHierarchy
virtual void append(const Primitive2DReference &) override
ViewContactOfPageHierarchy(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
bool IsMasterPage() const
const SfxItemSet & GetItemSet() const
SdrPageProperties & getSdrPageProperties()
virtual ~ViewContactOfPageSubObject() override
ViewContactOfPageSubObject(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
bool TRG_HasMasterPage() const
virtual ~ViewContactOfSdrPage() override
ViewContactOfPageFill maViewContactOfPageFill
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
sdr::contact::ViewContact & TRG_GetMasterPageDescriptorViewContact() const
ViewContactOfMasterPage maViewContactOfMasterPage
ViewContactOfHelplines maViewContactOfHelplinesFront
ViewContactOfPageBackground(ViewContactOfSdrPage &rParentViewContactOfSdrPage)
SfxStyleSheet * GetStyleSheet() const
ViewContactOfInnerPageBorder maViewContactOfInnerPageBorder
bool getPageBorderOnlyLeftRight() const
basegfx::BColor getBColor() const
virtual void ActionChanged() override
virtual ViewContact * GetParentContact() const override
bool IsBackgroundFullSize() const
A SdrPage contains exactly one SdrObjList and a description of the physical page dimensions (size / m...
sal_Int32 GetWidth() const
virtual ViewContact & GetViewContact(sal_uInt32 nIndex) const override
sal_uInt16 GetPageNum() const
virtual ~ViewContactOfMasterPage() override
Primitive2DReference createPolyPolygonFillPrimitive(const basegfx::B2DPolyPolygon &rPolyPolygon, const attribute::SdrFillAttribute &rFill, const attribute::FillGradientAttribute &rFillGradient)