summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-24 11:41:07 +0200
committerNoel Grandin <noel@peralex.com>2016-08-25 08:40:00 +0200
commitb8d03c61dbf8a680a7073d6416a219368fb054b8 (patch)
treec1f14a78f5e6146339feb0199d5064b3e6630ebb /svx
parent9296ec4403b642939ae49322c5d84066ac5854c8 (diff)
convert SvxDistributeVertical to scoped enum
Change-Id: I1797b9cd0164f8fcee2fb768a1db08ae17457534
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 184c7274caf7..151a97407db0 100644
--- a/svx/source/svdraw/svdedtv2.cxx
+++ b/svx/source/svdraw/svdedtv2.cxx
@@ -883,7 +883,7 @@ void SdrEditView::DistributeMarkedObjects()
aEntryList.clear();
}
- if(eVer != SvxDistributeVerticalNone)
+ if(eVer != SvxDistributeVertical::NONE)
{
// build sorted entry list
nFullLength = 0L;
@@ -897,24 +897,24 @@ void SdrEditView::DistributeMarkedObjects()
switch(eVer)
{
- case SvxDistributeVerticalTop:
+ case SvxDistributeVertical::Top:
{
pNew->mnPos = pNew->mpObj->GetSnapRect().Top();
break;
}
- case SvxDistributeVerticalCenter:
+ case SvxDistributeVertical::Center:
{
pNew->mnPos = (pNew->mpObj->GetSnapRect().Bottom() + pNew->mpObj->GetSnapRect().Top()) / 2;
break;
}
- case SvxDistributeVerticalDistance:
+ case SvxDistributeVertical::Distance:
{
pNew->mnLength = pNew->mpObj->GetSnapRect().GetHeight() + 1;
nFullLength += pNew->mnLength;
pNew->mnPos = (pNew->mpObj->GetSnapRect().Bottom() + pNew->mpObj->GetSnapRect().Top()) / 2;
break;
}
- case SvxDistributeVerticalBottom:
+ case SvxDistributeVertical::Bottom:
{
pNew->mnPos = pNew->mpObj->GetSnapRect().Bottom();
break;
@@ -932,7 +932,7 @@ void SdrEditView::DistributeMarkedObjects()
aEntryList.push_back( pNew );
}
- if(eVer == SvxDistributeVerticalDistance)
+ if(eVer == SvxDistributeVertical::Distance)
{
// calculate room in-between
sal_Int32 nHeight = GetAllMarkedBoundRect().GetHeight() + 1;