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
46 virtual void BeginDrag() = 0;
48 virtual void CreateAnchor() = 0;
49 virtual void DestroyAnchor() = 0;
53 virtual void SetCursorAtPoint(
const Point& rPointPixel,
54 bool bDontSelectAtCursor =
false ) = 0;
56 virtual bool IsSelectionAtPoint(
const Point& rPointPixel ) = 0;
57 virtual void DeselectAtPoint(
const Point& rPointPixel ) = 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 );
238 #endif // INCLUDED_VCL_SELENG_HXX
VclPtr< vcl::Window > pWin
bool IsInSelection() const
void EnableDrag(bool bOn)
sal_uInt16 GetLockedModifiers() const
const Point & GetMousePosPixel() const
const FunctionSet * GetFunctionSet() const
void SetAnchor(bool bAnchor)
void ExpandSelectionOnMouseMove(bool bExpand=true)
vcl::Window * GetWindow() const
const MouseEvent & GetMouseEvent() const
void SetVisibleArea(const tools::Rectangle &rNewArea)
SelectionEngineFlags nFlags
sal_uLong nUpdateInterval
const Point & GetPosPixel() const
void SetFunctionSet(FunctionSet *pFuncs)
FunctionSet * pFunctionSet
#define DECL_DLLPRIVATE_LINK(Member, ArgType, RetType)
void LockModifiers(sal_uInt16 nModifiers)
SelectionMode GetSelectionMode() const
bool IsAlwaysAdding() const