diff options
author | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-09-13 14:42:17 +0200 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2011-09-13 17:29:04 +0200 |
commit | 883991e8470075be1ade56595a90040d1ad64f6c (patch) | |
tree | c9ced72a3e522720b2570f39d5304decdc749be1 /vcl | |
parent | 99e1ea3c3f22388d9f4215b3914828f79e22cf83 (diff) |
Header/Footer: use a plus symbol instead of the add icon
This will help drawing the high contrast mode and makes the plus more
visible even given the background color.
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/vcl/symbol.hxx | 1 | ||||
-rw-r--r-- | vcl/source/window/decoview.cxx | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/vcl/inc/vcl/symbol.hxx b/vcl/inc/vcl/symbol.hxx index c03bf9a6af58..f15a399e172b 100644 --- a/vcl/inc/vcl/symbol.hxx +++ b/vcl/inc/vcl/symbol.hxx @@ -72,6 +72,7 @@ typedef sal_uInt16 SymbolType; #define SYMBOL_DOCK ((SymbolType)32) #define SYMBOL_HIDE ((SymbolType)33) #define SYMBOL_HELP ((SymbolType)34) +#define SYMBOL_PLUS ((SymbolType)35) #define SYMBOL_MENU SYMBOL_SPIN_DOWN #define SYMBOL_NOSYMBOL (SYMBOL_DONTKNOW) diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx index 125c927bf673..ba41187f0241 100644 --- a/vcl/source/window/decoview.cxx +++ b/vcl/source/window/decoview.cxx @@ -566,6 +566,17 @@ static void ImplDrawSymbol( OutputDevice* pDev, const Rectangle& rRect, pDev->DrawRect( aRect ); } break; + + case SYMBOL_PLUS: + { + nLeft = nCenterX-n2; + nRight = nCenterX+n2; + nTop = nCenterY-n2; + nBottom = nCenterY+n2; + pDev->DrawRect( Rectangle( nLeft, nCenterY - 1, nRight, nCenterY + 1 ) ); + pDev->DrawRect( Rectangle( nCenterX - 1, nTop, nCenterX + 1, nBottom ) ); + } + break; } } |