34 SdrOle2Primitive2D::SdrOle2Primitive2D(
38 : maOLEContent(
std::move(rOLEContent)),
40 maSdrLFSTAttribute(rSdrLFSTAttribute)
46 if(BasePrimitive2D::operator==(rPrimitive))
101 double fRotate, fShearX;
106 double fScaleX(0.0 != aScale.
getX() ? fHalfLineWidth / fabs(aScale.
getX()) : 1.0);
107 double fScaleY(0.0 != aScale.
getY() ? fHalfLineWidth / fabs(aScale.
getY()) : 1.0);
108 const basegfx::B2DRange aExpandedRange(-fScaleX, -fScaleY, 1.0 + fScaleX, 1.0 + fScaleY);
114 aExpandedUnitOutline,
165 rVisitor.
visit(std::move(aRetval));
#define PRIMITIVE2D_ID_SDROLE2PRIMITIVE2D
virtual sal_uInt32 getPrimitive2DID() const override
B2DPolygon const & createUnitPolygon()
virtual bool operator==(const BasePrimitive2D &rPrimitive) const override
const basegfx::B2DHomMatrix & getTransform() const
Primitive2DContainer createEmbeddedShadowPrimitive(Primitive2DContainer &&rContent, const attribute::SdrShadowAttribute &rShadow, const basegfx::B2DHomMatrix &rObjectMatrix, const Primitive2DContainer *pContentForShadow)
void append(const Primitive2DReference &)
virtual void visit(const Primitive2DReference &)=0
bool decompose(B2DTuple &rScale, B2DTuple &rTranslate, double &rRotate, double &rShearX) const
B2DPolygon createPolygonFromRect(const B2DRectangle &rRect, double fRadiusX, double fRadiusY)
void transform(const basegfx::B2DHomMatrix &rMatrix)
virtual void get2DDecomposition(Primitive2DDecompositionVisitor &rVisitor, const geometry::ViewInformation2D &aViewInformation) const override
Primitive2DReference createTextPrimitive(const basegfx::B2DPolyPolygon &rUnitPolyPolygon, const basegfx::B2DHomMatrix &rObjectTransform, const attribute::SdrTextAttribute &rText, const attribute::SdrLineAttribute &rStroke, bool bCellText, bool bWordWrap)
void transform(const basegfx::B2DHomMatrix &rMatrix)
const attribute::SdrLineFillEffectsTextAttribute & getSdrLFSTAttribute() const
Primitive2DReference createHiddenGeometryPrimitives2D(const basegfx::B2DHomMatrix &rMatrix)
const Primitive2DContainer & getOLEContent() const
Primitive2DReference createPolygonLinePrimitive(const basegfx::B2DPolygon &rPolygon, const attribute::SdrLineAttribute &rLine, const attribute::SdrLineStartEndAttribute &rStroke)
Primitive2DReference createPolyPolygonFillPrimitive(const basegfx::B2DPolyPolygon &rPolyPolygon, const attribute::SdrFillAttribute &rFill, const attribute::FillGradientAttribute &rFillGradient)