diff options
author | Jan Holesovsky <kendy@suse.cz> | 2012-06-12 11:06:56 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2012-06-12 16:31:43 +0200 |
commit | f268355606630e9fc07a945859ec57ae00f6e427 (patch) | |
tree | 2cb8d9bd9bf9bf20fa7b9234b52e553173757427 /vcl/source/window/dockingarea.cxx | |
parent | eac708b0b188d7e6477922bb4bc03199cd92f5ca (diff) |
toolbars: Improve the toolbars look in Windows Vista or later.
Change-Id: I389ef70c76a3a9c837ad5406c417804ad77be948
Diffstat (limited to 'vcl/source/window/dockingarea.cxx')
-rw-r--r-- | vcl/source/window/dockingarea.cxx | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/vcl/source/window/dockingarea.cxx b/vcl/source/window/dockingarea.cxx index 31f29c2f186f..a123ead8f959 100644 --- a/vcl/source/window/dockingarea.cxx +++ b/vcl/source/window/dockingarea.cxx @@ -171,24 +171,27 @@ void DockingAreaWindow::Paint( const Rectangle& ) DrawNativeControl( CTRL_TOOLBAR, IsHorizontal() ? PART_DRAW_BACKGROUND_HORZ : PART_DRAW_BACKGROUND_VERT, aCtrlRegion, nState, aControlValue, rtl::OUString() ); - // each toolbar gets a thin border to better recognize its borders on the homogeneous docking area - sal_uInt16 nChildren = GetChildCount(); - for( sal_uInt16 n = 0; n < nChildren; n++ ) + if( !ImplGetSVData()->maNWFData.mbDockingAreaAvoidTBFrames ) { - Window* pChild = GetChild( n ); - if ( pChild->IsVisible() ) + // each toolbar gets a thin border to better recognize its borders on the homogeneous docking area + sal_uInt16 nChildren = GetChildCount(); + for( sal_uInt16 n = 0; n < nChildren; n++ ) { - Point aPos = pChild->GetPosPixel(); - Size aSize = pChild->GetSizePixel(); - Rectangle aRect( aPos, aSize ); - - SetLineColor( GetSettings().GetStyleSettings().GetLightColor() ); - DrawLine( aRect.TopLeft(), aRect.TopRight() ); - DrawLine( aRect.TopLeft(), aRect.BottomLeft() ); - - SetLineColor( GetSettings().GetStyleSettings().GetSeparatorColor() ); - DrawLine( aRect.BottomLeft(), aRect.BottomRight() ); - DrawLine( aRect.TopRight(), aRect.BottomRight() ); + Window* pChild = GetChild( n ); + if ( pChild->IsVisible() ) + { + Point aPos = pChild->GetPosPixel(); + Size aSize = pChild->GetSizePixel(); + Rectangle aRect( aPos, aSize ); + + SetLineColor( GetSettings().GetStyleSettings().GetLightColor() ); + DrawLine( aRect.TopLeft(), aRect.TopRight() ); + DrawLine( aRect.TopLeft(), aRect.BottomLeft() ); + + SetLineColor( GetSettings().GetStyleSettings().GetSeparatorColor() ); + DrawLine( aRect.BottomLeft(), aRect.BottomRight() ); + DrawLine( aRect.TopRight(), aRect.BottomRight() ); + } } } } |