summaryrefslogtreecommitdiff
path: root/formula/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-02-25 09:49:59 +0200
committerNoel Grandin <noel@peralex.com>2015-02-25 10:34:27 +0200
commit2f928b2d0982af44b3d45f1d3c8919c0b0655b4f (patch)
tree36468544d70101f2fc3a49a59b2f9d40df10e61f /formula/source
parent3e475e574ee7ac8753bf50732f62bea5d36791a5 (diff)
remove NUMBERFORMAT_ constants
.. in favour of just using the underlying constants from css::util::NumberFormat Change-Id: I0c6b128b66c91b268f5ae300f9c17c7792df5e99
Diffstat (limited to 'formula/source')
-rw-r--r--formula/source/core/api/FormulaCompiler.cxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx
index 98bec75ac22b..f81a97bc0821 100644
--- a/formula/source/core/api/FormulaCompiler.cxx
+++ b/formula/source/core/api/FormulaCompiler.cxx
@@ -83,15 +83,15 @@ short lcl_GetRetFormat( OpCode eOpCode )
case ocIsEven:
case ocIsOdd:
case ocExact:
- return NUMBERFORMAT_LOGICAL;
+ return css::util::NumberFormat::LOGICAL;
case ocGetActDate:
case ocGetDate:
case ocEasterSunday :
- return NUMBERFORMAT_DATE;
+ return css::util::NumberFormat::DATE;
case ocGetActTime:
- return NUMBERFORMAT_DATETIME;
+ return css::util::NumberFormat::DATETIME;
case ocGetTime:
- return NUMBERFORMAT_TIME;
+ return css::util::NumberFormat::TIME;
case ocNPV:
case ocPV:
case ocSYD:
@@ -105,7 +105,7 @@ short lcl_GetRetFormat( OpCode eOpCode )
case ocPpmt:
case ocCumIpmt:
case ocCumPrinc:
- return NUMBERFORMAT_CURRENCY;
+ return css::util::NumberFormat::CURRENCY;
case ocRate:
case ocIRR:
case ocMIRR:
@@ -113,9 +113,9 @@ short lcl_GetRetFormat( OpCode eOpCode )
case ocEffective:
case ocNominal:
case ocPercentSign:
- return NUMBERFORMAT_PERCENT;
+ return css::util::NumberFormat::PERCENT;
default:
- return NUMBERFORMAT_NUMBER;
+ return css::util::NumberFormat::NUMBER;
}
}
@@ -532,7 +532,7 @@ FormulaCompiler::FormulaCompiler( FormulaTokenArray& rArr )
pStack( NULL ),
eLastOp( ocPush ),
nRecursion( 0 ),
- nNumFmt( NUMBERFORMAT_UNDEFINED ),
+ nNumFmt( css::util::NumberFormat::UNDEFINED ),
pc( 0 ),
meGrammar( formula::FormulaGrammar::GRAM_UNSPECIFIED ),
bAutoCorrect( false ),
@@ -550,7 +550,7 @@ FormulaCompiler::FormulaCompiler()
pStack( NULL ),
eLastOp( ocPush ),
nRecursion(0),
- nNumFmt( NUMBERFORMAT_UNDEFINED ),
+ nNumFmt( css::util::NumberFormat::UNDEFINED ),
pc( 0 ),
meGrammar( formula::FormulaGrammar::GRAM_UNSPECIFIED ),
bAutoCorrect( false ),
@@ -1174,7 +1174,7 @@ void FormulaCompiler::Factor()
}
else
{
- if( nNumFmt == NUMBERFORMAT_UNDEFINED )
+ if( nNumFmt == css::util::NumberFormat::UNDEFINED )
nNumFmt = lcl_GetRetFormat( eOp );
if ( IsOpCodeVolatile( eOp) )
@@ -1238,8 +1238,8 @@ void FormulaCompiler::Factor()
{
pFacToken = mpToken;
eOp = NextToken();
- if( nNumFmt == NUMBERFORMAT_UNDEFINED && eOp == ocNot )
- nNumFmt = NUMBERFORMAT_LOGICAL;
+ if( nNumFmt == css::util::NumberFormat::UNDEFINED && eOp == ocNot )
+ nNumFmt = css::util::NumberFormat::LOGICAL;
if (eOp == ocOpen)
{
NextToken();
@@ -1688,8 +1688,8 @@ bool FormulaCompiler::CompileTokenArray()
if ( bWasForced )
pArr->SetRecalcModeForced();
}
- if( nNumFmt == NUMBERFORMAT_UNDEFINED )
- nNumFmt = NUMBERFORMAT_NUMBER;
+ if( nNumFmt == css::util::NumberFormat::UNDEFINED )
+ nNumFmt = css::util::NumberFormat::NUMBER;
return glSubTotal;
}