summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-24 11:54:15 +0200
committerNoel Grandin <noel@peralex.com>2016-08-25 08:40:00 +0200
commitfdaa46f065b52780a5115dbd1e59476bb44e39ab (patch)
tree8a67699602da70dcdc785857f843172b52bfe407 /svx
parentb8d03c61dbf8a680a7073d6416a219368fb054b8 (diff)
convert SvxDistributeHorizontal to scoped enum
Change-Id: I7f3592ac8ef90686954624f37394a6e8f047ca44
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdedtv2.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/svdraw/svdedtv2.cxx b/svx/source/svdraw/svdedtv2.cxx
index 151a97407db0..b4469e7e4796 100644
--- a/svx/source/svdraw/svdedtv2.cxx
+++ b/svx/source/svdraw/svdedtv2.cxx
@@ -788,7 +788,7 @@ void SdrEditView::DistributeMarkedObjects()
if( bUndo )
BegUndo();
- if(eHor != SvxDistributeHorizontalNone)
+ if(eHor != SvxDistributeHorizontal::NONE)
{
// build sorted entry list
nFullLength = 0L;
@@ -802,24 +802,24 @@ void SdrEditView::DistributeMarkedObjects()
switch(eHor)
{
- case SvxDistributeHorizontalLeft:
+ case SvxDistributeHorizontal::Left:
{
pNew->mnPos = pNew->mpObj->GetSnapRect().Left();
break;
}
- case SvxDistributeHorizontalCenter:
+ case SvxDistributeHorizontal::Center:
{
pNew->mnPos = (pNew->mpObj->GetSnapRect().Right() + pNew->mpObj->GetSnapRect().Left()) / 2;
break;
}
- case SvxDistributeHorizontalDistance:
+ case SvxDistributeHorizontal::Distance:
{
pNew->mnLength = pNew->mpObj->GetSnapRect().GetWidth() + 1;
nFullLength += pNew->mnLength;
pNew->mnPos = (pNew->mpObj->GetSnapRect().Right() + pNew->mpObj->GetSnapRect().Left()) / 2;
break;
}
- case SvxDistributeHorizontalRight:
+ case SvxDistributeHorizontal::Right:
{
pNew->mnPos = pNew->mpObj->GetSnapRect().Right();
break;
@@ -837,7 +837,7 @@ void SdrEditView::DistributeMarkedObjects()
aEntryList.push_back( pNew );
}
- if(eHor == SvxDistributeHorizontalDistance)
+ if(eHor == SvxDistributeHorizontal::Distance)
{
// calculate room in-between
sal_Int32 nWidth = GetAllMarkedBoundRect().GetWidth() + 1;