28#include <osl/diagnose.h>
46 sal_uInt32 nPolyCount(rUnitPolyPolygon.
count());
47 sal_uInt32 nPointCount(0);
49 for(
auto const& rPolygon : std::as_const(rUnitPolyPolygon))
51 nPointCount += rPolygon.count();
54 return nPolyCount == 1;
59 OSL_FAIL(
"PolyPolygon object without geometry detected, this should not be created (!)");
68 return nPolyCount == 1;
117 const double fWidth(aObjectRange.
getWidth());
118 const double fHeight(aObjectRange.
getHeight());
136 if(
nullptr != pFillGeometryDefiningShape)
145 aUnitDefinitionPolyPolygon.
append(
152 aUnitDefinitionPolyPolygon.
transform(aInverse);
162 std::move(aUnitPolyPolygon),
163 std::move(aUnitDefinitionPolyPolygon)));
165 rVisitor.
visit(xReference);
The transformation of a rectangle into a polygon, by using angle parameters from GeoStat.
Degree100 m_nRotationAngle
virtual const tools::Rectangle & GetSnapRect() const
const SfxItemSet & GetMergedItemSet() const
B2DPolygon const & getB2DPolygon(sal_uInt32 nIndex) const
void append(const B2DPolygon &rPolygon, sal_uInt32 nCount=1)
void setB2DPolygon(sal_uInt32 nIndex, const B2DPolygon &rPolygon)
void transform(const basegfx::B2DHomMatrix &rMatrix)
bool areControlPointsUsed() const
basegfx::B2DPoint const & getB2DPoint(sal_uInt32 nIndex) const
void append(const basegfx::B2DPoint &rPoint, sal_uInt32 nCount)
virtual void visit(const Primitive2DReference &)=0
B2DPolygon createPolygonFromRect(const B2DRectangle &rRect, double fRadiusX, double fRadiusY)
B2DHomMatrix createScaleShearXRotateTranslateB2DHomMatrix(double fScaleX, double fScaleY, double fShearX, double fRadiant, double fTranslateX, double fTranslateY)
B2DRange getRange(const B2DPolygon &rCandidate)
attribute::SdrLineFillEffectsTextAttribute createNewSdrLineFillEffectsTextAttribute(const SfxItemSet &rSet, const SdrText *pText, bool bHasContent, bool bSuppressShadow)