summaryrefslogtreecommitdiff
path: root/vcl/source/treelist
diff options
context:
space:
mode:
authorAttila Szűcs <attila.szucs@collabora.com>2023-06-29 18:32:27 +0200
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-10-16 11:39:39 +0200
commit3649dc202bedf72e37c77993a1f7027bfdfc6d9e (patch)
tree6edc4ecfcc487162a2ee616b7ad1b4d94d9bcb46 /vcl/source/treelist
parent94426f366beff15784bcd2cd852c980e8d5a4467 (diff)
LOK: Navigator: fix expand problems
Save/load content types' expanded status to view, and make sure it is synchronized with client. Treeviews now receive/send collapse event/status from/to client. I've rewritten the way how headings are opened by default (because synch of collapsed status broke that, as sub-headings were not expanded at core side). Change-Id: I80f5b4d99fe5224391a92c4609f94ddbcf37b8ca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153771 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Andras Timar <andras.timar@collabora.com> (cherry picked from commit b95750af717e0693a13c3ef35277779e1394e0ae) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158016 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'vcl/source/treelist')
-rw-r--r--vcl/source/treelist/svtabbx.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/treelist/svtabbx.cxx b/vcl/source/treelist/svtabbx.cxx
index 0c3a179f0adf..81f0f4e8b078 100644
--- a/vcl/source/treelist/svtabbx.cxx
+++ b/vcl/source/treelist/svtabbx.cxx
@@ -104,6 +104,10 @@ static void lcl_DumpEntryAndSiblings(tools::JsonWriter& rJsonWriter,
rJsonWriter.put("ondemand", true);
}
}
+ if (rChildren.size() > 0 && !pTabListBox->IsExpanded(pEntry))
+ {
+ rJsonWriter.put("collapsed", true);
+ }
if (bCheckButtons)
{