26#include <svx/strings.hrc>
43 for(sal_uInt32 nHdlNum=0; nHdlNum<8; ++nHdlNum)
62 std::unique_ptr<SdrHdl> pH(
new SdrHdl(aPnt,eKind));
65 rHdlList.
AddHdl(std::move(pH));
93 if (bLft) aTmpRect.
SetLeft(aPos.
X() );
95 if (bTop) aTmpRect.
SetTop(aPos.
Y() );
104 bool bXNeg=(nXMul<0)!=(nXDiv<0);
105 bool bYNeg=(nYMul<0)!=(nYDiv<0);
106 nXMul=std::abs(nXMul);
107 nYMul=std::abs(nYMul);
108 nXDiv=std::abs(nXDiv);
109 nYDiv=std::abs(nYDiv);
117 bool bUseX=(aXFact<aYFact) != bBigOrtho;
120 if (bYNeg) nNeed=-nNeed;
125 if (bXNeg) nNeed=-nNeed;
130 if ((bLft || bRgt) && nXDiv!=0) {
133 aTmpRect.
AdjustTop( -((nNeed-nHgt0b)/2) );
136 if ((bTop || bBtm) && nYDiv!=0) {
204 if (
auto pRectObj =
dynamic_cast<SdrRectObj *
>(
this)) {
205 pRectObj->SetXPolyDirty();
220 if (
auto pRectObj =
dynamic_cast<SdrRectObj *
>(
this)) {
221 pRectObj->SetXPolyDirty();
250 return PointerStyle::Cross;
sal_Int32 GetNumerator() const
sal_Int32 GetDenominator() const
double mfCosRotationAngle
double mfSinRotationAngle
Degree100 m_nRotationAngle
constexpr tools::Long Y() const
constexpr tools::Long X() const
void SetActionRect(const tools::Rectangle &rR)
sal_Int32 GetPointCount() const
void TakeCreateRect(tools::Rectangle &rRect) const
void SetOrtho4Possible(bool bOn=true)
const Point & GetStart() const
SdrView * GetView() const
const SdrHdl * GetHdl() const
const Point & GetNow() const
void AddHdl(std::unique_ptr< SdrHdl > pHdl)
SdrHdlKind GetKind() const
OUString ImpGetDescriptionStr(TranslateId pStrCacheID) const
virtual void SetBoundRectDirty()
virtual void SetBoundAndSnapRectsDirty(bool bNotMyself=false, bool bRecursive=true)
Rectangle objects (rectangle, circle, ...)
virtual void AdaptTextMinSize()
virtual OUString getSpecialDragComment(const SdrDragStat &rDrag) const override
tools::Rectangle const & getRectangle() const
virtual bool applySpecialDrag(SdrDragStat &rDrag) override
virtual bool MovCreate(SdrDragStat &rStat) override
virtual sal_uInt32 GetHdlCount() const override
Via GetHdlCount the number of Handles can be retrieved.
virtual bool BegCreate(SdrDragStat &rStat) override
Every object must be able to create itself interactively.
virtual PointerStyle GetCreatePointer() const override
get the cursor/pointer that signals creating this object
static void ImpJustifyRect(tools::Rectangle &rRect)
virtual void BrkCreate(SdrDragStat &rStat) override
virtual basegfx::B2DPolyPolygon TakeCreatePoly(const SdrDragStat &rDrag) const override
Polygon dragged by the user when creating the object.
tools::Rectangle ImpDragCalcRect(const SdrDragStat &rDrag) const
virtual bool BckCreate(SdrDragStat &rStat) override
virtual void AddToHdlList(SdrHdlList &rHdlList) const override
virtual bool EndCreate(SdrDragStat &rStat, SdrCreateCmd eCmd) override
void setRectangle(tools::Rectangle const &rRectangle)
virtual bool hasSpecialDrag() const override
The standard transformations (Move,Resize,Rotate,Mirror,Shear) are taken over by the View (TakeXorPol...
virtual void NbcSetLogicRect(const tools::Rectangle &rRect) override
void append(const B2DPolygon &rPolygon, sal_uInt32 nCount=1)
B2DPolygon createPolygonFromRect(const B2DRectangle &rRect, double fRadiusX, double fRadiusY)
void ShearPoint(Point &rPnt, const Point &rRef, double tn, bool bVShear=false)
void RotatePoint(Point &rPnt, const Point &rRef, double sn, double cs)