summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-03-10 13:10:12 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-03-10 15:20:58 +0100
commit0ddc588164c4a9a0fca7374a58ea1f7708978f66 (patch)
tree8e93ecdf8e2c38b53a8a0cc9ae62cd09a0670a3a /include
parent9ed75e2c65544b4f71c73e1c51a68d74e31d544b (diff)
writer navigator requires ability of per-row extra indent
Change-Id: Iaf34e245b2418c0dddb9a8a449da1a0abdd8def2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90257 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/treelistentry.hxx4
-rw-r--r--include/vcl/weld.hxx2
2 files changed, 6 insertions, 0 deletions
diff --git a/include/vcl/treelistentry.hxx b/include/vcl/treelistentry.hxx
index 456a99c3fd67..8cc808bb09c1 100644
--- a/include/vcl/treelistentry.hxx
+++ b/include/vcl/treelistentry.hxx
@@ -60,6 +60,7 @@ class VCL_DLLPUBLIC SvTreeListEntry
SvTreeListEntries m_Children;
sal_uLong nAbsPos;
sal_uLong nListPos;
+ sal_uInt32 mnExtraIndent;
ItemsType m_Items;
void* pUserData;
SvTLEntryFlags nEntryFlags;
@@ -115,6 +116,9 @@ public:
void SetTextColor( std::optional<Color> xColor ) { mxTextColor = xColor; }
std::optional<Color> const & GetTextColor() const { return mxTextColor; }
+ void SetExtraIndent(sal_uInt32 nExtraIndent) { mnExtraIndent = nExtraIndent; }
+ sal_uInt32 GetExtraIndent() const { return mnExtraIndent; }
+
SvTreeListEntry* GetParent() const { return pParent; }
SvTreeListEntry* NextSibling() const;
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index 936484a31d0c..838fb2729f04 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -931,6 +931,8 @@ public:
virtual bool get_row_expanded(const TreeIter& rIter) const = 0;
virtual bool get_children_on_demand(const TreeIter& rIter) const = 0;
virtual void set_children_on_demand(const TreeIter& rIter, bool bChildrenOnDemand) = 0;
+ //visually indent this row as if it was at get_iter_depth() + nIndentLevel
+ virtual void set_extra_row_indent(const TreeIter& rIter, int nIndentLevel) = 0;
virtual void expand_row(const TreeIter& rIter) = 0;
virtual void collapse_row(const TreeIter& rIter) = 0;
virtual void set_text(const TreeIter& rIter, const OUString& rStr, int col = -1) = 0;