summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorRadu Ioan <ioan.radu.g@gmail.com>2014-12-05 20:09:01 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-11 18:31:01 +0100
commitc69f481d792c7b121479d024cf675f6ddb747422 (patch)
tree43f8c056312a1f97ed09c0a309a3c897c74b51b5 /sw
parentfbe9accf36ac4c52ef5bcb84d455b4d06c317668 (diff)
fdo#85486 - Clean up unnecessary enumerations from xenum.hxx
Removed XGradientStyle Reviewed on: https://gerrit.libreoffice.org/13320 Change-Id: Iff662c05105c3a939104f658f2d0be7d8cb57995
Diffstat (limited to 'sw')
-rw-r--r--sw/source/filter/ww8/docxattributeoutput.cxx14
-rw-r--r--sw/source/filter/ww8/rtfattributeoutput.cxx14
2 files changed, 16 insertions, 12 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx
index c8a80c55a3f2..a37b1a8d1a4a 100644
--- a/sw/source/filter/ww8/docxattributeoutput.cxx
+++ b/sw/source/filter/ww8/docxattributeoutput.cxx
@@ -7602,18 +7602,20 @@ void DocxAttributeOutput::FormatFillGradient( const XFillGradientItem& rFillGrad
switch (rGradient.GetGradientStyle())
{
- case XGRAD_AXIAL:
+ case css::awt::GradientStyle_AXIAL:
AddToAttrList( m_rExport.SdrExporter().getFlyFillAttrList(), XML_focus, "50%" );
// If it is an 'axial' gradient - swap the colors
// (because in the import process they were imported swapped)
sColor1 = sEndColor;
sColor2 = sStartColor;
break;
- case XGRAD_LINEAR: break;
- case XGRAD_RADIAL: break;
- case XGRAD_ELLIPTICAL: break;
- case XGRAD_SQUARE: break;
- case XGRAD_RECT: break;
+ case css::awt::GradientStyle_LINEAR: break;
+ case css::awt::GradientStyle_RADIAL: break;
+ case css::awt::GradientStyle_ELLIPTICAL: break;
+ case css::awt::GradientStyle_SQUARE: break;
+ case css::awt::GradientStyle_RECT: break;
+ default:
+ break;
}
sColor1 = "#" + sColor1;
diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx
index 80959d7fa06a..ea0bd99ce71e 100644
--- a/sw/source/filter/ww8/rtfattributeoutput.cxx
+++ b/sw/source/filter/ww8/rtfattributeoutput.cxx
@@ -3096,18 +3096,20 @@ void RtfAttributeOutput::FormatFillGradient(const XFillGradientItem& rFillGradie
switch (rGradient.GetGradientStyle())
{
- case XGRAD_LINEAR:
+ case css::awt::GradientStyle_LINEAR:
break;
- case XGRAD_AXIAL:
+ case css::awt::GradientStyle_AXIAL:
m_aFlyProperties.push_back(std::make_pair<OString, OString>("fillFocus", OString::number(50)));
break;
- case XGRAD_RADIAL:
+ case css::awt::GradientStyle_RADIAL:
break;
- case XGRAD_ELLIPTICAL:
+ case css::awt::GradientStyle_ELLIPTICAL:
break;
- case XGRAD_SQUARE:
+ case css::awt::GradientStyle_SQUARE:
break;
- case XGRAD_RECT:
+ case css::awt::GradientStyle_RECT:
+ break;
+ default:
break;
}
}