fdo#85818: rename ZW to FV
Change-Id: I464cba72153ef70bbb14bf43a448a28d02095728 Reviewed-on: https://gerrit.libreoffice.org/13868 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
This commit is contained in:
parent
97507ca728
commit
b08f87b62d
14 changed files with 19 additions and 19 deletions
|
@ -99,7 +99,7 @@ short lcl_GetRetFormat( OpCode eOpCode )
|
|||
case ocVBD:
|
||||
case ocSLN:
|
||||
case ocPMT:
|
||||
case ocZW:
|
||||
case ocFV:
|
||||
case ocIpmt:
|
||||
case ocPpmt:
|
||||
case ocCumIpmt:
|
||||
|
|
|
@ -1260,7 +1260,7 @@ bool FormulaMissingContext::AddMissing( FormulaTokenArray *pNewArr, const Missin
|
|||
case ocPpmt:
|
||||
return AddDefaultArg( pNewArr, 4, 0.0 );
|
||||
case ocPV:
|
||||
case ocZW: // FV
|
||||
case ocFV:
|
||||
bRet |= AddDefaultArg( pNewArr, 2, 0.0 ); // pmt
|
||||
bRet |= AddDefaultArg( pNewArr, 3, 0.0 ); // [fp]v
|
||||
break;
|
||||
|
|
|
@ -226,7 +226,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH_ODFF
|
|||
String SC_OPCODE_ROW { Text = "ROW" ; };
|
||||
String SC_OPCODE_TABLE { Text = "SHEET" ; };
|
||||
String SC_OPCODE_RRI { Text = "RRI" ; };
|
||||
String SC_OPCODE_ZW { Text = "FV" ; };
|
||||
String SC_OPCODE_FV { Text = "FV" ; };
|
||||
String SC_OPCODE_ZZR { Text = "NPER" ; };
|
||||
String SC_OPCODE_RATE { Text = "RATE" ; };
|
||||
String SC_OPCODE_IPMT { Text = "IPMT" ; };
|
||||
|
@ -634,7 +634,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH_OOXML
|
|||
String SC_OPCODE_ROW { Text = "ROW" ; };
|
||||
String SC_OPCODE_TABLE { Text = "_xlfn.SHEET" ; };
|
||||
String SC_OPCODE_RRI { Text = "_xlfn.RRI" ; };
|
||||
String SC_OPCODE_ZW { Text = "FV" ; };
|
||||
String SC_OPCODE_FV { Text = "FV" ; };
|
||||
String SC_OPCODE_ZZR { Text = "NPER" ; };
|
||||
String SC_OPCODE_RATE { Text = "RATE" ; };
|
||||
String SC_OPCODE_IPMT { Text = "IPMT" ; };
|
||||
|
@ -1044,7 +1044,7 @@ Resource RID_STRLIST_FUNCTION_NAMES_ENGLISH
|
|||
String SC_OPCODE_ROW { Text = "ROW" ; };
|
||||
String SC_OPCODE_TABLE { Text = "SHEET" ; };
|
||||
String SC_OPCODE_RRI { Text = "ZGZ" ; };
|
||||
String SC_OPCODE_ZW { Text = "FV" ; };
|
||||
String SC_OPCODE_FV { Text = "FV" ; };
|
||||
String SC_OPCODE_ZZR { Text = "NPER" ; };
|
||||
String SC_OPCODE_RATE { Text = "RATE" ; };
|
||||
String SC_OPCODE_IPMT { Text = "IPMT" ; };
|
||||
|
@ -1990,7 +1990,7 @@ Resource RID_STRLIST_FUNCTION_NAMES
|
|||
{
|
||||
Text [ en-US ] = "RRI" ;
|
||||
};
|
||||
String SC_OPCODE_ZW
|
||||
String SC_OPCODE_FV
|
||||
{
|
||||
Text [ en-US ] = "FV" ;
|
||||
};
|
||||
|
|
|
@ -255,7 +255,7 @@
|
|||
#define SC_OPCODE_COLUMN 254
|
||||
#define SC_OPCODE_ROW 255
|
||||
#define SC_OPCODE_RRI 256
|
||||
#define SC_OPCODE_ZW 257
|
||||
#define SC_OPCODE_FV 257
|
||||
#define SC_OPCODE_ZZR 258
|
||||
#define SC_OPCODE_RATE 259
|
||||
#define SC_OPCODE_IPMT 260
|
||||
|
|
|
@ -259,7 +259,7 @@ enum OpCode : sal_uInt16
|
|||
ocColumn = SC_OPCODE_COLUMN,
|
||||
ocRow = SC_OPCODE_ROW,
|
||||
ocRRI = SC_OPCODE_RRI,
|
||||
ocZW = SC_OPCODE_ZW,
|
||||
ocFV = SC_OPCODE_FV,
|
||||
ocZZR = SC_OPCODE_ZZR,
|
||||
ocRate = SC_OPCODE_RATE,
|
||||
ocIpmt = SC_OPCODE_IPMT,
|
||||
|
|
|
@ -679,7 +679,7 @@ void ScPMT();
|
|||
void ScRRI();
|
||||
double ScGetZw(double fZins, double fZzr, double fRmz,
|
||||
double fBw, double fF);
|
||||
void ScZW();
|
||||
void ScFV();
|
||||
void ScZZR();
|
||||
bool RateIteration(double fNper, double fPayment, double fPv,
|
||||
double fFv, double fPayType, double& fGuess);
|
||||
|
|
|
@ -2706,7 +2706,7 @@ DynamicKernelSoPArguments::DynamicKernelSoPArguments(
|
|||
mvSubArguments.push_back(SoPHelper(ts,
|
||||
ft->Children[i], new OpDDB, nResultSize));
|
||||
break;
|
||||
case ocZW:
|
||||
case ocFV:
|
||||
mvSubArguments.push_back(SoPHelper(ts,
|
||||
ft->Children[i], new OpFV, nResultSize));
|
||||
break;
|
||||
|
|
|
@ -1510,7 +1510,7 @@ double ScInterpreter::ScGetZw(double fInterest, double fZzr, double fRmz,
|
|||
return -fZw;
|
||||
}
|
||||
|
||||
void ScInterpreter::ScZW()
|
||||
void ScInterpreter::ScFV()
|
||||
{
|
||||
double nInterest, nZzr, nRmz, nBw = 0, nFlag = 0;
|
||||
nFuncFmtType = NUMBERFORMAT_CURRENCY;
|
||||
|
|
|
@ -4036,7 +4036,7 @@ StackVar ScInterpreter::Interpret()
|
|||
case ocRow : ScRow(); break;
|
||||
case ocTable : ScTable(); break;
|
||||
case ocRRI : ScRRI(); break;
|
||||
case ocZW : ScZW(); break;
|
||||
case ocFV : ScFV(); break;
|
||||
case ocZZR : ScZZR(); break;
|
||||
case ocRate : ScRate(); break;
|
||||
case ocFilterXML : ScFilterXML(); break;
|
||||
|
|
|
@ -1202,7 +1202,7 @@ void ScTokenArray::CheckToken( const FormulaToken& r )
|
|||
case ocWeibull:
|
||||
case ocMedian:
|
||||
case ocDDB:
|
||||
case ocZW:
|
||||
case ocFV:
|
||||
case ocVBD:
|
||||
case ocKurt:
|
||||
case ocZZR:
|
||||
|
|
|
@ -135,7 +135,7 @@ static const XclFunctionInfo saFuncTable_2[] =
|
|||
{ ocRKP, 51, 1, 2, A, { RA, RA, C, C }, 0, 0 },
|
||||
{ ocGrowth, 52, 1, 3, A, { RA, RA, RA, C }, 0, 0 },
|
||||
{ ocPV, 56, 3, 5, V, { VR }, 0, 0 },
|
||||
{ ocZW, 57, 3, 5, V, { VR }, 0, 0 },
|
||||
{ ocFV, 57, 3, 5, V, { VR }, 0, 0 },
|
||||
{ ocZZR, 58, 3, 5, V, { VR }, 0, 0 },
|
||||
{ ocPMT, 59, 3, 5, V, { VR }, 0, 0 },
|
||||
{ ocRate, 60, 3, 6, V, { VR }, 0, 0 },
|
||||
|
|
|
@ -984,7 +984,7 @@ DefTokenId LotusToSc::IndexToToken( sal_uInt8 nIndex )
|
|||
ocGetActDate, // 55 Today
|
||||
ocPMT, // 56 Payment
|
||||
ocPV, // 57 Present Value
|
||||
ocZW, // 58 Future Value
|
||||
ocFV, // 58 Future Value
|
||||
ocIf, // 59 If ... then ... else ...
|
||||
ocGetDay, // 60 Day of month
|
||||
ocGetMonth, // 61 Month
|
||||
|
@ -1513,7 +1513,7 @@ DefTokenId LotusToSc::IndexToTokenWK123( sal_uInt8 nIndex )
|
|||
ocGetActDate, // 55 Today
|
||||
ocPMT, // 56 Payment
|
||||
ocPV, // 57 Present Value
|
||||
ocZW, // 58 Future Value
|
||||
ocFV, // 58 Future Value
|
||||
ocIf, // 59 If... then... else...
|
||||
ocGetDay, // 60 Day of Month
|
||||
ocGetMonth, // 61 Month
|
||||
|
|
|
@ -500,7 +500,7 @@ static const struct
|
|||
{ ocDBVarP, FT_FuncVar },
|
||||
{ ocPV, FT_FuncFix3 }, // QPro Pval
|
||||
{ ocPMT, FT_FuncFix5 }, // QPro Paymt
|
||||
{ ocZW, FT_FuncFix3 }, // QPro Fval // 0x80
|
||||
{ ocFV, FT_FuncFix3 }, // QPro Fval // 0x80
|
||||
{ ocZZR, FT_FuncFix5 },
|
||||
{ ocRate, FT_FuncFix5 },
|
||||
{ ocIpmt, FT_FuncFix4 },
|
||||
|
|
|
@ -1220,8 +1220,8 @@ Resource RID_SC_FUNCTION_DESCRIPTIONS1
|
|||
Text [ en-US ] = "Type = 1 denotes due at the beginning of the period, = 0 at the end." ;
|
||||
};
|
||||
};
|
||||
// -=*# Resource for function ZW #*=-
|
||||
Resource SC_OPCODE_ZW
|
||||
// -=*# Resource for function FV #*=-
|
||||
Resource SC_OPCODE_FV
|
||||
{
|
||||
String 1 // Description
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue