From 12569802394fb0a9850fcdb0647a0845a803f1ff Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 2 Sep 2016 10:53:14 +0200 Subject: convert GradientStyle to scoped enum Change-Id: Ib740da708612df7a5f4b8c82262b9b1bd436604d --- oox/source/export/drawingml.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'oox') diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx index b93962ec2e63..41b0eea28cca 100644 --- a/oox/source/export/drawingml.cxx +++ b/oox/source/export/drawingml.cxx @@ -446,7 +446,7 @@ void DrawingML::WriteGradientFill( awt::Gradient rGradient ) switch( rGradient.Style ) { default: - case GradientStyle_LINEAR: + case awt::GradientStyle_LINEAR: mpFS->startElementNS( XML_a, XML_gsLst, FSEND ); WriteGradientStop( 0, ColorWithIntensity( rGradient.StartColor, rGradient.StartIntensity ) ); WriteGradientStop( 100, ColorWithIntensity( rGradient.EndColor, rGradient.EndIntensity ) ); @@ -456,7 +456,7 @@ void DrawingML::WriteGradientFill( awt::Gradient rGradient ) FSEND ); break; - case GradientStyle_AXIAL: + case awt::GradientStyle_AXIAL: mpFS->startElementNS( XML_a, XML_gsLst, FSEND ); WriteGradientStop( 0, ColorWithIntensity( rGradient.EndColor, rGradient.EndIntensity ) ); WriteGradientStop( 50, ColorWithIntensity( rGradient.StartColor, rGradient.StartIntensity ) ); @@ -470,10 +470,10 @@ void DrawingML::WriteGradientFill( awt::Gradient rGradient ) /* I don't see how to apply transformation to gradients, so * elliptical will end as radial and square as * rectangular. also position offsets are not applied */ - case GradientStyle_RADIAL: - case GradientStyle_ELLIPTICAL: - case GradientStyle_RECT: - case GradientStyle_SQUARE: + case awt::GradientStyle_RADIAL: + case awt::GradientStyle_ELLIPTICAL: + case awt::GradientStyle_RECT: + case awt::GradientStyle_SQUARE: mpFS->startElementNS( XML_a, XML_gsLst, FSEND ); WriteGradientStop( 0, ColorWithIntensity( rGradient.EndColor, rGradient.EndIntensity ) ); WriteGradientStop( 100, ColorWithIntensity( rGradient.StartColor, rGradient.StartIntensity ) ); -- cgit