57 const MapMode aMap100(MapUnit::Map100thMM);
59 Point aRelPoint(rWinPoint);
66 aRelPoint = pCmpWnd->
LogicToLogic(rWinPoint, &aWndMode, &aMap100);
70 bool bObjSupported =
false;
73 if (
auto pGrafObj =
dynamic_cast<const SdrGrafObj*
>(pObj))
75 const GeoStat& rGeo = pGrafObj->GetGeoStat();
76 std::unique_ptr<SdrGrafObjGeoData> pGeoData(
85 if (pGeoData->bMirrored)
92 if (pGrafObj->GetGrafPrefMapMode().GetMapUnit() == MapUnit::MapPixel)
94 pGrafObj->GetGrafPrefSize(), aMap100);
97 pGrafObj->GetGrafPrefMapMode(), aMap100);
101 else if (
auto pOleObj =
dynamic_cast<const SdrOle2Obj*
>(pObj))
103 aGraphSize = pOleObj->GetOrigObjSize();
104 bObjSupported =
true;
115 if (pIMapObj && !pIMapObj->
IsActive())
static OutputDevice * GetDefaultDevice()
The transformation of a rectangle into a polygon, by using angle parameters from GeoStat.
double mfCosRotationAngle
double mfSinRotationAngle
Degree100 m_nRotationAngle
IMapObject * GetHitIMapObject(const Size &rOriginalSize, const Size &rDisplaySize, const Point &rRelHitPoint, sal_uLong nFlags=0) 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
const MapMode & GetMapMode() const
void setX(tools::Long nX)
constexpr tools::Long X() const
This class represents an embedded or linked bitmap graphic object.
User data of a drawing object, e.g.
SdrInventor GetInventor() const
virtual const tools::Rectangle & GetLogicRect() const
static SvxIMapInfo * GetIMapInfo(const SdrObject *pObject)
const ImageMap & GetImageMap() const
static IMapObject * GetHitIMapObject(const SdrObject *pObj, const Point &rWinPoint, const OutputDevice *pCmpWnd=nullptr)
EmbeddedObjectRef * pObject
void ShearPoint(Point &rPnt, const Point &rRef, double tn, bool bVShear=false)
void RotatePoint(Point &rPnt, const Point &rRef, double sn, double cs)