42 :
FuDraw(pViewSh, pWin, pView, pDoc, rReq)
45 ,bBeginInsertPoint(false),
54 xFunc->DoExecute(rReq);
99 if (eHit == SdrHitKind::Handle)
121 else if (eHit == SdrHitKind::MarkedObject && rMEvt.
IsMod1())
129 else if (eHit == SdrHitKind::MarkedObject && !rMEvt.
IsShift() && !rMEvt.
IsMod2())
134 else if (eHit == SdrHitKind::Gluepoint)
151 if (!rMEvt.
IsShift() && !rMEvt.
IsMod2() && eHit == SdrHitKind::UnmarkedObject)
156 bool bMarked =
false;
171 (!rMEvt.
IsShift() || eHit == SdrHitKind::MarkedObject))
220 bool bReturn =
false;
233 if (std::abs(
aMDPos.
X() - aPos.
X()) < nDrgLog &&
234 std::abs(
aMDPos.
Y() - aPos.
Y()) < nDrgLog &&
240 if (eHit == SdrHitKind::NONE)
263 bool bReturn =
false;
305 mpWindow->SetPointerPosPixel(ePoint);
323 MouseEventModifiers::SIMPLEMOVE | MouseEventModifiers::DRAGMOVE,
332 MouseEventModifiers::SIMPLEMOVE | MouseEventModifiers::ENTERWINDOW,
385 case SID_GLUE_INSERT_POINT:
391 case SID_GLUE_ESCDIR_LEFT:
398 case SID_GLUE_ESCDIR_RIGHT:
405 case SID_GLUE_ESCDIR_TOP:
412 case SID_GLUE_ESCDIR_BOTTOM:
419 case SID_GLUE_PERCENT:
428 case SID_GLUE_HORZALIGN_CENTER:
434 case SID_GLUE_HORZALIGN_LEFT:
440 case SID_GLUE_HORZALIGN_RIGHT:
446 case SID_GLUE_VERTALIGN_CENTER:
452 case SID_GLUE_VERTALIGN_TOP:
458 case SID_GLUE_VERTALIGN_BOTTOM:
virtual bool BegDragObj(const Point &rPnt, OutputDevice *pOut, SdrHdl *pHdl, short nMinMov=-3, SdrDragMethod *pForcedMeth=nullptr) override
virtual void MovAction(const Point &rPnt) override
const vcl::KeyCode & GetKeyCode() const
MouseEventModifiers GetMode() const
sal_uInt16 GetModifier() const
sal_uInt16 GetClicks() const
sal_uInt16 GetButtons() const
const Point & GetPosPixel() const
constexpr tools::Long Y() const
constexpr tools::Long X() const
virtual void BrkAction() override
virtual bool IsAction() const override
void SetGluePointEditMode(bool bOn=true)
virtual void BckAction() override
virtual void EndAction() override
sal_Int32 GetDragThresholdPixels() const
bool IsInsGluePointMode() const
bool BegInsGluePoint(const Point &rPnt)
void SetInsGluePointMode(bool bOn)
void SetMarkedGluePointsEscDir(SdrEscapeDirection nThisEsc, bool bOn)
void SetMarkedGluePointsPercent(bool bOn)
void SetMarkedGluePointsAlign(bool bVert, SdrAlign nAlign)
TriState IsMarkedGluePointsEscDir(SdrEscapeDirection nThisEsc) const
void UnmarkGluePoint(const SdrObject *pObj, sal_uInt16 nId)
bool AreObjectsMarked() const
void BegMarkObj(const Point &rPnt, bool bUnmark=false)
bool BegMarkGluePoints(const Point &rPnt, bool bUnmark=false)
bool IsGluePointMarked(const SdrObject *pObj, sal_uInt16 nId) const
SdrHdl * GetGluePointHdl(const SdrObject *pObj, sal_uInt16 nId) const
void UnmarkAllObj(SdrPageView const *pPV=nullptr)
const tools::Rectangle & GetMarkedObjRect() const
bool UnmarkAllGluePoints()
bool MarkNextObj(bool bPrev=false)
bool MarkGluePoint(const SdrObject *pObj, sal_uInt16 nId, bool bUnmark)
bool MarkObj(const Point &rPnt, short nTol=-2, bool bToggle=false, bool bDeep=false)
void SetActualWin(const OutputDevice *pWin)
SdrHitKind PickAnything(const MouseEvent &rMEvt, SdrMouseEventKind nMouseDownOrMoveOrUp, SdrViewEvent &rVEvt) const
const SfxPoolItem & Get(sal_uInt16 nWhich, bool bSrchInParent=true) const
sal_uInt16 GetSlot() const
const SfxItemSet * GetArgs() const
Base class for all Draw specific functions.
virtual bool KeyInput(const KeyEvent &rKEvt) override
Process keyboard input.
virtual void Activate() override
activates the function
void SetPermanent(bool bSet)
virtual bool MouseMove(const MouseEvent &rMEvt) override
virtual void ForcePointer(const MouseEvent *pMEvt=nullptr)
Toggle mouse-pointer.
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
virtual bool Command(const CommandEvent &rCEvt) override
virtual void Deactivate() override
deactivates the function
virtual void ForcePointer(const MouseEvent *pMEvt=nullptr) override
Toggle mouse-pointer.
virtual void Activate() override
activates the function
virtual ~FuEditGluePoints() override
virtual void ReceiveRequest(SfxRequest &rReq) override
static rtl::Reference< FuPoor > Create(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq, bool bPermanent)
virtual void DoExecute(SfxRequest &rReq) override
virtual bool MouseMove(const MouseEvent &rMEvt) override
virtual bool MouseButtonUp(const MouseEvent &rMEvt) override
virtual bool MouseButtonDown(const MouseEvent &rMEvt) override
FuEditGluePoints(ViewShell *pViewSh, ::sd::Window *pWin, ::sd::View *pView, SdDrawDocument *pDoc, SfxRequest &rReq)
virtual bool KeyInput(const KeyEvent &rKEvt) override
Process keyboard input.
virtual bool Command(const CommandEvent &rCEvt)
VclPtr< ::sd::Window > mpWindow
Point aMDPos
position of MouseButtonDown
void ForceScroll(const Point &aPixPos)
scroll when approached the border of the window; is called by MouseMove
virtual void Deactivate()
deactivates the function
virtual void ReceiveRequest(SfxRequest &rReq)
virtual void DoExecute(SfxRequest &rReq)
std::shared_ptr< ToolBarManager > const & GetToolBarManager() const
Base class of the stacked shell hierarchy.
SD_DLLPUBLIC ViewShellBase & GetViewShellBase() const
An SdWindow contains the actual working area of ViewShell.
sal_uInt16 GetCode() const
constexpr sal_uInt16 KEY_RETURN
constexpr sal_uInt16 KEY_LEFT
constexpr sal_uInt16 KEY_UP
constexpr sal_uInt16 KEY_RIGHT
constexpr sal_uInt16 KEY_DOWN
constexpr sal_uInt16 KEY_SHIFT