LibreOffice Module svx (master)
1
|
#include <rtl/ustring.hxx>
#include <svx/svxdllapi.h>
#include <tools/degree.hxx>
#include <tools/fldunit.hxx>
#include <tools/fract.hxx>
#include <tools/gen.hxx>
#include <tools/helpers.hxx>
#include <tools/mapunit.hxx>
#include <tools/poly.hxx>
Go to the source code of this file.
Classes | |
class | GeoStat |
The transformation of a rectangle into a polygon, by using angle parameters from GeoStat. More... | |
class | FrPair |
class | SdrFormatter |
Functions | |
constexpr Degree100 | SDRMAXSHEAR (8900) |
void | MovePoly (tools::Polygon &rPoly, const Size &S) |
void | MoveXPoly (XPolygon &rPoly, const Size &S) |
SVXCORE_DLLPUBLIC void | ResizeRect (tools::Rectangle &rRect, const Point &rRef, const Fraction &xFact, const Fraction &yFact) |
void | ResizePoint (Point &rPnt, const Point &rRef, const Fraction &xFract, const Fraction &yFract) |
void | ResizePoly (tools::Polygon &rPoly, const Point &rRef, const Fraction &xFact, const Fraction &yFact) |
void | ResizeXPoly (XPolygon &rPoly, const Point &rRef, const Fraction &xFact, const Fraction &yFact) |
void | RotatePoint (Point &rPnt, const Point &rRef, double sn, double cs) |
SVXCORE_DLLPUBLIC void | RotatePoly (tools::Polygon &rPoly, const Point &rRef, double sn, double cs) |
void | RotateXPoly (XPolygon &rPoly, const Point &rRef, double sn, double cs) |
void | RotateXPoly (XPolyPolygon &rPoly, const Point &rRef, double sn, double cs) |
void | MirrorPoint (Point &rPnt, const Point &rRef1, const Point &rRef2) |
void | MirrorXPoly (XPolygon &rPoly, const Point &rRef1, const Point &rRef2) |
void | ShearPoint (Point &rPnt, const Point &rRef, double tn, bool bVShear=false) |
SVXCORE_DLLPUBLIC void | ShearPoly (tools::Polygon &rPoly, const Point &rRef, double tn) |
void | ShearXPoly (XPolygon &rPoly, const Point &rRef, double tn, bool bVShear=false) |
double | GetCrookAngle (Point &rPnt, const Point &rCenter, const Point &rRad, bool bVertical) |
rPnt.X/rPnt.Y is set to rCenter.X or rCenter.Y! We then only need to rotate rPnt by rCenter. More... | |
double | CrookRotateXPoint (Point &rPnt, Point *pC1, Point *pC2, const Point &rCenter, const Point &rRad, double &rSin, double &rCos, bool bVert) |
The following methods accept a point of an XPolygon, whereas the neighbouring control points of the actual point are passed in pC1/pC2. More... | |
double | CrookSlantXPoint (Point &rPnt, Point *pC1, Point *pC2, const Point &rCenter, const Point &rRad, double &rSin, double &rCos, bool bVert) |
double | CrookStretchXPoint (Point &rPnt, Point *pC1, Point *pC2, const Point &rCenter, const Point &rRad, double &rSin, double &rCos, bool bVert, const tools::Rectangle &rRefRect) |
void | CrookRotatePoly (XPolygon &rPoly, const Point &rCenter, const Point &rRad, bool bVert) |
void | CrookSlantPoly (XPolygon &rPoly, const Point &rCenter, const Point &rRad, bool bVert) |
void | CrookStretchPoly (XPolygon &rPoly, const Point &rCenter, const Point &rRad, bool bVert, const tools::Rectangle &rRefRect) |
void | CrookRotatePoly (XPolyPolygon &rPoly, const Point &rCenter, const Point &rRad, bool bVert) |
void | CrookSlantPoly (XPolyPolygon &rPoly, const Point &rCenter, const Point &rRad, bool bVert) |
void | CrookStretchPoly (XPolyPolygon &rPoly, const Point &rCenter, const Point &rRad, bool bVert, const tools::Rectangle &rRefRect) |
SVXCORE_DLLPUBLIC Degree100 | GetAngle (const Point &rPnt) |
The Y axis points down! The function negates the Y axis, when calculating the angle, such that GetAngle(Point(0,-1))=90 deg. More... | |
Degree100 | NormAngle18000 (Degree100 a) |
SVXCORE_DLLPUBLIC Degree100 | NormAngle36000 (Degree100 a) |
Normalize angle to -180.00..179.99. More... | |
sal_uInt16 | GetAngleSector (Degree100 nAngle) |
Normalize angle to 0.00..359.99. More... | |
tools::Long | GetLen (const Point &rPnt) |
Determine sector within the cartesian coordinate system. More... | |
tools::Polygon | Rect2Poly (const tools::Rectangle &rRect, const GeoStat &rGeo) |
void | Poly2Rect (const tools::Polygon &rPol, tools::Rectangle &rRect, GeoStat &rGeo) |
void | OrthoDistance8 (const Point &rPt0, Point &rPt, bool bBigOrtho) |
void | OrthoDistance4 (const Point &rPt0, Point &rPt, bool bBigOrtho) |
SVXCORE_DLLPUBLIC tools::Long | BigMulDiv (tools::Long nVal, tools::Long nMul, tools::Long nDiv) |
SVXCORE_DLLPUBLIC FrPair | GetMapFactor (MapUnit eS, MapUnit eD) |
FrPair | GetMapFactor (FieldUnit eS, FieldUnit eD) |
bool | IsMetric (MapUnit eU) |
bool | IsInch (MapUnit eU) |
bool | IsMetric (FieldUnit eU) |
bool | IsInch (FieldUnit eU) |
SVXCORE_DLLPUBLIC tools::Long BigMulDiv | ( | tools::Long | nVal, |
tools::Long | nMul, | ||
tools::Long | nDiv | ||
) |
Definition at line 561 of file svdtrans.cxx.
References BigInt::Scale().
Referenced by SdrCircObj::applySpecialDrag(), ImpCaptParams::CalcEscPos(), GetAnglePnt(), SdrFormatter::GetStr(), SdrEdgeObj::ImpCalcEdgeTrack(), SdrMeasureObj::NbcRotate(), and SdrMeasureObj::TakeRepresentation().
Definition at line 292 of file svdtrans.cxx.
References CrookRotateXPoint(), XPolygon::GetPointCount(), i, XPolygon::IsControl(), and Point.
Referenced by CrookRotatePoly(), and SdrEditView::ImpCrookObj().
void CrookRotatePoly | ( | XPolyPolygon & | rPoly, |
const Point & | rCenter, | ||
const Point & | rRad, | ||
bool | bVert | ||
) |
Definition at line 362 of file svdtrans.cxx.
References XPolyPolygon::Count(), and CrookRotatePoly().
double CrookRotateXPoint | ( | Point & | rPnt, |
Point * | pC1, | ||
Point * | pC2, | ||
const Point & | rCenter, | ||
const Point & | rRad, | ||
double & | rSin, | ||
double & | rCos, | ||
bool | bVert | ||
) |
The following methods accept a point of an XPolygon, whereas the neighbouring control points of the actual point are passed in pC1/pC2.
Via rSin/rCos, sin(nAngle) and cos(nAngle) are returned.
Definition at line 163 of file svdtrans.cxx.
References FRound(), GetCrookAngle(), and RotatePoint().
Referenced by CrookRotatePoly(), SdrEditView::ImpCrookObj(), SdrDragCrook::MovAllPoints(), and SdrDragCrook::MovCrookPoint().
Definition at line 315 of file svdtrans.cxx.
References CrookSlantXPoint(), XPolygon::GetPointCount(), i, XPolygon::IsControl(), and Point.
Referenced by CrookSlantPoly(), and SdrEditView::ImpCrookObj().
void CrookSlantPoly | ( | XPolyPolygon & | rPoly, |
const Point & | rCenter, | ||
const Point & | rRad, | ||
bool | bVert | ||
) |
Definition at line 370 of file svdtrans.cxx.
References XPolyPolygon::Count(), and CrookSlantPoly().
double CrookSlantXPoint | ( | Point & | rPnt, |
Point * | pC1, | ||
Point * | pC2, | ||
const Point & | rCenter, | ||
const Point & | rRad, | ||
double & | rSin, | ||
double & | rCos, | ||
bool | bVert | ||
) |
Definition at line 217 of file svdtrans.cxx.
References GetCrookAngle(), and RotatePoint().
Referenced by CrookSlantPoly(), CrookStretchXPoint(), SdrEditView::ImpCrookObj(), SdrDragCrook::MovAllPoints(), and SdrDragCrook::MovCrookPoint().
void CrookStretchPoly | ( | XPolygon & | rPoly, |
const Point & | rCenter, | ||
const Point & | rRad, | ||
bool | bVert, | ||
const tools::Rectangle & | rRefRect | ||
) |
Definition at line 338 of file svdtrans.cxx.
References CrookStretchXPoint(), XPolygon::GetPointCount(), i, XPolygon::IsControl(), and Point.
Referenced by CrookStretchPoly(), and SdrEditView::ImpCrookObj().
void CrookStretchPoly | ( | XPolyPolygon & | rPoly, |
const Point & | rCenter, | ||
const Point & | rRad, | ||
bool | bVert, | ||
const tools::Rectangle & | rRefRect | ||
) |
Definition at line 378 of file svdtrans.cxx.
References XPolyPolygon::Count(), and CrookStretchPoly().
double CrookStretchXPoint | ( | Point & | rPnt, |
Point * | pC1, | ||
Point * | pC2, | ||
const Point & | rCenter, | ||
const Point & | rRad, | ||
double & | rSin, | ||
double & | rCos, | ||
bool | bVert, | ||
const tools::Rectangle & | rRefRect | ||
) |
Definition at line 272 of file svdtrans.cxx.
References a, tools::Rectangle::Bottom(), CrookSlantXPoint(), FRound(), and tools::Rectangle::Top().
Referenced by CrookStretchPoly(), SdrEditView::ImpCrookObj(), SdrDragCrook::MovAllPoints(), and SdrDragCrook::MovCrookPoint().
SVXCORE_DLLPUBLIC Degree100 GetAngle | ( | const Point & | rPnt | ) |
The Y axis points down! The function negates the Y axis, when calculating the angle, such that GetAngle(Point(0,-1))=90 deg.
GetAngle(Point(0,0)) returns 0.
Definition at line 387 of file svdtrans.cxx.
References a, F_PI18000, and FRound().
Referenced by SdrCircObj::applySpecialDrag(), SdrDragRotate::BeginSdrDrag(), E3dDragMethod::BeginSdrDrag(), SdrDragShear::BeginSdrDrag(), SdrDragMirror::BeginSdrDrag(), ImpSdrGDIMetaFileImport::DoAction(), SdrMeasureObj::GetRotateAngle(), ImpPathForDragAndCreate::getSpecialDragComment(), SdrMeasureObj::ImpCalcGeometrics(), SdrDragMirror::ImpCheckSide(), SdrMeasureObj::ImpEvalDrag(), SdrPathObj::ImpForceLineAngle(), SdrGluePointList::Mirror(), MirrorPoint(), ImpPathForDragAndCreate::movePathDrag(), SdrDragMovHdl::MoveSdrDrag(), SdrDragRotate::MoveSdrDrag(), SdrDragShear::MoveSdrDrag(), E3dDragRotate::MoveSdrDrag(), SdrDragCrook::MoveSdrDrag(), SdrCircObj::NbcMirror(), and Poly2Rect().
sal_uInt16 GetAngleSector | ( | Degree100 | nAngle | ) |
Normalize angle to 0.00..359.99.
Definition at line 418 of file svdtrans.cxx.
References NormAngle36000().
Referenced by SdrDragRotate::MoveSdrDrag().
|
inline |
rPnt.X/rPnt.Y is set to rCenter.X or rCenter.Y! We then only need to rotate rPnt by rCenter.
Definition at line 136 of file svdtrans.hxx.
Referenced by CrookRotateXPoint(), and CrookSlantXPoint().
tools::Long GetLen | ( | const Point & | rPnt | ) |
Determine sector within the cartesian coordinate system.
Calculates the length of (0,0) via a^2 + b^2 = c^2 In order to avoid overflows, we ignore some decimal places.
Definition at line 427 of file svdtrans.cxx.
References FRound(), nx, ny, x, and y.
Referenced by ImpPathForDragAndCreate::getSpecialDragComment(), SdrMeasureObj::ImpCalcGeometrics(), SdrMeasureObj::NbcRotate(), and SdrMeasureObj::TakeRepresentation().
SVXCORE_DLLPUBLIC FrPair GetMapFactor | ( | MapUnit | eS, |
MapUnit | eD | ||
) |
Definition at line 612 of file svdtrans.cxx.
References GetInchOrMM(), o3tl::invalid, IsInch(), MapToO3tlLength(), toPair(), FrPair::X(), and FrPair::Y().
Referenced by sdr::properties::DefaultProperties::DefaultProperties(), SdrExchangeView::ImpPasteObject(), SdrExchangeView::Paste(), and SdrMeasureObj::TakeRepresentation().
Definition at line 629 of file svdtrans.cxx.
References FieldToO3tlLength(), o3tl::in, o3tl::invalid, IsInch(), o3tl::mm, and toPair().
|
inline |
Definition at line 260 of file svdtrans.hxx.
Referenced by GetMapFactor().
|
inline |
Definition at line 270 of file svdtrans.hxx.
|
inline |
Definition at line 256 of file svdtrans.hxx.
Referenced by svx::IMPL_LINK(), svx::ExtrusionDepthWindow::implFillStrings(), and svx::ExtrusionDepthWindow::implSetDepth().
|
inline |
Definition at line 265 of file svdtrans.hxx.
void MirrorPoint | ( | Point & | rPnt, |
const Point & | rRef1, | ||
const Point & | rRef2 | ||
) |
Definition at line 105 of file svdtrans.cxx.
References a, F_PI18000, o3tl::strong_int< UNDERLYING_TYPE, PHANTOM_TYPE >::get(), GetAngle(), Point, and RotatePoint().
Referenced by SvxCustomShape::getPosition(), SdrObjGroup::Mirror(), SdrGluePoint::Mirror(), MirrorXPoly(), SdrObjGroup::NbcMirror(), SdrMeasureObj::NbcMirror(), SdrCircObj::NbcMirror(), SdrEdgeObj::NbcMirror(), SdrTextObj::NbcMirror(), and SdrObjCustomShape::TRGetBaseGeometry().
Definition at line 139 of file svdtrans.cxx.
References XPolygon::GetPointCount(), i, MirrorPoint(), and nCount.
Referenced by SdrEdgeObj::NbcMirror().
|
inline |
Definition at line 52 of file svdtrans.hxx.
References Size::Height(), tools::Polygon::Move(), and Size::Width().
Referenced by SdrCaptionObj::NbcMove().
Definition at line 33 of file svdtrans.cxx.
References Size::Height(), XPolygon::Move(), and Size::Width().
Referenced by SdrEdgeObj::NbcMove().
Definition at line 402 of file svdtrans.cxx.
Referenced by SdrDragShear::GetSdrDragComment(), SdrDragRotate::MoveSdrDrag(), SdrDragShear::MoveSdrDrag(), SdrDragCrook::MoveSdrDrag(), and Poly2Rect().
SVXCORE_DLLPUBLIC Degree100 NormAngle36000 | ( | Degree100 | a | ) |
Normalize angle to -180.00..179.99.
Definition at line 409 of file svdtrans.cxx.
References a, and o3tl::strong_int< UNDERLYING_TYPE, PHANTOM_TYPE >::get().
Referenced by SdrCircObj::applySpecialDrag(), SdrDragMirror::BeginSdrDrag(), SdrGluePoint::EscAngleToDir(), GetAngleSector(), SdrHdl::GetPointer(), SdrDragRotate::GetSdrDragComment(), SdrMeasureObj::ImpCalcGeometrics(), SdrDragMirror::ImpCheckSide(), SdrDragMovHdl::MoveSdrDrag(), SdrDragRotate::MoveSdrDrag(), SdrDragShear::MoveSdrDrag(), E3dDragRotate::MoveSdrDrag(), SdrDragCrook::MoveSdrDrag(), SdrCircObj::NbcMirror(), SdrTextObj::NbcMirror(), SdrCircObj::NbcResize(), SdrTextObj::NbcResize(), SdrTextObj::NbcRotate(), svx::sidebar::PosSizePropertyPanel::NotifyItemUpdate(), Poly2Rect(), SdrCircObj::SdrCircObj(), SdrGluePoint::SetAlignAngle(), svx::DialControl::SetRotation(), SdrPathObj::TRSetBaseGeometry(), SdrObjCustomShape::TRSetBaseGeometry(), and SdrTextObj::TRSetBaseGeometry().
void OrthoDistance4 | ( | const Point & | rPt0, |
Point & | rPt, | ||
bool | bBigOrtho | ||
) |
Definition at line 547 of file svdtrans.cxx.
Referenced by SdrCreateView::MovCreateObj(), and SdrDragObjOwn::MoveSdrDrag().
void OrthoDistance8 | ( | const Point & | rPt0, |
Point & | rPt, | ||
bool | bBigOrtho | ||
) |
Definition at line 531 of file svdtrans.cxx.
Referenced by SdrCreateView::MovCreateObj(), SdrDragMovHdl::MoveSdrDrag(), SdrDragDistort::MoveSdrDrag(), SdrDragMove::MoveSdrDrag(), and SdrDragObjOwn::MoveSdrDrag().
void Poly2Rect | ( | const tools::Polygon & | rPol, |
tools::Rectangle & | rRect, | ||
GeoStat & | rGeo | ||
) |
Definition at line 489 of file svdtrans.cxx.
References GetAngle(), GeoStat::mfCosRotationAngle, GeoStat::mfSinRotationAngle, NormAngle18000(), NormAngle36000(), GeoStat::nRotationAngle, GeoStat::nShearAngle, Point, GeoStat::RecalcSinCos(), GeoStat::RecalcTan(), RotatePoint(), and SDRMAXSHEAR().
Referenced by SvxCustomShape::getPosition(), SdrTextObj::NbcMirror(), SdrTextObj::NbcResize(), SdrTextObj::NbcShear(), and SdrObjCustomShape::TRGetBaseGeometry().
tools::Polygon Rect2Poly | ( | const tools::Rectangle & | rRect, |
const GeoStat & | rGeo | ||
) |
Definition at line 476 of file svdtrans.cxx.
References tools::Rectangle::BottomLeft(), tools::Rectangle::BottomRight(), GeoStat::mfCosRotationAngle, GeoStat::mfSinRotationAngle, GeoStat::mfTanShearAngle, GeoStat::nRotationAngle, GeoStat::nShearAngle, RotatePoly(), ShearPoly(), tools::Rectangle::TopLeft(), and tools::Rectangle::TopRight().
Referenced by SvxCustomShape::getPosition(), SdrTextObj::NbcMirror(), SdrTextObj::NbcResize(), SdrTextObj::NbcShear(), and SdrObjCustomShape::TRGetBaseGeometry().
|
inline |
Definition at line 107 of file svdtrans.hxx.
References FRound(), and Fraction::IsValid().
Referenced by SdrDragCrook::applyCurrentTransformationToSdrObject(), SdrDragCrook::EndSdrDrag(), ImpResize(), SdrDragCrook::MovAllPoints(), SdrDragCrook::MovCrookPoint(), SdrObjGroup::NbcResize(), SdrMeasureObj::NbcResize(), SdrTextObj::NbcResize(), SdrObjGroup::Resize(), ResizePoly(), and ResizeXPoly().
void ResizePoly | ( | tools::Polygon & | rPoly, |
const Point & | rRef, | ||
const Fraction & | xFact, | ||
const Fraction & | yFact | ||
) |
Definition at line 65 of file svdtrans.cxx.
References tools::Polygon::GetSize(), i, nCount, and ResizePoint().
Referenced by SdrCaptionObj::NbcResize().
SVXCORE_DLLPUBLIC void ResizeRect | ( | tools::Rectangle & | rRect, |
const Point & | rRef, | ||
const Fraction & | xFact, | ||
const Fraction & | yFact | ||
) |
Definition at line 38 of file svdtrans.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustRight(), tools::Rectangle::Bottom(), FRound(), Fraction::IsValid(), tools::Rectangle::Justify(), tools::Rectangle::Left(), tools::Rectangle::Right(), SAL_WARN, tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), and tools::Rectangle::Top().
Referenced by SdrObjGroup::NbcResize(), E3dScene::NbcResize(), sdr::table::SdrTableObj::NbcResize(), SdrTextObj::NbcResize(), SdrObject::NbcResize(), SdrExchangeView::Paste(), and SdrObjGroup::Resize().
void ResizeXPoly | ( | XPolygon & | rPoly, |
const Point & | rRef, | ||
const Fraction & | xFact, | ||
const Fraction & | yFact | ||
) |
Definition at line 73 of file svdtrans.cxx.
References XPolygon::GetPointCount(), i, nCount, and ResizePoint().
Referenced by SdrEdgeObj::NbcResize().
|
inline |
Definition at line 115 of file svdtrans.hxx.
References FRound().
Referenced by SdrRectObj::AddToHdlList(), SdrCircObj::AddToHdlList(), SdrTextObj::AddToHdlList(), SdrObjCustomShape::AdjustTextFrameWidthAndHeight(), SdrTextObj::AdjustTextFrameWidthAndHeight(), SdrRectObj::applySpecialDrag(), SdrCircObj::applySpecialDrag(), SdrTextObj::applySpecialDrag(), EnhancedCustomShape3d::Create3DObject(), CrookRotateXPoint(), CrookSlantXPoint(), SdrObjCustomShape::DragResizeCustomShape(), SvxGrafAttrHelper::ExecuteGrafAttr(), SdrRectObj::GetCornerGluePoint(), EnhancedCustomShape2d::GetHandlePosition(), SvxIMapInfo::GetHitIMapObject(), SdrTextObj::GetSnapPoint(), SdrRectObj::getSpecialDragComment(), SdrRectObj::GetVertexGluePoint(), SdrObjCustomShape::GetVertexGluePoint(), SdrMeasureObj::ImpCalcGeometrics(), SdrObjCustomShape::ImpCheckCustomGluePointsAreAdded(), SdrTextObj::ImpDragCalcRect(), SdrMeasureObj::ImpEvalDrag(), ImpRotate(), MirrorPoint(), SdrDragMovHdl::MoveSdrDrag(), SdrCircObj::NbcMirror(), SdrObjGroup::NbcRotate(), SdrMeasureObj::NbcRotate(), SdrEdgeObj::NbcRotate(), SdrTextObj::NbcRotate(), Poly2Rect(), SdrObjGroup::Rotate(), SdrGluePoint::Rotate(), RotatePoly(), RotateXPoly(), EnhancedCustomShape2d::SetHandleControllerPosition(), SdrObjCustomShape::TakeTextAnchorRect(), SdrTextObj::TakeTextAnchorRect(), SdrObjCustomShape::TakeTextEditArea(), SdrTextObj::TakeTextEditArea(), SdrObjCustomShape::TakeTextRect(), SdrTextObj::TakeTextRect(), SdrPathObj::TakeUnrotatedSnapRect(), SdrMeasureObj::TakeUnrotatedSnapRect(), SdrRectObj::TakeUnrotatedSnapRect(), and SdrCircObj::TakeUnrotatedSnapRect().
SVXCORE_DLLPUBLIC void RotatePoly | ( | tools::Polygon & | rPoly, |
const Point & | rRef, | ||
double | sn, | ||
double | cs | ||
) |
Definition at line 81 of file svdtrans.cxx.
References tools::Polygon::GetSize(), i, nCount, and RotatePoint().
Referenced by SvxGrafAttrHelper::ExecuteGrafAttr(), SdrTextObj::RecalcSnapRect(), Rect2Poly(), SdrTextObj::TakeContour(), and SdrTextObj::TakeXorPoly().
Definition at line 89 of file svdtrans.cxx.
References XPolygon::GetPointCount(), i, nCount, and RotatePoint().
Referenced by SdrRectObj::ImpCalcXPoly(), SdrDragCrook::MovAllPoints(), SdrEdgeObj::NbcRotate(), RotateXPoly(), and SdrPathObj::TakeUnrotatedSnapRect().
void RotateXPoly | ( | XPolyPolygon & | rPoly, |
const Point & | rRef, | ||
double | sn, | ||
double | cs | ||
) |
Definition at line 97 of file svdtrans.cxx.
References XPolyPolygon::Count(), i, nCount, and RotateXPoly().
constexpr Degree100 SDRMAXSHEAR | ( | 8900 | ) |
Referenced by SdrEditView::GetMarkedObjShear(), Poly2Rect(), and SdrEditView::SetGeoAttrToMarked().
|
inline |
Definition at line 123 of file svdtrans.hxx.
References FRound().
Referenced by SdrRectObj::AddToHdlList(), SdrCircObj::AddToHdlList(), SdrTextObj::AddToHdlList(), SdrCircObj::applySpecialDrag(), SdrTextObj::applySpecialDrag(), SdrObjCustomShape::DragResizeCustomShape(), SvxGrafAttrHelper::ExecuteGrafAttr(), SdrRectObj::GetCornerGluePoint(), EnhancedCustomShape2d::GetHandlePosition(), SvxIMapInfo::GetHitIMapObject(), SdrTextObj::GetSnapPoint(), SdrRectObj::GetVertexGluePoint(), SdrObjCustomShape::GetVertexGluePoint(), SdrObjCustomShape::ImpCheckCustomGluePointsAreAdded(), SdrTextObj::ImpDragCalcRect(), SdrCircObj::NbcMirror(), SdrObjGroup::NbcShear(), SdrMeasureObj::NbcShear(), SdrEdgeObj::NbcShear(), SdrTextObj::NbcShear(), EnhancedCustomShape2d::SetHandleControllerPosition(), SdrObjGroup::Shear(), SdrGluePoint::Shear(), ShearPoly(), and ShearXPoly().
SVXCORE_DLLPUBLIC void ShearPoly | ( | tools::Polygon & | rPoly, |
const Point & | rRef, | ||
double | tn | ||
) |
Definition at line 147 of file svdtrans.cxx.
References tools::Polygon::GetSize(), i, nCount, and ShearPoint().
Referenced by SvxGrafAttrHelper::ExecuteGrafAttr(), SdrTextObj::RecalcSnapRect(), Rect2Poly(), and SdrTextObj::TakeXorPoly().
Definition at line 155 of file svdtrans.cxx.
References XPolygon::GetPointCount(), i, nCount, and ShearPoint().
Referenced by SdrRectObj::ImpCalcXPoly(), and SdrEdgeObj::NbcShear().