38 bool bScaleContent(
false);
43 const Graphic* pOLEGraphic = pSource->GetGraphic();
47 aGraphic = *pOLEGraphic;
48 bScaleContent = pSource->IsEmptyPresObj();
52 if(GraphicType::NONE == aGraphic.
GetType())
59 if(GraphicType::NONE == aGraphic.
GetType())
69 double fRotate, fShearX;
84 const double fOffsetX((aScale.
getX() - aPrefSize.
getWidth()) / 2.0);
85 const double fOffsetY((aScale.
getY() - aPrefSize.
getHeight()) / 2.0);
100 rContainer.push_back(aGraphicPrimitive);
111 rContainer.push_back(aGraphicPrimitive);
128 rContainer.push_back(xOutline);
135 sal_uInt32 nGraphicVersion
137 : mpSdrOle2Obj(const_cast<
SdrOle2Obj* >(&rSdrOle2Obj)),
138 maObjectTransform(
std::move(aObjectTransform)),
139 mnGraphicVersion(nGraphicVersion)
145 if( BufferedDecompositionPrimitive2D::operator==(rPrimitive) )
150 const bool bBothNot(!xSdrThis && !xSdrThat);
151 const bool bBothAndEqual(xSdrThis && xSdrThat
152 && xSdrThis.get() == xSdrThat.get());
154 return ((bBothNot || bBothAndEqual)
static OutputDevice * GetDefaultDevice()
basegfx::BColor getBColor() const
GraphicType GetType() const
MapMode GetPrefMapMode() const
MapUnit GetMapUnit() const
SAL_WARN_UNUSED_RESULT Point PixelToLogic(const Point &rDevicePt) const
SAL_WARN_UNUSED_RESULT Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
static Graphic GetEmptyOLEReplacementGraphic()
constexpr tools::Long getHeight() const
constexpr tools::Long getWidth() const
bool decompose(B2DTuple &rScale, B2DTuple &rTranslate, double &rRotate, double &rShearX) const
void transform(const basegfx::B2DHomMatrix &rMatrix)
BASEGFX_DLLPUBLIC void transform(const B2DHomMatrix &rMatrix)
unotools::WeakReference< SdrOle2Obj > mpSdrOle2Obj
virtual void create2DDecomposition(Primitive2DContainer &rContainer, const geometry::ViewInformation2D &aViewInformation) const override
virtual sal_uInt32 getPrimitive2DID() const override
const basegfx::B2DHomMatrix & getObjectTransform() const
virtual bool operator==(const BasePrimitive2D &rPrimitive) const override
virtual basegfx::B2DRange getB2DRange(const geometry::ViewInformation2D &rViewInformation) const override
SdrOleContentPrimitive2D(const SdrOle2Obj &rSdrOle2Obj, basegfx::B2DHomMatrix aObjectTransform, sal_uInt32 nGraphicVersion)
sal_uInt32 mnGraphicVersion
B2DHomMatrix createScaleTranslateB2DHomMatrix(double fScaleX, double fScaleY, double fTranslateX, double fTranslateY)
B2DHomMatrix createShearXRotateTranslateB2DHomMatrix(double fShearX, double fRadiant, double fTranslateX, double fTranslateY)
B2DPolygon const & createUnitPolygon()
#define PRIMITIVE2D_ID_SDROLECONTENTPRIMITIVE2D