summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-08-12 15:59:40 +0100
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2020-08-13 01:26:17 +0200
commit1138c3d51a2e5caea7832597c00c62918299a3d7 (patch)
treecc442faa87e0ecb58b56d05020989fe9f139b105 /include
parent7f2984ddcc94fad6d54b763c90550399005aa871 (diff)
tdf#135640 ensure parent rows are expanded on scolling to make a row visible
Change-Id: I37e55ed8d0d3d5916950228ba78982b90356fbc2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100516 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/weld.hxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index cae26c1ffccf..33138aae57c2 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -935,7 +935,9 @@ public:
virtual void swap(int pos1, int pos2) = 0;
virtual std::vector<int> get_selected_rows() const = 0;
virtual void set_font_color(int pos, const Color& rColor) = 0;
- virtual void scroll_to_row(int pos) = 0;
+ // scroll to make 'row' visible, this will also expand all parent rows of 'row' as necessary to
+ // make 'row' visible
+ virtual void scroll_to_row(int row) = 0;
virtual bool is_selected(int pos) const = 0;
virtual int get_cursor_index() const = 0;
virtual void set_cursor(int pos) = 0;
@@ -1031,6 +1033,8 @@ public:
const css::uno::Reference<css::graphic::XGraphic>& rImage, int col = -1)
= 0;
virtual void set_font_color(const TreeIter& rIter, const Color& rColor) = 0;
+ // scroll to make rIter visible, this will also expand all parent rows of rIter as necessary to
+ // make rIter visible
virtual void scroll_to_row(const TreeIter& rIter) = 0;
virtual bool is_selected(const TreeIter& rIter) const = 0;