Kaydet (Commit) d7bdf8cd authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS dba24e_SRC680 (1.54.14); FILE MERGED

2007/12/03 10:16:10 fs 1.54.14.1: #i84188#
üst 5bb91807
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: svtreebx.cxx,v $ * $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 Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -1595,6 +1595,7 @@ long SvTreeListBox::PaintEntry1(SvLBoxEntry* pEntry,long nLine,USHORT nTabFlags, ...@@ -1595,6 +1595,7 @@ long SvTreeListBox::PaintEntry1(SvLBoxEntry* pEntry,long nLine,USHORT nTabFlags,
long nMaxRight = nWidth + aEntryPos.X() - 1; long nMaxRight = nWidth + aEntryPos.X() - 1;
Color aBackupTextColor( GetTextColor() ); Color aBackupTextColor( GetTextColor() );
Font aBackupFont( GetFont() );
Color aBackupColor = GetFillColor(); Color aBackupColor = GetFillColor();
bool bCurFontIsSel = false; bool bCurFontIsSel = false;
...@@ -1605,7 +1606,9 @@ long SvTreeListBox::PaintEntry1(SvLBoxEntry* pEntry,long nLine,USHORT nTabFlags, ...@@ -1605,7 +1606,9 @@ long SvTreeListBox::PaintEntry1(SvLBoxEntry* pEntry,long nLine,USHORT nTabFlags,
BOOL bHideSelection = ((nWindowStyle & WB_HIDESELECTION) && !HasFocus())!=0; BOOL bHideSelection = ((nWindowStyle & WB_HIDESELECTION) && !HasFocus())!=0;
const StyleSettings& rSettings = GetSettings().GetStyleSettings(); const StyleSettings& rSettings = GetSettings().GetStyleSettings();
Color aHighlightTextColor( rSettings.GetHighlightTextColor() ); Font aHighlightFont( GetFont() );
const Color aHighlightTextColor( rSettings.GetHighlightTextColor() );
aHighlightFont.SetColor( aHighlightTextColor );
Size aRectSize( 0, nTempEntryHeight ); Size aRectSize( 0, nTempEntryHeight );
...@@ -1681,6 +1684,7 @@ long SvTreeListBox::PaintEntry1(SvLBoxEntry* pEntry,long nLine,USHORT nTabFlags, ...@@ -1681,6 +1684,7 @@ long SvTreeListBox::PaintEntry1(SvLBoxEntry* pEntry,long nLine,USHORT nTabFlags,
if ( !bCurFontIsSel ) if ( !bCurFontIsSel )
{ {
SetTextColor( aHighlightTextColor ); SetTextColor( aHighlightTextColor );
SetFont( aHighlightFont );
bCurFontIsSel = true; bCurFontIsSel = true;
} }
} }
...@@ -1694,6 +1698,7 @@ long SvTreeListBox::PaintEntry1(SvLBoxEntry* pEntry,long nLine,USHORT nTabFlags, ...@@ -1694,6 +1698,7 @@ long SvTreeListBox::PaintEntry1(SvLBoxEntry* pEntry,long nLine,USHORT nTabFlags,
{ {
bCurFontIsSel = false; bCurFontIsSel = false;
SetTextColor( aBackupTextColor ); SetTextColor( aBackupTextColor );
SetFont( aBackupFont );
} }
} }
...@@ -1772,7 +1777,10 @@ long SvTreeListBox::PaintEntry1(SvLBoxEntry* pEntry,long nLine,USHORT nTabFlags, ...@@ -1772,7 +1777,10 @@ long SvTreeListBox::PaintEntry1(SvLBoxEntry* pEntry,long nLine,USHORT nTabFlags,
} }
if( bCurFontIsSel ) if( bCurFontIsSel )
{
SetTextColor( aBackupTextColor ); SetTextColor( aBackupTextColor );
SetFont( aBackupFont );
}
USHORT nFirstDynTabPos; USHORT nFirstDynTabPos;
SvLBoxTab* pFirstDynamicTab = GetFirstDynamicTab( nFirstDynTabPos ); SvLBoxTab* pFirstDynamicTab = GetFirstDynamicTab( nFirstDynTabPos );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment