[Libreoffice-commits] core.git: sc/source
Jim Raykowski (via logerrit)
logerrit at kemper.freedesktop.org
Thu Jan 30 06:23:13 UTC 2020
sc/source/ui/navipi/content.cxx | 12 ++++++++++++
1 file changed, 12 insertions(+)
New commits:
commit 54d96a88d2623b4ffcc00f4b8a8479edab5fbb6f
Author: Jim Raykowski <raykowj at gmail.com>
AuthorDate: Wed Jan 29 15:55:05 2020 -0900
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Jan 30 07:22:40 2020 +0100
tdf#129625 Calc Navigator: Gray out content types with no content
Change-Id: I298894bbb338b97fe6891e33b23f16302acaec37
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87714
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index 1d33a9e15c01..a64e772ac138 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -1648,6 +1648,18 @@ void ScContentTree::ApplyNavigatorSettings()
ScContentId nEntry = static_cast<ScContentId>(i);
if( pRootNodes[ nEntry ] )
{
+ // gray or ungray
+ if( GetChildCount( pRootNodes[ nEntry ] ) == 0 )
+ {
+ pRootNodes[ nEntry ]->SetFlags( pRootNodes[ nEntry ]->GetFlags() | SvTLEntryFlags::SEMITRANSPARENT );
+ pRootNodes[ nEntry ]->SetTextColor( COL_GRAY );
+ }
+ else
+ {
+ pRootNodes[ nEntry ]->SetFlags( pRootNodes[ nEntry ]->GetFlags() & ~SvTLEntryFlags::SEMITRANSPARENT );
+ pRootNodes[ nEntry ]->SetTextColor( GetTextColor() );
+ }
+
// expand
bool bExp = pSettings->IsExpanded( nEntry );
if( bExp != IsExpanded( pRootNodes[ nEntry ] ) )
More information about the Libreoffice-commits
mailing list