summaryrefslogtreecommitdiff
path: root/svx/source/unodraw
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 /svx/source/unodraw
parentcbea925b367535eb2652a2c8fa80b4cc746d95bd (diff)
convert RECT_POINT to scoped enum
Change-Id: I3f0304d69d5d638230b64135c73497192dc00cb3
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r--svx/source/unodraw/unobrushitemhelper.cxx42
1 files changed, 21 insertions, 21 deletions
diff --git a/svx/source/unodraw/unobrushitemhelper.cxx b/svx/source/unodraw/unobrushitemhelper.cxx
index ca484bc93a1e..c3d547d973d7 100644
--- a/svx/source/unodraw/unobrushitemhelper.cxx
+++ b/svx/source/unodraw/unobrushitemhelper.cxx
@@ -75,7 +75,7 @@ void setSvxBrushItemAsFillAttributesToTargetSet(const SvxBrushItem& rBrush, SfxI
rToSet.Put(XFillBmpTileItem(false));
// default for stretch is also top-left, but this will not be visible
- rToSet.Put(XFillBmpPosItem(RP_LT));
+ rToSet.Put(XFillBmpPosItem(RectPoint::LT));
}
else if(GPOS_TILED == rBrush.GetGraphicPos())
{
@@ -84,7 +84,7 @@ void setSvxBrushItemAsFillAttributesToTargetSet(const SvxBrushItem& rBrush, SfxI
rToSet.Put(XFillBmpTileItem(true));
// default for tiled is top-left
- rToSet.Put(XFillBmpPosItem(RP_LT));
+ rToSet.Put(XFillBmpPosItem(RectPoint::LT));
}
else
{
@@ -92,19 +92,19 @@ void setSvxBrushItemAsFillAttributesToTargetSet(const SvxBrushItem& rBrush, SfxI
rToSet.Put(XFillBmpStretchItem(false));
rToSet.Put(XFillBmpTileItem(false));
- RECT_POINT aRectPoint(RP_MM);
+ RectPoint aRectPoint(RectPoint::MM);
switch(rBrush.GetGraphicPos())
{
- case GPOS_LT: aRectPoint = RP_LT; break;
- case GPOS_MT: aRectPoint = RP_MT; break;
- case GPOS_RT: aRectPoint = RP_RT; break;
- case GPOS_LM: aRectPoint = RP_LM; break;
- case GPOS_MM: aRectPoint = RP_MM; break;
- case GPOS_RM: aRectPoint = RP_RM; break;
- case GPOS_LB: aRectPoint = RP_LB; break;
- case GPOS_MB: aRectPoint = RP_MB; break;
- case GPOS_RB: aRectPoint = RP_RB; break;
+ case GPOS_LT: aRectPoint = RectPoint::LT; break;
+ case GPOS_MT: aRectPoint = RectPoint::MT; break;
+ case GPOS_RT: aRectPoint = RectPoint::RT; break;
+ case GPOS_LM: aRectPoint = RectPoint::LM; break;
+ case GPOS_MM: aRectPoint = RectPoint::MM; break;
+ case GPOS_RM: aRectPoint = RectPoint::RM; break;
+ case GPOS_LB: aRectPoint = RectPoint::LB; break;
+ case GPOS_MB: aRectPoint = RectPoint::MB; break;
+ case GPOS_RB: aRectPoint = RectPoint::RB; break;
default: break; // GPOS_NONE, GPOS_AREA and GPOS_TILED already handled
}
@@ -311,15 +311,15 @@ SvxBrushItem getSvxBrushItemFromSourceSet(const SfxItemSet& rSourceSet, sal_uInt
switch(rPosItem.GetValue())
{
- case RP_LT: aSvxGraphicPosition = GPOS_LT; break;
- case RP_MT: aSvxGraphicPosition = GPOS_MT; break;
- case RP_RT: aSvxGraphicPosition = GPOS_RT; break;
- case RP_LM: aSvxGraphicPosition = GPOS_LM; break;
- case RP_MM: aSvxGraphicPosition = GPOS_MM; break;
- case RP_RM: aSvxGraphicPosition = GPOS_RM; break;
- case RP_LB: aSvxGraphicPosition = GPOS_LB; break;
- case RP_MB: aSvxGraphicPosition = GPOS_MB; break;
- case RP_RB: aSvxGraphicPosition = GPOS_RB; break;
+ case RectPoint::LT: aSvxGraphicPosition = GPOS_LT; break;
+ case RectPoint::MT: aSvxGraphicPosition = GPOS_MT; break;
+ case RectPoint::RT: aSvxGraphicPosition = GPOS_RT; break;
+ case RectPoint::LM: aSvxGraphicPosition = GPOS_LM; break;
+ case RectPoint::MM: aSvxGraphicPosition = GPOS_MM; break;
+ case RectPoint::RM: aSvxGraphicPosition = GPOS_RM; break;
+ case RectPoint::LB: aSvxGraphicPosition = GPOS_LB; break;
+ case RectPoint::MB: aSvxGraphicPosition = GPOS_MB; break;
+ case RectPoint::RB: aSvxGraphicPosition = GPOS_RB; break;
}
}