summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-06-18 10:32:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-06-18 13:43:05 +0200
commit294e66018d5c461c3f49e2140aac7e56f3ee99dc (patch)
treef82492339f418b518f7f52d7a0c4bcab9773455f /include/vcl
parent4b6d1715929110f004e8a9dee971add94d72e165 (diff)
weld SfxDocumentDescPage
Change-Id: I52abfe33e39fbb2e96fe0634b9ac3d8d50068ee7 Reviewed-on: https://gerrit.libreoffice.org/55988 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, 6 insertions, 1 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index 68c5b48363d5..b15b77d0aff8 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -494,7 +494,6 @@ public:
}
void save_value() { m_sSavedValue = get_text(); }
-
bool get_value_changed_from_saved() const { return m_sSavedValue != get_text(); }
};
@@ -777,6 +776,9 @@ public:
class VCL_DLLPUBLIC TextView : virtual public Container
{
+private:
+ OUString m_sSavedValue;
+
public:
virtual void set_text(const OUString& rText) = 0;
virtual OUString get_text() const = 0;
@@ -789,6 +791,9 @@ public:
//can improve this if needed
return get_text_height() * nRows;
}
+
+ void save_value() { m_sSavedValue = get_text(); }
+ bool get_value_changed_from_saved() const { return m_sSavedValue != get_text(); }
};
class VCL_DLLPUBLIC Expander : virtual public Container