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 (Degree100 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
 
Degree100 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() [1/2]

SdrHdl::SdrHdl ( )

Definition at line 269 of file svdhdl.cxx.

References Move.

◆ SdrHdl() [2/2]

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

Definition at line 287 of file svdhdl.cxx.

◆ ~SdrHdl()

SdrHdl::~SdrHdl ( )
virtual

Definition at line 306 of file svdhdl.cxx.

References GetRidOfIAObject().

Member Function Documentation

◆ CreateB2dIAObject()

void SdrHdl::CreateB2dIAObject ( )
protectedvirtual

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

Definition at line 405 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().

◆ createGluePointBitmap()

BitmapEx SdrHdl::createGluePointBitmap ( )
static

◆ CreateOverlayObject()

std::unique_ptr< sdr::overlay::OverlayObject > SdrHdl::CreateOverlayObject ( const basegfx::B2DPoint rPos,
BitmapColorIndex  eColIndex,
BitmapMarkerKind  eKindOfMarker,
Point  aMoveOutsideOffset = Point() 
)
protected

◆ GetKind()

SdrHdlKind SdrHdl::GetKind ( ) const
inline

◆ GetNextBigger()

BitmapMarkerKind SdrHdl::GetNextBigger ( BitmapMarkerKind  eKnd)
staticprotected

◆ GetObj()

SdrObject * SdrHdl::GetObj ( ) const
inline

◆ GetObjHdlNum()

sal_uInt32 SdrHdl::GetObjHdlNum ( ) const
inline

◆ getOverlayObjectList()

const sdr::overlay::OverlayObjectList & SdrHdl::getOverlayObjectList ( ) const
inline

Definition at line 191 of file svdhdl.hxx.

Referenced by SdrDragGradient::BeginSdrDrag().

◆ GetPageView()

SdrPageView * SdrHdl::GetPageView ( ) const
inline

Definition at line 200 of file svdhdl.hxx.

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

◆ GetPointer()

PointerStyle SdrHdl::GetPointer ( ) const
virtual

◆ GetPointNum()

sal_uInt32 SdrHdl::GetPointNum ( ) const
inline

◆ GetPolyNum()

sal_uInt32 SdrHdl::GetPolyNum ( ) const
inline

◆ GetPos()

const Point & SdrHdl::GetPos ( ) const
inline

◆ GetRidOfIAObject()

void SdrHdl::GetRidOfIAObject ( )
protected

◆ GetSourceHdlNum()

sal_uInt32 SdrHdl::GetSourceHdlNum ( ) const
inline

◆ insertNewlyCreatedOverlayObjectForSdrHdl()

void SdrHdl::insertNewlyCreatedOverlayObjectForSdrHdl ( std::unique_ptr< sdr::overlay::OverlayObject pOverlayObject,
const sdr::contact::ObjectContact rObjectContact,
sdr::overlay::OverlayManager rOverlayManager 
)
protected

◆ IsCornerHdl()

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().

◆ IsFocusHdl()

bool SdrHdl::IsFocusHdl ( ) const
virtual

◆ IsHdlHit()

bool SdrHdl::IsHdlHit ( const Point rPnt) const

◆ IsPlusHdl()

bool SdrHdl::IsPlusHdl ( ) const
inline

◆ IsSelected()

bool SdrHdl::IsSelected ( ) const
inline

◆ IsVertexHdl()

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().

◆ onHelpRequest()

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().

◆ onMouseEnter()

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().

◆ onMouseLeave()

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().

◆ Set1PixMore()

void SdrHdl::Set1PixMore ( bool  bJa = true)

Definition at line 311 of file svdhdl.cxx.

References b1PixMore, and Touch().

◆ SetHdlList()

void SdrHdl::SetHdlList ( SdrHdlList pList)

Definition at line 368 of file svdhdl.cxx.

References pHdlList, and Touch().

◆ SetMoveOutside()

void SdrHdl::SetMoveOutside ( bool  bMoveOutside)

Definition at line 322 of file svdhdl.cxx.

References mbMoveOutside, and Touch().

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

◆ SetObj()

void SdrHdl::SetObj ( SdrObject pNewObj)

◆ SetObjHdlNum()

void SdrHdl::SetObjHdlNum ( sal_uInt32  nNum)
inline

Definition at line 215 of file svdhdl.hxx.

Referenced by SdrMarkView::SetMarkHandles().

◆ SetPageView()

void SdrHdl::SetPageView ( SdrPageView pNewPV)
inline

Definition at line 201 of file svdhdl.hxx.

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

◆ SetPlusHdl()

void SdrHdl::SetPlusHdl ( bool  bOn)
inline

Definition at line 224 of file svdhdl.hxx.

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

◆ SetPointNum()

void SdrHdl::SetPointNum ( sal_uInt32  nNum)
inline

Definition at line 221 of file svdhdl.hxx.

◆ SetPolyNum()

void SdrHdl::SetPolyNum ( sal_uInt32  nNum)
inline

Definition at line 218 of file svdhdl.hxx.

◆ SetPos()

void SdrHdl::SetPos ( const Point rPnt)

◆ SetRotationAngle()

void SdrHdl::SetRotationAngle ( Degree100  n)

Definition at line 333 of file svdhdl.cxx.

References n, nRotationAngle, and Touch().

◆ SetSelected()

void SdrHdl::SetSelected ( bool  bJa = true)

Definition at line 356 of file svdhdl.cxx.

References bSelect, and Touch().

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

◆ SetSourceHdlNum()

void SdrHdl::SetSourceHdlNum ( sal_uInt32  nNum)
inline

Definition at line 227 of file svdhdl.hxx.

◆ Touch()

void SdrHdl::Touch ( )

Friends And Related Function Documentation

◆ SdrHdlList

friend class SdrHdlList
friend

Definition at line 133 of file svdhdl.hxx.

◆ SdrMarkView

friend class SdrMarkView
friend

Definition at line 132 of file svdhdl.hxx.

Member Data Documentation

◆ aPos

Point SdrHdl::aPos
protected

◆ b1PixMore

bool SdrHdl::b1PixMore
protected

Definition at line 153 of file svdhdl.hxx.

Referenced by CreateB2dIAObject(), and Set1PixMore().

◆ bPlusHdl

bool SdrHdl::bPlusHdl
protected

Definition at line 154 of file svdhdl.hxx.

◆ bSelect

bool SdrHdl::bSelect
protected

Definition at line 152 of file svdhdl.hxx.

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

◆ eKind

SdrHdlKind SdrHdl::eKind
protected

◆ maOverlayGroup

sdr::overlay::OverlayObjectList SdrHdl::maOverlayGroup
protected

◆ mbMouseOver

bool SdrHdl::mbMouseOver
private

Definition at line 165 of file svdhdl.hxx.

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

◆ mbMoveOutside

bool SdrHdl::mbMoveOutside
protected

Definition at line 156 of file svdhdl.hxx.

Referenced by CreateB2dIAObject(), and SetMoveOutside().

◆ nObjHdlNum

sal_uInt32 SdrHdl::nObjHdlNum
protected

◆ nPolyNum

sal_uInt32 SdrHdl::nPolyNum
protected

Definition at line 148 of file svdhdl.hxx.

◆ nPPntNum

sal_uInt32 SdrHdl::nPPntNum
protected

Definition at line 149 of file svdhdl.hxx.

Referenced by ImpEdgeHdl::CreateB2dIAObject().

◆ nRotationAngle

Degree100 SdrHdl::nRotationAngle
protected

Definition at line 146 of file svdhdl.hxx.

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

◆ nSourceHdlNum

sal_uInt32 SdrHdl::nSourceHdlNum
protected

Definition at line 150 of file svdhdl.hxx.

◆ pHdlList

SdrHdlList* SdrHdl::pHdlList
protected

◆ pObj

SdrObject* SdrHdl::pObj
protected

◆ pPV

SdrPageView* SdrHdl::pPV
protected

Definition at line 137 of file svdhdl.hxx.


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