20#ifndef INCLUDED_VCL_SELENG_HXX
21#define INCLUDED_VCL_SELENG_HXX
36#define SELENG_DRAGDROP_TIMEOUT 400
37#define SELENG_AUTOREPEAT_INTERVAL 50
38#define SELENG_AUTOREPEAT_INTERVAL_MIN 25
39#define SELENG_AUTOREPEAT_INTERVAL_MAX 300
54 bool bDontSelectAtCursor =
false ) = 0;
92 inline bool ShouldDeselect(
bool bModifierKey1 )
const;
108 bool SelMouseButtonDown(
const MouseEvent& rMEvt );
109 bool SelMouseButtonUp(
const MouseEvent& rMEvt );
121 void CursorPosChanging(
bool bShift,
bool bMod1 );
126 { aArea = rNewArea; }
128 void SetAddMode(
bool);
129 bool IsAddMode()
const;
131 void AddAlways(
bool bOn );
132 bool IsAlwaysAdding()
const;
134 void EnableDrag(
bool bOn );
140 { pFunctionSet = pFuncs; }
151 { nLockedMods = nModifiers; }
154 bool IsInSelection()
const;
159 bool HasAnchor()
const;
160 void SetAnchor(
bool bAnchor );
162 void SetUpdateInterval(
sal_uLong nInterval );
virtual void DeselectAtPoint(const Point &rPointPixel)=0
virtual void DestroyAnchor()=0
virtual void SetCursorAtPoint(const Point &rPointPixel, bool bDontSelectAtCursor=false)=0
virtual void CreateAnchor()=0
virtual void BeginDrag()=0
virtual void DeselectAll()=0
virtual bool IsSelectionAtPoint(const Point &rPointPixel)=0
const Point & GetPosPixel() const
void LockModifiers(sal_uInt16 nModifiers)
SelectionMode GetSelectionMode() const
const MouseEvent & GetMouseEvent() const
bool IsInSelection() const
const Point & GetMousePosPixel() const
DECL_DLLPRIVATE_LINK(ImpWatchDog, Timer *, void)
VclPtr< vcl::Window > pWin
SelectionEngine(SelectionEngine &&)=delete
sal_uInt16 GetLockedModifiers() const
SelectionEngineFlags nFlags
bool IsAlwaysAdding() const
void EnableDrag(bool bOn)
vcl::Window * GetWindow() const
FunctionSet * pFunctionSet
void SetAnchor(bool bAnchor)
SelectionEngine & operator=(const SelectionEngine &)=delete
void SetFunctionSet(FunctionSet *pFuncs)
void SetVisibleArea(const tools::Rectangle &rNewArea)
sal_uLong nUpdateInterval
const FunctionSet * GetFunctionSet() const
void ExpandSelectionOnMouseMove(bool bExpand=true)
SelectionEngine & operator=(SelectionEngine &&)=delete
SelectionEngine(const SelectionEngine &)=delete