diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2025-01-23 15:01:15 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2025-01-24 07:37:51 +0100 |
commit | 6fc13fb03bc96eda65b91fd65ada26a162437404 (patch) | |
tree | b0f7e165ba53b214616628d819f186700b8d01cd /toolkit/inc/controls/table | |
parent | 57906dde339a71eee87437ae2d11c7474c03befd (diff) |
toolkit: Move TableControl key input logic into that class
Move logic from DefaultInputHandler::KeyInput
into the only caller, TableControl::KeyInput.
Drop ITableControl::dispatchAction from that interface
as TableControl is now the only caller and that one
knows that it's TableControl::m_pImpl is a
TableControl_Impl.
Change-Id: I0445ce10f8abee17ab6e4895aba5adf42974721b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180662
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'toolkit/inc/controls/table')
-rw-r--r-- | toolkit/inc/controls/table/defaultinputhandler.hxx | 1 | ||||
-rw-r--r-- | toolkit/inc/controls/table/tablecontrolinterface.hxx | 12 |
2 files changed, 0 insertions, 13 deletions
diff --git a/toolkit/inc/controls/table/defaultinputhandler.hxx b/toolkit/inc/controls/table/defaultinputhandler.hxx index 51610b4b5d2d..40acc4a7a809 100644 --- a/toolkit/inc/controls/table/defaultinputhandler.hxx +++ b/toolkit/inc/controls/table/defaultinputhandler.hxx @@ -44,7 +44,6 @@ namespace svt::table bool MouseMove(ITableControl& _rControl, const MouseEvent& rMEvt); bool MouseButtonDown(ITableControl& _rControl, const MouseEvent& rMEvt); bool MouseButtonUp(ITableControl& _rControl, const MouseEvent& rMEvt); - static bool KeyInput(ITableControl& _rControl, const KeyEvent& rKEvt); private: bool delegateMouseEvent( ITableControl& i_control, const MouseEvent& i_event, diff --git a/toolkit/inc/controls/table/tablecontrolinterface.hxx b/toolkit/inc/controls/table/tablecontrolinterface.hxx index ee9a52785471..e5ff0cd88303 100644 --- a/toolkit/inc/controls/table/tablecontrolinterface.hxx +++ b/toolkit/inc/controls/table/tablecontrolinterface.hxx @@ -163,18 +163,6 @@ namespace svt::table */ virtual void showCursor() = 0; - /** dispatches an action to the table control - - @return - <TRUE/> if the action could be dispatched successfully, <FALSE/> otherwise. Usual - failure conditions include some other instance vetoing the action, or impossibility - to execute the action at all (for instance moving up one row when already positioned - on the very first row). - - @see TableControlAction - */ - virtual bool dispatchAction( TableControlAction _eAction ) = 0; - /** returns selection engine*/ virtual SelectionEngine* getSelEngine() = 0; |