diff options
author | Niklas Nebel <nn@openoffice.org> | 2002-08-16 13:44:35 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2002-08-16 13:44:35 +0000 |
commit | c3427c5e0c22086cce247ca5e0fb9fb5a49d580a (patch) | |
tree | dabe3caf6a03a088e46ee9947f8157b8f3e2abf3 /sc/source/ui/view/output.cxx | |
parent | e154ae7d9e85b8a3e3804330b04c6c5fa77f9e45 (diff) |
#97223# DrawClipMarks: in high contrast mode, use text color also as fill color
Diffstat (limited to 'sc/source/ui/view/output.cxx')
-rw-r--r-- | sc/source/ui/view/output.cxx | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx index e4d17d1b3cff..14470457e575 100644 --- a/sc/source/ui/view/output.cxx +++ b/sc/source/ui/view/output.cxx @@ -2,9 +2,9 @@ * * $RCSfile: output.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: nn $ $Date: 2002-05-30 18:39:33 $ + * last change: $Author: nn $ $Date: 2002-08-16 14:44:35 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -2703,12 +2703,16 @@ void ScOutputData::DrawClipMarks() if (!bAnyClipped) return; + Color aArrowFillCol( COL_LIGHTRED ); + ULONG nOldDrawMode = pDev->GetDrawMode(); - if ( bUseStyleColor && Application::GetSettings().GetStyleSettings().GetHighContrastMode() ) + const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings(); + if ( bUseStyleColor && rStyleSettings.GetHighContrastMode() ) { - // force SvxFont::DrawArrow to draw in a way suitable for high contrast mode - pDev->SetDrawMode( nOldDrawMode | DRAWMODE_SETTINGSLINE | DRAWMODE_SETTINGSFILL | - DRAWMODE_SETTINGSTEXT | DRAWMODE_SETTINGSGRADIENT ); + // use DrawMode to change the arrow's outline color + pDev->SetDrawMode( nOldDrawMode | DRAWMODE_SETTINGSLINE ); + // use text color also for the fill color + aArrowFillCol = rStyleSettings.GetWindowTextColor(); } long nPosY = nScrY; @@ -2763,7 +2767,7 @@ void ScOutputData::DrawClipMarks() pDev->DrawRect(aMarkRect); //! Test #endif - SvxFont::DrawArrow( *pDev, aMarkRect, aMarkSize, Color(COL_LIGHTRED), FALSE ); + SvxFont::DrawArrow( *pDev, aMarkRect, aMarkSize, aArrowFillCol, FALSE ); } nPosX += pRowInfo[0].pCellInfo[nX+1].nWidth; |