diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-24 13:21:36 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-25 08:40:00 +0200 |
commit | 2927a5c1c70b66062cc2b60f6f4eb7cf6c727d2c (patch) | |
tree | 038daf69a2a5103d97d2e285df3fd4fb19745d88 /include | |
parent | 8387ca6817f2fafcbb9c3bd9df76c91e93d4f772 (diff) |
convert SvxChartRegress to scoped enum
Change-Id: Ibdaad10c7936a0e53ab61c2016c8c9f3ac278767
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/chrtitem.hxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/svx/chrtitem.hxx b/include/svx/chrtitem.hxx index 330533874b5f..3d8365825840 100644 --- a/include/svx/chrtitem.hxx +++ b/include/svx/chrtitem.hxx @@ -75,20 +75,20 @@ enum SvxChartIndicate #define CHINDICATE_COUNT (CHINDICATE_DOWN + 1) -enum SvxChartRegress +enum class SvxChartRegress { - CHREGRESS_NONE, - CHREGRESS_LINEAR, - CHREGRESS_LOG, - CHREGRESS_EXP, - CHREGRESS_POWER, - CHREGRESS_POLYNOMIAL, - CHREGRESS_MOVING_AVERAGE, - CHREGRESS_MEAN_VALUE, - CHREGRESS_UNKNOWN + NONE, + Linear, + Log, + Exp, + Power, + Polynomial, + MovingAverage, + MeanValue, + Unknown }; -#define CHREGRESS_COUNT (CHREGRESS_UNKNOWN + 1) +#define CHREGRESS_COUNT ((sal_uInt16)SvxChartRegress::Unknown + 1) class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxChartStyleItem : public SfxEnumItem { @@ -107,7 +107,7 @@ public: class SAL_WARN_UNUSED SVX_DLLPUBLIC SvxChartRegressItem : public SfxEnumItem { public: - SvxChartRegressItem(SvxChartRegress eRegress /*= CHREGRESS_LINEAR*/, + SvxChartRegressItem(SvxChartRegress eRegress /*= SvxChartRegress::Linear*/, sal_uInt16 nId ); SvxChartRegressItem(SvStream& rIn, sal_uInt16 nId ); |