109 if (bXMirr || bYMirr) {
130 moveRectangle(aRectangle.Right() - aRectangle.Left(), aRectangle.Bottom() - aRectangle.Top());
163 if (
a<4500_deg100)
a=0_deg100;
164 else if (
a<13500_deg100)
a=9000_deg100;
165 else if (
a<22500_deg100)
a=18000_deg100;
166 else if (
a<31500_deg100)
a=27000_deg100;
197 Point aPoint2(aPoint1.
X() + dx, aPoint1.
Y() + dy);
221 sal_uInt16 nPointCount=aPol.
GetSize();
222 for (sal_uInt16
i=0;
i<nPointCount;
i++) {
242 bool bRotate90 =
false;
244 (rRef1.
X()==rRef2.
X() || rRef1.
Y()==rRef2.
Y() ||
245 std::abs(rRef1.
X()-rRef2.
X())==std::abs(rRef1.
Y()-rRef2.
Y()))) {
250 sal_uInt16 nPointCount=aPol.
GetSize();
251 for (
i=0;
i<nPointCount;
i++) {
266 if (bRotate90 && !bRota90) {
268 if (
a<4500_deg100)
a=0_deg100;
269 else if (
a<13500_deg100)
a=9000_deg100;
270 else if (
a<22500_deg100)
a=18000_deg100;
271 else if (
a<31500_deg100)
a=27000_deg100;
312 const sal_uInt32 nResultCount(rResult.size());
318 SdrObjList* pObjectList = pGroup->GetSubList();
321 for(sal_uInt32
a(0);
a < nResultCount;
a++)
326 if(aPolyPolygon.
count())
376 std::move(aPolyPolygon));
385 pPathObj->SetMergedItemSet(aAttributeSet);
440 std::move(aB2DPolyPolygon)));
451 pPathObj->ClearMergedItem();
453 pPathObj->GetProperties().BroadcastItemChange(aC);
478 if(pText->IsGroupObject())
sal_Int32 GetNumerator() const
sal_Int32 GetDenominator() const
double mfCosRotationAngle
double mfSinRotationAngle
Degree100 m_nRotationAngle
constexpr tools::Long Y() const
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
constexpr tools::Long X() const
virtual const tools::Rectangle & GetSnapRect() const override
tools::Rectangle maSnapRect
virtual void InsertObject(SdrObject *pObj, size_t nPos=SAL_MAX_SIZE)
size_t GetObjCount() const
virtual rtl::Reference< SdrObject > RemoveObject(size_t nObjNum)
const Point & GetAnchorPos() const
void moveOutRectangle(sal_Int32 nXDelta, sal_Int32 nYDelta)
void NbcMirrorGluePoints(const Point &rRef1, const Point &rRef2)
SdrModel & getSdrModelFromSdrObject() const
void NbcShearGluePoints(const Point &rRef, double tn, bool bVShear)
SfxStyleSheet * GetStyleSheet() const
sdr::contact::ViewContact & GetViewContact() const
virtual SdrLayerID GetLayer() const
void NbcRotateGluePoints(const Point &rRef, Degree100 nAngle, double sn, double cs)
void SetGlueReallyAbsolute(bool bOn)
virtual void SetBoundAndSnapRectsDirty(bool bNotMyself=false, bool bRecursive=true)
const SfxItemSet & GetObjectItemSet() const
virtual void AdaptTextMinSize()
tools::Rectangle const & getRectangle() const
virtual void NbcMirror(const Point &rRef1, const Point &rRef2) override
virtual void NbcSetSnapRect(const tools::Rectangle &rRect) override
virtual void NbcShear(const Point &rRef, Degree100 nAngle, double tn, bool bVShear) override
virtual void NbcMove(const Size &rSiz) override
The methods Move, Resize, Rotate, Mirror, Shear, SetSnapRect and SetLogicRect call the corresponding ...
virtual Degree100 GetRotateAngle() const override
void moveRectangle(sal_Int32 nXDelta, sal_Int32 nYDelta)
tools::Rectangle maRectangle
rtl::Reference< SdrPathObj > ImpConvertMakeObj(const basegfx::B2DPolyPolygon &rPolyPolygon, bool bClosed, bool bBezier) const
bool ImpCanConvTextToCurve() const
virtual bool NbcAdjustTextFrameWidthAndHeight(bool bHgt=true, bool bWdt=true)
virtual const tools::Rectangle & GetLogicRect() const override
static void ImpJustifyRect(tools::Rectangle &rRect)
SVX_DLLPRIVATE rtl::Reference< SdrObject > ImpConvertContainedTextToSdrPathObjs(bool bToPoly) const
virtual Degree100 GetShearAngle(bool bVertical=false) const override
rtl::Reference< SdrObject > ImpConvertAddText(rtl::Reference< SdrObject > pObj, bool bBezier) const
virtual rtl::Reference< SdrObject > DoConvertToPolyObj(bool bBezier, bool bAddText) const override
virtual void NbcResize(const Point &rRef, const Fraction &xFact, const Fraction &yFact) override
void setRectangle(tools::Rectangle const &rRectangle)
virtual void NbcSetLogicRect(const tools::Rectangle &rRect) override
virtual void NbcRotate(const Point &rRef, Degree100 nAngle, double sn, double cs) override
const SfxPoolItem * Put(const SfxPoolItem &rItem, sal_uInt16 nWhich)
constexpr tools::Long Height() const
constexpr tools::Long Width() const
bool areControlPointsUsed() const
B2DPolygon expandToCurve(const B2DPolygon &rCandidate)
B2DPolygon adaptiveSubdivideByAngle(const B2DPolygon &rCandidate, double fAngleBound)
::std::vector< TextAsPolygonDataNode > TextAsPolygonDataNodeVector
tools::Rectangle polygonToRectangle(const tools::Polygon &rPolygon, GeoStat &rGeo)
SdrOnOffItem makeSdrShadowItem(bool bShadow)
const basegfx::BColor & getBColor() const
const basegfx::B2DPolyPolygon & getB2DPolyPolygon() const
UNDERLYING_TYPE get() const
@ PathFill
open Bezier-curve
@ PolyLine
polygon, PolyPolygon
void ResizeRect(tools::Rectangle &rRect, const Point &rRef, const Fraction &rxFact, const Fraction &ryFact)
tools::Polygon Rect2Poly(const tools::Rectangle &rRect, const GeoStat &rGeo)
void MirrorPoint(Point &rPnt, const Point &rRef1, const Point &rRef2)
Degree100 NormAngle36000(Degree100 a)
Normalize angle to -180.00..179.99.
void ShearPoint(Point &rPnt, const Point &rRef, double tn, bool bVShear=false)
void RotatePoint(Point &rPnt, const Point &rRef, double sn, double cs)
void ResizePoint(Point &rPnt, const Point &rRef, const Fraction &xFract, const Fraction &yFract)