summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-23 09:41:42 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-03-24 16:07:57 +0100
commita541c989f07fd7cf908915a9f005d32aca6cd953 (patch)
tree1bb548ac3976a6f18172a7fde1ae29a1862e8daa /include/vcl
parentfe1c13d4ba288e45acdba5bc01b0ef81da08f125 (diff)
hook up focus events
Change-Id: I9f5835e86550bd3d728936e5525262697e01e5fc Reviewed-on: https://gerrit.libreoffice.org/51786 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/weld.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index 0cdf21d06ed4..d6234273b703 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -24,6 +24,13 @@ class DialogController;
class VCL_DLLPUBLIC Widget
{
+protected:
+ Link<Widget&, void> m_aFocusInHdl;
+ Link<Widget&, void> m_aFocusOutHdl;
+
+ void signal_focus_in() { return m_aFocusInHdl.Call(*this); }
+ void signal_focus_out() { return m_aFocusOutHdl.Call(*this); }
+
public:
virtual void set_sensitive(bool sensitive) = 0;
virtual bool get_sensitive() const = 0;
@@ -59,6 +66,9 @@ public:
virtual void set_accessible_name(const OUString& rName) = 0;
+ virtual void connect_focus_in(const Link<Widget&, void>& rLink) = 0;
+ virtual void connect_focus_out(const Link<Widget&, void>& rLink) = 0;
+
virtual Container* weld_parent() const = 0;
virtual ~Widget() {}