Commit 21144d6e authored by Alexander.Trofimov's avatar Alexander.Trofimov

delete property type from functions and base types -> move to prototype

parent 97ca6253
......@@ -48,7 +48,6 @@
/** @constructor */
function cCUBEKPIMEMBER() {
this.name = "CUBEKPIMEMBER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
......@@ -60,7 +59,6 @@
/** @constructor */
function cCUBEMEMBER() {
this.name = "CUBEMEMBER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
......@@ -72,7 +70,6 @@
/** @constructor */
function cCUBEMEMBERPROPERTY() {
this.name = "CUBEMEMBERPROPERTY";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
......@@ -84,7 +81,6 @@
/** @constructor */
function cCUBERANKEDMEMBER() {
this.name = "CUBERANKEDMEMBER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
......@@ -96,7 +92,6 @@
/** @constructor */
function cCUBESET() {
this.name = "CUBESET";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
......@@ -108,7 +103,6 @@
/** @constructor */
function cCUBESETCOUNT() {
this.name = "CUBESETCOUNT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
......@@ -120,7 +114,6 @@
/** @constructor */
function cCUBEVALUE() {
this.name = "CUBEVALUE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
......
......@@ -297,7 +297,6 @@
/** @constructor */
function cDATE() {
this.name = "DATE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -367,7 +366,6 @@
/** @constructor */
function cDATEDIF() {
this.name = "DATEDIF";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -485,7 +483,6 @@
/** @constructor */
function cDATEVALUE() {
this.name = "DATEVALUE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -525,7 +522,6 @@
/** @constructor */
function cDAY() {
this.name = "DAY";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -598,7 +594,6 @@
/** @constructor */
function cDAYS360() {
this.name = "DAYS360";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -664,7 +659,6 @@
/** @constructor */
function cEDATE() {
this.name = "EDATE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -739,7 +733,6 @@
/** @constructor */
function cEOMONTH() {
this.name = "EOMONTH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -805,7 +798,6 @@
/** @constructor */
function cHOUR() {
this.name = "HOUR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -870,7 +862,6 @@
/** @constructor */
function cMINUTE() {
this.name = "MINUTE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -934,7 +925,6 @@
/** @constructor */
function cMONTH() {
this.name = "MONTH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1003,7 +993,6 @@
/** @constructor */
function cNETWORKDAYS() {
this.name = "NETWORKDAYS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -1136,7 +1125,6 @@
/** @constructor */
function cNOW() {
this.name = "NOW";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
......@@ -1160,7 +1148,6 @@
/** @constructor */
function cSECOND() {
this.name = "SECOND";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1224,7 +1211,6 @@
/** @constructor */
function cTIME() {
this.name = "TIME";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -1285,7 +1271,6 @@
/** @constructor */
function cTIMEVALUE() {
this.name = "TIMEVALUE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1326,7 +1311,6 @@
/** @constructor */
function cTODAY() {
this.name = "TODAY";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
......@@ -1350,7 +1334,6 @@
/** @constructor */
function cWEEKDAY() {
this.name = "WEEKDAY";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1433,7 +1416,6 @@
/** @constructor */
function cWEEKNUM() {
this.name = "WEEKNUM";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1549,7 +1531,6 @@
/** @constructor */
function cWORKDAY() {
this.name = "WORKDAY";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -1683,7 +1664,6 @@
/** @constructor */
function cYEAR() {
this.name = "YEAR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1746,7 +1726,6 @@
/** @constructor */
function cYEARFRAC() {
this.name = "YEARFRAC";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......
......@@ -465,7 +465,6 @@
/** @constructor */
function cACCRINT() {
this.name = "ACCRINT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 6;
this.argumentsCurrent = 0;
......@@ -638,7 +637,6 @@
/** @constructor */
function cACCRINTM() {
this.name = "ACCRINTM";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -730,7 +728,6 @@
/** @constructor */
function cAMORDEGRC() {
this.name = "AMORDEGRC";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 6;
this.argumentsCurrent = 0;
......@@ -925,7 +922,6 @@
/** @constructor */
function cAMORLINC() {
this.name = "AMORLINC";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 6;
this.argumentsCurrent = 0;
......@@ -1058,7 +1054,6 @@
/** @constructor */
function cCOUPDAYBS() {
this.name = "COUPDAYBS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -1139,7 +1134,6 @@
/** @constructor */
function cCOUPDAYS() {
this.name = "COUPDAYS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -1219,7 +1213,6 @@
/** @constructor */
function cCOUPDAYSNC() {
this.name = "COUPDAYSNC";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -1299,7 +1292,6 @@
/** @constructor */
function cCOUPNCD() {
this.name = "COUPNCD";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -1381,7 +1373,6 @@
/** @constructor */
function cCOUPNUM() {
this.name = "COUPNUM";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -1463,7 +1454,6 @@
/** @constructor */
function cCOUPPCD() {
this.name = "COUPPCD";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -1547,7 +1537,6 @@
/** @constructor */
function cCUMIPMT() {
this.name = "CUMIPMT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 6;
this.argumentsCurrent = 0;
......@@ -1666,7 +1655,6 @@
/** @constructor */
function cCUMPRINC() {
this.name = "CUMPRINC";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 6;
this.argumentsCurrent = 0;
......@@ -1787,7 +1775,6 @@
/** @constructor */
function cDB() {
this.name = "DB";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
......@@ -1901,7 +1888,6 @@
/** @constructor */
function cDDB() {
this.name = "DDB";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
......@@ -1993,7 +1979,6 @@
/** @constructor */
function cDISC() {
this.name = "DISC";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
......@@ -2086,7 +2071,6 @@
/** @constructor */
function cDOLLARDE() {
this.name = "DOLLARDE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -2151,7 +2135,6 @@
/** @constructor */
function cDOLLARFR() {
this.name = "DOLLARFR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -2216,7 +2199,6 @@
/** @constructor */
function cDURATION() {
this.name = "DURATION";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 5;
this.argumentsCurrent = 0;
......@@ -2318,7 +2300,6 @@
/** @constructor */
function cEFFECT() {
this.name = "EFFECT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -2370,7 +2351,6 @@
/** @constructor */
function cFV() {
this.name = "FV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -2459,7 +2439,6 @@
/** @constructor */
function cFVSCHEDULE() {
this.name = "FVSCHEDULE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -2517,7 +2496,6 @@
/** @constructor */
function cINTRATE() {
this.name = "INTRATE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
......@@ -2611,7 +2589,6 @@
/** @constructor */
function cIPMT() {
this.name = "IPMT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
......@@ -2714,7 +2691,6 @@
/** @constructor */
function cIRR() {
this.name = "IRR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -2847,7 +2823,6 @@
/** @constructor */
function cISPMT() {
this.name = "ISPMT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
......@@ -2916,7 +2891,6 @@
/** @constructor */
function cMDURATION() {
this.name = "MDURATION";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 5;
this.argumentsCurrent = 0;
......@@ -3022,7 +2996,6 @@
/** @constructor */
function cMIRR() {
this.name = "MIRR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -3133,7 +3106,6 @@
/** @constructor */
function cNOMINAL() {
this.name = "NOMINAL";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -3189,7 +3161,6 @@
/** @constructor */
function cNPER() {
this.name = "NPER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -3282,7 +3253,6 @@
/** @constructor */
function cNPV() {
this.name = "NPV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -3358,7 +3328,6 @@
/** @constructor */
function cODDFPRICE() {
this.name = "ODDFPRICE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 8;
this.argumentsCurrent = 0;
......@@ -3498,7 +3467,6 @@
/** @constructor */
function cODDFYIELD() {
this.name = "ODDFYIELD";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 8;
this.argumentsCurrent = 0;
......@@ -3704,7 +3672,6 @@
/** @constructor */
function cODDLPRICE() {
this.name = "ODDLPRICE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 7;
this.argumentsCurrent = 0;
......@@ -3840,7 +3807,6 @@
/** @constructor */
function cODDLYIELD() {
this.name = "ODDLYIELD";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 7;
this.argumentsCurrent = 0;
......@@ -3977,7 +3943,6 @@
/** @constructor */
function cPMT() {
this.name = "PMT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -4071,7 +4036,6 @@
/** @constructor */
function cPPMT() {
this.name = "PPMT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
......@@ -4176,7 +4140,6 @@
/** @constructor */
function cPRICE() {
this.name = "PRICE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 6;
this.argumentsCurrent = 0;
......@@ -4289,7 +4252,6 @@
/** @constructor */
function cPRICEDISC() {
this.name = "PRICEDISC";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
......@@ -4381,7 +4343,6 @@
/** @constructor */
function cPRICEMAT() {
this.name = "PRICEMAT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 5;
this.argumentsCurrent = 0;
......@@ -4493,7 +4454,6 @@
/** @constructor */
function cPV() {
this.name = "PV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -4582,7 +4542,6 @@
/** @constructor */
function cRATE() {
this.name = "RATE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -4682,7 +4641,6 @@
/** @constructor */
function cRECEIVED() {
this.name = "RECEIVED";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
......@@ -4775,7 +4733,6 @@
/** @constructor */
function cSLN() {
this.name = "SLN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -4840,7 +4797,6 @@
/** @constructor */
function cSYD() {
this.name = "SYD";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
......@@ -4919,7 +4875,6 @@
/** @constructor */
function cTBILLEQ() {
this.name = "TBILLEQ";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -4999,7 +4954,6 @@
/** @constructor */
function cTBILLPRICE() {
this.name = "TBILLPRICE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -5075,7 +5029,6 @@
/** @constructor */
function cTBILLYIELD() {
this.name = "TBILLYIELD";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -5152,7 +5105,6 @@
/** @constructor */
function cVDB() {
this.name = "VDB";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 5;
this.argumentsCurrent = 0;
......@@ -5328,7 +5280,6 @@
/** @constructor */
function cXIRR() {
this.name = "XIRR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -5580,7 +5531,6 @@
/** @constructor */
function cXNPV() {
this.name = "XNPV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -5710,7 +5660,6 @@
/** @constructor */
function cYIELD() {
this.name = "YIELD";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 6;
this.argumentsCurrent = 0;
......@@ -5825,7 +5774,6 @@
/** @constructor */
function cYIELDDISC() {
this.name = "YIELDDISC";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
......@@ -5920,7 +5868,6 @@
/** @constructor */
function cYIELDMAT() {
this.name = "YIELDMAT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 5;
this.argumentsCurrent = 0;
......
......@@ -58,7 +58,6 @@
/** @constructor */
function cERROR_TYPE() {
this.name = "ERROR.TYPE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -120,7 +119,6 @@
/** @constructor */
function cISBLANK() {
this.name = "ISBLANK";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -150,7 +148,6 @@
/** @constructor */
function cISERR() {
this.name = "ISERR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -183,7 +180,6 @@
/** @constructor */
function cISERROR() {
this.name = "ISERROR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -216,7 +212,6 @@
/** @constructor */
function cISEVEN() {
this.name = "ISEVEN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -254,7 +249,6 @@
/** @constructor */
function cISLOGICAL() {
this.name = "ISLOGICAL";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -287,7 +281,6 @@
/** @constructor */
function cISNA() {
this.name = "ISNA";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -320,7 +313,6 @@
/** @constructor */
function cISNONTEXT() {
this.name = "ISNONTEXT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -352,7 +344,6 @@
/** @constructor */
function cISNUMBER() {
this.name = "ISNUMBER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -385,7 +376,6 @@
/** @constructor */
function cISODD() {
this.name = "ISODD";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -423,7 +413,6 @@
/** @constructor */
function cISREF() {
this.name = "ISREF";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -448,7 +437,6 @@
/** @constructor */
function cISTEXT() {
this.name = "ISTEXT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -481,7 +469,6 @@
/** @constructor */
function cN() {
this.name = "N";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -528,7 +515,6 @@
/** @constructor */
function cNA() {
this.name = "NA";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
......@@ -548,7 +534,6 @@
/** @constructor */
function cTYPE() {
this.name = "TYPE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......
......@@ -56,7 +56,6 @@
/** @constructor */
function cAND() {
this.name = "AND";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -132,7 +131,6 @@
/** @constructor */
function cFALSE() {
this.name = "FALSE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
......@@ -152,7 +150,6 @@
/** @constructor */
function cIF() {
this.name = "IF";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -195,7 +192,6 @@
/** @constructor */
function cIFERROR() {
this.name = "IFERROR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -230,7 +226,6 @@
/** @constructor */
function cNOT() {
this.name = "NOT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -270,7 +265,6 @@
/** @constructor */
function cOR() {
this.name = "OR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -343,7 +337,6 @@
/** @constructor */
function cTRUE() {
this.name = "TRUE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
......
......@@ -97,7 +97,6 @@
/** @constructor */
function cADDRESS() {
this.name = "ADDRESS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -221,7 +220,6 @@
/** @constructor */
function cCHOOSE() {
this.name = "CHOOSE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -260,7 +258,6 @@
/** @constructor */
function cCOLUMN() {
this.name = "COLUMN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
......@@ -291,7 +288,6 @@
/** @constructor */
function cCOLUMNS() {
this.name = "COLUMNS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -327,7 +323,6 @@
/** @constructor */
function cHLOOKUP() {
this.name = "HLOOKUP";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -443,7 +438,6 @@
/** @constructor */
function cINDEX() {
this.name = "INDEX";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -525,7 +519,6 @@
/** @constructor */
function cINDIRECT() {
this.name = "INDIRECT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -600,7 +593,6 @@
/** @constructor */
function cLOOKUP() {
this.name = "LOOKUP";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -746,7 +738,6 @@
/** @constructor */
function cMATCH() {
this.name = "MATCH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -852,7 +843,6 @@
/** @constructor */
function cOFFSET() {
this.name = "OFFSET";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -953,7 +943,6 @@
/** @constructor */
function cROW() {
this.name = "ROW";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
......@@ -984,7 +973,6 @@
/** @constructor */
function cROWS() {
this.name = "ROWS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1020,7 +1008,6 @@
/** @constructor */
function cTRANSPOSE() {
this.name = "TRANSPOSE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1154,7 +1141,6 @@
/** @constructor */
function cVLOOKUP() {
this.name = "VLOOKUP";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......
......@@ -84,7 +84,6 @@
/** @constructor */
function cABS() {
this.name = "ABS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -122,7 +121,6 @@
/** @constructor */
function cACOS() {
this.name = "ACOS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -162,7 +160,6 @@
/** @constructor */
function cACOSH() {
this.name = "ACOSH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -202,7 +199,6 @@
/** @constructor */
function cASIN() {
this.name = "ASIN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -242,7 +238,6 @@
/** @constructor */
function cASINH() {
this.name = "ASINH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -282,7 +277,6 @@
/** @constructor */
function cATAN() {
this.name = "ATAN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -322,7 +316,6 @@
/** @constructor */
function cATAN2() {
this.name = "ATAN2";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -396,7 +389,6 @@
/** @constructor */
function cATANH() {
this.name = "ATANH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -436,7 +428,6 @@
/** @constructor */
function cCEILING() {
this.name = "CEILING";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -534,7 +525,6 @@
/** @constructor */
function cCOMBIN() {
this.name = "COMBIN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -622,7 +612,6 @@
/** @constructor */
function cCOS() {
this.name = "COS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -662,7 +651,6 @@
/** @constructor */
function cCOSH() {
this.name = "COSH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -702,7 +690,6 @@
/** @constructor */
function cDEGREES() {
this.name = "DEGREES";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -750,7 +737,6 @@
/** @constructor */
function cEVEN() {
this.name = "EVEN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -813,7 +799,6 @@
/** @constructor */
function cEXP() {
this.name = "EXP";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -855,7 +840,6 @@
/** @constructor */
function cFACT() {
this.name = "FACT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -902,7 +886,6 @@
/** @constructor */
function cFACTDOUBLE() {
this.name = "FACTDOUBLE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -968,7 +951,6 @@
/** @constructor */
function cFLOOR() {
this.name = "FLOOR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -1069,7 +1051,6 @@
/** @constructor */
function cGCD() {
this.name = "GCD";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1167,7 +1148,6 @@
/** @constructor */
function cINT() {
this.name = "INT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1218,7 +1198,6 @@
/** @constructor */
function cLCM() {
this.name = "LCM";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1320,7 +1299,6 @@
/** @constructor */
function cLN() {
this.name = "LN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1368,7 +1346,6 @@
/** @constructor */
function cLOG() {
this.name = "LOG";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1461,7 +1438,6 @@
/** @constructor */
function cLOG10() {
this.name = "LOG10";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1509,7 +1485,6 @@
/** @constructor */
function cMDETERM() {
this.name = "MDETERM";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1596,7 +1571,6 @@
/** @constructor */
function cMINVERSE() {
this.name = "MINVERSE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1742,7 +1716,6 @@
/** @constructor */
function cMMULT() {
this.name = "MMULT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -1813,7 +1786,6 @@
/** @constructor */
function cMOD() {
this.name = "MOD";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -1901,7 +1873,6 @@
/** @constructor */
function cMROUND() {
this.name = "MROUND";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -2006,7 +1977,6 @@
/** @constructor */
function cMULTINOMIAL() {
this.name = "MULTINOMIAL";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -2100,7 +2070,6 @@
/** @constructor */
function cODD() {
this.name = "ODD";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -2163,7 +2132,6 @@
/** @constructor */
function cPI() {
this.name = "PI";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
......@@ -2183,7 +2151,6 @@
/** @constructor */
function cPOWER() {
this.name = "POWER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -2266,7 +2233,6 @@
/** @constructor */
function cPRODUCT() {
this.name = "PRODUCT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -2319,7 +2285,6 @@
/** @constructor */
function cQUOTIENT() {
this.name = "QUOTIENT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -2399,7 +2364,6 @@
/** @constructor */
function cRADIANS() {
this.name = "RADIANS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -2443,7 +2407,6 @@
/** @constructor */
function cRAND() {
this.name = "RAND";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
......@@ -2463,7 +2426,6 @@
/** @constructor */
function cRANDBETWEEN() {
this.name = "RANDBETWEEN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -2539,7 +2501,6 @@
/** @constructor */
function cROMAN() {
this.name = "ROMAN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -2650,7 +2611,6 @@
/** @constructor */
function cROUND() {
this.name = "ROUND";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -2799,7 +2759,6 @@
/** @constructor */
function cROUNDDOWN() {
this.name = "ROUNDDOWN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -2924,7 +2883,6 @@
/** @constructor */
function cROUNDUP() {
this.name = "ROUNDUP";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -3049,7 +3007,6 @@
/** @constructor */
function cSERIESSUM() {
this.name = "SERIESSUM";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
......@@ -3122,7 +3079,6 @@
/** @constructor */
function cSIGN() {
this.name = "SIGN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -3175,7 +3131,6 @@
/** @constructor */
function cSIN() {
this.name = "SIN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -3215,7 +3170,6 @@
/** @constructor */
function cSINH() {
this.name = "SINH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -3255,7 +3209,6 @@
/** @constructor */
function cSQRT() {
this.name = "SQRT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -3295,7 +3248,6 @@
/** @constructor */
function cSQRTPI() {
this.name = "SQRTPI";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -3335,7 +3287,6 @@
/** @constructor */
function cSUBTOTAL() {
this.name = "SUBTOTAL";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -3432,7 +3383,6 @@
/** @constructor */
function cSUM() {
this.name = "SUM";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -3489,7 +3439,6 @@
/** @constructor */
function cSUMIF() {
this.name = "SUMIF";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -3561,7 +3510,6 @@
/** @constructor */
function cSUMIFS() {
this.name = "SUMIFS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -3654,7 +3602,6 @@
/** @constructor */
function cSUMPRODUCT() {
this.name = "SUMPRODUCT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -3727,7 +3674,6 @@
/** @constructor */
function cSUMSQ() {
this.name = "SUMSQ";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -3785,7 +3731,6 @@
/** @constructor */
function cSUMX2MY2() {
this.name = "SUMX2MY2";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -3870,7 +3815,6 @@
/** @constructor */
function cSUMX2PY2() {
this.name = "SUMX2PY2";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -3955,7 +3899,6 @@
/** @constructor */
function cSUMXMY2() {
this.name = "SUMXMY2";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -4040,7 +3983,6 @@
/** @constructor */
function cTAN() {
this.name = "TAN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -4080,7 +4022,6 @@
/** @constructor */
function cTANH() {
this.name = "TANH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -4120,7 +4061,6 @@
/** @constructor */
function cTRUNC() {
this.name = "TRUNC";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......
......@@ -628,221 +628,214 @@ RegExp.escape = function ( text ) {
parserHelp.setDigitSeparator(AscCommon.g_oDefaultCultureInfo.NumberDecimalSeparator);
/** @constructor */
function cBaseType( val, type ) {
/** @constructor */
function cBaseType(val) {
this.needRecalc = false;
this.numFormat = null;
this.ca = false;
this.type = type;
this.value = val;
}
}
cBaseType.prototype.cloneTo = function(oRes) {
cBaseType.prototype.cloneTo = function (oRes) {
oRes.needRecalc = this.needRecalc;
oRes.numFormat = this.numFormat;
oRes.type = this.type;
oRes.value = this.value;
oRes.ca = this.ca;
};
cBaseType.prototype.getValue = function() {
};
cBaseType.prototype.getValue = function () {
return this.value;
};
cBaseType.prototype.toString = function() {
};
cBaseType.prototype.toString = function () {
return this.value.toString();
};
cBaseType.prototype.toLocaleString = function() {
};
cBaseType.prototype.toLocaleString = function () {
return this.toString();
};
};
/*Basic types of an elements used into formulas*/
/** @constructor */
function cNumber( val ) {
this.constructor.call( this, parseFloat( val ), cElementType.number );
/*Basic types of an elements used into formulas*/
/** @constructor */
function cNumber(val) {
this.constructor.call(this, parseFloat(val));
var res;
if ( !isNaN( this.value ) && Math.abs( this.value ) !== Infinity ) {
if (!isNaN(this.value) && Math.abs(this.value) !== Infinity) {
res = this;
} else if (val instanceof cError) {
res = val;
} else {
res = new cError( cErrorType.not_numeric );
res = new cError(cErrorType.not_numeric);
}
return res;
}
}
cNumber.prototype = Object.create( cBaseType.prototype );
cNumber.prototype.tocString = function () {
return new cString(("" + this.value).replace(FormulaSeparators.digitSeparatorDef, FormulaSeparators.digitSeparator));
};
cNumber.prototype.tocNumber = function () {
cNumber.prototype = Object.create(cBaseType.prototype);
cNumber.prototype.type = cElementType.number;
cNumber.prototype.tocString = function () {
return new cString(("" + this.value).replace(FormulaSeparators.digitSeparatorDef,
FormulaSeparators.digitSeparator));
};
cNumber.prototype.tocNumber = function () {
return this;
};
cNumber.prototype.tocBool = function () {
return new cBool( this.value !== 0 );
};
cNumber.prototype.toLocaleString = function ( digitDelim ) {
};
cNumber.prototype.tocBool = function () {
return new cBool(this.value !== 0);
};
cNumber.prototype.toLocaleString = function (digitDelim) {
var res = this.value.toString();
if (digitDelim) {
return res.replace(FormulaSeparators.digitSeparatorDef, FormulaSeparators.digitSeparator);
} else {
return res;
}
};
};
/** @constructor */
function cString( val ) {
this.constructor.call( this, val, cElementType.string );
}
/** @constructor */
function cString(val) {
this.constructor.call(this, val);
}
cString.prototype = Object.create( cBaseType.prototype );
cString.prototype.tocNumber = function () {
cString.prototype = Object.create(cBaseType.prototype);
cString.prototype.type = cElementType.string;
cString.prototype.tocNumber = function () {
var res, m = this.value;
if ( this.value === "" ) {
res = new cNumber( 0 );
if (this.value === "") {
res = new cNumber(0);
}
/*if ( this.value[0] === '"' && this.value[this.value.length - 1] === '"' ) {
m = this.value.substring( 1, this.value.length - 1 );
}*/
if ( g_oFormatParser.isLocaleNumber( this.value ) ) {
var numberValue = g_oFormatParser.parseLocaleNumber( this.value );
if ( !isNaN( numberValue ) ) {
res = new cNumber( numberValue );
if (g_oFormatParser.isLocaleNumber(this.value)) {
var numberValue = g_oFormatParser.parseLocaleNumber(this.value);
if (!isNaN(numberValue)) {
res = new cNumber(numberValue);
}
} else {
var parseRes = AscCommon.g_oFormatParser.parse(this.value);
if(null != parseRes) {
res = new cNumber( parseRes.value );
if (null != parseRes) {
res = new cNumber(parseRes.value);
} else {
res = new cError( cErrorType.wrong_value_type );
res = new cError(cErrorType.wrong_value_type);
}
}
return res;
};
cString.prototype.tocBool = function () {
};
cString.prototype.tocBool = function () {
var res;
if ( parserHelp.isBoolean( this.value, 0 ) ) {
res = new cBool( parserHelp.operand_str.toUpperCase() === cBoolLocal["t"].toUpperCase() );
if (parserHelp.isBoolean(this.value, 0)) {
res = new cBool(parserHelp.operand_str.toUpperCase() === cBoolLocal["t"].toUpperCase());
} else {
res = this;
}
return res;
};
cString.prototype.tocString = function () {
};
cString.prototype.tocString = function () {
return this;
};
};
/** @constructor */
function cBool( val ) {
/** @constructor */
function cBool(val) {
var v = false;
switch(val.toString().toUpperCase()){
switch (val.toString().toUpperCase()) {
case "TRUE":
case cBoolLocal["t"].toUpperCase():
v = true;
}
this.constructor.call( this, v, cElementType.bool );
}
this.constructor.call(this, v);
}
cBool.prototype = Object.create( cBaseType.prototype );
cBool.prototype.toString = function () {
cBool.prototype = Object.create(cBaseType.prototype);
cBool.prototype.type = cElementType.bool;
cBool.prototype.toString = function () {
return this.value.toString().toUpperCase();
};
cBool.prototype.getValue = function () {
};
cBool.prototype.getValue = function () {
return this.toString();
};
cBool.prototype.tocNumber = function () {
return new cNumber( this.value ? 1.0 : 0.0 );
};
cBool.prototype.tocString = function () {
return new cString( this.value ? "TRUE" : "FALSE" );
};
cBool.prototype.toLocaleString = function () {
return new cString( this.value ? cBoolLocal["t"].toUpperCase() : cBoolLocal["f"].toUpperCase() );
};
cBool.prototype.tocBool = function () {
};
cBool.prototype.tocNumber = function () {
return new cNumber(this.value ? 1.0 : 0.0);
};
cBool.prototype.tocString = function () {
return new cString(this.value ? "TRUE" : "FALSE");
};
cBool.prototype.toLocaleString = function () {
return new cString(this.value ? cBoolLocal["t"].toUpperCase() : cBoolLocal["f"].toUpperCase());
};
cBool.prototype.tocBool = function () {
return this;
};
cBool.prototype.toBool = function () {
};
cBool.prototype.toBool = function () {
return this.value;
};
};
/** @constructor */
function cError( val ) {
this.constructor.call( this, val, cElementType.error );
/** @constructor */
function cError(val) {
this.constructor.call(this, val);
this.errorType = -1;
switch ( val ) {
switch (val) {
case cErrorLocal["value"]:
case cErrorOrigin["value"]:
case cErrorType.wrong_value_type:
{
case cErrorType.wrong_value_type: {
this.value = "#VALUE!";
this.errorType = cErrorType.wrong_value_type;
break;
}
case cErrorLocal["nil"]:
case cErrorOrigin["nil"]:
case cErrorType.null_value:
{
case cErrorType.null_value: {
this.value = "#NULL!";
this.errorType = cErrorType.null_value;
break;
}
case cErrorLocal["div"]:
case cErrorOrigin["div"]:
case cErrorType.division_by_zero:
{
case cErrorType.division_by_zero: {
this.value = "#DIV/0!";
this.errorType = cErrorType.division_by_zero;
break;
}
case cErrorLocal["ref"]:
case cErrorOrigin["ref"]:
case cErrorType.bad_reference:
{
case cErrorType.bad_reference: {
this.value = "#REF!";
this.errorType = cErrorType.bad_reference;
break;
}
case cErrorLocal["name"]:
case cErrorOrigin["name"]:
case cErrorType.wrong_name:
{
case cErrorType.wrong_name: {
this.value = "#NAME?";
this.errorType = cErrorType.wrong_name;
break;
}
case cErrorLocal["num"]:
case cErrorOrigin["num"]:
case cErrorType.not_numeric:
{
case cErrorType.not_numeric: {
this.value = "#NUM!";
this.errorType = cErrorType.not_numeric;
break;
}
case cErrorLocal["na"]:
case cErrorOrigin["na"]:
case cErrorType.not_available:
{
case cErrorType.not_available: {
this.value = "#N/A";
this.errorType = cErrorType.not_available;
break;
}
case cErrorLocal["getdata"]:
case cErrorOrigin["getdata"]:
case cErrorType.getting_data:
{
case cErrorType.getting_data: {
this.value = "#GETTING_DATA";
this.errorType = cErrorType.getting_data;
break;
}
case cErrorLocal["uf"]:
case cErrorOrigin["uf"]:
case cErrorType.unsupported_function:
{
case cErrorType.unsupported_function: {
this.value = "#UNSUPPORTED_FUNCTION!";
this.errorType = cErrorType.unsupported_function;
break;
......@@ -850,107 +843,99 @@ function cError( val ) {
}
return this;
}
}
cError.prototype = Object.create( cBaseType.prototype );
cError.prototype.tocNumber =
cError.prototype.tocString = cError.prototype.tocBool = cError.prototype.tocEmpty = function() {
cError.prototype = Object.create(cBaseType.prototype);
cError.prototype.type = cElementType.error;
cError.prototype.tocNumber =
cError.prototype.tocString = cError.prototype.tocBool = cError.prototype.tocEmpty = function () {
return this;
};
cError.prototype.toLocaleString = function () {
switch ( this.value ) {
};
cError.prototype.toLocaleString = function () {
switch (this.value) {
case cErrorOrigin["value"]:
case cErrorType.wrong_value_type:
{
case cErrorType.wrong_value_type: {
return cErrorLocal["value"];
break;
}
case cErrorOrigin["nil"]:
case cErrorType.null_value:
{
case cErrorType.null_value: {
return cErrorLocal["nil"];
break;
}
case cErrorOrigin["div"]:
case cErrorType.division_by_zero:
{
case cErrorType.division_by_zero: {
return cErrorLocal["div"];
break;
}
case cErrorOrigin["ref"]:
case cErrorType.bad_reference:
{
case cErrorType.bad_reference: {
return cErrorLocal["ref"];
break;
}
case cErrorOrigin["name"]:
case cErrorType.wrong_name:
{
case cErrorType.wrong_name: {
return cErrorLocal["name"];
break;
}
case cErrorOrigin["num"]:
case cErrorType.not_numeric:
{
case cErrorType.not_numeric: {
return cErrorLocal["num"];
break;
}
case cErrorOrigin["na"]:
case cErrorType.not_available:
{
case cErrorType.not_available: {
return cErrorLocal["na"];
break;
}
case cErrorOrigin["getdata"]:
case cErrorType.getting_data:
{
case cErrorType.getting_data: {
return cErrorLocal["getdata"];
break;
}
case cErrorOrigin["uf"]:
case cErrorType.unsupported_function:
{
case cErrorType.unsupported_function: {
return cErrorLocal["uf"];
break;
}
}
return cErrorLocal["na"];
};
/*cError.prototype.toString = function () {
};
/*cError.prototype.toString = function () {
return new cString( this.value ? cBoolLocal["t"].toUpperCase() : cBoolLocal["f"].toUpperCase() );
};*/
};*/
/** @constructor */
function cArea( val, ws ) {/*Area means "A1:E5" for example*/
this.constructor.call( this, val, cElementType.cellsRange );
/** @constructor */
function cArea(val, ws) {/*Area means "A1:E5" for example*/
this.constructor.call(this, val);
this.ws = ws;
this.range = null;
if (val) {
this.range = ws.getRange2(val);
}
}
}
cArea.prototype = Object.create( cBaseType.prototype );
cArea.prototype.clone = function (opt_ws) {
cArea.prototype = Object.create(cBaseType.prototype);
cArea.prototype.type = cElementType.cellsRange;
cArea.prototype.clone = function (opt_ws) {
var ws = opt_ws ? opt_ws : this.ws;
var oRes = new cArea(null, ws);
// cBaseType.prototype.cloneTo.call( this, oRes );
this.constructor.prototype.cloneTo.call(this, oRes);
this.cloneTo(oRes);
if (this.range) {
oRes.range = this.range.clone(ws);
}
return oRes;
};
cArea.prototype.getWsId = function () {
};
cArea.prototype.getWsId = function () {
return this.ws.Id;
};
};
cArea.prototype.getValue = function (checkExclude, excludeHiddenRows) {
var val = [], r = this.getRange();
if (!r) {
......@@ -974,67 +959,67 @@ cArea.prototype.getWsId = function () {
}
return res;
};
cArea.prototype.getRange = function () {
cArea.prototype.getRange = function () {
if (!this.range) {
this.range = this.ws.getRange2(this._cells);
}
return this.range;
};
cArea.prototype.tocNumber = function () {
};
cArea.prototype.tocNumber = function () {
var v = this.getValue()[0];
if ( !v ) {
v = new cNumber( 0 );
if (!v) {
v = new cNumber(0);
} else {
v = v.tocNumber();
}
return v;
};
cArea.prototype.tocString = function () {
};
cArea.prototype.tocString = function () {
return this.getValue()[0].tocString();
};
cArea.prototype.tocBool = function () {
};
cArea.prototype.tocBool = function () {
return this.getValue()[0].tocBool();
};
cArea.prototype.toString = function () {
};
cArea.prototype.toString = function () {
var _c;
if ( this.range ) {
if (this.range) {
_c = this.range.getName();
} else {
_c = this.value;
}
if ( _c.indexOf( ":" ) < 0 ) {
if (_c.indexOf(":") < 0) {
_c = _c + ":" + _c;
}
return _c;
};
cArea.prototype.getWS = function () {
};
cArea.prototype.getWS = function () {
return this.ws;
};
cArea.prototype.getBBox = function () {
};
cArea.prototype.getBBox = function () {
return this.getRange().getBBox();
};
cArea.prototype.getBBox0 = function () {
};
cArea.prototype.getBBox0 = function () {
return this.getRange().getBBox0();
};
cArea.prototype.cross = function ( arg ) {
};
cArea.prototype.cross = function (arg) {
var r = this.getRange(), cross;
if ( !r ) {
return new cError( cErrorType.wrong_name );
if (!r) {
return new cError(cErrorType.wrong_name);
}
cross = r.cross( arg );
if ( cross ) {
if ( cross.r != undefined ) {
return this.getValue2( cross.r - this.getBBox().r1, 0 );
cross = r.cross(arg);
if (cross) {
if (cross.r != undefined) {
return this.getValue2(cross.r - this.getBBox().r1, 0);
} else if (cross.c != undefined) {
return this.getValue2( 0, cross.c - this.getBBox().c1 );
return this.getValue2(0, cross.c - this.getBBox().c1);
}
}
return new cError( cErrorType.wrong_value_type );
};
cArea.prototype.isValid = function () {
return new cError(cErrorType.wrong_value_type);
};
cArea.prototype.isValid = function () {
return !!this.getRange();
};
};
cArea.prototype.countCells = function () {
var r = this.getRange(), bbox = r.bbox, count = (Math.abs(bbox.c1 - bbox.c2) + 1) *
(Math.abs(bbox.r1 - bbox.r2) + 1);
......@@ -1045,12 +1030,12 @@ cArea.prototype.isValid = function () {
});
return new cNumber(count);
};
cArea.prototype.foreach = function ( action ) {
cArea.prototype.foreach = function (action) {
var r = this.getRange();
if ( r ) {
r._foreach2( action );
if (r) {
r._foreach2(action);
}
};
};
cArea.prototype.foreach2 = function (action) {
var r = this.getRange();
if (r) {
......@@ -1076,33 +1061,33 @@ cArea.prototype.foreach = function ( action ) {
});
return [arr];
};
cArea.prototype.getRefMatrix = function () {
cArea.prototype.getRefMatrix = function () {
var t = this, arr = [], r = this.getRange();
r._foreach2( function ( cell, i, j, r1, c1 ) {
r._foreach2(function (cell, i, j, r1, c1) {
if (!arr[i - r1]) {
arr[i - r1] = [];
}
if (cell) {
arr[i - r1][j - c1] = new cRef( cell.getName(), t.ws );
arr[i - r1][j - c1] = new cRef(cell.getName(), t.ws);
} else {
arr[i - r1][j - c1] = new cRef( t.ws._getCell( i, j ).getName(), t.ws );
arr[i - r1][j - c1] = new cRef(t.ws._getCell(i, j).getName(), t.ws);
}
} );
});
return arr;
};
cArea.prototype.index = function ( r, c ) {
};
cArea.prototype.index = function (r, c) {
var bbox = this.getBBox0();
bbox.normalize();
var box = {c1: 1, c2: bbox.c2 - bbox.c1 + 1, r1: 1, r2: bbox.r2 - bbox.r1 + 1};
if ( r < box.r1 || r > box.r2 || c < box.c1 || c > box.c2 ) {
return new cError( cErrorType.bad_reference );
if (r < box.r1 || r > box.r2 || c < box.c1 || c > box.c2) {
return new cError(cErrorType.bad_reference);
}
};
};
/** @constructor */
function cArea3D(val, wsFrom, wsTo) {/*Area3D means "Sheat1!A1:E5" for example*/
this.constructor.call(this, val, cElementType.cellsRange3D);
this.constructor.call(this, val);
this.bbox = null;
if (val) {
......@@ -1119,10 +1104,10 @@ cArea.prototype.index = function ( r, c ) {
}
cArea3D.prototype = Object.create(cBaseType.prototype);
cArea3D.prototype.type = cElementType.cellsRange3D;
cArea3D.prototype.clone = function () {
var oRes = new cArea3D(null, this.wsFrom, this.wsTo);
// cBaseType.prototype.cloneTo.call( this, oRes );
this.constructor.prototype.cloneTo.call(this, oRes);
this.cloneTo(oRes);
if (this.bbox) {
oRes.bbox = this.bbox.clone();
}
......@@ -1350,7 +1335,7 @@ cArea.prototype.index = function ( r, c ) {
/** @constructor */
function cRef(val, ws) {/*Ref means A1 for example*/
this.constructor.call(this, val, cElementType.cell);
this.constructor.call(this, val);
this.ws = ws;
this.range = null;
......@@ -1360,11 +1345,11 @@ cArea.prototype.index = function ( r, c ) {
}
cRef.prototype = Object.create(cBaseType.prototype);
cRef.prototype.type = cElementType.cell;
cRef.prototype.clone = function (opt_ws) {
var ws = opt_ws ? opt_ws : this.ws;
var oRes = new cRef(null, ws);
// cBaseType.prototype.cloneTo.call( this, oRes );
this.constructor.prototype.cloneTo.call(this, oRes);
this.cloneTo(oRes);
if (this.range) {
oRes.range = this.range.clone(ws);
}
......@@ -1416,7 +1401,7 @@ cArea.prototype.index = function ( r, c ) {
/** @constructor */
function cRef3D(val, ws) {/*Ref means Sheat1!A1 for example*/
this.constructor.call(this, val, cElementType.cell3D);
this.constructor.call(this, val);
this.ws = ws;
this.range = null;
......@@ -1426,11 +1411,11 @@ cArea.prototype.index = function ( r, c ) {
}
cRef3D.prototype = Object.create(cBaseType.prototype);
cRef3D.prototype.type = cElementType.cell3D;
cRef3D.prototype.clone = function (opt_ws) {
var ws = opt_ws ? opt_ws : this.ws;
var oRes = new cRef3D(null, null);
// cBaseType.prototype.cloneTo.call( this, oRes );
this.constructor.prototype.cloneTo.call(this, oRes);
this.cloneTo(oRes);
if (opt_ws && this.ws.getName() == opt_ws.getName()) {
oRes.ws = opt_ws;
} else {
......@@ -1499,36 +1484,38 @@ cArea.prototype.index = function ( r, c ) {
return excludeHiddenRows && _r && this.ws.getRowHidden(_r.r1);
};
/** @constructor */
function cEmpty() {
this.constructor.call( this, "", cElementType.empty );
}
/** @constructor */
function cEmpty() {
this.constructor.call(this, "");
}
cEmpty.prototype = Object.create( cBaseType.prototype );
cEmpty.prototype.tocNumber = function () {
return new cNumber( 0 );
};
cEmpty.prototype.tocBool = function () {
return new cBool( false );
};
cEmpty.prototype.tocString = function () {
return new cString( "" );
};
cEmpty.prototype.toString = function () {
cEmpty.prototype = Object.create(cBaseType.prototype);
cEmpty.prototype.type = cElementType.empty;
cEmpty.prototype.tocNumber = function () {
return new cNumber(0);
};
cEmpty.prototype.tocBool = function () {
return new cBool(false);
};
cEmpty.prototype.tocString = function () {
return new cString("");
};
cEmpty.prototype.toString = function () {
return "";
};
};
/** @constructor */
function cName(val, ws) {
this.constructor.call(this, val, cElementType.name);
this.constructor.call(this, val);
this.ws = ws;
}
cName.prototype = Object.create(cBaseType.prototype);
cName.prototype.type = cElementType.name;
cName.prototype.clone = function (opt_ws) {
var ws = opt_ws ? opt_ws : this.ws;
var oRes = new cName(this.value, ws);
this.constructor.prototype.cloneTo.call(this, oRes);
this.cloneTo(oRes);
return oRes;
};
cName.prototype.toRef = function () {
......@@ -1584,9 +1571,9 @@ cEmpty.prototype.toString = function () {
return this.ws;
};
/** @constructor */
function cStrucTable( val, wb, ws ) {
this.constructor.call( this, val, cElementType.table );
/** @constructor */
function cStrucTable(val, wb, ws) {
this.constructor.call(this, val);
this.wb = wb;
this.ws = ws;
......@@ -1601,17 +1588,18 @@ function cStrucTable( val, wb, ws ) {
this.isDynamic = false;//#This row
this.area = null;
}
}
cStrucTable.prototype = Object.create( cBaseType.prototype );
cStrucTable.prototype.createFromVal = function(val, wb, ws) {
cStrucTable.prototype = Object.create(cBaseType.prototype);
cStrucTable.prototype.type = cElementType.table;
cStrucTable.prototype.createFromVal = function (val, wb, ws) {
var res = new cStrucTable(val[0], wb, ws);
if (res._parseVal(val)) {
res._updateArea(null, false);
}
return (res.area && res.area.type != cElementType.error) ? res : new cError( cErrorType.bad_reference );
return (res.area && res.area.type != cElementType.error) ? res : new cError(cErrorType.bad_reference);
};
cStrucTable.prototype.clone = function(opt_ws) {
cStrucTable.prototype.clone = function (opt_ws) {
var ws = opt_ws ? opt_ws : this.ws;
var wb = ws.workbook;
var oRes = new cStrucTable(this.value, wb, ws);
......@@ -1628,41 +1616,41 @@ cStrucTable.prototype = Object.create( cBaseType.prototype );
oRes.isDynamic = this.isDynamic;
if (this.area) {
if(this.area.clone){
if (this.area.clone) {
oRes.area = this.area.clone(opt_ws);
} else {
oRes.area = this.area;
}
}
this.constructor.prototype.cloneTo.call(this, oRes);
this.cloneTo(oRes);
return oRes;
};
cStrucTable.prototype._cloneIndex = function(val) {
cStrucTable.prototype._cloneIndex = function (val) {
if (val) {
return {wsID: val.wsID, index: val.index, name: val.name};
} else {
return val;
}
};
cStrucTable.prototype.toRef = function (opt_bbox) {
cStrucTable.prototype.toRef = function (opt_bbox) {
//opt_bbox usefull only for #This row
//case null == opt_bbox works like FormulaTablePartInfo.data
var table = this.wb.getDefinesNames( this.tableName, this.ws ? this.ws.getId() : null );
if ( !table || !table.ref ) {
return new cError( cErrorType.wrong_name );
var table = this.wb.getDefinesNames(this.tableName, this.ws ? this.ws.getId() : null);
if (!table || !table.ref) {
return new cError(cErrorType.wrong_name);
}
if(!this.area || this.isDynamic){
this._updateArea(opt_bbox, true );
if (!this.area || this.isDynamic) {
this._updateArea(opt_bbox, true);
}
return this.area;
};
cStrucTable.prototype.toString = function () {
};
cStrucTable.prototype.toString = function () {
return this._toString(false);
};
cStrucTable.prototype.toLocaleString = function () {
};
cStrucTable.prototype.toLocaleString = function () {
return this._toString(true);
};
cStrucTable.prototype._toString = function(isLocal) {
};
cStrucTable.prototype._toString = function (isLocal) {
var tblStr, columns_1, columns_2;
var table = this.wb.getDefinesNames(this.tableName, null);
if (!table) {
......@@ -1714,7 +1702,7 @@ cStrucTable.prototype.toLocaleString = function () {
}
return tblStr;
};
cStrucTable.prototype._parseVal = function(val) {
cStrucTable.prototype._parseVal = function (val) {
var bRes = true;
this.tableName = val['tableName'];
if (val['oneColumn']) {
......@@ -1745,8 +1733,7 @@ cStrucTable.prototype.toLocaleString = function () {
while (null !== (m = re.exec(val['hdt']))) {
var param = parserHelp.getColumnTypeByName(m[1]);
if (AscCommon.FormulaTablePartInfo.thisRow == param ||
AscCommon.FormulaTablePartInfo.headers == param ||
AscCommon.FormulaTablePartInfo.totals == param) {
AscCommon.FormulaTablePartInfo.headers == param || AscCommon.FormulaTablePartInfo.totals == param) {
this.isDynamic = true;
}
this.hdtIndexes.push(param);
......@@ -1765,7 +1752,7 @@ cStrucTable.prototype.toLocaleString = function () {
}
return bRes;
};
cStrucTable.prototype._updateArea = function(opt_bbox, opt_toRef) {
cStrucTable.prototype._updateArea = function (opt_bbox, opt_toRef) {
var paramObj = {param: null, startCol: null, endCol: null, cell: opt_bbox, toRef: opt_toRef};
var isThisRow = false;
var tableData;
......@@ -1782,7 +1769,7 @@ cStrucTable.prototype.toLocaleString = function () {
} else if (this.hdtIndexes || this.hdtcstartIndex) {
var data, range;
if (this.hdtIndexes) {
for(var i = 0 ; i < this.hdtIndexes.length; ++i){
for (var i = 0; i < this.hdtIndexes.length; ++i) {
paramObj.param = this.hdtIndexes[i];
isThisRow = AscCommon.FormulaTablePartInfo.thisRow == paramObj.param;
data = this.wb.getTableRangeForFormula(this.tableName, paramObj);
......@@ -1843,21 +1830,21 @@ cStrucTable.prototype.toLocaleString = function () {
return this.area;
};
cStrucTable.prototype._createAreaError = function (isThisRow) {
if(isThisRow){
return this.area = new cError( cErrorType.wrong_value_type );
if (isThisRow) {
return this.area = new cError(cErrorType.wrong_value_type);
} else {
return this.area = new cError( cErrorType.bad_reference );
return this.area = new cError(cErrorType.bad_reference);
}
};
cStrucTable.prototype._buildLocalTableString = function (reservedColumn,local) {
cStrucTable.prototype._buildLocalTableString = function (reservedColumn, local) {
return parserHelp.getColumnNameByType(reservedColumn, local);
};
};
cStrucTable.prototype.changeDefName = function (from, to) {
if (this.tableName == from.name) {
this.tableName = to.name;
}
};
cStrucTable.prototype.removeTableColumn = function(deleted) {
cStrucTable.prototype.removeTableColumn = function (deleted) {
if (this.oneColumnIndex) {
if (deleted[this.oneColumnIndex.name]) {
return true;
......@@ -1908,12 +1895,12 @@ cStrucTable.prototype._buildLocalTableString = function (reservedColumn,local) {
}
return false;
};
cStrucTable.prototype.changeTableRef = function() {
if(!this.isDynamic){
cStrucTable.prototype.changeTableRef = function () {
if (!this.isDynamic) {
this._updateArea(null, false);
}
};
cStrucTable.prototype.renameTableColumn = function() {
cStrucTable.prototype.renameTableColumn = function () {
var bRes = true;
var columns1, columns2;
if (this.oneColumnIndex) {
......@@ -1932,14 +1919,16 @@ cStrucTable.prototype._buildLocalTableString = function (reservedColumn,local) {
} else {
bRes = false;
}
} if (this.hdtcstartIndex) {
}
if (this.hdtcstartIndex) {
columns1 = this.wb.getTableNameColumnByIndex(this.tableName, this.hdtcstartIndex.index);
if (columns1) {
this.hdtcstartIndex.name = columns1.columnName;
} else {
bRes = false;
}
} if (this.hdtcendIndex) {
}
if (this.hdtcendIndex) {
columns1 = this.wb.getTableNameColumnByIndex(this.tableName, this.hdtcendIndex.index);
if (columns1) {
this.hdtcendIndex.name = columns1.columnName;
......@@ -1953,10 +1942,10 @@ cStrucTable.prototype._buildLocalTableString = function (reservedColumn,local) {
/** @constructor */
function cName3D(val, ws) {
cName.call(this, val, ws);
this.type = cElementType.name3D;
}
cName3D.prototype = Object.create(cName.prototype);
cName3D.prototype.type = cElementType.name3D;
cName3D.prototype.clone = function (opt_ws) {
var ws;
if (opt_ws && opt_ws.getName() === this.ws.getName()) {
......@@ -1965,7 +1954,7 @@ cStrucTable.prototype._buildLocalTableString = function (reservedColumn,local) {
ws = this.ws;
}
var oRes = new cName3D(this.value, ws);
this.constructor.prototype.cloneTo.call(this, oRes);
this.cloneTo(oRes);
return oRes;
};
cName3D.prototype.changeSheet = function (wsLast, wsNew) {
......@@ -1977,187 +1966,192 @@ cStrucTable.prototype._buildLocalTableString = function (reservedColumn,local) {
return parserHelp.getEscapeSheetName(this.ws.getName()) + "!" + this.constructor.prototype.toString.call(this);
};
/** @constructor */
function cArray() {
this.constructor.call( this, undefined, cElementType.array );
/** @constructor */
function cArray() {
this.constructor.call(this, undefined);
this.array = [];
this.rowCount = 0;
this.countElementInRow = [];
this.countElement = 0;
}
}
cArray.prototype = Object.create( cBaseType.prototype );
cArray.prototype.addRow = function () {
cArray.prototype = Object.create(cBaseType.prototype);
cArray.prototype.type = cElementType.array;
cArray.prototype.addRow = function () {
this.array[this.array.length] = [];
this.countElementInRow[this.rowCount++] = 0;
};
cArray.prototype.addElement = function ( element ) {
if ( this.array.length === 0 ) {
};
cArray.prototype.addElement = function (element) {
if (this.array.length === 0) {
this.addRow();
}
var arr = this.array, subArr = arr[this.rowCount - 1];
subArr[subArr.length] = element;
this.countElementInRow[this.rowCount - 1]++;
this.countElement++;
};
cArray.prototype.getRow = function ( rowIndex ) {
if ( rowIndex < 0 || rowIndex > this.array.length - 1 ) {
};
cArray.prototype.getRow = function (rowIndex) {
if (rowIndex < 0 || rowIndex > this.array.length - 1) {
return null;
}
return this.array[rowIndex];
};
cArray.prototype.getCol = function ( colIndex ) {
};
cArray.prototype.getCol = function (colIndex) {
var col = [];
for ( var i = 0; i < this.rowCount; i++ ) {
col.push( this.array[i][colIndex] );
for (var i = 0; i < this.rowCount; i++) {
col.push(this.array[i][colIndex]);
}
return col;
};
cArray.prototype.getElementRowCol = function ( row, col ) {
if ( row > this.rowCount || col > this.getCountElementInRow() ) {
return new cError( cErrorType.not_available );
};
cArray.prototype.getElementRowCol = function (row, col) {
if (row > this.rowCount || col > this.getCountElementInRow()) {
return new cError(cErrorType.not_available);
}
return this.array[row][col];
};
cArray.prototype.getElement = function ( index ) {
for ( var i = 0; i < this.rowCount; i++ ) {
if ( index > this.countElementInRow[i].length ) {
};
cArray.prototype.getElement = function (index) {
for (var i = 0; i < this.rowCount; i++) {
if (index > this.countElementInRow[i].length) {
index -= this.countElementInRow[i].length;
} else {
return this.array[i][index];
}
}
return null;
};
cArray.prototype.foreach = function ( action ) {
if ( typeof (action) !== 'function' ) {
};
cArray.prototype.foreach = function (action) {
if (typeof (action) !== 'function') {
return true;
}
for ( var ir = 0; ir < this.rowCount; ir++ ) {
for ( var ic = 0; ic < this.countElementInRow[ir]; ic++ ) {
if ( action.call( this, this.array[ir][ic], ir, ic ) ) {
for (var ir = 0; ir < this.rowCount; ir++) {
for (var ic = 0; ic < this.countElementInRow[ir]; ic++) {
if (action.call(this, this.array[ir][ic], ir, ic)) {
return true;
}
}
}
return undefined;
};
cArray.prototype.getCountElement = function () {
};
cArray.prototype.getCountElement = function () {
return this.countElement;
};
cArray.prototype.getCountElementInRow = function () {
};
cArray.prototype.getCountElementInRow = function () {
return this.countElementInRow[0];
};
cArray.prototype.getRowCount = function () {
};
cArray.prototype.getRowCount = function () {
return this.rowCount;
};
cArray.prototype.tocNumber = function () {
};
cArray.prototype.tocNumber = function () {
var retArr = new cArray();
for ( var ir = 0; ir < this.rowCount; ir++, retArr.addRow() ) {
for ( var ic = 0; ic < this.countElementInRow[ir]; ic++ ) {
retArr.addElement( this.array[ir][ic].tocNumber() );
for (var ir = 0; ir < this.rowCount; ir++, retArr.addRow()) {
for (var ic = 0; ic < this.countElementInRow[ir]; ic++) {
retArr.addElement(this.array[ir][ic].tocNumber());
}
if ( ir === this.rowCount - 1 ) {
if (ir === this.rowCount - 1) {
break;
}
}
return retArr;
};
cArray.prototype.tocString = function () {
};
cArray.prototype.tocString = function () {
var retArr = new cArray();
for ( var ir = 0; ir < this.rowCount; ir++, retArr.addRow() ) {
for ( var ic = 0; ic < this.countElementInRow[ir]; ic++ ) {
retArr.addElement( this.array[ir][ic].tocString() );
for (var ir = 0; ir < this.rowCount; ir++, retArr.addRow()) {
for (var ic = 0; ic < this.countElementInRow[ir]; ic++) {
retArr.addElement(this.array[ir][ic].tocString());
}
if ( ir === this.rowCount - 1 ) {
if (ir === this.rowCount - 1) {
break;
}
}
return retArr;
};
cArray.prototype.tocBool = function () {
};
cArray.prototype.tocBool = function () {
var retArr = new cArray();
for ( var ir = 0; ir < this.rowCount; ir++, retArr.addRow() ) {
for ( var ic = 0; ic < this.countElementInRow[ir]; ic++ ) {
retArr.addElement( this.array[ir][ic].tocBool() );
for (var ir = 0; ir < this.rowCount; ir++, retArr.addRow()) {
for (var ic = 0; ic < this.countElementInRow[ir]; ic++) {
retArr.addElement(this.array[ir][ic].tocBool());
}
if ( ir === this.rowCount - 1 ) {
if (ir === this.rowCount - 1) {
break;
}
}
return retArr;
};
cArray.prototype.toString = function () {
};
cArray.prototype.toString = function () {
var ret = "";
for (var ir = 0; ir < this.rowCount; ir++, ret += FormulaSeparators.arrayRowSeparatorDef) {
for (var ic = 0; ic < this.countElementInRow[ir]; ic++, ret += FormulaSeparators.arrayColSeparatorDef) {
if ( this.array[ir][ic] instanceof cString ) {
if (this.array[ir][ic] instanceof cString) {
ret += '"' + this.array[ir][ic].toString() + '"';
} else {
ret += this.array[ir][ic].toString() + "";
}
}
if (ret[ret.length - 1] === FormulaSeparators.arrayColSeparatorDef) {
ret = ret.substring( 0, ret.length - 1 );
ret = ret.substring(0, ret.length - 1);
}
}
if (ret[ret.length - 1] === FormulaSeparators.arrayRowSeparatorDef) {
ret = ret.substring( 0, ret.length - 1 );
ret = ret.substring(0, ret.length - 1);
}
return "{" + ret + "}";
};
cArray.prototype.toLocaleString = function ( digitDelim ) {
};
cArray.prototype.toLocaleString = function (digitDelim) {
var ret = "";
for (var ir = 0; ir < this.rowCount; ir++, ret += digitDelim ? FormulaSeparators.arrayRowSeparator : FormulaSeparators.arrayRowSeparatorDef) {
for (var ic = 0; ic < this.countElementInRow[ir];
ic++, ret += digitDelim ? FormulaSeparators.arrayColSeparator : FormulaSeparators.arrayColSeparatorDef) {
if ( this.array[ir][ic] instanceof cString ) {
ret += '"' + this.array[ir][ic].toLocaleString( digitDelim ) + '"';
for (var ir = 0; ir < this.rowCount;
ir++, ret += digitDelim ? FormulaSeparators.arrayRowSeparator : FormulaSeparators.arrayRowSeparatorDef) {
for (var ic = 0; ic < this.countElementInRow[ir]; ic++, ret +=
digitDelim ? FormulaSeparators.arrayColSeparator : FormulaSeparators.arrayColSeparatorDef) {
if (this.array[ir][ic] instanceof cString) {
ret += '"' + this.array[ir][ic].toLocaleString(digitDelim) + '"';
} else {
ret += this.array[ir][ic].toLocaleString( digitDelim ) + "";
ret += this.array[ir][ic].toLocaleString(digitDelim) + "";
}
}
if (ret[ret.length - 1] === digitDelim ? FormulaSeparators.arrayColSeparator : FormulaSeparators.arrayColSeparatorDef) {
ret = ret.substring( 0, ret.length - 1 );
if (ret[ret.length - 1] === digitDelim ? FormulaSeparators.arrayColSeparator :
FormulaSeparators.arrayColSeparatorDef) {
ret = ret.substring(0, ret.length - 1);
}
}
if (ret[ret.length - 1] === digitDelim ? FormulaSeparators.arrayRowSeparator : FormulaSeparators.arrayRowSeparatorDef) {
ret = ret.substring( 0, ret.length - 1 );
if (ret[ret.length - 1] === digitDelim ? FormulaSeparators.arrayRowSeparator :
FormulaSeparators.arrayRowSeparatorDef) {
ret = ret.substring(0, ret.length - 1);
}
return "{" + ret + "}";
};
cArray.prototype.isValidArray = function () {
if ( this.countElement < 1 ) {
};
cArray.prototype.isValidArray = function () {
if (this.countElement < 1) {
return false;
}
for ( var i = 0; i < this.rowCount - 1; i++ ) {
if ( this.countElementInRow[i] - this.countElementInRow[i + 1] !== 0 ) {
for (var i = 0; i < this.rowCount - 1; i++) {
if (this.countElementInRow[i] - this.countElementInRow[i + 1] !== 0) {
return false;
}
}
return true;
};
cArray.prototype.getValue2 = function ( i, j ) {
};
cArray.prototype.getValue2 = function (i, j) {
var result = this.array[i];
return result ? result[j] : result;
};
cArray.prototype.getMatrix = function () {
};
cArray.prototype.getMatrix = function () {
return this.array;
};
cArray.prototype.fillFromArray = function ( arr ) {
};
cArray.prototype.fillFromArray = function (arr) {
this.array = arr;
this.rowCount = arr.length;
for ( var i = 0; i < arr.length; i++ ) {
for (var i = 0; i < arr.length; i++) {
this.countElementInRow[i] = arr[i].length;
this.countElement += arr[i].length;
}
};
};
/** @constructor */
function cUndefined() {
/** @constructor */
function cUndefined() {
this.value = undefined;
}
cUndefined.prototype = Object.create( cBaseType.prototype );
}
cUndefined.prototype = Object.create(cBaseType.prototype);
function checkTypeCell(cell) {
if (cell && !cell.isEmptyText()) {
......@@ -2183,12 +2177,12 @@ cUndefined.prototype = Object.create( cBaseType.prototype );
function cBaseOperator(name, priority, argumentCount) {
this.name = name ? name : '';
this.priority = (priority !== undefined) ? priority : 10;
this.type = cElementType.operator;
this.isRightAssociative = false;
this.argumentsCurrent = (argumentCount !== undefined) ? argumentCount : 2;
this.value = null;
}
cBaseOperator.prototype.type = cElementType.operator;
cBaseOperator.prototype.getArguments = function () {
return this.argumentsCurrent;
};
......@@ -2230,7 +2224,6 @@ cUndefined.prototype = Object.create( cBaseType.prototype );
/** @constructor */
function cBaseFunction(name, argMin, argMax) {
this.name = name;
this.type = cElementType.func;
this.value = null;
this.argumentsMin = argMin ? argMin : 0;
this.argumentsCurrent = 0;
......@@ -2238,6 +2231,7 @@ cUndefined.prototype = Object.create( cBaseType.prototype );
// this.isXLFN = rx_sFuncPref.test(this.name);
}
cBaseFunction.prototype.type = cElementType.func;
cBaseFunction.prototype.numFormat = AscCommonExcel.cNumFormatFirstCell;
cBaseFunction.prototype.Calculate = function () {
this.value = new cError(cErrorType.wrong_name);
......@@ -2321,46 +2315,46 @@ cUndefined.prototype = Object.create( cBaseType.prototype );
return this.argumentsMin <= this.argumentsCurrent && this.argumentsCurrent <= this.argumentsMax;
};
/** @constructor */
function parentLeft() {
/** @constructor */
function parentLeft() {
this.name = "(";
this.type = cElementType.operator;
this.argumentsCurrent = 1;
}
}
parentLeft.prototype.constructor = parentLeft;
parentLeft.prototype.DecrementArguments = function () {
parentLeft.prototype.type = cElementType.operator;
parentLeft.prototype.constructor = parentLeft;
parentLeft.prototype.DecrementArguments = function () {
--this.argumentsCurrent;
};
parentLeft.prototype.IncrementArguments = function () {
};
parentLeft.prototype.IncrementArguments = function () {
++this.argumentsCurrent;
};
parentLeft.prototype.toString = function () {
};
parentLeft.prototype.toString = function () {
return this.name;
};
parentLeft.prototype.getArguments = function () {
};
parentLeft.prototype.getArguments = function () {
return this.argumentsCurrent;
};
parentLeft.prototype.Assemble = function ( arg ) {
return new cString( "(" + arg + ")" );
};
parentLeft.prototype.Assemble2 = function ( arg, start, count ) {
return new cString( "(" + arg[start + count - 1] + ")" );
};
parentLeft.prototype.Assemble2Locale = function ( arg, start, count ) {
return this.Assemble2( arg, start, count );
};
};
parentLeft.prototype.Assemble = function (arg) {
return new cString("(" + arg + ")");
};
parentLeft.prototype.Assemble2 = function (arg, start, count) {
return new cString("(" + arg[start + count - 1] + ")");
};
parentLeft.prototype.Assemble2Locale = function (arg, start, count) {
return this.Assemble2(arg, start, count);
};
/** @constructor */
function parentRight() {
/** @constructor */
function parentRight() {
this.name = ")";
this.type = cElementType.operator;
}
}
parentRight.prototype.constructor = parentRight;
parentRight.prototype.toString = function () {
parentRight.prototype.type = cElementType.operator;
parentRight.prototype.constructor = parentRight;
parentRight.prototype.toString = function () {
return this.name;
};
};
/** @constructor */
function cRangeUnionOperator() {
......
......@@ -325,7 +325,6 @@
/** @constructor */
function cAVEDEV() {
this.name = "AVEDEV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -389,7 +388,6 @@
/** @constructor */
function cAVERAGE() {
this.name = "AVERAGE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -460,7 +458,6 @@
/** @constructor */
function cAVERAGEA() {
this.name = "AVERAGEA";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -524,7 +521,6 @@
/** @constructor */
function cAVERAGEIF() {
this.name = "AVERAGEIF";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -607,7 +603,6 @@
/** @constructor */
function cAVERAGEIFS() {
this.name = "AVERAGEIFS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -706,7 +701,6 @@
/** @constructor */
function cBINOMDIST() {
this.name = "BINOMDIST";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
......@@ -810,7 +804,6 @@
/** @constructor */
function cCONFIDENCE() {
this.name = "CONFIDENCE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -870,7 +863,6 @@
/** @constructor */
function cCORREL() {
this.name = "CORREL";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -953,7 +945,6 @@
/** @constructor */
function cCOUNT() {
this.name = "COUNT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1006,7 +997,6 @@
/** @constructor */
function cCOUNTA() {
this.name = "COUNTA";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1054,7 +1044,6 @@
/** @constructor */
function cCOUNTBLANK() {
this.name = "COUNTBLANK";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1082,7 +1071,6 @@
/** @constructor */
function cCOUNTIF() {
this.name = "COUNTIF";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -1135,7 +1123,6 @@
/** @constructor */
function cCOUNTIFS() {
this.name = "COUNTIFS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -1204,7 +1191,6 @@
/** @constructor */
function cCOVAR() {
this.name = "COVAR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -1281,7 +1267,6 @@
/** @constructor */
function cCRITBINOM() {
this.name = "CRITBINOM";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -1368,7 +1353,6 @@
/** @constructor */
function cDEVSQ() {
this.name = "DEVSQ";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1445,7 +1429,6 @@
/** @constructor */
function cEXPONDIST() {
this.name = "EXPONDIST";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -1521,7 +1504,6 @@
/** @constructor */
function cFISHER() {
this.name = "FISHER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1567,7 +1549,6 @@
/** @constructor */
function cFISHERINV() {
this.name = "FISHERINV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1613,7 +1594,6 @@
/** @constructor */
function cFORECAST() {
this.name = "FORECAST";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -1708,7 +1688,6 @@
/** @constructor */
function cFREQUENCY() {
this.name = "FREQUENCY";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -1815,7 +1794,6 @@
/** @constructor */
function cGAMMALN() {
this.name = "GAMMALN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1861,7 +1839,6 @@
/** @constructor */
function cGEOMEAN() {
this.name = "GEOMEAN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1943,7 +1920,6 @@
/** @constructor */
function cHARMEAN() {
this.name = "HARMEAN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -2024,7 +2000,6 @@
/** @constructor */
function cHYPGEOMDIST() {
this.name = "HYPGEOMDIST";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
......@@ -2099,7 +2074,6 @@
/** @constructor */
function cINTERCEPT() {
this.name = "INTERCEPT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -2182,7 +2156,6 @@
/** @constructor */
function cKURT() {
this.name = "KURT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -2271,7 +2244,6 @@
/** @constructor */
function cLARGE() {
this.name = "LARGE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -2357,7 +2329,6 @@
/** @constructor */
function cLOGINV() {
this.name = "LOGINV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -2420,7 +2391,6 @@
/** @constructor */
function cLOGNORMDIST() {
this.name = "LOGNORMDIST";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -2483,7 +2453,6 @@
/** @constructor */
function cMAX() {
this.name = "MAX";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -2565,7 +2534,6 @@
/** @constructor */
function cMAXA() {
this.name = "MAXA";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -2649,7 +2617,6 @@
/** @constructor */
function cMEDIAN() {
this.name = "MEDIAN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -2725,7 +2692,6 @@
/** @constructor */
function cMIN() {
this.name = "MIN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -2808,7 +2774,6 @@
/** @constructor */
function cMINA() {
this.name = "MINA";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -2893,7 +2858,6 @@
/** @constructor */
function cMODE() {
this.name = "MODE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -2989,7 +2953,6 @@
/** @constructor */
function cNEGBINOMDIST() {
this.name = "NEGBINOMDIST";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -3055,7 +3018,6 @@
/** @constructor */
function cNORMDIST() {
this.name = "NORMDIST";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
......@@ -3134,7 +3096,6 @@
/** @constructor */
function cNORMINV() {
this.name = "NORMINV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -3197,7 +3158,6 @@
/** @constructor */
function cNORMSDIST() {
this.name = "NORMSDIST";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -3237,7 +3197,6 @@
/** @constructor */
function cNORMSINV() {
this.name = "NORMSINV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -3286,7 +3245,6 @@
/** @constructor */
function cPEARSON() {
this.name = "PEARSON";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -3370,7 +3328,6 @@
/** @constructor */
function cPERCENTILE() {
this.name = "PERCENTILE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -3434,7 +3391,6 @@
/** @constructor */
function cPERCENTRANK() {
this.name = "PERCENTRANK";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -3547,7 +3503,6 @@
/** @constructor */
function cPERMUT() {
this.name = "PERMUT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -3635,7 +3590,6 @@
/** @constructor */
function cPOISSON() {
this.name = "POISSON";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -3711,7 +3665,6 @@
/** @constructor */
function cPROB() {
this.name = "PROB";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -3823,7 +3776,6 @@
/** @constructor */
function cQUARTILE() {
this.name = "QUARTILE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -3936,7 +3888,6 @@
/** @constructor */
function cRSQ() {
this.name = "RSQ";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -4021,7 +3972,6 @@
/** @constructor */
function cSKEW() {
this.name = "SKEW";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -4112,7 +4062,6 @@
/** @constructor */
function cSLOPE() {
this.name = "SLOPE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -4196,7 +4145,6 @@
/** @constructor */
function cSMALL() {
this.name = "SMALL";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -4274,7 +4222,6 @@
/** @constructor */
function cSTANDARDIZE() {
this.name = "STANDARDIZE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -4337,7 +4284,6 @@
/** @constructor */
function cSTDEV() {
this.name = "STDEV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -4403,7 +4349,6 @@
/** @constructor */
function cSTDEVA() {
this.name = "STDEVA";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -4466,7 +4411,6 @@
/** @constructor */
function cSTDEVP() {
this.name = "STDEVP";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -4542,7 +4486,6 @@
/** @constructor */
function cSTDEVPA() {
this.name = "STDEVPA";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -4632,7 +4575,6 @@
/** @constructor */
function cSTEYX() {
this.name = "STEYX";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -4754,7 +4696,6 @@
/** @constructor */
function cVAR() {
this.name = "VAR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -4836,7 +4777,6 @@
/** @constructor */
function cVARA() {
this.name = "VARA";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -4930,7 +4870,6 @@
/** @constructor */
function cVARP() {
this.name = "VARP";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -5011,7 +4950,6 @@
/** @constructor */
function cVARdotP() {
this.name = "VAR.P";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -5029,7 +4967,6 @@
/** @constructor */
function cVARPA() {
this.name = "VARPA";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......
......@@ -78,7 +78,6 @@
/** @constructor */
function cCHAR() {
this.name = "CHAR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -125,7 +124,6 @@
/** @constructor */
function cCLEAN() {
this.name = "CLEAN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -166,7 +164,6 @@
/** @constructor */
function cCODE() {
this.name = "CODE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -213,7 +210,6 @@
/** @constructor */
function cCONCATENATE() {
this.name = "CONCATENATE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -259,7 +255,6 @@
/** @constructor */
function cDOLLAR() {
this.name = "DOLLAR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -460,7 +455,6 @@
/** @constructor */
function cEXACT() {
this.name = "EXACT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -508,7 +502,6 @@
/** @constructor */
function cFIND() {
this.name = "FIND";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -603,7 +596,6 @@
/** @constructor */
function cFIXED() {
this.name = "FIXED";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -808,7 +800,6 @@
/** @constructor */
function cLEFT() {
this.name = "LEFT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -867,7 +858,6 @@
/** @constructor */
function cLEN() {
this.name = "LEN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -910,7 +900,6 @@
/** @constructor */
function cLOWER() {
this.name = "LOWER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -945,7 +934,6 @@
/** @constructor */
function cMID() {
this.name = "MID";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -1031,7 +1019,6 @@
/** @constructor */
function cPROPER() {
this.name = "PROPER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1099,7 +1086,6 @@
/** @constructor */
function cREPLACE() {
this.name = "REPLACE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
......@@ -1186,7 +1172,6 @@
/** @constructor */
function cREPT() {
this.name = "REPT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -1250,7 +1235,6 @@
/** @constructor */
function cRIGHT() {
this.name = "RIGHT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1309,7 +1293,6 @@
/** @constructor */
function cSEARCH() {
this.name = "SEARCH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -1408,7 +1391,6 @@
/** @constructor */
function cSUBSTITUTE() {
this.name = "SUBSTITUTE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
......@@ -1491,7 +1473,6 @@
/** @constructor */
function cT() {
this.name = "T";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1526,7 +1507,6 @@
/** @constructor */
function cTEXT() {
this.name = "TEXT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
......@@ -1599,7 +1579,6 @@
/** @constructor */
function cTRIM() {
this.name = "TRIM";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1637,7 +1616,6 @@
/** @constructor */
function cUPPER() {
this.name = "UPPER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......@@ -1670,7 +1648,6 @@
/** @constructor */
function cVALUE() {
this.name = "VALUE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment