diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-03-17 19:22:08 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-03-18 22:10:57 +0100 |
commit | c403c86c6da4db0a6f2864ad4e13def9a3898cd4 (patch) | |
tree | 3b6e0ca5c6255506989f4312ac7a7723eb359b84 /include/vcl/weld.hxx | |
parent | cc0b0f94b1888709f45bf63b98761a471f73f041 (diff) |
weld SwFieldRefPage
Change-Id: I5ae3965aa681ea1f5a005fbc8dad4d0ce36af1b3
Reviewed-on: https://gerrit.libreoffice.org/69373
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/weld.hxx')
-rw-r--r-- | include/vcl/weld.hxx | 8 |
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; }; |