20 #ifndef INCLUDED_VCL_SELENG_HXX
21 #define INCLUDED_VCL_SELENG_HXX
32 #define SELENG_DRAGDROP_TIMEOUT 400
33 #define SELENG_AUTOREPEAT_INTERVAL 50
34 #define SELENG_AUTOREPEAT_INTERVAL_MIN 25
35 #define SELENG_AUTOREPEAT_INTERVAL_MAX 300
42 virtual void BeginDrag() = 0;
44 virtual void CreateAnchor() = 0;
45 virtual void DestroyAnchor() = 0;
49 virtual void SetCursorAtPoint(
const Point& rPointPixel,
50 bool bDontSelectAtCursor =
false ) = 0;
52 virtual bool IsSelectionAtPoint(
const Point& rPointPixel ) = 0;
53 virtual void DeselectAtPoint(
const Point& rPointPixel ) = 0;
88 inline bool ShouldDeselect(
bool bModifierKey1 )
const;
97 bool SelMouseButtonDown(
const MouseEvent& rMEvt );
98 bool SelMouseButtonUp(
const MouseEvent& rMEvt );
110 void CursorPosChanging(
bool bShift,
bool bMod1 );
115 { aArea = rNewArea; }
117 void SetAddMode(
bool);
118 bool IsAddMode()
const;
120 void AddAlways(
bool bOn );
121 bool IsAlwaysAdding()
const;
123 void EnableDrag(
bool bOn );
129 { pFunctionSet = pFuncs; }
140 { nLockedMods = nModifiers; }
143 bool IsInSelection()
const;
148 bool HasAnchor()
const;
149 void SetAnchor(
bool bAnchor );
151 void SetUpdateInterval(
sal_uLong nInterval );
227 #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