119 : mpSdrFillGraphicAttribute(
134 : mpSdrFillGraphicAttribute(theGlobalDefault())
210 const double fRangeWidth(0.0 != rRange.
getWidth() ? rRange.
getWidth() : 1.0);
254 aBitmapTopLeft.
setX((fRangeWidth - aBitmapSize.
getX()) * 0.5);
258 aBitmapTopLeft.
setX(fRangeWidth - aBitmapSize.
getX());
270 aBitmapTopLeft.
setY((fRangeHeight - aBitmapSize.
getY()) * 0.5);
274 aBitmapTopLeft.
setY(fRangeHeight - aBitmapSize.
getY());
284 aBitmapTopLeft.
setX(aBitmapTopLeft.
getX() / fRangeWidth);
285 aBitmapTopLeft.
setY(aBitmapTopLeft.
getY() / fRangeHeight);
286 aBitmapSize.
setX(aBitmapSize.
getX() / fRangeWidth);
287 aBitmapSize.
setY(aBitmapSize.
getY() / fRangeHeight);
291 const double fOffsetX(std::clamp(
getOffset().getX() * 0.01, 0.0, 1.0));
292 const double fOffsetY(std::clamp(
getOffset().getY() * 0.01, 0.0, 1.0));
basegfx::B2DVector maSize
const Graphic & getFillGraphic() const
basegfx::B2DVector maOffsetPosition
const basegfx::B2DVector & getOffset() const
const basegfx::B2DVector & getSize() const
bool operator==(const ImpSdrFillGraphicAttribute &rCandidate) const
ImpSdrFillGraphicAttribute()
ImpSdrFillGraphicAttribute(Graphic aFillGraphic, const basegfx::B2DVector &rGraphicLogicSize, const basegfx::B2DVector &rSize, const basegfx::B2DVector &rOffset, const basegfx::B2DVector &rOffsetPosition, const basegfx::B2DVector &rRectPoint, bool bTiling, bool bStretch, bool bLogSize)
basegfx::B2DVector maGraphicLogicSize
const basegfx::B2DVector & getRectPoint() const
basegfx::B2DVector maOffset
const basegfx::B2DVector & getOffsetPosition() const
basegfx::B2DVector maRectPoint
const basegfx::B2DVector & getGraphicLogicSize() const
o3tl::cow_wrapper< ImpSdrFillGraphicAttribute > ImplType
~SdrFillGraphicAttribute()
const basegfx::B2DVector & getOffset() const
const basegfx::B2DVector & getGraphicLogicSize() const
const basegfx::B2DVector & getSize() const
SdrFillGraphicAttribute & operator=(const SdrFillGraphicAttribute &)
SdrFillGraphicAttribute()
FillGraphicAttribute createFillGraphicAttribute(const basegfx::B2DRange &rRange) const
const basegfx::B2DVector & getOffsetPosition() const
const basegfx::B2DVector & getRectPoint() const
bool operator==(const SdrFillGraphicAttribute &rCandidate) const
ImplType mpSdrFillGraphicAttribute
const Graphic & getFillGraphic() const
bool same_object(const cow_wrapper &rOther) const