summaryrefslogtreecommitdiff
path: root/include/vcl/weld.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-02-12 11:11:24 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-02-12 18:32:07 +0100
commit5c8ff0eab1ac8199efd966a0fcb3352cdb8deaf6 (patch)
tree88bef19509020cd172b2ed051c27d9d038a6fc45 /include/vcl/weld.hxx
parent66cab03733f4fc91a2ebd37a799d940f5e787166 (diff)
weld ScNamePasteDlg
Change-Id: I197a917458fdd75b08f888deac1926dc363202d5 Reviewed-on: https://gerrit.libreoffice.org/67735 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.hxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index bdd80ac3c635..8e6f3a71b2b6 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -462,6 +462,7 @@ protected:
Link<const std::pair<int, int>&, void> m_aRadioToggleHdl;
// if handler returns false, the expansion of the row is refused
Link<TreeIter&, bool> m_aExpandingHdl;
+ Link<TreeView&, void> m_aVisibleRangeChangedHdl;
std::vector<int> m_aRadioIndexes;
@@ -472,6 +473,8 @@ protected:
{
return !m_aExpandingHdl.IsSet() || m_aExpandingHdl.Call(rIter);
}
+ void signal_visible_range_changed() { m_aVisibleRangeChangedHdl.Call(*this); }
+
// arg is pair<row,col>
void signal_toggled(const std::pair<int, int>& rRowCol) { m_aRadioToggleHdl.Call(rRowCol); }
@@ -593,15 +596,23 @@ public:
virtual bool get_row_expanded(const TreeIter& rIter) const = 0;
virtual void expand_row(TreeIter& rIter) = 0;
virtual void collapse_row(TreeIter& rIter) = 0;
- virtual OUString get_text(const TreeIter& rIter) const = 0;
+ virtual void set_text(TreeIter& rIter, const OUString& rStr, int col = -1) = 0;
+ virtual OUString get_text(const TreeIter& rIter, int col = -1) const = 0;
virtual OUString get_id(const TreeIter& rIter) const = 0;
virtual void scroll_to_row(const TreeIter& rIter) = 0;
virtual bool is_selected(const TreeIter& rIter) const = 0;
virtual void selected_foreach(const std::function<void(TreeIter&)>& func) = 0;
+ virtual void visible_foreach(const std::function<void(TreeIter&)>& func) = 0;
void connect_expanding(const Link<TreeIter&, bool>& rLink) { m_aExpandingHdl = rLink; }
+ virtual void connect_visible_range_changed(const Link<TreeView&, void>& rLink)
+ {
+ assert(!m_aVisibleRangeChangedHdl.IsSet() || !rLink.IsSet());
+ m_aVisibleRangeChangedHdl = rLink;
+ }
+
//all of them
void select_all() { unselect(-1); }
void unselect_all() { select(-1); }