summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2020-01-28 18:52:27 -0900
committerAdolfo Jayme Barrientos <fitojb@ubuntu.com>2020-01-29 17:40:42 +0100
commitee6b0eca46b68d392ef195e56b4a5b68c3ec9676 (patch)
tree9818cb1471f66abc17b95224df3d060330f6d4e1 /sw
parent3dea3e9b4a6a658a02c2547dcea15e320e62efaf (diff)
tdf#129625 Gray out content types with no content
This patch is for Writer Navigator only. Change-Id: I80724a3e24fd38d7b5537e1c923866a914b45898 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87668 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit 000ba228db56c28b6e2a42bf6adefe6ca6cfdffb) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87669 Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/utlui/content.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index c3a71fd0a17b..85e6d4559608 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -1763,6 +1763,11 @@ void SwContentTree::Display( bool bActive )
bool bChOnDemand = 0 != rpContentT->GetMemberCount();
pEntry = InsertEntry(sEntry, aImage, aImage,
nullptr, bChOnDemand, TREELIST_APPEND, rpContentT.get());
+ if(pEntry && !pEntry->HasChildren() && !pEntry->HasChildrenOnDemand())
+ {
+ pEntry->SetFlags(pEntry->GetFlags() | SvTLEntryFlags::SEMITRANSPARENT);
+ pEntry->SetTextColor(COL_GRAY);
+ }
if(nCntType == m_nLastSelType)
pSelEntry = pEntry;
sal_Int32 nExpandOptions = (State::HIDDEN == m_eState)