diff options
Diffstat (limited to 'vcl/source/window/toolbox2.cxx')
-rw-r--r-- | vcl/source/window/toolbox2.cxx | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/vcl/source/window/toolbox2.cxx b/vcl/source/window/toolbox2.cxx index 6cdd0edc7fce..c1e5d9ab4d7d 100644 --- a/vcl/source/window/toolbox2.cxx +++ b/vcl/source/window/toolbox2.cxx @@ -145,16 +145,16 @@ Size ImplToolItem::GetSize( bool bHorz, bool bCheckMaxWidth, long maxWidth, cons if ( !bCheckMaxWidth || (aWinSize.Width() <= maxWidth) ) { - aSize.Width() = aWinSize.Width(); - aSize.Height() = aWinSize.Height(); + aSize.setWidth( aWinSize.Width() ); + aSize.setHeight( aWinSize.Height() ); mbShowWindow = true; } else { if ( mbEmptyBtn ) { - aSize.Width() = 0; - aSize.Height() = 0; + aSize.setWidth( 0 ); + aSize.setHeight( 0 ); } } } @@ -163,19 +163,19 @@ Size ImplToolItem::GetSize( bool bHorz, bool bCheckMaxWidth, long maxWidth, cons { if ( bHorz ) { - aSize.Width() = mnSepSize; - aSize.Height() = rDefaultSize.Height(); + aSize.setWidth( mnSepSize ); + aSize.setHeight( rDefaultSize.Height() ); } else { - aSize.Width() = rDefaultSize.Width(); - aSize.Height() = mnSepSize; + aSize.setWidth( rDefaultSize.Width() ); + aSize.setHeight( mnSepSize ); } } else if ( meType == ToolBoxItemType::BREAK ) { - aSize.Width() = 0; - aSize.Height() = 0; + aSize.setWidth( 0 ); + aSize.setHeight( 0 ); } return aSize; @@ -241,10 +241,10 @@ tools::Rectangle ImplToolItem::GetDropDownRect( bool bHorz ) const aRect = maRect; if( mbVisibleText && !bHorz ) // item will be rotated -> place dropdown to the bottom - aRect.Top() = aRect.Bottom() - mnDropDownArrowWidth; + aRect.SetTop( aRect.Bottom() - mnDropDownArrowWidth ); else // place dropdown to the right - aRect.Left() = aRect.Right() - mnDropDownArrowWidth; + aRect.SetLeft( aRect.Right() - mnDropDownArrowWidth ); } return aRect; } @@ -810,31 +810,31 @@ Point ToolBox::ImplGetPopupPosition( const tools::Rectangle& rRect ) const { case WindowAlign::Top: aPos = rRect.BottomLeft(); - aPos.Y()++; + aPos.AdjustY( 1 ); devPos = OutputToAbsoluteScreenPixel( aPos ); if( devPos.Y() >= aScreen.Bottom() ) - aPos.Y() = rRect.Top(); + aPos.setY( rRect.Top() ); break; case WindowAlign::Bottom: aPos = rRect.TopLeft(); - aPos.Y()--; + aPos.AdjustY( -1 ); devPos = OutputToAbsoluteScreenPixel( aPos ); if( devPos.Y() <= aScreen.Top() ) - aPos.Y() = rRect.Bottom(); + aPos.setY( rRect.Bottom() ); break; case WindowAlign::Left: aPos = rRect.TopRight(); - aPos.X()++; + aPos.AdjustX( 1 ); devPos = OutputToAbsoluteScreenPixel( aPos ); if( devPos.X() >= aScreen.Right() ) - aPos.X() = rRect.Left(); + aPos.setX( rRect.Left() ); break; case WindowAlign::Right: aPos = rRect.TopLeft(); - aPos.X()--; + aPos.AdjustX( -1 ); devPos = OutputToAbsoluteScreenPixel( aPos ); if( devPos.X() <= aScreen.Left() ) - aPos.X() = rRect.Right(); + aPos.setX( rRect.Right() ); break; default: break; |