32 , m_eObjKind(eObjKind)
62 (eHit == SdrHitKind::UnmarkedObject || eHit == SdrHitKind::NONE ||
m_pSh->
IsDrawCreate()))
67 m_pWin->SetPointer(PointerStyle::DrawRect);
73 m_pWin->SetDrawAction(
true);
87 m_pWin->SetPointer(PointerStyle::DrawRect);
96 Point aEndPos(aStartPos);
97 aStartPos.
AdjustX(-constTwips_10mm);
99 aEndPos.
AdjustX(constTwips_10mm);
const Point & GetPosPixel() const
tools::Long AdjustY(tools::Long nVertMove)
tools::Long AdjustX(tools::Long nHorzMove)
void SetCreate1stPointAsCenter(bool bOn)
void SetCurrentObj(SdrObjKind nIdent, SdrInventor nInvent=SdrInventor::Default)
void SetResizeAtCenter(bool bOn)
void SetDesignMode(bool bOn=true)
void SetAngleSnapEnabled(bool bOn)
SdrHitKind PickAnything(const MouseEvent &rMEvt, SdrMouseEventKind nMouseDownOrMoveOrUp, SdrViewEvent &rVEvt) const
virtual void Activate(const sal_uInt16 nSlotId)
VclPtr< SwEditWin > m_pWin
virtual bool MouseButtonDown(const MouseEvent &rMEvt)
Point GetDefaultCenterPos() const
Window class for the Writer edit area, this is the one handling mouse and keyboard events and doing t...
bool BeginCreate(SdrObjKind eSdrObjectKind, const Point &rPos)
Process of creating draw objects.
bool EndCreate(SdrCreateCmd eSdrCreateCmd)
bool IsDrawCreate() const
void MoveCreate(const Point &rPos)
Used by the UI to modify the document model.
constexpr auto toTwips(N number, Length from)
constexpr tools::Long constTwips_5mm