summaryrefslogtreecommitdiff
path: root/include/svx/gridctrl.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-11-25 12:13:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-11-26 15:06:35 +0100
commit952242a20cdc4a0248a95c1e1d61b1c213ae270a (patch)
tree7599ba314f80cfb188ae8e42fbe0b1c8f3dd4d70 /include/svx/gridctrl.hxx
parent59fec754a1523eede0f19a59e4eeeff593a4d688 (diff)
factor out as a standalone "ButtonPressRepeater" class
Change-Id: Id89d5655c2428cecdaf9faa224133302c6448a87 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106600 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/svx/gridctrl.hxx')
-rw-r--r--include/svx/gridctrl.hxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/svx/gridctrl.hxx b/include/svx/gridctrl.hxx
index 1fb6c19951b6..d5d15d0054e4 100644
--- a/include/svx/gridctrl.hxx
+++ b/include/svx/gridctrl.hxx
@@ -190,8 +190,8 @@ class NavigationBar final : public InterimItemWindow
std::unique_ptr<weld::Button> m_xLastBtn; // Button for 'go to the last record'
std::unique_ptr<weld::Button> m_xNewBtn; // Button for 'go to a new record'
- AutoTimer m_aNextRepeat;
- AutoTimer m_aPrevRepeat;
+ weld::ButtonPressRepeater m_aPrevRepeater;
+ weld::ButtonPressRepeater m_aNextRepeater;
sal_Int32 m_nCurrentPos;
@@ -213,13 +213,6 @@ private:
DECL_LINK(OnClick, weld::Button&, void);
- DECL_LINK(PrevMousePressHdl, const MouseEvent&, bool);
- DECL_LINK(PrevMouseReleaseHdl, const MouseEvent&, bool);
- DECL_LINK(NextMousePressHdl, const MouseEvent&, bool);
- DECL_LINK(NextMouseReleaseHdl, const MouseEvent&, bool);
- DECL_LINK(PrevRepeatTimerHdl, Timer*, void);
- DECL_LINK(NextRepeatTimerHdl, Timer*, void);
-
void PositionDataSource(sal_Int32 nRecord);
};