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 67 of file svdglue.hxx.
|
inline |
Definition at line 79 of file svdglue.hxx.
|
inline |
Definition at line 87 of file svdglue.hxx.
|
static |
Definition at line 177 of file svdglue.cxx.
References BOTTOM, LEFT, NormAngle36000(), RIGHT, and TOP.
|
static |
Definition at line 48 of file svdglue.cxx.
References aPos, bNoPercent, tools::Rectangle::Bottom(), bReallyAbsolute, tools::Rectangle::Center(), GetHorzAlign(), SdrObject::GetSnapRect(), GetVertAlign(), HORZ_LEFT, HORZ_RIGHT, tools::Rectangle::Left(), tools::Rectangle::Right(), Point::setX(), Point::setY(), tools::Rectangle::Top(), VERT_BOTTOM, VERT_TOP, Point::X(), and Point::Y().
Referenced by SdrEdgeObj::CheckNodeConnection(), sdr::contact::ViewContactOfSdrObj::createGluePointPrimitive2DSequence(), SdrMarkView::dumpGluePointsToJSON(), SdrEdgeObj::ImpFindConnector(), ImplConnectMarkerOverlay::ImplConnectMarkerOverlay(), ImpSetAlign(), ImpSetPercent(), SdrGlueEditView::ImpTransformMarkedGluePoints(), Invalidate(), IsHit(), SdrMarkView::MarkGluePoints(), Mirror(), Rotate(), SdrMarkView::SetMarkHandles(), SetReallyAbsolute(), Shear(), and SdrObjConnection::TakeGluePoint().
|
inline |
Definition at line 141 of file svdglue.hxx.
Degree100 SdrGluePoint::GetAlignAngle | ( | ) | const |
Definition at line 129 of file svdglue.cxx.
References HORZ_CENTER, HORZ_LEFT, HORZ_RIGHT, nAlign, VERT_BOTTOM, VERT_CENTER, and VERT_TOP.
|
inline |
Definition at line 104 of file svdglue.hxx.
Referenced by SdrEdgeObj::ImpCalcEdgeTrack(), ImpGetEscDir(), and ImpSetEscDir().
|
inline |
Definition at line 149 of file svdglue.hxx.
Referenced by GetAbsolutePos(), ImpGetAlign(), and SetAbsolutePos().
|
inline |
Definition at line 112 of file svdglue.hxx.
References nId.
Referenced by SdrDragView::BegInsGluePoint(), SdrEdgeObj::ImpFindConnector(), SdrGluePointList::Insert(), and SdrMarkView::MarkGluePoints().
|
inline |
Definition at line 96 of file svdglue.hxx.
Referenced by SdrEdgeObj::ImpCalcEdgeTrack(), SdrObjCustomShape::ImpCheckCustomGluePointsAreAdded(), Invalidate(), IsHit(), Mirror(), Rotate(), and Shear().
|
inline |
Definition at line 158 of file svdglue.hxx.
Referenced by GetAbsolutePos(), ImpGetAlign(), and SetAbsolutePos().
void SdrGluePoint::Invalidate | ( | vcl::Window & | rWin, |
const SdrObject * | pObj | ||
) | const |
Definition at line 255 of file svdglue.cxx.
References aGlueHalfSize, vcl::Window::EnableMapMode(), GetAbsolutePos(), GetPos(), Size::Height(), vcl::Window::Invalidate(), comphelper::LibreOfficeKit::isActive(), vcl::Window::IsMapModeEnabled(), vcl::Window::LogicToPixel(), Size::Width(), Point::X(), and Point::Y().
bool SdrGluePoint::IsHit | ( | const Point & | rPnt, |
const OutputDevice & | rOut, | ||
const SdrObject * | pObj | ||
) | const |
Definition at line 274 of file svdglue.cxx.
References aGlueHalfSize, tools::Rectangle::Contains(), GetAbsolutePos(), GetPos(), Size::Height(), OutputDevice::PixelToLogic(), Size::Width(), Point::X(), and Point::Y().
|
inline |
Definition at line 120 of file svdglue.hxx.
Referenced by ImpGetPercent().
|
inline |
Definition at line 132 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 210 of file svdglue.cxx.
References BOTTOM, EscAngleToDir(), EscDirToAngle(), GetAbsolutePos(), GetAlignAngle(), GetPos(), HORZ_CENTER, LEFT, MirrorPoint(), nAlign, nEscDir, 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 190 of file svdglue.cxx.
References BOTTOM, EscAngleToDir(), EscDirToAngle(), GetAbsolutePos(), GetAlignAngle(), GetPos(), HORZ_CENTER, LEFT, nAlign, nEscDir, RIGHT, RotatePoint(), SetAbsolutePos(), SetAlignAngle(), SetPos(), SMART, TOP, and VERT_CENTER.
Definition at line 89 of file svdglue.cxx.
References aPos, bNoPercent, tools::Rectangle::Bottom(), bReallyAbsolute, tools::Rectangle::Center(), GetHorzAlign(), SdrObject::GetSnapRect(), GetVertAlign(), HORZ_LEFT, HORZ_RIGHT, tools::Rectangle::Left(), tools::Rectangle::Right(), Point::setX(), Point::setY(), tools::Rectangle::Top(), VERT_BOTTOM, VERT_TOP, Point::X(), and Point::Y().
Referenced by SdrDragView::BegInsGluePoint(), ImpSetAlign(), ImpSetPercent(), SdrGlueEditView::ImpTransformMarkedGluePoints(), Mirror(), Rotate(), SetReallyAbsolute(), and Shear().
|
inline |
Definition at line 145 of file svdglue.hxx.
Referenced by EnhancedCustomShape2d::ApplyGluePoints().
void SdrGluePoint::SetAlignAngle | ( | Degree100 | nAngle | ) |
Definition at line 152 of file svdglue.cxx.
References HORZ_CENTER, HORZ_LEFT, HORZ_RIGHT, nAlign, NormAngle36000(), VERT_BOTTOM, VERT_CENTER, and VERT_TOP.
|
inline |
Definition at line 108 of file svdglue.hxx.
Referenced by EnhancedCustomShape2d::ApplyGluePoints(), and ImpSetEscDir().
|
inline |
|
inline |
Definition at line 116 of file svdglue.hxx.
References nId.
Referenced by SdrGluePointList::Insert().
|
inline |
Definition at line 124 of file svdglue.hxx.
Referenced by EnhancedCustomShape2d::ApplyGluePoints(), SdrObject::GetCornerGluePoint(), SdrRectObj::GetCornerGluePoint(), SdrObject::GetVertexGluePoint(), SdrObjCustomShape::GetVertexGluePoint(), SdrEdgeObj::GetVertexGluePoint(), SdrRectObj::GetVertexGluePoint(), and ImpSetPercent().
|
inline |
Definition at line 100 of file svdglue.hxx.
Referenced by EnhancedCustomShape2d::ApplyGluePoints(), SdrObjCustomShape::ImpCheckCustomGluePointsAreAdded(), Mirror(), Rotate(), Shear(), and SdrObjConnection::TakeGluePoint().
void SdrGluePoint::SetReallyAbsolute | ( | bool | bOn, |
const SdrObject & | rObj | ||
) |
Definition at line 30 of file svdglue.cxx.
References aPos, bReallyAbsolute, GetAbsolutePos(), and SetAbsolutePos().
|
inline |
Definition at line 136 of file svdglue.hxx.
Referenced by SdrObjCustomShape::ImpCheckCustomGluePointsAreAdded().
|
inline |
Definition at line 248 of file svdglue.cxx.
References GetAbsolutePos(), GetPos(), SetAbsolutePos(), SetPos(), and ShearPoint().
|
private |
Definition at line 71 of file svdglue.hxx.
Referenced by GetAbsolutePos(), SetAbsolutePos(), and SetReallyAbsolute().
|
private |
Definition at line 75 of file svdglue.hxx.
Referenced by GetAbsolutePos(), and SetAbsolutePos().
|
private |
Definition at line 76 of file svdglue.hxx.
Referenced by GetAbsolutePos(), SetAbsolutePos(), and SetReallyAbsolute().
|
private |
Definition at line 77 of file svdglue.hxx.
|
private |
Definition at line 74 of file svdglue.hxx.
Referenced by GetAlignAngle(), Mirror(), Rotate(), and SetAlignAngle().
|
private |
Definition at line 72 of file svdglue.hxx.
|
private |
Definition at line 73 of file svdglue.hxx.