diff options
author | Laurent Charrière <lcharriere@gmail.com> | 2015-01-06 21:10:31 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-01-07 02:35:22 +0000 |
commit | 1f4fd70495b3d0e732447e8e60e5faa9086471a8 (patch) | |
tree | 8e9a513f39b25eb757a8886388c41a1d6763469e | |
parent | 89a81a6610cf316666291750e7300bcd1a97d062 (diff) |
fdo#85818: rename 'Zins' enum name, constant, function to Rate
Rename OcZins to OcRate, SC_OPCODE_ZINS to SC_OPCODE_RATE,
ScInterpreter::ScZins() to ScInterpreter::ScRate()
(partial fix for fdo#85818, more constants remain to be renamed)
Change-Id: Icd5d0df14f2583da7ebd0308dc660abd07f326a4
Reviewed-on: https://gerrit.libreoffice.org/13777
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
-rw-r--r-- | formula/source/core/api/FormulaCompiler.cxx | 2 | ||||
-rw-r--r-- | formula/source/core/api/token.cxx | 2 | ||||
-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/lotus/lotform.cxx | 6 | ||||
-rw-r--r-- | sc/source/filter/qpro/qproform.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/src/scfuncs.src | 2 |
14 files changed, 19 insertions, 19 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx index f5b1b9af25f7..69afa63d4764 100644 --- a/formula/source/core/api/FormulaCompiler.cxx +++ b/formula/source/core/api/FormulaCompiler.cxx @@ -105,7 +105,7 @@ short lcl_GetRetFormat( OpCode eOpCode ) case ocKumZinsZ: case ocKumKapZ: return NUMBERFORMAT_CURRENCY; - case ocZins: + case ocRate: case ocIRR: case ocMIRR: case ocZGZ: diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx index 2f6ae979d5ca..ec9f4d37ad53 100644 --- a/formula/source/core/api/token.cxx +++ b/formula/source/core/api/token.cxx @@ -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 ocZins: // RATE + case ocRate: // RATE 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 99b387dcaa02..408d0835b4f3 100644 --- a/formula/source/core/resource/core_resource.src +++ b/formula/source/core/resource/core_resource.src @@ -227,7 +227,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH_ODFF String SC_OPCODE_ZGZ { Text = "RRI" ; }; String SC_OPCODE_ZW { Text = "FV" ; }; String SC_OPCODE_ZZR { Text = "NPER" ; }; - String SC_OPCODE_ZINS { Text = "RATE" ; }; + String SC_OPCODE_RATE { Text = "RATE" ; }; String SC_OPCODE_ZINS_Z { Text = "IPMT" ; }; String SC_OPCODE_KAPZ { Text = "PPMT" ; }; String SC_OPCODE_KUM_ZINS_Z { Text = "CUMIPMT" ; }; @@ -634,7 +634,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH_OOXML String SC_OPCODE_ZGZ { Text = "_xlfn.RRI" ; }; String SC_OPCODE_ZW { Text = "FV" ; }; String SC_OPCODE_ZZR { Text = "NPER" ; }; - String SC_OPCODE_ZINS { Text = "RATE" ; }; + String SC_OPCODE_RATE { Text = "RATE" ; }; String SC_OPCODE_ZINS_Z { Text = "IPMT" ; }; String SC_OPCODE_KAPZ { Text = "PPMT" ; }; String SC_OPCODE_KUM_ZINS_Z { Text = "CUMIPMT" ; }; @@ -1043,7 +1043,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH String SC_OPCODE_ZGZ { Text = "ZGZ" ; }; String SC_OPCODE_ZW { Text = "FV" ; }; String SC_OPCODE_ZZR { Text = "NPER" ; }; - String SC_OPCODE_ZINS { Text = "RATE" ; }; + String SC_OPCODE_RATE { Text = "RATE" ; }; String SC_OPCODE_ZINS_Z { Text = "IPMT" ; }; String SC_OPCODE_KAPZ { Text = "PPMT" ; }; String SC_OPCODE_KUM_ZINS_Z { Text = "CUMIPMT" ; }; @@ -1991,7 +1991,7 @@ Resource RID_STRLIST_FUNCTION_NAMES { Text [ en-US ] = "NPER" ; }; - String SC_OPCODE_ZINS + String SC_OPCODE_RATE { Text [ en-US ] = "RATE" ; }; diff --git a/include/formula/compiler.hrc b/include/formula/compiler.hrc index bd1ad39d7c23..87670828db79 100644 --- a/include/formula/compiler.hrc +++ b/include/formula/compiler.hrc @@ -256,7 +256,7 @@ #define SC_OPCODE_ZGZ 256 #define SC_OPCODE_ZW 257 #define SC_OPCODE_ZZR 258 -#define SC_OPCODE_ZINS 259 +#define SC_OPCODE_RATE 259 #define SC_OPCODE_ZINS_Z 260 #define SC_OPCODE_KAPZ 261 #define SC_OPCODE_KUM_ZINS_Z 262 diff --git a/include/formula/opcode.hxx b/include/formula/opcode.hxx index 0626ed5181db..6ae2788b5d04 100644 --- a/include/formula/opcode.hxx +++ b/include/formula/opcode.hxx @@ -260,7 +260,7 @@ enum OpCode : sal_uInt16 ocZGZ = SC_OPCODE_ZGZ, ocZW = SC_OPCODE_ZW, ocZZR = SC_OPCODE_ZZR, - ocZins = SC_OPCODE_ZINS, + ocRate = SC_OPCODE_RATE, ocZinsZ = SC_OPCODE_ZINS_Z, ocKapz = SC_OPCODE_KAPZ, ocKumZinsZ = SC_OPCODE_KUM_ZINS_Z, diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx index b9fd9a29970a..6179cf77ebc8 100644 --- a/sc/source/core/inc/interpre.hxx +++ b/sc/source/core/inc/interpre.hxx @@ -681,7 +681,7 @@ void ScZW(); void ScZZR(); bool RateIteration(double fNper, double fPayment, double fPv, double fFv, double fPayType, double& fGuess); -void ScZins(); +void ScRate(); double ScGetCompoundInterest(double fZins, double fZr, double fZzr, double fBw, double fZw, double fF, double& fRmz); void ScZinsZ(); diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx index b6d32a78be92..92567aa13050 100644 --- a/sc/source/core/opencl/formulagroupcl.cxx +++ b/sc/source/core/opencl/formulagroupcl.cxx @@ -2401,7 +2401,7 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments( case ocRMZ: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpPMT, nResultSize)); break; - case ocZins: + case ocRate: mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpIntrate, nResultSize)); break; case ocZGZ: diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx index df28b08ecdee..ab1b4f2dc195 100644 --- a/sc/source/core/tool/interpr2.cxx +++ b/sc/source/core/tool/interpr2.cxx @@ -1646,7 +1646,7 @@ bool ScInterpreter::RateIteration( double fNper, double fPayment, double fPv, } // In Calc UI it is the function RATE(Nper;Pmt;Pv;Fv;Type;Guess) -void ScInterpreter::ScZins() +void ScInterpreter::ScRate() { double fPv, fPayment, fNper; // defaults for missing arguments, see ODFF spec diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx index 2b2dd651f2e6..ea46b0e53558 100644 --- a/sc/source/core/tool/interpr4.cxx +++ b/sc/source/core/tool/interpr4.cxx @@ -4038,7 +4038,7 @@ StackVar ScInterpreter::Interpret() case ocZGZ : ScZGZ(); break; case ocZW : ScZW(); break; case ocZZR : ScZZR(); break; - case ocZins : ScZins(); break; + case ocRate : ScRate(); break; case ocFilterXML : ScFilterXML(); break; case ocWebservice : ScWebservice(); break; case ocColor : ScColor(); break; diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx index cd9e656358dd..cff4913c57cd 100644 --- a/sc/source/core/tool/token.cxx +++ b/sc/source/core/tool/token.cxx @@ -1171,7 +1171,7 @@ void ScTokenArray::CheckToken( const FormulaToken& r ) case ocIRR: case ocMIRR: case ocRMZ: - case ocZins: + case ocRate: case ocZGZ: case ocKapz: case ocFisher: diff --git a/sc/source/filter/excel/xlformula.cxx b/sc/source/filter/excel/xlformula.cxx index c5ff9806b330..0470a554fce9 100644 --- a/sc/source/filter/excel/xlformula.cxx +++ b/sc/source/filter/excel/xlformula.cxx @@ -138,7 +138,7 @@ static const XclFunctionInfo saFuncTable_2[] = { ocZW, 57, 3, 5, V, { VR }, 0, 0 }, { ocZZR, 58, 3, 5, V, { VR }, 0, 0 }, { ocRMZ, 59, 3, 5, V, { VR }, 0, 0 }, - { ocZins, 60, 3, 6, V, { VR }, 0, 0 }, + { ocRate, 60, 3, 6, V, { VR }, 0, 0 }, { ocMIRR, 61, 3, 3, V, { RA, VR }, 0, 0 }, { ocIRR, 62, 1, 2, V, { RA, VR }, 0, 0 }, { ocRandom, 63, 0, 0, V, {}, EXC_FUNCFLAG_VOLATILE, 0 }, diff --git a/sc/source/filter/lotus/lotform.cxx b/sc/source/filter/lotus/lotform.cxx index e83d50ad8344..9f6f2a5432c6 100644 --- a/sc/source/filter/lotus/lotform.cxx +++ b/sc/source/filter/lotus/lotform.cxx @@ -125,7 +125,7 @@ void LotusToSc::DoFunc( DefTokenId eOc, sal_uInt8 nAnz, const sal_Char* pExtStri IncToken( eParam[ nAnz - 2 ] ); } break; - case ocZins: + case ocRate: { // new quantity = 4! OSL_ENSURE( nAnz == 3, @@ -1042,7 +1042,7 @@ DefTokenId LotusToSc::IndexToToken( sal_uInt8 nIndex ) ocExact, // 113 Exact() ocNoName, // 114 Call() ocIndirect, // 115 @@() - ocZins, // 116 Rate() + ocRate, // 116 Rate() ocNoName, // 117 Term() ocNoName, // 118 Cterm() ocLIA, // 119 Sln() @@ -1571,7 +1571,7 @@ DefTokenId LotusToSc::IndexToTokenWK123( sal_uInt8 nIndex ) ocExact, // 113 Exact() ocNoName, // 114 Call() ocIndirect, // 115 @@() - ocZins, // 116 Rate() + ocRate, // 116 Rate() ocNoName, // 117 Term() ocNoName, // 118 Cterm() ocLIA, // 119 Sln() diff --git a/sc/source/filter/qpro/qproform.cxx b/sc/source/filter/qpro/qproform.cxx index 6be47b015577..7883c99b82b4 100644 --- a/sc/source/filter/qpro/qproform.cxx +++ b/sc/source/filter/qpro/qproform.cxx @@ -502,7 +502,7 @@ static const struct { ocRMZ, FT_FuncFix5 }, // QPro Paymt { ocZW, FT_FuncFix3 }, // QPro Fval // 0x80 { ocZZR, FT_FuncFix5 }, - { ocZins, FT_FuncFix5 }, + { ocRate, FT_FuncFix5 }, { ocZinsZ, FT_FuncFix4 }, { ocKapz, FT_FuncFix6 }, { ocSumProduct, FT_FuncFix2 }, diff --git a/sc/source/ui/src/scfuncs.src b/sc/source/ui/src/scfuncs.src index 305835ed4be1..a78b5c4009d0 100644 --- a/sc/source/ui/src/scfuncs.src +++ b/sc/source/ui/src/scfuncs.src @@ -1389,7 +1389,7 @@ Resource RID_SC_FUNCTION_DESCRIPTIONS1 }; }; // -=*# Resource for function ZINS #*=- - Resource SC_OPCODE_ZINS + Resource SC_OPCODE_RATE { String 1 // Description { |