diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-05-02 09:23:43 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-05-02 22:37:17 +0200 |
commit | c7f9599f685a8e297be32fe6db5de04068b22d05 (patch) | |
tree | f371e617f8cabe325f04c1ac8b30052357da280e /include | |
parent | dfb9138b8b5a239b46f189a717999bcaff19aa79 (diff) |
weld SvxTextAnimationPage
Change-Id: I5aadf86648483be254157d3ca148eb16258980e1
Reviewed-on: https://gerrit.libreoffice.org/53723
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')
-rw-r--r-- | include/vcl/weld.hxx | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 9d3ab732984a..93f8657e6852 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -75,8 +75,17 @@ public: virtual void set_accessible_name(const OUString& rName) = 0; virtual OUString get_accessible_name() const = 0; - virtual void connect_focus_in(const Link<Widget&, void>& rLink) = 0; - virtual void connect_focus_out(const Link<Widget&, void>& rLink) = 0; + virtual void connect_focus_in(const Link<Widget&, void>& rLink) + { + assert(!m_aFocusInHdl.IsSet()); + m_aFocusInHdl = rLink; + } + + virtual void connect_focus_out(const Link<Widget&, void>& rLink) + { + assert(!m_aFocusOutHdl.IsSet()); + m_aFocusOutHdl = rLink; + } virtual void grab_add() = 0; virtual void grab_remove() = 0; @@ -400,7 +409,7 @@ public: bool get_state_changed_from_saved() const { return m_eSavedValue != get_state(); } - void connect_toggled(const Link<ToggleButton&, void>& rLink) { m_aToggleHdl = rLink; } + virtual void connect_toggled(const Link<ToggleButton&, void>& rLink) { m_aToggleHdl = rLink; } }; class VCL_DLLPUBLIC CheckButton : virtual public ToggleButton @@ -746,6 +755,7 @@ public: virtual ScrolledWindow* weld_scrolled_window(const OString& id, bool bTakeOwnership = false) = 0; virtual Notebook* weld_notebook(const OString& id, bool bTakeOwnership = false) = 0; + virtual ToggleButton* weld_toggle_button(const OString& id, bool bTakeOwnership = false) = 0; virtual RadioButton* weld_radio_button(const OString& id, bool bTakeOwnership = false) = 0; virtual CheckButton* weld_check_button(const OString& id, bool bTakeOwnership = false) = 0; virtual SpinButton* weld_spin_button(const OString& id, bool bTakeOwnership = false) = 0; |