summaryrefslogtreecommitdiff
path: root/include/vcl/weld.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'include/vcl/weld.hxx')
-rw-r--r--include/vcl/weld.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index f0f7c95f3cf6..a88cfe5ea04f 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -515,6 +515,9 @@ public:
class VCL_DLLPUBLIC TreeView : virtual public Container
{
+private:
+ OUString m_sSavedValue;
+
protected:
Link<TreeView&, void> m_aChangeHdl;
Link<TreeView&, void> m_aRowActivatedHdl;
@@ -713,6 +716,7 @@ public:
virtual int n_children() const = 0;
virtual void make_sorted() = 0;
+ virtual void make_unsorted() = 0;
virtual bool get_sort_order() const = 0;
virtual void set_sort_order(bool bAscending) = 0;
// TRUE ascending, FALSE, descending, INDET, neither (off)
@@ -736,6 +740,10 @@ public:
void set_toggle_columns_as_radio(const std::vector<int>& rCols) { m_aRadioIndexes = rCols; }
+ void save_value() { m_sSavedValue = get_selected_text(); }
+ OUString const& get_saved_value() const { return m_sSavedValue; }
+ bool get_value_changed_from_saved() const { return m_sSavedValue != get_selected_text(); }
+
using Widget::set_sensitive;
};