summaryrefslogtreecommitdiff
path: root/svtools/source/contnr/svtreebx.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-01-29 07:39:55 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-01-29 07:39:55 +0000
commitd7bdf8cd60cc0d586d79bb26c530553c2db89db2 (patch)
treeb3327ef88943d03e3b70f70df6a077efdd0187a8 /svtools/source/contnr/svtreebx.cxx
parent5bb918070d2cc9d4f2a3eb32622c34e8dccdd0b1 (diff)
INTEGRATION: CWS dba24e_SRC680 (1.54.14); FILE MERGED
2007/12/03 10:16:10 fs 1.54.14.1: #i84188#
Diffstat (limited to 'svtools/source/contnr/svtreebx.cxx')
-rw-r--r--svtools/source/contnr/svtreebx.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/svtools/source/contnr/svtreebx.cxx b/svtools/source/contnr/svtreebx.cxx
index b0dca6a14d41..3faed1a8a9a9 100644
--- a/svtools/source/contnr/svtreebx.cxx
+++ b/svtools/source/contnr/svtreebx.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: svtreebx.cxx,v $
*
- * $Revision: 1.54 $
+ * $Revision: 1.55 $
*
- * last change: $Author: ihi $ $Date: 2007-11-26 16:52:58 $
+ * last change: $Author: vg $ $Date: 2008-01-29 08:39:55 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -1595,6 +1595,7 @@ long SvTreeListBox::PaintEntry1(SvLBoxEntry* pEntry,long nLine,USHORT nTabFlags,
long nMaxRight = nWidth + aEntryPos.X() - 1;
Color aBackupTextColor( GetTextColor() );
+ Font aBackupFont( GetFont() );
Color aBackupColor = GetFillColor();
bool bCurFontIsSel = false;
@@ -1605,7 +1606,9 @@ long SvTreeListBox::PaintEntry1(SvLBoxEntry* pEntry,long nLine,USHORT nTabFlags,
BOOL bHideSelection = ((nWindowStyle & WB_HIDESELECTION) && !HasFocus())!=0;
const StyleSettings& rSettings = GetSettings().GetStyleSettings();
- Color aHighlightTextColor( rSettings.GetHighlightTextColor() );
+ Font aHighlightFont( GetFont() );
+ const Color aHighlightTextColor( rSettings.GetHighlightTextColor() );
+ aHighlightFont.SetColor( aHighlightTextColor );
Size aRectSize( 0, nTempEntryHeight );
@@ -1681,6 +1684,7 @@ long SvTreeListBox::PaintEntry1(SvLBoxEntry* pEntry,long nLine,USHORT nTabFlags,
if ( !bCurFontIsSel )
{
SetTextColor( aHighlightTextColor );
+ SetFont( aHighlightFont );
bCurFontIsSel = true;
}
}
@@ -1694,6 +1698,7 @@ long SvTreeListBox::PaintEntry1(SvLBoxEntry* pEntry,long nLine,USHORT nTabFlags,
{
bCurFontIsSel = false;
SetTextColor( aBackupTextColor );
+ SetFont( aBackupFont );
}
}
@@ -1772,7 +1777,10 @@ long SvTreeListBox::PaintEntry1(SvLBoxEntry* pEntry,long nLine,USHORT nTabFlags,
}
if( bCurFontIsSel )
+ {
SetTextColor( aBackupTextColor );
+ SetFont( aBackupFont );
+ }
USHORT nFirstDynTabPos;
SvLBoxTab* pFirstDynamicTab = GetFirstDynamicTab( nFirstDynTabPos );