summaryrefslogtreecommitdiffstats
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-08-30 08:22:20 +0200
committerNoel Grandin <noel@peralex.com>2016-08-30 08:40:03 +0200
commitb62f4c2cd9685618fff2270760ce0787880f1c8d (patch)
tree31dd6705a99ec9070aef1e57c5ad0e6be13bf30f /chart2
parentconvert SdrEdgeLineCode to scoped enum (diff)
downloadcore-b62f4c2cd9685618fff2270760ce0787880f1c8d.tar.gz
core-b62f4c2cd9685618fff2270760ce0787880f1c8d.zip
convert RECT_POINT to scoped enum
Change-Id: I3f0304d69d5d638230b64135c73497192dc00cb3
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ChartController_Position.cxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/chart2/source/controller/main/ChartController_Position.cxx b/chart2/source/controller/main/ChartController_Position.cxx
index 369f6d442435..5764328bb5d5 100644
--- a/chart2/source/controller/main/ChartController_Position.cxx
+++ b/chart2/source/controller/main/ChartController_Position.cxx
@@ -54,7 +54,7 @@ void lcl_getPositionAndSizeFromItemSet( const SfxItemSet& rItemSet, awt::Rectang
long nSizX(0);
long nSizY(0);
- RECT_POINT eRP = (RECT_POINT)RP_LT;
+ RectPoint eRP = RectPoint::LT;
const SfxPoolItem* pPoolItem=nullptr;
//read position
@@ -68,37 +68,37 @@ void lcl_getPositionAndSizeFromItemSet( const SfxItemSet& rItemSet, awt::Rectang
if (SfxItemState::SET==rItemSet.GetItemState(SID_ATTR_TRANSFORM_HEIGHT,true,&pPoolItem))
nSizY=static_cast<const SfxUInt32Item*>(pPoolItem)->GetValue();
if (SfxItemState::SET==rItemSet.GetItemState(SID_ATTR_TRANSFORM_SIZE_POINT,true,&pPoolItem))
- eRP=(RECT_POINT)static_cast<const SfxAllEnumItem*>(pPoolItem)->GetValue();
+ eRP=(RectPoint)static_cast<const SfxAllEnumItem*>(pPoolItem)->GetValue();
switch( eRP )
{
- case RP_LT:
+ case RectPoint::LT:
break;
- case RP_MT:
+ case RectPoint::MT:
nPosX += ( rOriginalSize.Width - nSizX ) / 2;
break;
- case RP_RT:
+ case RectPoint::RT:
nPosX += rOriginalSize.Width - nSizX;
break;
- case RP_LM:
+ case RectPoint::LM:
nPosY += ( rOriginalSize.Height - nSizY ) / 2;
break;
- case RP_MM:
+ case RectPoint::MM:
nPosX += ( rOriginalSize.Width - nSizX ) / 2;
nPosY += ( rOriginalSize.Height - nSizY ) / 2;
break;
- case RP_RM:
+ case RectPoint::RM:
nPosX += rOriginalSize.Width - nSizX;
nPosY += ( rOriginalSize.Height - nSizY ) / 2;
break;
- case RP_LB:
+ case RectPoint::LB:
nPosY += rOriginalSize.Height - nSizY;
break;
- case RP_MB:
+ case RectPoint::MB:
nPosX += ( rOriginalSize.Width - nSizX ) / 2;
nPosY += rOriginalSize.Height - nSizY;
break;
- case RP_RB:
+ case RectPoint::RB:
nPosX += rOriginalSize.Width - nSizX;
nPosY += rOriginalSize.Height - nSizY;
break;