summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-02-07 21:19:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-02-08 10:59:15 +0100
commiteb25b3c94053b4b614d7c8f983158d6519e530c1 (patch)
treeb6961d95abaad7977bf1ebf6e37f5bb699ffec70 /include/vcl
parent74ed61e793ff9641a2c67b83327b066cb9a1af3d (diff)
weld AddConditionDialog
Change-Id: Ib685ea89b31c1f000bc2276e3362ba059f997422 Reviewed-on: https://gerrit.libreoffice.org/67521 Tested-by: Jenkins 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.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index bcb6a898105a..e4248c61a314 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -1231,6 +1231,11 @@ class VCL_DLLPUBLIC TextView : virtual public Container
private:
OUString m_sSavedValue;
+protected:
+ Link<TextView&, void> m_aChangeHdl;
+
+ void signal_changed() { m_aChangeHdl.Call(*this); }
+
public:
virtual void set_text(const OUString& rText) = 0;
virtual OUString get_text() const = 0;
@@ -1246,6 +1251,8 @@ public:
void save_value() { m_sSavedValue = get_text(); }
bool get_value_changed_from_saved() const { return m_sSavedValue != get_text(); }
+
+ void connect_changed(const Link<TextView&, void>& rLink) { m_aChangeHdl = rLink; }
};
class VCL_DLLPUBLIC Expander : virtual public Container