26 #include <svx/strings.hrc>
43 for(sal_uInt32 nHdlNum=0; nHdlNum<8; ++nHdlNum)
59 std::unique_ptr<SdrHdl> pH(
new SdrHdl(aPnt,eKind));
60 pH->SetObj(const_cast<SdrTextObj*>(
this));
62 rHdlList.
AddHdl(std::move(pH));
90 if (bLft) aTmpRect.
SetLeft(aPos.X() );
91 if (bRgt) aTmpRect.
SetRight(aPos.X() );
92 if (bTop) aTmpRect.
SetTop(aPos.Y() );
101 bool bXNeg=(nXMul<0)!=(nXDiv<0);
102 bool bYNeg=(nYMul<0)!=(nYDiv<0);
103 nXMul=std::abs(nXMul);
104 nYMul=std::abs(nYMul);
105 nXDiv=std::abs(nXDiv);
106 nYDiv=std::abs(nYDiv);
114 bool bUseX=(aXFact<aYFact) != bBigOrtho;
117 if (bYNeg) nNeed=-nNeed;
122 if (bXNeg) nNeed=-nNeed;
127 if ((bLft || bRgt) && nXDiv!=0) {
130 aTmpRect.
AdjustTop( -((nNeed-nHgt0b)/2) );
133 if ((bTop || bBtm) && nYDiv!=0) {
141 if (dynamic_cast<const SdrObjCustomShape*>(
this) ==
nullptr)
201 if (
auto pRectObj = dynamic_cast<SdrRectObj *>(
this)) {
202 pRectObj->SetXPolyDirty();
215 if (
auto pRectObj = dynamic_cast<SdrRectObj *>(
this)) {
216 pRectObj->SetXPolyDirty();
245 return PointerStyle::Cross;
void ShearPoint(Point &rPnt, const Point &rRef, double tn, bool bVShear=false)
const Point & GetStart() const
double mfSinRotationAngle
virtual sal_uInt32 GetHdlCount() const override
Via GetHdlCount the number of Handles can be retrieved.
virtual void SetBoundRectDirty()
virtual bool hasSpecialDrag() const override
The standard transformations (Move,Resize,Rotate,Mirror,Shear) are taken over by the View (TakeXorPol...
virtual bool BegCreate(SdrDragStat &rStat) override
Every object must be able to create itself interactively.
const SdrHdl * GetHdl() const
virtual bool BckCreate(SdrDragStat &rStat) override
void SetOrtho4Possible(bool bOn=true)
void TakeCreateRect(tools::Rectangle &rRect) const
tools::Rectangle ImpDragCalcRect(const SdrDragStat &rDrag) const
virtual bool applySpecialDrag(SdrDragStat &rDrag) override
virtual OUString getSpecialDragComment(const SdrDragStat &rDrag) const override
B2DPolygon createPolygonFromRect(const B2DRectangle &rRect, double fRadiusX, double fRadiusY)
virtual void BrkCreate(SdrDragStat &rStat) override
sal_Int32 GetPointCount() const
SdrView * GetView() const
virtual void AdaptTextMinSize()
virtual basegfx::B2DPolyPolygon TakeCreatePoly(const SdrDragStat &rDrag) const override
Polygon dragged by the user when creating the object.
void append(const B2DPolygon &rPolygon, sal_uInt32 nCount=1)
void RotatePoint(Point &rPnt, const Point &rRef, double sn, double cs)
void SetActionRect(const tools::Rectangle &rR)
sal_Int32 GetDenominator() const
OUString ImpGetDescriptionStr(const char *pStrCacheID) const
double mfCosRotationAngle
sal_Int32 GetNumerator() const
const Point & GetNow() const
virtual void SetRectsDirty(bool bNotMyself=false, bool bRecursive=true)
virtual bool EndCreate(SdrDragStat &rStat, SdrCreateCmd eCmd) override
virtual void NbcSetLogicRect(const tools::Rectangle &rRect) override
virtual bool MovCreate(SdrDragStat &rStat) override
static void ImpJustifyRect(tools::Rectangle &rRect)
virtual void AddToHdlList(SdrHdlList &rHdlList) const override
void AddHdl(std::unique_ptr< SdrHdl > pHdl)
SdrHdlKind GetKind() const
virtual PointerStyle GetCreatePointer() const override
get the cursor/pointer that signals creating this object