LibreOffice Module svx (master)  1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Attributes | Friends | List of all members
SdrHdl Class Reference

#include <svdhdl.hxx>

Inheritance diagram for SdrHdl:
[legend]
Collaboration diagram for SdrHdl:
[legend]

Public Member Functions

 SdrHdl ()
 
 SdrHdl (const Point &rPnt, SdrHdlKind eNewKind)
 
virtual ~SdrHdl ()
 
const sdr::overlay::OverlayObjectListgetOverlayObjectList () const
 
void SetHdlList (SdrHdlList *pList)
 
SdrHdlKind GetKind () const
 
void Touch ()
 
const PointGetPos () const
 
void SetPos (const Point &rPnt)
 
SdrPageViewGetPageView () const
 
void SetPageView (SdrPageView *pNewPV)
 
SdrObjectGetObj () const
 
void SetObj (SdrObject *pNewObj)
 
bool IsSelected () const
 
void SetSelected (bool bJa=true)
 
void Set1PixMore (bool bJa=true)
 
void SetRotationAngle (long n)
 
bool IsCornerHdl () const
 
bool IsVertexHdl () const
 
void SetObjHdlNum (sal_uInt32 nNum)
 
sal_uInt32 GetObjHdlNum () const
 
void SetPolyNum (sal_uInt32 nNum)
 
sal_uInt32 GetPolyNum () const
 
void SetPointNum (sal_uInt32 nNum)
 
sal_uInt32 GetPointNum () const
 
void SetPlusHdl (bool bOn)
 
bool IsPlusHdl () const
 
void SetSourceHdlNum (sal_uInt32 nNum)
 
sal_uInt32 GetSourceHdlNum () const
 
virtual PointerStyle GetPointer () const
 
bool IsHdlHit (const Point &rPnt) const
 
virtual bool IsFocusHdl () const
 
void SetMoveOutside (bool bMoveOutside)
 
virtual void onMouseEnter (const MouseEvent &rMEvt)
 is called when the mouse enters the area of this handle. More...
 
virtual void onHelpRequest ()
 is called when help is requested for the area of this handle More...
 
virtual void onMouseLeave ()
 is called when the mouse leaves the area of this handle. More...
 

Static Public Member Functions

static BitmapEx createGluePointBitmap ()
 

Protected Member Functions

virtual void CreateB2dIAObject ()
 
void GetRidOfIAObject ()
 
std::unique_ptr< sdr::overlay::OverlayObjectCreateOverlayObject (const basegfx::B2DPoint &rPos, BitmapColorIndex eColIndex, BitmapMarkerKind eKindOfMarker, Point aMoveOutsideOffset=Point())
 
void insertNewlyCreatedOverlayObjectForSdrHdl (std::unique_ptr< sdr::overlay::OverlayObject > pOverlayObject, const sdr::contact::ObjectContact &rObjectContact, sdr::overlay::OverlayManager &rOverlayManager)
 

Static Protected Member Functions

static BitmapMarkerKind GetNextBigger (BitmapMarkerKind eKnd)
 

Protected Attributes

SdrObjectpObj
 
SdrPageViewpPV
 
SdrHdlListpHdlList
 
sdr::overlay::OverlayObjectList maOverlayGroup
 
Point aPos
 
SdrHdlKind eKind
 
long nRotationAngle
 
sal_uInt32 nObjHdlNum
 
sal_uInt32 nPolyNum
 
sal_uInt32 nPPntNum
 
sal_uInt32 nSourceHdlNum
 
bool bSelect: 1
 
bool b1PixMore: 1
 
bool bPlusHdl: 1
 
bool mbMoveOutside
 

Private Attributes

bool mbMouseOver
 

Friends

class SdrMarkView
 
class SdrHdlList
 

Detailed Description

Definition at line 130 of file svdhdl.hxx.

Constructor & Destructor Documentation

SdrHdl::SdrHdl ( )

Definition at line 268 of file svdhdl.cxx.

References Move.

SdrHdl::SdrHdl ( const Point rPnt,
SdrHdlKind  eNewKind 
)
explicit

Definition at line 286 of file svdhdl.cxx.

SdrHdl::~SdrHdl ( )
virtual

Definition at line 305 of file svdhdl.cxx.

References GetRidOfIAObject().

Member Function Documentation

void SdrHdl::CreateB2dIAObject ( )
protectedvirtual

Reimplemented in SdrCropViewHdl, SdrCropHdl, ImpTextframeHdl, ImpMeasureHdl, ImpEdgeHdl, E3dVolumeMarker, SdrHdlBezWgt, SdrHdlLine, SdrHdlGradient, SdrHdlColor, sdr::table::TableBorderHdl, and sdr::table::TableEdgeHdl.

Definition at line 404 of file svdhdl.cxx.

References Point::AdjustX(), Point::AdjustY(), Anchor, Anchor_TR, AnchorTR, aPos, SdrMarkView::areMarkHandlesHidden(), b1PixMore, BezierWeight, bSelect, Circ_7x7, Circ_9x9, Circle, COL_BLACK(), COL_CYAN(), COL_LIGHTCYAN(), COL_LIGHTGREEN(), COL_LIGHTRED(), COL_RED(), COL_YELLOW(), CreateOverlayObject(), Crosshair, CustomShape1, Customshape_7x7, Customshape_9x9, Cyan, eKind, Elli_7x9, Elli_9x7, OutputDevice::GetDPIScaleFactor(), SdrPageWindow::GetObjectContact(), SdrPaintWindow::GetOutputDevice(), SdrPageWindow::GetOverlayManager(), SdrPageView::GetPageWindow(), SdrPageWindow::GetPaintWindow(), GetRidOfIAObject(), SdrPaintView::GetSdrPageView(), SdrHdlList::GetView(), Glue, Size::Height(), insertNewlyCreatedOverlayObjectForSdrHdl(), SdrHdlList::IsMoveOutside(), SdrHdlList::IsRotateShear(), Left, LightCyan, LightGreen, LightRed, Lower, LowerLeft, LowerRight, mbMoveOutside, Move, SdrPaintWindow::OutputToWindow(), SdrPageView::PageWindowCount(), pHdlList, OutputDevice::PixelToLogic(), pObj, Poly, Rect_11x11, Rect_7x7, Rect_9x9, Red, Ref1, Ref2, Right, Upper, UpperLeft, UpperRight, User, Size::Width(), Point::X(), Point::Y(), and Yellow.

Referenced by SdrHdlBezWgt::CreateB2dIAObject(), ImpEdgeHdl::CreateB2dIAObject(), and Touch().

BitmapEx SdrHdl::createGluePointBitmap ( )
static
std::unique_ptr< sdr::overlay::OverlayObject > SdrHdl::CreateOverlayObject ( const basegfx::B2DPoint rPos,
BitmapColorIndex  eColIndex,
BitmapMarkerKind  eKindOfMarker,
Point  aMoveOutsideOffset = Point() 
)
protected
SdrHdlKind SdrHdl::GetKind ( ) const
inline
BitmapMarkerKind SdrHdl::GetNextBigger ( BitmapMarkerKind  eKnd)
staticprotected
SdrObject* SdrHdl::GetObj ( ) const
inline
sal_uInt32 SdrHdl::GetObjHdlNum ( ) const
inline
const sdr::overlay::OverlayObjectList& SdrHdl::getOverlayObjectList ( ) const
inline

Definition at line 191 of file svdhdl.hxx.

Referenced by SdrDragGradient::BeginSdrDrag().

SdrPageView* SdrHdl::GetPageView ( ) const
inline

Definition at line 200 of file svdhdl.hxx.

Referenced by SdrDragMethod::GetDragPV(), and SdrMarkView::MarkPoints().

PointerStyle SdrHdl::GetPointer ( ) const
virtual
sal_uInt32 SdrHdl::GetPointNum ( ) const
inline
sal_uInt32 SdrHdl::GetPolyNum ( ) const
inline
const Point& SdrHdl::GetPos ( ) const
inline
void SdrHdl::GetRidOfIAObject ( )
protected
sal_uInt32 SdrHdl::GetSourceHdlNum ( ) const
inline
void SdrHdl::insertNewlyCreatedOverlayObjectForSdrHdl ( std::unique_ptr< sdr::overlay::OverlayObject pOverlayObject,
const sdr::contact::ObjectContact rObjectContact,
sdr::overlay::OverlayManager rOverlayManager 
)
protected
bool SdrHdl::IsCornerHdl ( ) const
inline

Definition at line 212 of file svdhdl.hxx.

References LowerLeft, LowerRight, UpperLeft, and UpperRight.

Referenced by E3dView::BegDragObj(), and SdrView::GetPreferredPointer().

bool SdrHdl::IsFocusHdl ( ) const
virtual
bool SdrHdl::IsHdlHit ( const Point rPnt) const
bool SdrHdl::IsPlusHdl ( ) const
inline
bool SdrHdl::IsSelected ( ) const
inline
bool SdrHdl::IsVertexHdl ( ) const
inline

Definition at line 213 of file svdhdl.hxx.

References Left, Lower, Right, and Upper.

Referenced by E3dView::BegDragObj(), and SdrView::GetPreferredPointer().

void SdrHdl::onHelpRequest ( )
virtual

is called when help is requested for the area of this handle

Definition at line 1067 of file svdhdl.cxx.

Referenced by SdrMarkView::RequestHelp().

void SdrHdl::onMouseEnter ( const MouseEvent rMEvt)
virtual

is called when the mouse enters the area of this handle.

If the handle changes his visualisation during mouse over it must override this method and call Touch().

Definition at line 1063 of file svdhdl.cxx.

Referenced by SdrMarkView::MouseMove().

void SdrHdl::onMouseLeave ( )
virtual

is called when the mouse leaves the area of this handle.

If the handle changes his visualisation during mouse over it must override this method and call Touch().

Definition at line 1071 of file svdhdl.cxx.

Referenced by SdrMarkView::MouseMove().

void SdrHdl::Set1PixMore ( bool  bJa = true)

Definition at line 310 of file svdhdl.cxx.

References b1PixMore, and Touch().

void SdrHdl::SetHdlList ( SdrHdlList pList)

Definition at line 367 of file svdhdl.cxx.

References pHdlList, and Touch().

void SdrHdl::SetMoveOutside ( bool  bMoveOutside)

Definition at line 321 of file svdhdl.cxx.

References mbMoveOutside, and Touch().

Referenced by sdr::table::SdrTableObj::AddToHdlList().

void SdrHdl::SetObj ( SdrObject pNewObj)
void SdrHdl::SetObjHdlNum ( sal_uInt32  nNum)
inline

Definition at line 215 of file svdhdl.hxx.

Referenced by SdrMarkView::SetMarkHandles().

void SdrHdl::SetPageView ( SdrPageView pNewPV)
inline

Definition at line 201 of file svdhdl.hxx.

Referenced by SdrMarkView::ImpMarkPoint(), and SdrMarkView::SetMarkHandles().

void SdrHdl::SetPlusHdl ( bool  bOn)
inline

Definition at line 224 of file svdhdl.hxx.

Referenced by SdrMarkView::ImpMarkPoint(), and SdrMarkView::SetMarkHandles().

void SdrHdl::SetPointNum ( sal_uInt32  nNum)
inline

Definition at line 221 of file svdhdl.hxx.

void SdrHdl::SetPolyNum ( sal_uInt32  nNum)
inline

Definition at line 218 of file svdhdl.hxx.

void SdrHdl::SetPos ( const Point rPnt)
void SdrHdl::SetRotationAngle ( long  n)

Definition at line 332 of file svdhdl.cxx.

References nRotationAngle, and Touch().

void SdrHdl::SetSelected ( bool  bJa = true)

Definition at line 355 of file svdhdl.cxx.

References bSelect, and Touch().

Referenced by SdrMarkView::ImpMarkPoint(), and SdrMarkView::SetMarkHandles().

void SdrHdl::SetSourceHdlNum ( sal_uInt32  nNum)
inline

Definition at line 227 of file svdhdl.hxx.

void SdrHdl::Touch ( )

Friends And Related Function Documentation

friend class SdrHdlList
friend

Definition at line 133 of file svdhdl.hxx.

friend class SdrMarkView
friend

Definition at line 132 of file svdhdl.hxx.

Member Data Documentation

Point SdrHdl::aPos
protected
bool SdrHdl::b1PixMore
protected

Definition at line 153 of file svdhdl.hxx.

Referenced by CreateB2dIAObject(), and Set1PixMore().

bool SdrHdl::bPlusHdl
protected

Definition at line 154 of file svdhdl.hxx.

bool SdrHdl::bSelect
protected

Definition at line 152 of file svdhdl.hxx.

Referenced by CreateB2dIAObject(), ImpMeasureHdl::CreateB2dIAObject(), and SetSelected().

SdrHdlKind SdrHdl::eKind
protected
sdr::overlay::OverlayObjectList SdrHdl::maOverlayGroup
protected
bool SdrHdl::mbMouseOver
private

Definition at line 165 of file svdhdl.hxx.

Referenced by SdrMarkView::MouseMove(), and SdrMarkView::RequestHelp().

bool SdrHdl::mbMoveOutside
protected

Definition at line 156 of file svdhdl.hxx.

Referenced by CreateB2dIAObject(), and SetMoveOutside().

sal_uInt32 SdrHdl::nObjHdlNum
protected
sal_uInt32 SdrHdl::nPolyNum
protected

Definition at line 148 of file svdhdl.hxx.

sal_uInt32 SdrHdl::nPPntNum
protected

Definition at line 149 of file svdhdl.hxx.

Referenced by ImpEdgeHdl::CreateB2dIAObject().

long SdrHdl::nRotationAngle
protected

Definition at line 146 of file svdhdl.hxx.

Referenced by ImpTextframeHdl::CreateB2dIAObject(), GetPointer(), and SetRotationAngle().

sal_uInt32 SdrHdl::nSourceHdlNum
protected

Definition at line 150 of file svdhdl.hxx.

SdrHdlList* SdrHdl::pHdlList
protected
SdrObject* SdrHdl::pObj
protected
SdrPageView* SdrHdl::pPV
protected

Definition at line 137 of file svdhdl.hxx.


The documentation for this class was generated from the following files: