summaryrefslogtreecommitdiff
path: root/svx/source/sidebar/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-20 11:03:20 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-21 06:04:19 +0100
commit924c0e34fdc36cd44100dafc2c68656ce32374e6 (patch)
tree05548e06d476b1244abb3ef83013514c7f991b3e /svx/source/sidebar/tools
parentfd20935bb819cb24e71f4f91b97149c35bc5987d (diff)
loplugin:changetoolsgen in svx
and fix the regex in the plugin for matching += operator Change-Id: I26b3e3fac1d4ef3e756cc9431b983b5f27ee76d6 Reviewed-on: https://gerrit.libreoffice.org/50037 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/sidebar/tools')
-rw-r--r--svx/source/sidebar/tools/ValueSetWithTextControl.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx
index da7800057b48..64bf618597a4 100644
--- a/svx/source/sidebar/tools/ValueSetWithTextControl.cxx
+++ b/svx/source/sidebar/tools/ValueSetWithTextControl.cxx
@@ -63,7 +63,7 @@ void ValueSetWithTextControl::UserDraw( const UserDrawEvent& rUDEvt )
vcl::Font aFont(OutputDevice::GetDefaultFont(DefaultFontType::UI_SANS, MsLangId::getSystemLanguage(), GetDefaultFontFlags::OnlyOne));
{
Size aSize = aFont.GetFontSize();
- aSize.Height() = (nRectHeight*4)/9;
+ aSize.setHeight( (nRectHeight*4)/9 );
aFont.SetFontSize( aSize );
}
@@ -72,8 +72,8 @@ void ValueSetWithTextControl::UserDraw( const UserDrawEvent& rUDEvt )
if ( GetSelectItemId() == nItemId )
{
tools::Rectangle aBackRect = aRect;
- aBackRect.Top() += 3;
- aBackRect.Bottom() -= 2;
+ aBackRect.AdjustTop(3 );
+ aBackRect.AdjustBottom( -2 );
pDev->SetFillColor( sfx2::sidebar::Theme::GetColor( sfx2::sidebar::Theme::Color_Highlight ) );
pDev->DrawRect(aBackRect);
}
@@ -93,16 +93,16 @@ void ValueSetWithTextControl::UserDraw( const UserDrawEvent& rUDEvt )
}
tools::Rectangle aStrRect = aRect;
- aStrRect.Top() += nRectHeight/4;
- aStrRect.Bottom() -= nRectHeight/4;
+ aStrRect.AdjustTop(nRectHeight/4 );
+ aStrRect.AdjustBottom( -(nRectHeight/4) );
const long nRectWidth = aRect.GetWidth();
- aStrRect.Left() += 8;
- aStrRect.Right() -= (nRectWidth*2)/3;
+ aStrRect.AdjustLeft(8 );
+ aStrRect.AdjustRight( -((nRectWidth*2)/3) );
pDev->SetFont(aFont);
pDev->DrawText(aStrRect, maItems[nItemId-1].maItemText, DrawTextFlags::EndEllipsis);
- aStrRect.Left() += nRectWidth/3;
- aStrRect.Right() += (nRectWidth*2)/3;
+ aStrRect.AdjustLeft(nRectWidth/3 );
+ aStrRect.AdjustRight((nRectWidth*2)/3 );
pDev->DrawText(aStrRect, maItems[nItemId-1].maItemText2, DrawTextFlags::EndEllipsis);
}