From c73ad59e85dd56668bbd960ab27a27ea76971043 Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Thu, 17 Dec 2020 10:33:19 -0400 Subject: 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 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109140 Tested-by: Jenkins CollaboraOffice --- include/vcl/treelist.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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 m_pImpl; protected: + bool m_bDirtyModel; std::unique_ptr 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(this) ); } -- cgit