diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-05 13:59:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-12-06 05:31:18 +0000 |
commit | 70f05aa69acca911298201b8a61e3312ec1ab30e (patch) | |
tree | b9ad6ff8795f3464701c3a643dc0367a804fbbf9 /sd | |
parent | ae923f941f70ebe99cc785076f3357015dd69003 (diff) |
convert PolyStyle to scoped enum
Change-Id: Ia35fdbb5e40888db9558988ac069741b31721f0e
Reviewed-on: https://gerrit.libreoffice.org/31633
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/eppt/epptso.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx index d1feda163db9..69f2fc02fbdc 100644 --- a/sd/source/filter/eppt/epptso.cxx +++ b/sd/source/filter/eppt/epptso.cxx @@ -1820,7 +1820,7 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, EscherSolverContainer& a else if ( mType == "drawing.Ellipse" ) { css::drawing::CircleKind eCircleKind( css::drawing::CircleKind_FULL ); - PolyStyle ePolyKind = POLY_CHORD; + PolyStyle ePolyKind = PolyStyle::Chord; if ( ImplGetPropertyValue( "CircleKind" ) ) { mAny >>= eCircleKind; @@ -1828,18 +1828,18 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, EscherSolverContainer& a { case css::drawing::CircleKind_SECTION : { - ePolyKind = POLY_PIE; + ePolyKind = PolyStyle::Pie; } break; case css::drawing::CircleKind_ARC : { - ePolyKind = POLY_ARC; + ePolyKind = PolyStyle::Arc; } break; case css::drawing::CircleKind_CUT : { - ePolyKind = POLY_CHORD; + ePolyKind = PolyStyle::Chord; } break; @@ -1899,15 +1899,15 @@ void PPTWriter::ImplWritePage( const PHLayout& rLayout, EscherSolverContainer& a css::awt::Rectangle aNewRect; switch ( ePolyKind ) { - case POLY_PIE : - case POLY_CHORD : + case PolyStyle::Pie : + case PolyStyle::Chord : { if ( aPropOpt.CreatePolygonProperties( mXPropSet, ESCHER_CREATEPOLYGON_POLYPOLYGON, false, aNewRect, &aPolygon ) ) aPropOpt.CreateFillProperties( mXPropSet, true, mXShape ); } break; - case POLY_ARC : + case PolyStyle::Arc : { if ( aPropOpt.CreatePolygonProperties( mXPropSet, ESCHER_CREATEPOLYGON_POLYLINE, false, aNewRect, &aPolygon ) ) aPropOpt.CreateLineProperties( mXPropSet, false ); |