diff options
Diffstat (limited to 'sd/source/ui/toolpanel/SubToolPanel.cxx')
-rwxr-xr-x | sd/source/ui/toolpanel/SubToolPanel.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sd/source/ui/toolpanel/SubToolPanel.cxx b/sd/source/ui/toolpanel/SubToolPanel.cxx index 73783b0f0a41..2dd496106e24 100755 --- a/sd/source/ui/toolpanel/SubToolPanel.cxx +++ b/sd/source/ui/toolpanel/SubToolPanel.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -133,7 +133,7 @@ void SubToolPanel::Paint (const Rectangle& rRect) Size aSize (GetOutputSizePixel()); // Paint left and right vertical border. Rectangle aVerticalArea ( - Point(0,0), + Point(0,0), Size(mnHorizontalBorder,aSize.Height())); DrawRect (aVerticalArea); aVerticalArea.Right() += mnHorizontalBorder + mnChildrenWidth - 1; @@ -155,7 +155,7 @@ void SubToolPanel::Paint (const Rectangle& rRect) break; DrawRect (aStripeArea); } - + SetLineColor (aOriginalLineColor); SetFillColor (aOriginalFillColor); } @@ -262,7 +262,7 @@ void SubToolPanel::Rearrange (void) aRequiredSize.Width() = aAvailableSize.Width(); mnChildrenWidth = -2*mnHorizontalBorder; mnChildrenWidth += aAvailableSize.Width(); - + LayoutChildren(); mbIsRearrangePending = false; @@ -276,7 +276,7 @@ Size SubToolPanel::GetRequiredSize (void) { // First determine the width of the children. This is the maximum of // the current window width and the individual minimum widths of the - // children. + // children. int nChildrenWidth (GetSizePixel().Width()); unsigned int nCount = mpControlContainer->GetControlCount(); unsigned int nIndex; @@ -291,7 +291,7 @@ Size SubToolPanel::GetRequiredSize (void) // Determine the accumulated width of all children when scaled to the // minimum width. nChildrenWidth -= 2*mnHorizontalBorder; - Size aTotalSize (nChildrenWidth, + Size aTotalSize (nChildrenWidth, 2*mnVerticalBorder + (nCount-1) * mnVerticalGap); for (nIndex=0; nIndex<nCount; nIndex++) { |