summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Charrière <lcharriere@gmail.com>2015-01-08 09:42:50 +0100
committerNoel Grandin <noelgrandin@gmail.com>2015-01-09 12:45:55 +0000
commitb8359780a25b4e645236dd0238e4ef39cd8413ce (patch)
tree52b5a31d8689b656e21eeedd6a820bc9bc00727d
parent5af576c2fcf8ebdc517b3919dd0ef808b09b04a1 (diff)
fdo#85818: rename Kapz to Ppmt
Rename OcKapz to OcPpmt, SC_OPCODE_KAPZ to SC_OPCODE_PPMT ScInterpreter::ScKapz() to ScInterpreter::ScPpmt(). Change-Id: I5bc556e086970ea487e14b4663a9b3d2aaf9bb66 Reviewed-on: https://gerrit.libreoffice.org/13815 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
-rw-r--r--formula/source/core/api/FormulaCompiler.cxx2
-rw-r--r--formula/source/core/api/token.cxx2
-rw-r--r--formula/source/core/resource/core_resource.src8
-rw-r--r--include/formula/compiler.hrc2
-rw-r--r--include/formula/opcode.hxx2
-rw-r--r--sc/source/core/inc/interpre.hxx2
-rw-r--r--sc/source/core/opencl/formulagroupcl.cxx2
-rw-r--r--sc/source/core/tool/interpr2.cxx2
-rw-r--r--sc/source/core/tool/interpr4.cxx2
-rw-r--r--sc/source/core/tool/token.cxx2
-rw-r--r--sc/source/filter/excel/xlformula.cxx2
-rw-r--r--sc/source/filter/qpro/qproform.cxx2
-rw-r--r--sc/source/ui/src/scfuncs.src2
13 files changed, 16 insertions, 16 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx
index b8380b8ba695..2649e3487a71 100644
--- a/formula/source/core/api/FormulaCompiler.cxx
+++ b/formula/source/core/api/FormulaCompiler.cxx
@@ -101,7 +101,7 @@ short lcl_GetRetFormat( OpCode eOpCode )
case ocRMZ:
case ocZW:
case ocIpmt:
- case ocKapz:
+ case ocPpmt:
case ocKumZinsZ:
case ocKumKapZ:
return NUMBERFORMAT_CURRENCY;
diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx
index 1403dfac6d8e..3b16cc369e4a 100644
--- a/formula/source/core/api/token.cxx
+++ b/formula/source/core/api/token.cxx
@@ -1257,7 +1257,7 @@ bool FormulaMissingContext::AddMissing( FormulaTokenArray *pNewArr, const Missin
case ocRMZ: // PMT
return AddDefaultArg( pNewArr, 3, 0.0 );
case ocIpmt:
- case ocKapz: // PPMT
+ case ocPpmt:
return AddDefaultArg( pNewArr, 4, 0.0 );
case ocBW: // PV
case ocZW: // FV
diff --git a/formula/source/core/resource/core_resource.src b/formula/source/core/resource/core_resource.src
index f704d0cebb0d..1e540a238b0b 100644
--- a/formula/source/core/resource/core_resource.src
+++ b/formula/source/core/resource/core_resource.src
@@ -229,7 +229,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH_ODFF
String SC_OPCODE_ZZR { Text = "NPER" ; };
String SC_OPCODE_RATE { Text = "RATE" ; };
String SC_OPCODE_IPMT { Text = "IPMT" ; };
- String SC_OPCODE_KAPZ { Text = "PPMT" ; };
+ String SC_OPCODE_PPMT { Text = "PPMT" ; };
String SC_OPCODE_KUM_ZINS_Z { Text = "CUMIPMT" ; };
String SC_OPCODE_KUM_KAP_Z { Text = "CUMPRINC" ; };
String SC_OPCODE_EFFEKTIV { Text = "EFFECT" ; };
@@ -636,7 +636,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH_OOXML
String SC_OPCODE_ZZR { Text = "NPER" ; };
String SC_OPCODE_RATE { Text = "RATE" ; };
String SC_OPCODE_IPMT { Text = "IPMT" ; };
- String SC_OPCODE_KAPZ { Text = "PPMT" ; };
+ String SC_OPCODE_PPMT { Text = "PPMT" ; };
String SC_OPCODE_KUM_ZINS_Z { Text = "CUMIPMT" ; };
String SC_OPCODE_KUM_KAP_Z { Text = "CUMPRINC" ; };
String SC_OPCODE_EFFEKTIV { Text = "EFFECTIVE" ; };
@@ -1045,7 +1045,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH
String SC_OPCODE_ZZR { Text = "NPER" ; };
String SC_OPCODE_RATE { Text = "RATE" ; };
String SC_OPCODE_IPMT { Text = "IPMT" ; };
- String SC_OPCODE_KAPZ { Text = "PPMT" ; };
+ String SC_OPCODE_PPMT { Text = "PPMT" ; };
String SC_OPCODE_KUM_ZINS_Z { Text = "CUMIPMT" ; };
String SC_OPCODE_KUM_KAP_Z { Text = "CUMPRINC" ; };
String SC_OPCODE_EFFEKTIV { Text = "EFFECTIVE" ; };
@@ -1999,7 +1999,7 @@ Resource RID_STRLIST_FUNCTION_NAMES
{
Text [ en-US ] = "IPMT" ;
};
- String SC_OPCODE_KAPZ
+ String SC_OPCODE_PPMT
{
Text [ en-US ] = "PPMT" ;
};
diff --git a/include/formula/compiler.hrc b/include/formula/compiler.hrc
index aca7b923415a..c76075584be3 100644
--- a/include/formula/compiler.hrc
+++ b/include/formula/compiler.hrc
@@ -258,7 +258,7 @@
#define SC_OPCODE_ZZR 258
#define SC_OPCODE_RATE 259
#define SC_OPCODE_IPMT 260
-#define SC_OPCODE_KAPZ 261
+#define SC_OPCODE_PPMT 261
#define SC_OPCODE_KUM_ZINS_Z 262
#define SC_OPCODE_KUM_KAP_Z 263
#define SC_OPCODE_EFFEKTIV 264
diff --git a/include/formula/opcode.hxx b/include/formula/opcode.hxx
index a122e2bdc0a7..bd64dd5bbbf1 100644
--- a/include/formula/opcode.hxx
+++ b/include/formula/opcode.hxx
@@ -262,7 +262,7 @@ enum OpCode : sal_uInt16
ocZZR = SC_OPCODE_ZZR,
ocRate = SC_OPCODE_RATE,
ocIpmt = SC_OPCODE_IPMT,
- ocKapz = SC_OPCODE_KAPZ,
+ ocPpmt = SC_OPCODE_PPMT,
ocKumZinsZ = SC_OPCODE_KUM_ZINS_Z,
ocKumKapZ = SC_OPCODE_KUM_KAP_Z,
ocEffektiv = SC_OPCODE_EFFEKTIV,
diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx
index dd09464e0d55..b9513a330b7e 100644
--- a/sc/source/core/inc/interpre.hxx
+++ b/sc/source/core/inc/interpre.hxx
@@ -685,7 +685,7 @@ void ScRate();
double ScGetCompoundInterest(double fZins, double fZr, double fZzr, double fBw,
double fZw, double fF, double& fRmz);
void ScIpmt();
-void ScKapz();
+void ScPpmt();
void ScKumZinsZ();
void ScKumKapZ();
void ScEffektiv();
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index 51e2e72d764b..72cf96685d7d 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -2271,7 +2271,7 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments(
case ocZGZ:
mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpRRI, nResultSize));
break;
- case ocKapz:
+ case ocPpmt:
mvSubArguments.push_back(SoPHelper(ts, ft->Children[i], new OpPPMT, nResultSize));
break;
case ocFisher:
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx
index ef519d4561c5..24a5e401b8d7 100644
--- a/sc/source/core/tool/interpr2.cxx
+++ b/sc/source/core/tool/interpr2.cxx
@@ -1756,7 +1756,7 @@ void ScInterpreter::ScIpmt()
}
}
-void ScInterpreter::ScKapz()
+void ScInterpreter::ScPpmt()
{
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 bf94a474a0b0..48b128e5d428 100644
--- a/sc/source/core/tool/interpr4.cxx
+++ b/sc/source/core/tool/interpr4.cxx
@@ -4045,7 +4045,7 @@ StackVar ScInterpreter::Interpret()
case ocErf_MS : ScErf(); break;
case ocErfc_MS : ScErfc(); break;
case ocIpmt : ScIpmt(); break;
- case ocKapz : ScKapz(); break;
+ case ocPpmt : ScPpmt(); break;
case ocKumZinsZ : ScKumZinsZ(); break;
case ocKumKapZ : ScKumKapZ(); break;
case ocEffektiv : ScEffektiv(); break;
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx
index dace254ee515..e8bfe415b4a3 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -1173,7 +1173,7 @@ void ScTokenArray::CheckToken( const FormulaToken& r )
case ocRMZ:
case ocRate:
case ocZGZ:
- case ocKapz:
+ case ocPpmt:
case ocFisher:
case ocFisherInv:
case ocGamma:
diff --git a/sc/source/filter/excel/xlformula.cxx b/sc/source/filter/excel/xlformula.cxx
index d822692680bc..9ea536c824ac 100644
--- a/sc/source/filter/excel/xlformula.cxx
+++ b/sc/source/filter/excel/xlformula.cxx
@@ -198,7 +198,7 @@ static const XclFunctionInfo saFuncTable_2[] =
{ ocMatInv, 164, 1, 1, A, { VA }, 0, 0 },
{ ocMatMult, 165, 2, 2, A, { VA }, 0, 0 },
{ ocIpmt, 167, 4, 6, V, { VR }, 0, 0 },
- { ocKapz, 168, 4, 6, V, { VR }, 0, 0 },
+ { ocPpmt, 168, 4, 6, V, { VR }, 0, 0 },
{ ocCount2, 169, 0, MX, V, { RX }, 0, 0 },
{ ocProduct, 183, 0, MX, V, { RX }, 0, 0 },
{ ocFact, 184, 1, 1, V, { VR }, 0, 0 },
diff --git a/sc/source/filter/qpro/qproform.cxx b/sc/source/filter/qpro/qproform.cxx
index d38b70412b0c..32c2dc231fce 100644
--- a/sc/source/filter/qpro/qproform.cxx
+++ b/sc/source/filter/qpro/qproform.cxx
@@ -504,7 +504,7 @@ static const struct
{ ocZZR, FT_FuncFix5 },
{ ocRate, FT_FuncFix5 },
{ ocIpmt, FT_FuncFix4 },
- { ocKapz, FT_FuncFix6 },
+ { ocPpmt, FT_FuncFix6 },
{ ocSumProduct, FT_FuncFix2 },
{ ocNoName, FT_NotImpl },
{ ocNoName, FT_NotImpl },
diff --git a/sc/source/ui/src/scfuncs.src b/sc/source/ui/src/scfuncs.src
index 6fd6d2ffb134..beff92d8b24c 100644
--- a/sc/source/ui/src/scfuncs.src
+++ b/sc/source/ui/src/scfuncs.src
@@ -1517,7 +1517,7 @@ Resource RID_SC_FUNCTION_DESCRIPTIONS1
};
};
// -=*# Resource for function KAPZ #*=-
- Resource SC_OPCODE_KAPZ
+ Resource SC_OPCODE_PPMT
{
String 1 // Description
{