summaryrefslogtreecommitdiff
path: root/sc/source/ui/cctrl
diff options
context:
space:
mode:
authorDaniel Rentz <dr@openoffice.org>2002-07-29 13:18:04 +0000
committerDaniel Rentz <dr@openoffice.org>2002-07-29 13:18:04 +0000
commit4612b2511d24f73a04c6e6a3d4d3a787b3c023e5 (patch)
tree5c1f8349c20ad9f4d44ddd1b6bcee2b463b87704 /sc/source/ui/cctrl
parent3f2813dd3356c3d0d2eca177ccb35c050ee35b10 (diff)
#101561# HC for autofilter buttons
Diffstat (limited to 'sc/source/ui/cctrl')
-rw-r--r--sc/source/ui/cctrl/cbuttonw.cxx17
1 files changed, 10 insertions, 7 deletions
diff --git a/sc/source/ui/cctrl/cbuttonw.cxx b/sc/source/ui/cctrl/cbuttonw.cxx
index 17421faaac34..76a42bb93495 100644
--- a/sc/source/ui/cctrl/cbuttonw.cxx
+++ b/sc/source/ui/cctrl/cbuttonw.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: cbuttonw.cxx,v $
*
- * $Revision: 1.1.1.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: hr $ $Date: 2000-09-18 16:44:53 $
+ * last change: $Author: dr $ $Date: 2002-07-29 14:17:38 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -68,6 +68,7 @@
#include <tools/svwin.h>
#include <vcl/window.hxx>
#include <vcl/decoview.hxx>
+#include <vcl/svapp.hxx>
#include "cbutton.hxx"
@@ -101,7 +102,7 @@ void ScDDComboBoxButton::SetOptSizePixel()
void ScDDComboBoxButton::Draw( const Point& rAt,
const Size& rSize,
- const Color& rArrowCol,
+ BOOL bState,
BOOL bBtnIn /* = FALSE */ )
{
// save old state
@@ -139,7 +140,7 @@ void ScDDComboBoxButton::Draw( const Point& rAt,
aInnerRect.Top() = aInnerCenter.Y() - (aInnerSize.Width()>>1);
aInnerRect.Bottom()= aInnerCenter.Y() + (aInnerSize.Width()>>1);
- ImpDrawArrow( aInnerRect, rArrowCol );
+ ImpDrawArrow( aInnerRect, bState );
// restore old state
@@ -157,7 +158,7 @@ void ScDDComboBoxButton::Draw( const Point& rAt,
//------------------------------------------------------------------------
void ScDDComboBoxButton::ImpDrawArrow( const Rectangle& rRect,
- const Color& rColor )
+ BOOL bState )
{
// no need to save old line and fill color here (is restored after the call)
@@ -175,8 +176,10 @@ void ScDDComboBoxButton::ImpDrawArrow( const Rectangle& rRect,
Rectangle aTempRect = aPixRect;
- pOut->SetFillColor( rColor );
- pOut->SetLineColor( rColor );
+ const StyleSettings& rSett = Application::GetSettings().GetStyleSettings();
+ Color aColor( bState ? COL_LIGHTBLUE : rSett.GetButtonTextColor() );
+ pOut->SetFillColor( aColor );
+ pOut->SetLineColor( aColor );
aTempRect.Left() = aCenter.X() - aSize4.Width();
aTempRect.Right() = aCenter.X() + aSize4.Width();