diff options
author | Laurent Charrière <lcharriere@gmail.com> | 2015-01-07 10:36:27 +0100 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-01-09 12:43:52 +0000 |
commit | 2963dbb5ce65a141051cb3e4e3ed06a6ed31574c (patch) | |
tree | 370b97deae8259d79e49fd537925d19a915e159f | |
parent | 201f99919253b370437d754137964d2757852079 (diff) |
fdo#85818: rename ZinsZ enum name, constant, function to Ipmt
Rename OcZinsZ to OcIpmt, SC_OPCODE_ZINS_Z to SC_OPCODE_IPMT,
ScInterpreter::ScZinsZ() to ScInterpreter::ScIpmt()
Change-Id: I6ed671aff85b7d2ec06dd66cd7ec9390776008b1
Reviewed-on: https://gerrit.libreoffice.org/13813
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r-- | formula/source/core/api/FormulaCompiler.cxx | 2 | ||||
-rw-r--r-- | formula/source/core/api/token.cxx | 4 | ||||
-rw-r--r-- | formula/source/core/resource/core_resource.src | 8 | ||||
-rw-r--r-- | include/formula/compiler.hrc | 2 | ||||
-rw-r--r-- | include/formula/opcode.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/inc/interpre.hxx | 2 | ||||
-rw-r--r-- | sc/source/core/opencl/formulagroupcl.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/interpr2.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/interpr4.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/token.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/excel/xlformula.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/qpro/qproform.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/src/scfuncs.src | 2 |
13 files changed, 18 insertions, 18 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index 69afa63d4764..b8380b8ba695 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -100,7 +100,7 @@ short lcl_GetRetFormat( OpCode eOpCode ) case ocLIA: case ocRMZ: case ocZW: - case ocZinsZ: + case ocIpmt: case ocKapz: case ocKumZinsZ: case ocKumKapZ: diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx index ec9f4d37ad53..1403dfac6d8e 100644 --- a/formula/source/core/api/token.cxx +++ b/formula/source/core/api/token.cxx @@ -1256,7 +1256,7 @@ bool FormulaMissingContext::AddMissing( FormulaTokenArray *pNewArr, const Missin case ocBetaInv: case ocRMZ: // PMT return AddDefaultArg( pNewArr, 3, 0.0 ); - case ocZinsZ: // IPMT + case ocIpmt: case ocKapz: // PPMT return AddDefaultArg( pNewArr, 4, 0.0 ); case ocBW: // PV @@ -1264,7 +1264,7 @@ bool FormulaMissingContext::AddMissing( FormulaTokenArray *pNewArr, const Missin bRet |= AddDefaultArg( pNewArr, 2, 0.0 ); // pmt bRet |= AddDefaultArg( pNewArr, 3, 0.0 ); // [fp]v break; - case ocRate: // RATE + case ocRate: bRet |= AddDefaultArg( pNewArr, 1, 0.0 ); // pmt bRet |= AddDefaultArg( pNewArr, 3, 0.0 ); // fv bRet |= AddDefaultArg( pNewArr, 4, 0.0 ); // type diff --git a/formula/source/core/resource/core_resource.src b/formula/source/core/resource/core_resource.src index 408d0835b4f3..af7279872e72 100644 --- a/formula/source/core/resource/core_resource.src +++ b/formula/source/core/resource/core_resource.src @@ -228,7 +228,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH_ODFF String SC_OPCODE_ZW { Text = "FV" ; }; String SC_OPCODE_ZZR { Text = "NPER" ; }; String SC_OPCODE_RATE { Text = "RATE" ; }; - String SC_OPCODE_ZINS_Z { Text = "IPMT" ; }; + String SC_OPCODE_IPMT { Text = "IPMT" ; }; String SC_OPCODE_KAPZ { Text = "PPMT" ; }; String SC_OPCODE_KUM_ZINS_Z { Text = "CUMIPMT" ; }; String SC_OPCODE_KUM_KAP_Z { Text = "CUMPRINC" ; }; @@ -635,7 +635,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH_OOXML String SC_OPCODE_ZW { Text = "FV" ; }; String SC_OPCODE_ZZR { Text = "NPER" ; }; String SC_OPCODE_RATE { Text = "RATE" ; }; - String SC_OPCODE_ZINS_Z { Text = "IPMT" ; }; + String SC_OPCODE_IPMT { Text = "IPMT" ; }; String SC_OPCODE_KAPZ { Text = "PPMT" ; }; String SC_OPCODE_KUM_ZINS_Z { Text = "CUMIPMT" ; }; String SC_OPCODE_KUM_KAP_Z { Text = "CUMPRINC" ; }; @@ -1044,7 +1044,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH String SC_OPCODE_ZW { Text = "FV" ; }; String SC_OPCODE_ZZR { Text = "NPER" ; }; String SC_OPCODE_RATE { Text = "RATE" ; }; - String SC_OPCODE_ZINS_Z { Text = "IPMT" ; }; + String SC_OPCODE_IPMT { Text = "IPMT" ; }; String SC_OPCODE_KAPZ { Text = "PPMT" ; }; String SC_OPCODE_KUM_ZINS_Z { Text = "CUMIPMT" ; }; String SC_OPCODE_KUM_KAP_Z { Text = "CUMPRINC" ; }; @@ -1995,7 +1995,7 @@ Resource RID_STRLIST_FUNCTION_NAMES { Text [ en-US ] = "RATE" ; }; - String SC_OPCODE_ZINS_Z + String SC_OPCODE_IPMT { Text [ en-US ] = "IPMT" ; }; diff --git a/include/formula/compiler.hrc b/include/formula/compiler.hrc index 87670828db79..f8631efe7f29 100644 --- a/include/formula/compiler.hrc +++ b/include/formula/compiler.hrc @@ -257,7 +257,7 @@ #define SC_OPCODE_ZW 257 #define SC_OPCODE_ZZR 258 #define SC_OPCODE_RATE 259 -#define SC_OPCODE_ZINS_Z 260 +#define SC_OPCODE_IPMT 260 #define SC_OPCODE_KAPZ 261 #define SC_OPCODE_KUM_ZINS_Z 262 #define SC_OPCODE_KUM_KAP_Z 263 diff --git a/include/formula/opcode.hxx b/include/formula/opcode.hxx index 6ae2788b5d04..7b807866bcee 100644 --- a/include/formula/opcode.hxx +++ b/include/formula/opcode.hxx @@ -261,7 +261,7 @@ enum OpCode : sal_uInt16 ocZW = SC_OPCODE_ZW, ocZZR = SC_OPCODE_ZZR, ocRate = SC_OPCODE_RATE, - ocZinsZ = SC_OPCODE_ZINS_Z, + ocIpmt = SC_OPCODE_IPMT, ocKapz = SC_OPCODE_KAPZ, ocKumZinsZ = SC_OPCODE_KUM_ZINS_Z, ocKumKapZ = SC_OPCODE_KUM_KAP_Z, diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx index 6179cf77ebc8..c5bdadee0558 100644 --- a/sc/source/core/inc/interpre.hxx +++ b/sc/source/core/inc/interpre.hxx @@ -684,7 +684,7 @@ bool RateIteration(double fNper, double fPayment, double fPv, void ScRate(); double ScGetCompoundInterest(double fZins, double fZr, double fZzr, double fBw, double fZw, double fF, double& fRmz); -void ScZinsZ(); +void ScIpmt(); void ScKapz(); void ScKumZinsZ(); void ScKumKapZ(); diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx index d90cce9b38e9..e57799de1629 100644 --- a/sc/source/core/opencl/formulagroupcl.cxx +++ b/sc/source/core/opencl/formulagroupcl.cxx @@ -2442,7 +2442,7 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpPhi, nResultSize)); break; - case ocZinsZ: + case ocIpmt: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpIPMT, nResultSize)); break; diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx index ab1b4f2dc195..ef519d4561c5 100644 --- a/sc/source/core/tool/interpr2.cxx +++ b/sc/source/core/tool/interpr2.cxx @@ -1732,7 +1732,7 @@ double ScInterpreter::ScGetCompoundInterest(double fInterest, double fZr, double return fCompoundInterest * fInterest; } -void ScInterpreter::ScZinsZ() +void ScInterpreter::ScIpmt() { double nInterest, nZr, nZzr, nBw, nZw = 0, nFlag = 0; nFuncFmtType = NUMBERFORMAT_CURRENCY; diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx index ea46b0e53558..917d9e4b131b 100644 --- a/sc/source/core/tool/interpr4.cxx +++ b/sc/source/core/tool/interpr4.cxx @@ -4044,7 +4044,7 @@ StackVar ScInterpreter::Interpret() case ocColor : ScColor(); break; case ocErf_MS : ScErf(); break; case ocErfc_MS : ScErfc(); break; - case ocZinsZ : ScZinsZ(); break; + case ocIpmt : ScIpmt(); break; case ocKapz : ScKapz(); break; case ocKumZinsZ : ScKumZinsZ(); break; case ocKumKapZ : ScKumKapZ(); break; diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx index eba1d292b73b..906d7820ccbd 100644 --- a/sc/source/core/tool/token.cxx +++ b/sc/source/core/tool/token.cxx @@ -1217,7 +1217,7 @@ void ScTokenArray::CheckToken( const FormulaToken& r ) case ocVariationen: case ocVariationen2: case ocPhi: - case ocZinsZ: + case ocIpmt: case ocConfidence: case ocIntercept: case ocGDA2: diff --git a/sc/source/filter/excel/xlformula.cxx b/sc/source/filter/excel/xlformula.cxx index 0470a554fce9..ce8c3dd95c27 100644 --- a/sc/source/filter/excel/xlformula.cxx +++ b/sc/source/filter/excel/xlformula.cxx @@ -197,7 +197,7 @@ static const XclFunctionInfo saFuncTable_2[] = { ocMatDet, 163, 1, 1, V, { VA }, 0, 0 }, { ocMatInv, 164, 1, 1, A, { VA }, 0, 0 }, { ocMatMult, 165, 2, 2, A, { VA }, 0, 0 }, - { ocZinsZ, 167, 4, 6, V, { VR }, 0, 0 }, + { ocIpmt, 167, 4, 6, V, { VR }, 0, 0 }, { ocKapz, 168, 4, 6, V, { VR }, 0, 0 }, { ocCount2, 169, 0, MX, V, { RX }, 0, 0 }, { ocProduct, 183, 0, MX, V, { RX }, 0, 0 }, diff --git a/sc/source/filter/qpro/qproform.cxx b/sc/source/filter/qpro/qproform.cxx index 7883c99b82b4..d38b70412b0c 100644 --- a/sc/source/filter/qpro/qproform.cxx +++ b/sc/source/filter/qpro/qproform.cxx @@ -137,7 +137,7 @@ void QProToSc::DoFunc( DefTokenId eOc, sal_uInt16 nArgs, const sal_Char* pExtStr if( eOc == ocZGZ ) aPool << eParam[ 2 ] << ocSep << eParam[ 1 ] << ocSep << eParam[ 0 ]; - if( eOc == ocZinsZ ) + if( eOc == ocIpmt ) aPool << eParam[ 3 ] << ocSep << eParam[ 2 ] << ocSep << eParam[ 1 ] << ocSep << eParam[ 0 ]; else { @@ -503,7 +503,7 @@ static const struct { ocZW, FT_FuncFix3 }, // QPro Fval // 0x80 { ocZZR, FT_FuncFix5 }, { ocRate, FT_FuncFix5 }, - { ocZinsZ, FT_FuncFix4 }, + { ocIpmt, FT_FuncFix4 }, { ocKapz, FT_FuncFix6 }, { ocSumProduct, FT_FuncFix2 }, { ocNoName, FT_NotImpl }, diff --git a/sc/source/ui/src/scfuncs.src b/sc/source/ui/src/scfuncs.src index a78b5c4009d0..069b42ba0676 100644 --- a/sc/source/ui/src/scfuncs.src +++ b/sc/source/ui/src/scfuncs.src @@ -1453,7 +1453,7 @@ Resource RID_SC_FUNCTION_DESCRIPTIONS1 }; }; // -=*# Resource for function ZINSZ #*=- - Resource SC_OPCODE_ZINS_Z + Resource SC_OPCODE_IPMT { String 1 // Description { |