diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-08-04 14:22:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-08-04 16:50:39 +0200 |
commit | ee04805e513b0f804408697fc4b93e3c025d2329 (patch) | |
tree | 94cff76f077644fb1d280df119c6f8f385f6c460 /svx/source/inc | |
parent | fc0d2136aee6c1749d780de09df025251703b59e (diff) |
Resolves: tdf#143023 explicitly connect to ControlBase focus-[in/out]
instead of listening to the generic vcl::Window/Control focus events.
The thing which really gets/loses focus is now a Widget hosted inside
the ControlBase.
Change-Id: I012d0bea687aa6d5965a4e2f6ce3899bfc629f1b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120003
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/inc')
-rw-r--r-- | svx/source/inc/gridcell.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svx/source/inc/gridcell.hxx b/svx/source/inc/gridcell.hxx index 355c39ea1ead..306dc5764ca1 100644 --- a/svx/source/inc/gridcell.hxx +++ b/svx/source/inc/gridcell.hxx @@ -772,7 +772,7 @@ public: { m_pCellControl->AlignControl(nAlignment);} protected: - void onWindowEvent( const VclEventId _nEventId, const vcl::Window& _rWindow, const void* _pEventData ); + void onWindowEvent(const VclEventId _nEventId, const void* _pEventData); // default implementations call our focus listeners, don't forget to call them if you override this virtual void onFocusGained( const css::awt::FocusEvent& _rEvent ); @@ -780,6 +780,8 @@ protected: private: svt::ControlBase* getEventWindow() const; + DECL_LINK(OnFocusGained, LinkParamNone*, void); + DECL_LINK(OnFocusLost, LinkParamNone*, void); DECL_LINK( OnWindowEvent, VclWindowEvent&, void ); }; |