LibreOffice Module svx (master)
1
|
#include <svdglue.hxx>
Public Member Functions | |
SdrGluePoint () | |
SdrGluePoint (const Point &rNewPos) | |
const Point & | GetPos () const |
void | SetPos (const Point &rNewPos) |
SdrEscapeDirection | GetEscDir () const |
void | SetEscDir (SdrEscapeDirection nNewEsc) |
sal_uInt16 | GetId () const |
void | SetId (sal_uInt16 nNewId) |
bool | IsPercent () const |
void | SetPercent (bool bOn) |
void | SetReallyAbsolute (bool bOn, const SdrObject &rObj) |
bool | IsUserDefined () const |
void | SetUserDefined (bool bNew) |
SdrAlign | GetAlign () const |
void | SetAlign (SdrAlign nAlg) |
SdrAlign | GetHorzAlign () const |
void | SetHorzAlign (SdrAlign nAlg) |
SdrAlign | GetVertAlign () const |
void | SetVertAlign (SdrAlign nAlg) |
bool | IsHit (const Point &rPnt, const OutputDevice &rOut, const SdrObject *pObj) const |
void | Invalidate (vcl::Window &rWin, const SdrObject *pObj) const |
Point | GetAbsolutePos (const SdrObject &rObj) const |
void | SetAbsolutePos (const Point &rNewPos, const SdrObject &rObj) |
Degree100 | GetAlignAngle () const |
void | SetAlignAngle (Degree100 nAngle) |
void | Rotate (const Point &rRef, Degree100 nAngle, double sn, double cs, const SdrObject *pObj) |
void | Mirror (const Point &rRef1, const Point &rRef2, Degree100 nAngle, const SdrObject *pObj) |
void | Shear (const Point &rRef, double tn, bool bVShear, const SdrObject *pObj) |
Static Public Member Functions | |
static Degree100 | EscDirToAngle (SdrEscapeDirection nEsc) |
static SdrEscapeDirection | EscAngleToDir (Degree100 nAngle) |
Private Attributes | |
Point | aPos |
SdrEscapeDirection | nEscDir |
sal_uInt16 | nId |
SdrAlign | nAlign |
bool | bNoPercent:1 |
bool | bReallyAbsolute:1 |
bool | bUserDefined:1 |
Definition at line 69 of file svdglue.hxx.
|
inline |
Definition at line 81 of file svdglue.hxx.
References NONE.
|
inline |
Definition at line 82 of file svdglue.hxx.
References NONE.
|
static |
Definition at line 176 of file svdglue.cxx.
References BOTTOM, LEFT, NormAngle36000(), RIGHT, and TOP.
|
static |
Definition at line 47 of file svdglue.cxx.
References aPos, bNoPercent, bReallyAbsolute, GetHorzAlign(), SdrObject::GetSnapRect(), GetVertAlign(), HORZ_LEFT, HORZ_RIGHT, Point, VERT_BOTTOM, and VERT_TOP.
Referenced by SdrEdgeObj::CheckNodeConnection(), sdr::contact::ViewContactOfSdrObj::createGluePointPrimitive2DSequence(), SdrEdgeObj::ImpFindConnector(), ImpSetAlign(), ImpSetPercent(), SdrGlueEditView::ImpTransformMarkedGluePoints(), Invalidate(), IsHit(), SdrMarkView::MarkGluePoints(), Mirror(), Rotate(), SdrMarkView::SetMarkHandles(), SetReallyAbsolute(), Shear(), and SdrObjConnection::TakeGluePoint().
|
inline |
Definition at line 98 of file svdglue.hxx.
Degree100 SdrGluePoint::GetAlignAngle | ( | ) | const |
Definition at line 128 of file svdglue.cxx.
References HORZ_CENTER, HORZ_LEFT, HORZ_RIGHT, nAlign, VERT_BOTTOM, VERT_CENTER, and VERT_TOP.
|
inline |
Definition at line 85 of file svdglue.hxx.
Referenced by SdrEdgeObj::ImpCalcEdgeTrack(), ImpGetEscDir(), and ImpSetEscDir().
|
inline |
Definition at line 100 of file svdglue.hxx.
Referenced by GetAbsolutePos(), ImpGetAlign(), and SetAbsolutePos().
|
inline |
Definition at line 87 of file svdglue.hxx.
Referenced by SdrDragView::BegInsGluePoint(), SdrEdgeObj::ImpFindConnector(), SdrGluePointList::Insert(), and SdrMarkView::MarkGluePoints().
|
inline |
Definition at line 83 of file svdglue.hxx.
References Point.
Referenced by SdrEdgeObj::ImpCalcEdgeTrack(), SdrObjCustomShape::ImpCheckCustomGluePointsAreAdded(), Invalidate(), IsHit(), Mirror(), Rotate(), and Shear().
|
inline |
Definition at line 102 of file svdglue.hxx.
Referenced by GetAbsolutePos(), ImpGetAlign(), and SetAbsolutePos().
void SdrGluePoint::Invalidate | ( | vcl::Window & | rWin, |
const SdrObject * | pObj | ||
) | const |
Definition at line 254 of file svdglue.cxx.
References aGlueHalfSize, OutputDevice::EnableMapMode(), GetAbsolutePos(), GetPos(), Size::Height(), vcl::Window::Invalidate(), OutputDevice::IsMapModeEnabled(), OutputDevice::LogicToPixel(), Point, and Size::Width().
bool SdrGluePoint::IsHit | ( | const Point & | rPnt, |
const OutputDevice & | rOut, | ||
const SdrObject * | pObj | ||
) | const |
Definition at line 271 of file svdglue.cxx.
References aGlueHalfSize, GetAbsolutePos(), GetPos(), Size::Height(), tools::Rectangle::IsInside(), OutputDevice::PixelToLogic(), Point, and Size::Width().
|
inline |
Definition at line 89 of file svdglue.hxx.
Referenced by ImpGetPercent().
|
inline |
Definition at line 95 of file svdglue.hxx.
Referenced by SdrObjCustomShape::ImpCheckCustomGluePointsAreAdded(), SdrMarkView::MarkGluePoints(), and SdrMarkView::PickGluePoint().
void SdrGluePoint::Mirror | ( | const Point & | rRef1, |
const Point & | rRef2, | ||
Degree100 | nAngle, | ||
const SdrObject * | pObj | ||
) |
Definition at line 209 of file svdglue.cxx.
References BOTTOM, EscAngleToDir(), EscDirToAngle(), GetAbsolutePos(), GetAlignAngle(), GetPos(), HORZ_CENTER, LEFT, MirrorPoint(), nAlign, nEscDir, Point, RIGHT, SetAbsolutePos(), SetAlignAngle(), SetPos(), SMART, TOP, and VERT_CENTER.
void SdrGluePoint::Rotate | ( | const Point & | rRef, |
Degree100 | nAngle, | ||
double | sn, | ||
double | cs, | ||
const SdrObject * | pObj | ||
) |
Definition at line 189 of file svdglue.cxx.
References BOTTOM, EscAngleToDir(), EscDirToAngle(), GetAbsolutePos(), GetAlignAngle(), GetPos(), HORZ_CENTER, LEFT, nAlign, nEscDir, Point, RIGHT, RotatePoint(), SetAbsolutePos(), SetAlignAngle(), SetPos(), SMART, TOP, and VERT_CENTER.
Definition at line 88 of file svdglue.cxx.
References aPos, bNoPercent, bReallyAbsolute, GetHorzAlign(), SdrObject::GetSnapRect(), GetVertAlign(), HORZ_LEFT, HORZ_RIGHT, Point, VERT_BOTTOM, and VERT_TOP.
Referenced by SdrDragView::BegInsGluePoint(), ImpSetAlign(), ImpSetPercent(), SdrGlueEditView::ImpTransformMarkedGluePoints(), Mirror(), Rotate(), SetReallyAbsolute(), and Shear().
Definition at line 99 of file svdglue.hxx.
Referenced by EnhancedCustomShape2d::ApplyGluePoints().
Definition at line 151 of file svdglue.cxx.
References HORZ_CENTER, HORZ_LEFT, HORZ_RIGHT, nAlign, NormAngle36000(), VERT_BOTTOM, VERT_CENTER, and VERT_TOP.
|
inline |
Definition at line 86 of file svdglue.hxx.
Referenced by EnhancedCustomShape2d::ApplyGluePoints(), and ImpSetEscDir().
Definition at line 101 of file svdglue.hxx.
References assert(), and NONE.
Referenced by ImpSetAlign().
|
inline |
Definition at line 88 of file svdglue.hxx.
Referenced by SdrGluePointList::Insert().
|
inline |
Definition at line 90 of file svdglue.hxx.
Referenced by EnhancedCustomShape2d::ApplyGluePoints(), SdrRectObj::GetCornerGluePoint(), SdrObject::GetCornerGluePoint(), SdrRectObj::GetVertexGluePoint(), SdrObjCustomShape::GetVertexGluePoint(), SdrEdgeObj::GetVertexGluePoint(), SdrObject::GetVertexGluePoint(), and ImpSetPercent().
Definition at line 84 of file svdglue.hxx.
Referenced by EnhancedCustomShape2d::ApplyGluePoints(), SdrObjCustomShape::ImpCheckCustomGluePointsAreAdded(), Mirror(), Rotate(), Shear(), and SdrObjConnection::TakeGluePoint().
Definition at line 29 of file svdglue.cxx.
References aPos, bReallyAbsolute, GetAbsolutePos(), Point, and SetAbsolutePos().
|
inline |
Definition at line 96 of file svdglue.hxx.
Referenced by SdrObjCustomShape::ImpCheckCustomGluePointsAreAdded().
Definition at line 103 of file svdglue.hxx.
References assert(), and NONE.
Referenced by ImpSetAlign().
Definition at line 247 of file svdglue.cxx.
References GetAbsolutePos(), GetPos(), Point, SetAbsolutePos(), SetPos(), and ShearPoint().
|
private |
Definition at line 73 of file svdglue.hxx.
Referenced by GetAbsolutePos(), SetAbsolutePos(), and SetReallyAbsolute().
|
private |
Definition at line 77 of file svdglue.hxx.
Referenced by GetAbsolutePos(), and SetAbsolutePos().
|
private |
Definition at line 78 of file svdglue.hxx.
Referenced by GetAbsolutePos(), SetAbsolutePos(), and SetReallyAbsolute().
|
private |
Definition at line 79 of file svdglue.hxx.
|
private |
Definition at line 76 of file svdglue.hxx.
Referenced by GetAlignAngle(), Mirror(), Rotate(), and SetAlignAngle().
|
private |
Definition at line 74 of file svdglue.hxx.
|
private |
Definition at line 75 of file svdglue.hxx.