24#include <svx/svxids.hrc>
28#include <drawview.hxx>
30#include <document.hxx>
42 aScrollTimer(
"sc FuPoor aScrollTimer"),
43 aDragTimer(
"sc FuPoor aDragTimer"),
80 if ( aPixPos.
X() <= 0 ) dx = -1;
81 if ( aPixPos.
X() >= aSize.
Width() ) dx = 1;
82 if ( aPixPos.
Y() <= 0 ) dy = -1;
83 if ( aPixPos.
Y() >= aSize.
Height() ) dy = 1;
103 if ( dx != 0 || dy != 0 )
113 Point aPosPixel = pWindow->GetPointerPosPixel();
144 if ( CommandEventId::StartDrag == rCEvt.
GetCommand() )
175 SdrHdl* pHdl = pView->PickHandle(aMDPos);
177 if ( pHdl==
nullptr && pView->IsMarkedHit(aMDPos) )
179 pWindow->ReleaseMouse();
180 bIsInDragMode =
true;
181 rViewShell.GetScDrawView()->BeginDrag(pWindow, aMDPos);
260 bool bIsMediaSelected = aObjIdentifier == SdrObjKind::Graphic ||
261 aObjIdentifier == SdrObjKind::Media ||
262 aObjIdentifier == SdrObjKind::OLE2;
268 return bIsMediaSelected;
static ImplSVEvent * PostUserEvent(const Link< void *, void > &rLink, void *pCaller=nullptr, bool bReferenceLink=false)
CommandEventId GetCommand() const
Base class for all functions.
virtual bool doConstructOrthogonal() const
bool IsDetectiveHit(const Point &rLogicPos)
virtual bool MouseButtonDown(const MouseEvent &rMEvt)
virtual bool MouseButtonUp(const MouseEvent &rMEvt)
virtual bool KeyInput(const KeyEvent &rKEvt)
virtual rtl::Reference< SdrObject > CreateDefaultObject(const sal_uInt16 nID, const tools::Rectangle &rRectangle)
sal_uInt8 Command(const CommandEvent &rCEvt)
void SetMouseButtonCode(sal_uInt16 nNew)
static void ImpForceQuadratic(tools::Rectangle &rRect)
void ForceScroll(const Point &aPixPos)
FuPoor(ScTabViewShell &rViewSh, vcl::Window *pWin, ScDrawView *pView, SdrModel *pDoc, const SfxRequest &rReq)
virtual void Deactivate()
ScTabViewShell & rViewShell
VclPtr< vcl::Window > pWindow
sal_uInt16 GetButtons() const
bool HasSelection() const
constexpr tools::Long Y() const
constexpr tools::Long X() const
static bool IsNonAlienArrow(const SdrObject *pObject)
SC_DLLPUBLIC bool IsNegativePage(SCTAB nTab) const
SC_DLLPUBLIC void ScrollLines(tools::Long nDeltaX, tools::Long nDeltaY)
ScViewData & GetViewData()
void ActivatePart(ScSplitPos eWhich)
ScDocument & GetDocument() const
ScSplitMode GetHSplitMode() const
ScSplitPos GetActivePart() const
ScSplitMode GetVSplitMode() const
const SdrHdl * GetHdl() const
size_t GetMarkCount() const
SdrMark * GetMark(size_t nNum) const
SdrHdl * PickHandle(const Point &rPnt) const
const SdrMarkList & GetMarkedObjectList() const
bool AreObjectsMarked() const
SdrObject * GetMarkedSdrObj() const
const OutlinerView * GetTextEditOutlinerView() const
virtual SdrObjKind GetObjIdentifier() const
SdrObjList * GetObjList() const
sal_uInt16 GetHitTolerancePixel() const
const SdrDragStat & GetDragStat() const
SdrPageView * GetSdrPageView() const
virtual bool Command(const CommandEvent &rCEvt, vcl::Window *pWin) override
sal_uInt16 GetSlot() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
void SetTimeout(sal_uInt64 nTimeoutMs)
void SetInvokeHandler(const Link< Timer *, void > &rLink)
virtual void Start(bool bStartTimer=true) override
EmbeddedObjectRef * pObject
IMPL_LINK_NOARG(FuPoor, ScrollHdl, Timer *, void)
#define LINK(Instance, Class, Member)
SVXCORE_DLLPUBLIC SdrObject * SdrObjectPrimitiveHit(const SdrObject &rObject, const Point &rPnt, const basegfx::B2DVector &rHitTolerance, const SdrPageView &rSdrPageView, const SdrLayerIDSet *pVisiLayer, bool bTextOnly, drawinglayer::primitive2d::Primitive2DContainer *pHitContainer=nullptr)
#define SELENG_AUTOREPEAT_INTERVAL
#define SELENG_DRAGDROP_TIMEOUT
ScHSplitPos WhichH(ScSplitPos ePos)
ScVSplitPos WhichV(ScSplitPos ePos)