24#include <osl/diagnose.h>
51 bool furtherHandler =
false;
52 switch ( (
pActiveFunction.get()->*i_handlerMethod)( i_control, i_event ) )
55 OSL_ENSURE(
false,
"lcl_delegateMouseEvent: unexpected - function already *is* active!" );
63 furtherHandler =
true;
66 if ( !furtherHandler )
81 switch ( (mouseFunction.get()->*i_handlerMethod)( i_control, i_event ) )
89 OSL_ENSURE(
false,
"lcl_delegateMouseEvent: unexpected: inactive handler cannot be continued or deactivated!" );
120 bool bHandled =
false;
123 sal_uInt16 nKeyCode = rKeyCode.
GetCode();
125 struct ActionMapEntry
128 sal_uInt16 nKeyModifier;
131 static const aKnownActions[] = {
153 const ActionMapEntry* pActions = aKnownActions;
156 if ( ( pActions->nKeyCode == nKeyCode ) && ( pActions->nKeyModifier == rKeyCode.
GetModifier() ) )
const vcl::KeyCode & GetKeyCode() const
defines a callback interface to be implemented by a concrete table control
virtual void showCursor()=0
shows the cell cursor
virtual void hideCursor()=0
hides the cell cursor
virtual bool dispatchAction(TableControlAction _eAction)=0
dispatches an action to the table control
virtual FunctionResult handleMouseUp(ITableControl &i_tableControl, MouseEvent const &i_event)=0
virtual FunctionResult handleMouseDown(ITableControl &i_tableControl, MouseEvent const &i_event)=0
virtual FunctionResult handleMouseMove(ITableControl &i_tableControl, MouseEvent const &i_event)=0
sal_uInt16 GetCode() const
sal_uInt16 GetModifier() const
constexpr sal_uInt16 KEY_MOD1
constexpr sal_uInt16 KEY_HOME
constexpr sal_uInt16 KEY_LEFT
constexpr sal_uInt16 KEY_PAGEDOWN
constexpr sal_uInt16 KEY_UP
constexpr sal_uInt16 KEY_RIGHT
constexpr sal_uInt16 KEY_DOWN
constexpr sal_uInt16 KEY_SPACE
constexpr sal_uInt16 KEY_PAGEUP
constexpr sal_uInt16 KEY_SHIFT
constexpr sal_uInt16 KEY_END
@ cursorToFirstLine
moves the cursor to the first row, keeping the current column
@ cursorToLineStart
moves the cursor to the beginning of the current line
@ cursorLeft
moves the cursor in the table control one column to the left, if possible, by keeping the current row
@ cursorPageDown
moves the cursor one page down, keeping the current column
@ cursorSelectRowUp
selects the rows, above the actual cursor is
@ cursorBottomRight
moves the cursor to the bottom-most, right-most cell
@ cursorDown
moves the cursor in the table control one row down, if possible, by keeping the current column
@ invalidTableControlAction
invalid and final enumeration value, not to be actually used
@ cursorPageUp
moves the cursor one page up, keeping the current column
@ cursorSelectRowDown
selects the row, beneath the actual cursor is
@ cursorUp
moves the cursor in the table control one row up, if possible, by keeping the current column
@ cursorToLineEnd
moves the cursor to the end of the current line
@ cursorSelectRow
selects the row, where the actual cursor is
@ cursorTopLeft
moves the cursor to the top-most, left-most cell
@ cursorSelectRowAreaBottom
selects the row, from the actual cursor till bottom
@ cursorRight
moves the cursor in the table control one column to the right, if possible, by keeping the current ro...
@ cursorSelectRowAreaTop
selects the row, from the actual cursor till top
@ cursorToLastLine
moves the cursor to the last row, keeping the current column