LibreOffice Module svx (master) 1
|
#include <svdhlpln.hxx>
Public Member Functions | |
SdrHelpLine (SdrHelpLineKind eNewKind=SdrHelpLineKind::Point) | |
SdrHelpLine (SdrHelpLineKind eNewKind, const Point &rNewPos) | |
bool | operator== (const SdrHelpLine &rCmp) const |
bool | operator!= (const SdrHelpLine &rCmp) const |
void | SetKind (SdrHelpLineKind eNewKind) |
SdrHelpLineKind | GetKind () const |
void | SetPos (const Point &rPnt) |
const Point & | GetPos () const |
PointerStyle | GetPointer () const |
bool | IsHit (const Point &rPnt, sal_uInt16 nTolLog, const OutputDevice &rOut) const |
tools::Rectangle | GetBoundRect (const OutputDevice &rOut) const |
Private Attributes | |
Point | aPos |
SdrHelpLineKind | eKind |
Definition at line 38 of file svdhlpln.hxx.
|
inlineexplicit |
Definition at line 43 of file svdhlpln.hxx.
|
inline |
Definition at line 44 of file svdhlpln.hxx.
tools::Rectangle SdrHelpLine::GetBoundRect | ( | const OutputDevice & | rOut | ) | const |
Definition at line 55 of file svdhlpln.cxx.
References tools::Rectangle::AdjustBottom(), tools::Rectangle::AdjustLeft(), tools::Rectangle::AdjustRight(), tools::Rectangle::AdjustTop(), aPos, eKind, OutputDevice::GetMapMode(), MapMode::GetOrigin(), OutputDevice::GetOutputSize(), Size::Height(), Horizontal, OutputDevice::PixelToLogic(), Point, SDRHELPLINE_POINT_PIXELSIZE, tools::Rectangle::SetBottom(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), tools::Rectangle::SetTop(), Vertical, Size::Width(), Point::X(), and Point::Y().
Referenced by SdrPageView::ImpInvalidateHelpLineArea().
|
inline |
Definition at line 49 of file svdhlpln.hxx.
References eKind.
Referenced by SdrSnapView::BegDragHelpLine(), sdr::contact::ViewObjectContactOfPageHelplines::createPrimitive2DSequence(), SdrPageView::SetHelpLine(), and SdrSnapView::SnapPos().
PointerStyle SdrHelpLine::GetPointer | ( | ) | const |
Definition at line 27 of file svdhlpln.cxx.
References eKind, Horizontal, and Vertical.
|
inline |
Definition at line 51 of file svdhlpln.hxx.
References aPos.
Referenced by SdrSnapView::BegDragHelpLine(), sdr::contact::ViewObjectContactOfPageHelplines::createPrimitive2DSequence(), SdrPageView::SetHelpLine(), and SdrSnapView::SnapPos().
bool SdrHelpLine::IsHit | ( | const Point & | rPnt, |
sal_uInt16 | nTolLog, | ||
const OutputDevice & | rOut | ||
) | const |
Definition at line 36 of file svdhlpln.cxx.
References aPos, eKind, Size::Height(), Horizontal, OutputDevice::PixelToLogic(), Point, SDRHELPLINE_POINT_PIXELSIZE, Vertical, Size::Width(), Point::X(), and Point::Y().
|
inline |
Definition at line 46 of file svdhlpln.hxx.
References operator==().
|
inline |
|
inline |
Definition at line 48 of file svdhlpln.hxx.
References eKind.
|
inline |
Definition at line 50 of file svdhlpln.hxx.
References aPos.
Referenced by SdrSnapView::EndDragHelpLine().
|
private |
Definition at line 39 of file svdhlpln.hxx.
Referenced by GetBoundRect(), GetPos(), IsHit(), operator==(), and SetPos().
|
private |
Definition at line 40 of file svdhlpln.hxx.
Referenced by GetBoundRect(), GetKind(), GetPointer(), IsHit(), operator==(), and SetKind().