summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2020-12-17 10:33:19 -0400
committerHenry Castro <hcastro@collabora.com>2021-01-19 00:48:54 +0100
commitc73ad59e85dd56668bbd960ab27a27ea76971043 (patch)
tree45d2ee1892c1fc4a095e45bf7807b428433e7012 /include
parent5e4941d1c9ebfca900dd3a2414184e2f82472cc9 (diff)
lok: check if the tree list box model has changed
It is necessary to know when the tree list model has changed to notify client side changes. Change-Id: I188a97223e06520d0b34cd9272eff6449a14d60e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107892 Tested-by: Jenkins Reviewed-by: Henry Castro <hcastro@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109140 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/treelist.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/vcl/treelist.hxx b/include/vcl/treelist.hxx
index ffb359a4e8f8..1b1b28979a95 100644
--- a/include/vcl/treelist.hxx
+++ b/include/vcl/treelist.hxx
@@ -214,6 +214,7 @@ class VCL_DLLPUBLIC SvListView
std::unique_ptr<Impl> m_pImpl;
protected:
+ bool m_bDirtyModel;
std::unique_ptr<SvTreeList> pModel;
void ExpandListEntry( SvTreeListEntry* pParent );
@@ -232,6 +233,11 @@ public:
sal_uLong nPos
);
+ bool IsDirtyModel() const
+ { return m_bDirtyModel; }
+ void SetDirtyModel(bool bValue)
+ { m_bDirtyModel = bValue; }
+
sal_uLong GetVisibleCount() const
{ return pModel->GetVisibleCount( const_cast<SvListView*>(this) ); }