From 9296ec4403b642939ae49322c5d84066ac5854c8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 24 Aug 2016 11:28:40 +0200 Subject: convert SvxNumValCategory to scoped enum and fix bug in NumFormatListBox::GetDefValue in SW Change-Id: I459b7d5bd181235daa5d128315604f1ed1259ed4 --- cui/source/tabpages/numfmt.cxx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'cui') diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx index d37ed270e8bd..e5768dcfdf39 100644 --- a/cui/source/tabpages/numfmt.cxx +++ b/cui/source/tabpages/numfmt.cxx @@ -1722,28 +1722,28 @@ OUString SvxNumberFormatTabPage::GetExpColorString( SvxNumValCategory i; switch (nTmpCatPos) { - case CAT_ALL: i=SVX_NUMVAL_STANDARD; break; + case CAT_ALL: i=SvxNumValCategory::Standard; break; - case CAT_NUMBER: i=SVX_NUMVAL_STANDARD; break; + case CAT_NUMBER: i=SvxNumValCategory::Standard; break; - case CAT_PERCENT: i=SVX_NUMVAL_PERCENT; break; + case CAT_PERCENT: i=SvxNumValCategory::Percent; break; - case CAT_CURRENCY: i=SVX_NUMVAL_CURRENCY; break; + case CAT_CURRENCY: i=SvxNumValCategory::Currency; break; - case CAT_DATE: i=SVX_NUMVAL_DATE; break; + case CAT_DATE: i=SvxNumValCategory::Date; break; - case CAT_TIME: i=SVX_NUMVAL_TIME; break; + case CAT_TIME: i=SvxNumValCategory::Time; break; - case CAT_SCIENTIFIC: i=SVX_NUMVAL_SCIENTIFIC; break; + case CAT_SCIENTIFIC: i=SvxNumValCategory::Scientific; break; - case CAT_FRACTION: i=SVX_NUMVAL_FRACTION; break; + case CAT_FRACTION: i=SvxNumValCategory::Fraction; break; - case CAT_BOOLEAN: i=SVX_NUMVAL_BOOLEAN; break; + case CAT_BOOLEAN: i=SvxNumValCategory::Boolean; break; - case CAT_USERDEFINED: i=SVX_NUMVAL_STANDARD; break; + case CAT_USERDEFINED: i=SvxNumValCategory::Standard; break; case CAT_TEXT: - default: i=SVX_NUMVAL_NOVALUE;break; + default: i=SvxNumValCategory::NoValue;break; } double fVal = fSvxNumValConst[i]; -- cgit