summaryrefslogtreecommitdiff
path: root/sd/source/ui/animations/CustomAnimationList.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-14 12:48:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-15 07:28:07 +0100
commit0d9f3f7628f88fa66aaeea1f7148db620e17e728 (patch)
tree51cd0289fa399fbc338e0701f7ee13be8d228eb1 /sd/source/ui/animations/CustomAnimationList.cxx
parentc82802a9ee3514d0b98fbb3783abbc17ec02c3b6 (diff)
loplugin:changetoolsgen in sd
Change-Id: I41c5510f95167fe028f219fb593f12b75709bd65 Reviewed-on: https://gerrit.libreoffice.org/49726 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/animations/CustomAnimationList.cxx')
-rw-r--r--sd/source/ui/animations/CustomAnimationList.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/sd/source/ui/animations/CustomAnimationList.cxx b/sd/source/ui/animations/CustomAnimationList.cxx
index b55f53e54022..d1fcaecd3659 100644
--- a/sd/source/ui/animations/CustomAnimationList.cxx
+++ b/sd/source/ui/animations/CustomAnimationList.cxx
@@ -250,7 +250,7 @@ void CustomAnimationListEntryItem::InitViewData( SvTreeListBox* pView, SvTreeLis
Size aSize( width, pView->GetTextHeight() );
if( aSize.Height() < nItemMinHeight )
- aSize.Height() = nItemMinHeight;
+ aSize.setHeight( nItemMinHeight );
pViewData->maSize = aSize;
}
@@ -277,12 +277,12 @@ void CustomAnimationListEntryItem::Paint(const Point& rPos, SvTreeListBox& rDev,
//FIXME With previous image not defined in CustomAnimation.src
}
- aPos.X() += nIconWidth;
+ aPos.setX( aPos.X() + nIconWidth );
rRenderContext.DrawText(aPos, rRenderContext.GetEllipsisString(msDescription, rDev.GetOutputSizePixel().Width() - aPos.X()));
- aPos.Y() += nIconWidth;
+ aPos.setY( aPos.Y() + nIconWidth );
OUString sImage;
switch (mpEffect->getPresetClass())
@@ -318,12 +318,12 @@ void CustomAnimationListEntryItem::Paint(const Point& rPos, SvTreeListBox& rDev,
BitmapEx aBitmap(sImage);
Image aImage(aBitmap);
Point aImagePos(aPos);
- aImagePos.Y() += (aSize.Height()/2 - aImage.GetSizePixel().Height()) >> 1;
+ aImagePos.setY( aImagePos.Y() + ((aSize.Height()/2 - aImage.GetSizePixel().Height()) >> 1) );
rRenderContext.DrawImage(aImagePos, aImage);
}
- aPos.X() += nIconWidth;
- aPos.Y() += (aSize.Height()/2 - rDev.GetTextHeight()) >> 1;
+ aPos.setX( aPos.X() + nIconWidth );
+ aPos.setY( aPos.Y() + ((aSize.Height()/2 - rDev.GetTextHeight()) >> 1) );
rRenderContext.DrawText(aPos, rRenderContext.GetEllipsisString(msEffectName, rDev.GetOutputSizePixel().Width() - aPos.X()));
}
@@ -386,7 +386,7 @@ void CustomAnimationTriggerEntryItem::InitViewData( SvTreeListBox* pView, SvTree
Size aSize(pView->GetTextWidth( msDescription ) + 2 * nIconWidth, pView->GetTextHeight() );
if( aSize.Height() < nIconWidth )
- aSize.Height() = nIconWidth;
+ aSize.setHeight( nIconWidth );
pViewData->maSize = aSize;
}
@@ -419,10 +419,10 @@ void CustomAnimationTriggerEntryItem::Paint(const Point& rPos, SvTreeListBox& rD
int nVertBorder = ((aSize.Height() - rDev.GetTextHeight()) >> 1);
int nHorzBorder = rRenderContext.LogicToPixel(Size(3, 3), MapMode(MapUnit::MapAppFont)).Width();
- aOutRect.Left() += nHorzBorder;
- aOutRect.Right() -= nHorzBorder;
- aOutRect.Top() += nVertBorder;
- aOutRect.Bottom() -= nVertBorder;
+ aOutRect.SetLeft( aOutRect.Left() + nHorzBorder );
+ aOutRect.SetRight( aOutRect.Right() - nHorzBorder );
+ aOutRect.SetTop( aOutRect.Top() + nVertBorder );
+ aOutRect.SetBottom( aOutRect.Bottom() - nVertBorder );
rRenderContext.DrawText(aOutRect, rRenderContext.GetEllipsisString(msDescription, aOutRect.GetWidth()));
rRenderContext.Pop();
@@ -950,10 +950,10 @@ void CustomAnimationList::Paint(vcl::RenderContext& rRenderContext, const ::tool
::tools::Rectangle aRect(Point(0,0), GetOutputSizePixel());
- aRect.Left() += aOffset.X();
- aRect.Top() += aOffset.Y();
- aRect.Right() -= aOffset.X();
- aRect.Bottom() -= aOffset.Y();
+ aRect.SetLeft( aRect.Left() + aOffset.X() );
+ aRect.SetTop( aRect.Top() + aOffset.Y() );
+ aRect.SetRight( aRect.Right() - aOffset.X() );
+ aRect.SetBottom( aRect.Bottom() - aOffset.Y() );
rRenderContext.DrawText(aRect, SdResId(STR_CUSTOMANIMATION_LIST_HELPTEXT),
DrawTextFlags::MultiLine | DrawTextFlags::WordBreak | DrawTextFlags::Center | DrawTextFlags::VCenter );