Commit d9b75ebd authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov Committed by Alexander.Trofimov

переделана инициализация функций

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54726 954022d7-b5bf-4e40-9824-e11837661b57
parent 3c7f1dc8
......@@ -19,36 +19,127 @@ cFormulaFunction.Cube = {
}
function cCUBEKPIMEMBER() {
cBaseFunction.call( this, "CUBEKPIMEMBER" );
// cBaseFunction.call( this, "CUBEKPIMEMBER" );
this.name = "CUBEKPIMEMBER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCUBEKPIMEMBER.prototype = Object.create( cBaseFunction.prototype )
function cCUBEMEMBER() {
cBaseFunction.call( this, "CUBEMEMBER" );
// cBaseFunction.call( this, "CUBEMEMBER" );
this.name = "CUBEMEMBER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCUBEMEMBER.prototype = Object.create( cBaseFunction.prototype )
function cCUBEMEMBERPROPERTY() {
cBaseFunction.call( this, "CUBEMEMBERPROPERTY" );
// cBaseFunction.call( this, "CUBEMEMBERPROPERTY" );
this.name = "CUBEMEMBERPROPERTY";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCUBEMEMBERPROPERTY.prototype = Object.create( cBaseFunction.prototype )
function cCUBERANKEDMEMBER() {
cBaseFunction.call( this, "CUBERANKEDMEMBER" );
// cBaseFunction.call( this, "CUBERANKEDMEMBER" );
this.name = "CUBERANKEDMEMBER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCUBERANKEDMEMBER.prototype = Object.create( cBaseFunction.prototype )
function cCUBESET() {
cBaseFunction.call( this, "CUBESET" );
// cBaseFunction.call( this, "CUBESET" );
this.name = "CUBESET";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCUBESET.prototype = Object.create( cBaseFunction.prototype )
function cCUBESETCOUNT() {
cBaseFunction.call( this, "CUBESETCOUNT" );
// cBaseFunction.call( this, "CUBESETCOUNT" );
this.name = "CUBESETCOUNT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCUBESETCOUNT.prototype = Object.create( cBaseFunction.prototype )
function cCUBEVALUE() {
cBaseFunction.call( this, "CUBEVALUE" );
// cBaseFunction.call( this, "CUBEVALUE" );
this.name = "CUBEVALUE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCUBEVALUE.prototype = Object.create( cBaseFunction.prototype )
......@@ -57,9 +57,22 @@ cFormulaFunction.DateAndTime = {
}
function cDATE() {
cBaseFunction.call( this, "DATE" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "DATE" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 3 );
this.name = "DATE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cDATE.prototype = Object.create( cBaseFunction.prototype )
cDATE.prototype.Calculate = function ( arg ) {
......@@ -114,12 +127,24 @@ cDATE.prototype.getInfo = function () {
}
function cDATEDIF() {
cBaseFunction.call( this, "DATEDIF" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 3 );
this.setFormat( this.formatType.noneFormat );
}
// cBaseFunction.call( this, "DATEDIF" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 3 );
// this.setFormat( this.formatType.noneFormat );
this.name = "DATEIF";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cDATEDIF.prototype = Object.create( cBaseFunction.prototype )
cDATEDIF.prototype.Calculate = function ( arg ) {
var arg0 = arg[0], arg1 = arg[1], arg2 = arg[2];
......@@ -217,10 +242,23 @@ cDATEDIF.prototype.getInfo = function () {
}
function cDATEVALUE() {
cBaseFunction.call( this, "DATEVALUE" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "DATEVALUE" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
// this.setFormat( this.formatType.noneFormat );
this.name = "DATEVALUE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cDATEVALUE.prototype = Object.create( cBaseFunction.prototype )
cDATEVALUE.prototype.Calculate = function ( arg ) {
......@@ -256,10 +294,23 @@ cDATEVALUE.prototype.getInfo = function () {
}
function cDAY() {
cBaseFunction.call( this, "DAY" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "DAY" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
// this.setFormat( this.formatType.noneFormat );
this.name = "DAY";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cDAY.prototype = Object.create( cBaseFunction.prototype )
cDAY.prototype.Calculate = function ( arg ) {
......@@ -319,10 +370,23 @@ cDAY.prototype.getInfo = function () {
}
function cDAYS360() {
cBaseFunction.call( this, "DAYS360" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 3 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "DAYS360" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 3 );
// this.setFormat( this.formatType.noneFormat );
this.name = "DAYS360";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cDAYS360.prototype = Object.create( cBaseFunction.prototype )
cDAYS360.prototype.Calculate = function ( arg ) {
......@@ -374,10 +438,23 @@ cDAYS360.prototype.getInfo = function () {
}
function cEDATE() {
cBaseFunction.call( this, "EDATE" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "EDATE" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
// this.setFormat( this.formatType.noneFormat );
this.name = "EDATE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cEDATE.prototype = Object.create( cBaseFunction.prototype )
cEDATE.prototype.Calculate = function ( arg ) {
......@@ -442,10 +519,23 @@ cEDATE.prototype.getInfo = function () {
}
function cEOMONTH() {
cBaseFunction.call( this, "EOMONTH" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "EOMONTH" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
// this.setFormat( this.formatType.noneFormat );
this.name = "EOMONTH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cEOMONTH.prototype = Object.create( cBaseFunction.prototype )
cEOMONTH.prototype.Calculate = function ( arg ) {
......@@ -502,10 +592,23 @@ cEOMONTH.prototype.getInfo = function () {
}
function cHOUR() {
cBaseFunction.call( this, "HOUR" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "HOUR" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
// this.setFormat( this.formatType.noneFormat );
this.name = "HOUR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cHOUR.prototype = Object.create( cBaseFunction.prototype )
cHOUR.prototype.Calculate = function ( arg ) {
......@@ -562,10 +665,23 @@ cHOUR.prototype.getInfo = function () {
}
function cMINUTE() {
cBaseFunction.call( this, "MINUTE" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "MINUTE" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
// this.setFormat( this.formatType.noneFormat );
this.name = "MINUTE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cMINUTE.prototype = Object.create( cBaseFunction.prototype )
cMINUTE.prototype.Calculate = function ( arg ) {
......@@ -624,10 +740,23 @@ cMINUTE.prototype.getInfo = function () {
}
function cMONTH() {
cBaseFunction.call( this, "MONTH" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "MONTH" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
// this.setFormat( this.formatType.noneFormat );
this.name = "MONTH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cMONTH.prototype = Object.create( cBaseFunction.prototype )
cMONTH.prototype.Calculate = function ( arg ) {
......@@ -686,10 +815,23 @@ cMONTH.prototype.getInfo = function () {
}
function cNETWORKDAYS() {
cBaseFunction.call( this, "NETWORKDAYS" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 3 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "NETWORKDAYS" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 3 );
// this.setFormat( this.formatType.noneFormat );
this.name = "NETWORKDAYS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cNETWORKDAYS.prototype = Object.create( cBaseFunction.prototype )
cNETWORKDAYS.prototype.Calculate = function ( arg ) {
......@@ -809,9 +951,22 @@ function cNETWORKDAYS_INTL() {
cNETWORKDAYS_INTL.prototype = Object.create( cBaseFunction.prototype )
function cNOW() {
cBaseFunction.call( this, "NOW" );
this.setArgumentsMin( 0 );
this.setArgumentsMax( 0 );
// cBaseFunction.call( this, "NOW" );
// this.setArgumentsMin( 0 );
// this.setArgumentsMax( 0 );
this.name = "NOW";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
this.argumentsMax = 0;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cNOW.prototype = Object.create( cBaseFunction.prototype )
cNOW.prototype.Calculate = function () {
......@@ -828,10 +983,23 @@ cNOW.prototype.getInfo = function () {
}
function cSECOND() {
cBaseFunction.call( this, "SECOND" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "SECOND" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
// this.setFormat( this.formatType.noneFormat );
this.name = "SECOND";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cSECOND.prototype = Object.create( cBaseFunction.prototype )
cSECOND.prototype.Calculate = function ( arg ) {
......@@ -890,9 +1058,22 @@ cSECOND.prototype.getInfo = function () {
}
function cTIME() {
cBaseFunction.call( this, "TIME" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "TIME" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 3 );
this.name = "TIME";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cTIME.prototype = Object.create( cBaseFunction.prototype )
cTIME.prototype.Calculate = function ( arg ) {
......@@ -943,10 +1124,23 @@ cTIME.prototype.getInfo = function () {
}
function cTIMEVALUE() {
cBaseFunction.call( this, "TIMEVALUE" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "TIMEVALUE" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
// this.setFormat( this.formatType.noneFormat );
this.name = "TIMEVALUE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cTIMEVALUE.prototype = Object.create( cBaseFunction.prototype )
cTIMEVALUE.prototype.Calculate = function ( arg ) {
......@@ -982,9 +1176,22 @@ cTIMEVALUE.prototype.getInfo = function () {
}
function cTODAY() {
cBaseFunction.call( this, "TODAY" );
this.setArgumentsMin( 0 );
this.setArgumentsMax( 0 );
// cBaseFunction.call( this, "TODAY" );
// this.setArgumentsMin( 0 );
// this.setArgumentsMax( 0 );
this.name = "TODAY";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
this.argumentsMax = 0;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cTODAY.prototype = Object.create( cBaseFunction.prototype )
cTODAY.prototype.Calculate = function () {
......@@ -1001,10 +1208,23 @@ cTODAY.prototype.getInfo = function () {
}
function cWEEKDAY() {
cBaseFunction.call( this, "WEEKDAY" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 2 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "WEEKDAY" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 2 );
// this.setFormat( this.formatType.noneFormat );
this.name = "WEEKDAY";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cWEEKDAY.prototype = Object.create( cBaseFunction.prototype )
cWEEKDAY.prototype.Calculate = function ( arg ) {
......@@ -1078,10 +1298,23 @@ cWEEKDAY.prototype.getInfo = function () {
}
function cWEEKNUM() {
cBaseFunction.call( this, "WEEKNUM" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 2 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "WEEKNUM" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 2 );
// this.setFormat( this.formatType.noneFormat );
this.name = "WEEKNUM";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cWEEKNUM.prototype = Object.create( cBaseFunction.prototype )
cWEEKNUM.prototype.Calculate = function ( arg ) {
......@@ -1187,10 +1420,23 @@ cWEEKNUM.prototype.getInfo = function () {
}
function cWORKDAY() {
cBaseFunction.call( this, "WORKDAY" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 3 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "WORKDAY" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 3 );
// this.setFormat( this.formatType.noneFormat );
this.name = "WORKDAY";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cWORKDAY.prototype = Object.create( cBaseFunction.prototype )
cWORKDAY.prototype.Calculate = function ( arg ) {
......@@ -1306,10 +1552,23 @@ function cWORKDAY_INTL() {
cWORKDAY_INTL.prototype = Object.create( cBaseFunction.prototype )
function cYEAR() {
cBaseFunction.call( this, "YEAR" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "YEAR" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
// this.setFormat( this.formatType.noneFormat );
this.name = "YEAR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cYEAR.prototype = Object.create( cBaseFunction.prototype )
cYEAR.prototype.Calculate = function ( arg ) {
......@@ -1365,10 +1624,23 @@ cYEAR.prototype.getInfo = function () {
}
function cYEARFRAC() {
cBaseFunction.call( this, "YEARFRAC" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 3 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "YEARFRAC" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 3 );
// this.setFormat( this.formatType.noneFormat );
this.name = "YEARFRAC";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cYEARFRAC.prototype = Object.create( cBaseFunction.prototype )
cYEARFRAC.prototype.Calculate = function ( arg ) {
......
......@@ -160,10 +160,23 @@ function cEFFECT() {
cEFFECT.prototype = Object.create( cBaseFunction.prototype )
function cFV() {
cBaseFunction.call( this, "FV" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 5 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "FV" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 5 );
// this.setFormat( this.formatType.noneFormat );
this.name = "FV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 5;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cFV.prototype = Object.create( cBaseFunction.prototype )
cFV.prototype.Calculate = function ( arg ) {
......@@ -276,10 +289,23 @@ function cNOMINAL() {
cNOMINAL.prototype = Object.create( cBaseFunction.prototype )
function cNPER() {
cBaseFunction.call( this, "NPER" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 5 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "NPER" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 5 );
// this.setFormat( this.formatType.noneFormat );
this.name = "NPER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 5;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cNPER.prototype = Object.create( cBaseFunction.prototype )
cNPER.prototype.Calculate = function ( arg ) {
......@@ -358,10 +384,23 @@ cNPER.prototype.getInfo = function () {
}
function cNPV() {
cBaseFunction.call( this, "NPV" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 255 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "NPV" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 255 );
// this.setFormat( this.formatType.noneFormat );
this.name = "NPV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cNPV.prototype = Object.create( cBaseFunction.prototype )
cNPV.prototype.Calculate = function ( arg ) {
......@@ -449,10 +488,23 @@ function cODDLYIELD() {
cODDLYIELD.prototype = Object.create( cBaseFunction.prototype )
function cPMT() {
cBaseFunction.call( this, "PMT" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 5 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "PMT" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 5 );
// this.setFormat( this.formatType.noneFormat );
this.name = "PMT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 5;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cPMT.prototype = Object.create( cBaseFunction.prototype )
cPMT.prototype.Calculate = function ( arg ) {
......@@ -549,10 +601,23 @@ function cPRICEMAT() {
cPRICEMAT.prototype = Object.create( cBaseFunction.prototype )
function cPV() {
cBaseFunction.call( this, "PV" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 5 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "PV" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 5 );
// this.setFormat( this.formatType.noneFormat );
this.name = "PV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 5;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cPV.prototype = Object.create( cBaseFunction.prototype )
cPV.prototype.Calculate = function ( arg ) {
......
......@@ -37,9 +37,22 @@ cFormulaFunction.Information = {
*/
function cERROR_TYPE() {
cBaseFunction.call( this, "ERROR.TYPE" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ERROR.TYPE" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ERROR.TYPE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cERROR_TYPE.prototype = Object.create( cBaseFunction.prototype )
cERROR_TYPE.prototype.Calculate = function ( arg ) {
......@@ -102,9 +115,22 @@ cERROR_TYPE.prototype.getInfo = function () {
}
function cISBLANK() {
cBaseFunction.call( this, "ISBLANK" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ISBLANK" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ISBLANK";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cISBLANK.prototype = Object.create( cBaseFunction.prototype )
cISBLANK.prototype.Calculate = function ( arg ) {
......@@ -128,9 +154,22 @@ cISBLANK.prototype.getInfo = function () {
}
function cISERR() {
cBaseFunction.call( this, "ISERR" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ISERR" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ISERR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cISERR.prototype = Object.create( cBaseFunction.prototype )
cISERR.prototype.Calculate = function ( arg ) {
......@@ -158,9 +197,22 @@ cISERR.prototype.getInfo = function () {
}
function cISERROR() {
cBaseFunction.call( this, "ISERROR" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ISERROR" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ISERROR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cISERROR.prototype = Object.create( cBaseFunction.prototype )
cISERROR.prototype.Calculate = function ( arg ) {
......@@ -188,9 +240,22 @@ cISERROR.prototype.getInfo = function () {
}
function cISEVEN() {
cBaseFunction.call( this, "ISEVEN" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ISEVEN" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ISEVEN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cISEVEN.prototype = Object.create( cBaseFunction.prototype )
cISEVEN.prototype.Calculate = function ( arg ) {
......@@ -222,9 +287,22 @@ cISEVEN.prototype.getInfo = function () {
}
function cISLOGICAL() {
cBaseFunction.call( this, "ISLOGICAL" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ISLOGICAL" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ISLOGICAL";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cISLOGICAL.prototype = Object.create( cBaseFunction.prototype )
cISLOGICAL.prototype.Calculate = function ( arg ) {
......@@ -251,9 +329,22 @@ cISLOGICAL.prototype.getInfo = function () {
}
function cISNA() {
cBaseFunction.call( this, "ISNA" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ISNA" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ISNA";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cISNA.prototype = Object.create( cBaseFunction.prototype )
cISNA.prototype.Calculate = function ( arg ) {
......@@ -281,9 +372,22 @@ cISNA.prototype.getInfo = function () {
}
function cISNONTEXT() {
cBaseFunction.call( this, "ISNONTEXT" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ISNONTEXT" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ISNONTEXT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cISNONTEXT.prototype = Object.create( cBaseFunction.prototype )
cISNONTEXT.prototype.Calculate = function ( arg ) {
......@@ -310,9 +414,22 @@ cISNONTEXT.prototype.getInfo = function () {
}
function cISNUMBER() {
cBaseFunction.call( this, "ISNUMBER" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ISNUMBER" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ISNUMBER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cISNUMBER.prototype = Object.create( cBaseFunction.prototype )
cISNUMBER.prototype.Calculate = function ( arg ) {
......@@ -340,9 +457,22 @@ cISNUMBER.prototype.getInfo = function () {
}
function cISODD() {
cBaseFunction.call( this, "ISODD" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ISODD" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ISODD";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cISODD.prototype = Object.create( cBaseFunction.prototype )
cISODD.prototype.Calculate = function ( arg ) {
......@@ -374,9 +504,22 @@ cISODD.prototype.getInfo = function () {
}
function cISREF() {
cBaseFunction.call( this, "ISREF" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ISREF" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ISREF";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cISREF.prototype = Object.create( cBaseFunction.prototype )
cISREF.prototype.Calculate = function ( arg ) {
......@@ -392,9 +535,22 @@ cISREF.prototype.getInfo = function () {
}
function cISTEXT() {
cBaseFunction.call( this, "ISTEXT" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ISTEXT" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ISTEXT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cISTEXT.prototype = Object.create( cBaseFunction.prototype )
cISTEXT.prototype.Calculate = function ( arg ) {
......@@ -422,10 +578,23 @@ cISTEXT.prototype.getInfo = function () {
}
function cN() {
cBaseFunction.call( this, "N" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "N" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
// this.setFormat( this.formatType.noneFormat );
this.name = "N";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cN.prototype = Object.create( cBaseFunction.prototype )
cN.prototype.Calculate = function ( arg ) {
......@@ -465,9 +634,22 @@ cN.prototype.getInfo = function () {
}
function cNA() {
cBaseFunction.call( this, "NA" );
this.setArgumentsMin( 0 );
this.setArgumentsMax( 0 );
// cBaseFunction.call( this, "NA" );
// this.setArgumentsMin( 0 );
// this.setArgumentsMax( 0 );
this.name = "NA";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
this.argumentsMax = 0;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cNA.prototype = Object.create( cBaseFunction.prototype )
cNA.prototype.Calculate = function () {
......@@ -481,9 +663,22 @@ cNA.prototype.getInfo = function () {
}
function cTYPE() {
cBaseFunction.call( this, "TYPE" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "TYPE" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "TYPE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cTYPE.prototype = Object.create( cBaseFunction.prototype )
cTYPE.prototype.Calculate = function ( arg ) {
......
......@@ -20,9 +20,22 @@ cFormulaFunction.Logical = {
}
function cAND() {
cBaseFunction.call( this, "AND" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "AND" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "AND";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cAND.prototype = Object.create( cBaseFunction.prototype )
cAND.prototype.Calculate = function ( arg ) {
......@@ -89,9 +102,21 @@ cAND.prototype.getInfo = function () {
}
function cFALSE() {
cBaseFunction.call( this, "FALSE" );
this.setArgumentsMin( 0 );
this.setArgumentsMax( 0 );
// cBaseFunction.call( this, "FALSE" );
// this.setArgumentsMin( 0 );
// this.setArgumentsMax( 0 );
this.name = "FALSE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
this.argumentsMax = 0;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cFALSE.prototype = Object.create( cBaseFunction.prototype )
cFALSE.prototype.Calculate = function () {
......@@ -105,9 +130,22 @@ cFALSE.prototype.getInfo = function () {
}
function cIF() {
cBaseFunction.call( this, "IF" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "IF" );
this.name = "IF";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 3 );
}
cIF.prototype = Object.create( cBaseFunction.prototype )
cIF.prototype.Calculate = function ( arg ) {
......@@ -148,9 +186,22 @@ cIF.prototype.getInfo = function () {
}
function cIFERROR() {
cBaseFunction.call( this, "IFERROR" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "IFERROR" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "IFERROR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cIFERROR.prototype = Object.create( cBaseFunction.prototype )
cIFERROR.prototype.Calculate = function ( arg ) {
......@@ -177,9 +228,22 @@ cIFERROR.prototype.getInfo = function () {
}
function cNOT() {
cBaseFunction.call( this, "NOT" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "NOT" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "NOT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cNOT.prototype = Object.create( cBaseFunction.prototype )
cNOT.prototype.Calculate = function ( arg ) {
......@@ -211,9 +275,22 @@ cNOT.prototype.getInfo = function () {
}
function cOR() {
cBaseFunction.call( this, "OR" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "OR" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "OR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cOR.prototype = Object.create( cBaseFunction.prototype )
cOR.prototype.Calculate = function ( arg ) {
......@@ -275,9 +352,22 @@ cOR.prototype.getInfo = function () {
}
function cTRUE() {
cBaseFunction.call( this, "TRUE" );
this.setArgumentsMin( 0 );
this.setArgumentsMax( 0 );
// cBaseFunction.call( this, "TRUE" );
// this.setArgumentsMin( 0 );
// this.setArgumentsMax( 0 );
this.name = "TRUE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
this.argumentsMax = 0;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cTRUE.prototype = Object.create( cBaseFunction.prototype )
cTRUE.prototype.Calculate = function () {
......
......@@ -30,9 +30,22 @@ cFormulaFunction.LookupAndReference = {
}
function cADDRESS() {
cBaseFunction.call( this, "ADDRESS" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 5 );
// cBaseFunction.call( this, "ADDRESS" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 5 );
this.name = "ADDRESS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 5;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cADDRESS.prototype = Object.create( cBaseFunction.prototype )
cADDRESS.prototype.Calculate = function ( arg ) {
......@@ -137,9 +150,22 @@ function cAREAS() {
cAREAS.prototype = Object.create( cBaseFunction.prototype )
function cCHOOSE() {
cBaseFunction.call( this, "CHOOSE" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 30 );
// cBaseFunction.call( this, "CHOOSE" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 30 );
this.name = "CHOOSE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 30;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCHOOSE.prototype = Object.create( cBaseFunction.prototype )
cCHOOSE.prototype.Calculate = function ( arg ) {
......@@ -172,9 +198,22 @@ cCHOOSE.prototype.getInfo = function () {
}
function cCOLUMN() {
cBaseFunction.call( this, "COLUMN" );
this.setArgumentsMin( 0 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "COLUMN" );
// this.setArgumentsMin( 0 );
// this.setArgumentsMax( 1 );
this.name = "COLUMN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCOLUMN.prototype = Object.create( cBaseFunction.prototype )
cCOLUMN.prototype.Calculate = function ( arg ) {
......@@ -211,9 +250,22 @@ cCOLUMN.prototype.getInfo = function () {
}
function cCOLUMNS() {
cBaseFunction.call( this, "COLUMNS" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "COLUMNS" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "COLUMNS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCOLUMNS.prototype = Object.create( cBaseFunction.prototype )
cCOLUMNS.prototype.Calculate = function ( arg ) {
......@@ -250,9 +302,22 @@ cGETPIVOTDATA.prototype = Object.create( cBaseFunction.prototype )
var g_oHLOOKUPCache = new VHLOOKUPCache(true);
function cHLOOKUP() {
cBaseFunction.call( this, "HLOOKUP" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 4 );
// cBaseFunction.call( this, "HLOOKUP" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 4 );
this.name = "HLOOKUP";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 4;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cHLOOKUP.prototype = Object.create( cBaseFunction.prototype )
cHLOOKUP.prototype.Calculate = function ( arg ) {
......@@ -350,7 +415,6 @@ cHLOOKUP.prototype.Calculate = function ( arg ) {
}
if ( min > valueForSearching ) {
return this.value = new cError( cErrorType.not_available );
}
......@@ -387,9 +451,22 @@ function cINDEX() {
cINDEX.prototype = Object.create( cBaseFunction.prototype )
function cINDIRECT() {
cBaseFunction.call( this, "INDIRECT" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "INDIRECT" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 2 );
this.name = "INDIRECT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cINDIRECT.prototype = Object.create( cBaseFunction.prototype )
cINDIRECT.prototype.Calculate = function ( arg ) {
......@@ -484,9 +561,22 @@ cINDIRECT.prototype.getInfo = function () {
}
function cLOOKUP() {
cBaseFunction.call( this, "LOOKUP" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "LOOKUP" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 3 );
this.name = "LOOKUP";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cLOOKUP.prototype = Object.create( cBaseFunction.prototype )
cLOOKUP.prototype.Calculate = function ( arg ) {
......@@ -630,9 +720,22 @@ function cOFFSET() {
cOFFSET.prototype = Object.create( cBaseFunction.prototype )
function cROW() {
cBaseFunction.call( this, "ROW" );
this.setArgumentsMin( 0 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ROW" );
// this.setArgumentsMin( 0 );
// this.setArgumentsMax( 1 );
this.name = "ROW";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cROW.prototype = Object.create( cBaseFunction.prototype )
cROW.prototype.Calculate = function ( arg ) {
......@@ -669,9 +772,22 @@ cROW.prototype.getInfo = function () {
}
function cROWS() {
cBaseFunction.call( this, "ROWS" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ROWS" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ROWS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cROWS.prototype = Object.create( cBaseFunction.prototype )
cROWS.prototype.Calculate = function ( arg ) {
......@@ -817,9 +933,22 @@ VHLOOKUPCache.prototype.clean = function(){
var g_oVLOOKUPCache = new VHLOOKUPCache(false);
function cVLOOKUP() {
cBaseFunction.call( this, "VLOOKUP" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 4 );
// cBaseFunction.call( this, "VLOOKUP" );
this.name = "VLOOKUP";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 4;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 4 );
}
cVLOOKUP.prototype = Object.create( cBaseFunction.prototype )
cVLOOKUP.prototype.Calculate = function ( arg ) {
......
......@@ -74,9 +74,22 @@ cFormulaFunction.Mathematic = {
}
function cABS() {
cBaseFunction.call( this, "ABS" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ABS" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ABS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cABS.prototype = Object.create( cBaseFunction.prototype )
cABS.prototype.Calculate = function ( arg ) {
......@@ -110,9 +123,22 @@ cABS.prototype.getInfo = function () {
}
function cACOS() {
cBaseFunction.call( this, "ACOS" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ACOS" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ACOS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cACOS.prototype = Object.create( cBaseFunction.prototype )
cACOS.prototype.Calculate = function ( arg ) {
......@@ -148,9 +174,22 @@ cACOS.prototype.getInfo = function () {
}
function cACOSH() {
cBaseFunction.call( this, "ACOSH" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ACOSH" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ACOSH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cACOSH.prototype = Object.create( cBaseFunction.prototype )
cACOSH.prototype.Calculate = function ( arg ) {
......@@ -186,9 +225,22 @@ cACOSH.prototype.getInfo = function () {
}
function cASIN() {
cBaseFunction.call( this, "ASIN" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ASIN" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ASIN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cASIN.prototype = Object.create( cBaseFunction.prototype )
cASIN.prototype.Calculate = function ( arg ) {
......@@ -224,9 +276,22 @@ cASIN.prototype.getInfo = function () {
}
function cASINH() {
cBaseFunction.call( this, "ASINH" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ASINH" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ASINH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cASINH.prototype = Object.create( cBaseFunction.prototype )
cASINH.prototype.Calculate = function ( arg ) {
......@@ -262,9 +327,22 @@ cASINH.prototype.getInfo = function () {
}
function cATAN() {
cBaseFunction.call( this, "ATAN" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ATAN" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ATAN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cATAN.prototype = Object.create( cBaseFunction.prototype )
cATAN.prototype.Calculate = function ( arg ) {
......@@ -301,9 +379,22 @@ cATAN.prototype.getInfo = function () {
}
function cATAN2() {
cBaseFunction.call( this, "ATAN2" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "ATAN2" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "ATAN2";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cATAN2.prototype = Object.create( cBaseFunction.prototype )
cATAN2.prototype.Calculate = function ( arg ) {
......@@ -381,9 +472,22 @@ cATAN2.prototype.getInfo = function () {
}
function cATANH() {
cBaseFunction.call( this, "ATANH" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ATANH" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ATANH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cATANH.prototype = Object.create( cBaseFunction.prototype )
cATANH.prototype.Calculate = function ( arg ) {
......@@ -419,9 +523,22 @@ cATANH.prototype.getInfo = function () {
}
function cCEILING() {
cBaseFunction.call( this, "CEILING" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "CEILING" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "CEILING";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCEILING.prototype = Object.create( cBaseFunction.prototype )
cCEILING.prototype.Calculate = function ( arg ) {
......@@ -513,9 +630,22 @@ cCEILING.prototype.getInfo = function () {
}
function cCOMBIN() {
cBaseFunction.call( this, "COMBIN" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "COMBIN" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "COMBIN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCOMBIN.prototype = Object.create( cBaseFunction.prototype )
cCOMBIN.prototype.Calculate = function ( arg ) {
......@@ -596,9 +726,22 @@ cCOMBIN.prototype.getInfo = function () {
}
function cCOS() {
cBaseFunction.call( this, "COS" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "COS" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "COS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCOS.prototype = Object.create( cBaseFunction.prototype )
cCOS.prototype.Calculate = function ( arg ) {
......@@ -634,9 +777,22 @@ cCOS.prototype.getInfo = function () {
}
function cCOSH() {
cBaseFunction.call( this, "COSH" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "COSH" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "COSH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCOSH.prototype = Object.create( cBaseFunction.prototype )
cCOSH.prototype.Calculate = function ( arg ) {
......@@ -672,9 +828,22 @@ cCOSH.prototype.getInfo = function () {
}
function cDEGREES() {
cBaseFunction.call( this, "DEGREES" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "DEGREES" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "DEGREES";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cDEGREES.prototype = Object.create( cBaseFunction.prototype )
cDEGREES.prototype.Calculate = function ( arg ) {
......@@ -716,9 +885,22 @@ function cECMA_CEILING() {
cECMA_CEILING.prototype = Object.create( cBaseFunction.prototype )
function cEVEN() {
cBaseFunction.call( this, "EVEN" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "EVEN" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "EVEN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cEVEN.prototype = Object.create( cBaseFunction.prototype )
cEVEN.prototype.Calculate = function ( arg ) {
......@@ -775,9 +957,22 @@ cEVEN.prototype.getInfo = function () {
}
function cEXP() {
cBaseFunction.call( this, "EXP" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "EXP" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "EXP";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cEXP.prototype = Object.create( cBaseFunction.prototype )
cEXP.prototype.Calculate = function ( arg ) {
......@@ -816,9 +1011,22 @@ cEXP.prototype.getInfo = function () {
}
function cFACT() {
cBaseFunction.call( this, "FACT" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "FACT" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "FACT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cFACT.prototype = Object.create( cBaseFunction.prototype )
cFACT.prototype.Calculate = function ( arg ) {
......@@ -859,9 +1067,22 @@ cFACT.prototype.getInfo = function () {
}
function cFACTDOUBLE() {
cBaseFunction.call( this, "FACTDOUBLE" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "FACTDOUBLE" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "FACTDOUBLE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cFACTDOUBLE.prototype = Object.create( cBaseFunction.prototype )
cFACTDOUBLE.prototype.Calculate = function ( arg ) {
......@@ -916,9 +1137,22 @@ cFACTDOUBLE.prototype.getInfo = function () {
}
function cFLOOR() {
cBaseFunction.call( this, "FLOOR" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "FLOOR" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "FLOOR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cFLOOR.prototype = Object.create( cBaseFunction.prototype )
cFLOOR.prototype.Calculate = function ( arg ) {
......@@ -1009,9 +1243,22 @@ cFLOOR.prototype.getInfo = function () {
}
function cGCD() {
cBaseFunction.call( this, "GCD" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "GCD" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "GCD";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cGCD.prototype = Object.create( cBaseFunction.prototype )
cGCD.prototype.Calculate = function ( arg ) {
......@@ -1099,9 +1346,22 @@ cGCD.prototype.getInfo = function () {
}
function cINT() {
cBaseFunction.call( this, "INT" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "INT" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "INT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cINT.prototype = Object.create( cBaseFunction.prototype )
cINT.prototype.Calculate = function ( arg ) {
......@@ -1142,9 +1402,22 @@ function cISO_CEILING() {
cISO_CEILING.prototype = Object.create( cBaseFunction.prototype )
function cLCM() {
cBaseFunction.call( this, "LCM" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "LCM" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "LCM";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cLCM.prototype = Object.create( cBaseFunction.prototype )
cLCM.prototype.Calculate = function ( arg ) {
......@@ -1236,9 +1509,22 @@ cLCM.prototype.getInfo = function () {
}
function cLN() {
cBaseFunction.call( this, "LN" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "LN" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "LN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cLN.prototype = Object.create( cBaseFunction.prototype )
cLN.prototype.Calculate = function ( arg ) {
......@@ -1279,9 +1565,22 @@ cLN.prototype.getInfo = function () {
}
function cLOG() {
cBaseFunction.call( this, "LOG" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "LOG" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 2 );
this.name = "LOG";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cLOG.prototype = Object.create( cBaseFunction.prototype )
cLOG.prototype.Calculate = function ( arg ) {
......@@ -1365,9 +1664,22 @@ cLOG.prototype.getInfo = function () {
}
function cLOG10() {
cBaseFunction.call( this, "LOG10" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "LOG10" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "LOG10";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cLOG10.prototype = Object.create( cBaseFunction.prototype )
cLOG10.prototype.Calculate = function ( arg ) {
......@@ -1408,10 +1720,23 @@ cLOG10.prototype.getInfo = function () {
}
function cMDETERM() {
cBaseFunction.call( this, "MDETERM" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "MDETERM" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
// this.setFormat( this.formatType.noneFormat );
this.name = "MDETERM";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cMDETERM.prototype = Object.create( cBaseFunction.prototype )
cMDETERM.prototype.Calculate = function ( arg ) {
......@@ -1485,10 +1810,23 @@ cMDETERM.prototype.getInfo = function () {
}
function cMINVERSE() {
cBaseFunction.call( this, "MINVERSE" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "MINVERSE" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
// this.setFormat( this.formatType.noneFormat );
this.name = "MINVERSE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cMINVERSE.prototype = Object.create( cBaseFunction.prototype )
cMINVERSE.prototype.Calculate = function ( arg ) {
......@@ -1615,10 +1953,23 @@ cMINVERSE.prototype.getInfo = function () {
}
function cMMULT() {
cBaseFunction.call( this, "MMULT" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "MMULT" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
// this.setFormat( this.formatType.noneFormat );
this.name = "MMULT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cMMULT.prototype = Object.create( cBaseFunction.prototype )
cMMULT.prototype.Calculate = function ( arg ) {
......@@ -1680,9 +2031,22 @@ cMMULT.prototype.getInfo = function () {
}
function cMOD() {
cBaseFunction.call( this, "MOD" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "MOD" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "MOD";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cMOD.prototype = Object.create( cBaseFunction.prototype )
cMOD.prototype.Calculate = function ( arg ) {
......@@ -1759,9 +2123,22 @@ cMOD.prototype.getInfo = function () {
}
function cMROUND() {
cBaseFunction.call( this, "MROUND" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "MROUND" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "MROUND";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cMROUND.prototype = Object.create( cBaseFunction.prototype )
cMROUND.prototype.Calculate = function ( arg ) {
......@@ -1856,9 +2233,22 @@ cMROUND.prototype.getInfo = function () {
}
function cMULTINOMIAL() {
cBaseFunction.call( this, "MULTINOMIAL" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "MULTINOMIAL" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "MULTINOMIAL";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cMULTINOMIAL.prototype = Object.create( cBaseFunction.prototype )
cMULTINOMIAL.prototype.Calculate = function ( arg ) {
......@@ -1947,9 +2337,22 @@ cMULTINOMIAL.prototype.getInfo = function () {
}
function cODD() {
cBaseFunction.call( this, "ODD" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "ODD" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "ODD";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cODD.prototype = Object.create( cBaseFunction.prototype )
cODD.prototype.Calculate = function ( arg ) {
......@@ -2006,9 +2409,22 @@ cODD.prototype.getInfo = function () {
}
function cPI() {
cBaseFunction.call( this, "PI" );
this.setArgumentsMin( 0 );
this.setArgumentsMax( 0 );
// cBaseFunction.call( this, "PI" );
// this.setArgumentsMin( 0 );
// this.setArgumentsMax( 0 );
this.name = "PI";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
this.argumentsMax = 0;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cPI.prototype = Object.create( cBaseFunction.prototype )
cPI.prototype.Calculate = function () {
......@@ -2022,9 +2438,22 @@ cPI.prototype.getInfo = function () {
}
function cPOWER() {
cBaseFunction.call( this, "POWER" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "POWER" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "POWER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cPOWER.prototype = Object.create( cBaseFunction.prototype )
cPOWER.prototype.Calculate = function ( arg ) {
......@@ -2097,9 +2526,22 @@ cPOWER.prototype.getInfo = function () {
}
function cPRODUCT() {
cBaseFunction.call( this, "PRODUCT" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "PRODUCT" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "PRODUCT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cPRODUCT.prototype = Object.create( cBaseFunction.prototype )
cPRODUCT.prototype.Calculate = function ( arg ) {
......@@ -2143,9 +2585,22 @@ cPRODUCT.prototype.getInfo = function () {
}
function cQUOTIENT() {
cBaseFunction.call( this, "QUOTIENT" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "QUOTIENT" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "QUPTIENT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cQUOTIENT.prototype = Object.create( cBaseFunction.prototype )
cQUOTIENT.prototype.Calculate = function ( arg ) {
......@@ -2216,9 +2671,22 @@ cQUOTIENT.prototype.getInfo = function () {
}
function cRADIANS() {
cBaseFunction.call( this, "RADIANS" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "RADIANS" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "RADIANS";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cRADIANS.prototype = Object.create( cBaseFunction.prototype )
cRADIANS.prototype.Calculate = function ( arg ) {
......@@ -2258,9 +2726,22 @@ cRADIANS.prototype.getInfo = function () {
}
function cRAND() {
cBaseFunction.call( this, "RAND" );
this.setArgumentsMin( 0 );
this.setArgumentsMax( 0 );
// cBaseFunction.call( this, "RAND" );
// this.setArgumentsMin( 0 );
// this.setArgumentsMax( 0 );
this.name = "RAND";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 0;
this.argumentsCurrent = 0;
this.argumentsMax = 0;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cRAND.prototype = Object.create( cBaseFunction.prototype )
cRAND.prototype.Calculate = function () {
......@@ -2274,9 +2755,22 @@ cRAND.prototype.getInfo = function () {
}
function cRANDBETWEEN() {
cBaseFunction.call( this, "RANDBETWEEN" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "RANDBETWEEN" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "RANDBETWEEN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cRANDBETWEEN.prototype = Object.create( cBaseFunction.prototype )
cRANDBETWEEN.prototype.Calculate = function ( arg ) {
......@@ -2344,9 +2838,22 @@ cRANDBETWEEN.prototype.getInfo = function () {
}
function cROMAN() {
cBaseFunction.call( this, "ROMAN" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "ROMAN" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "ROMAN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cROMAN.prototype = Object.create( cBaseFunction.prototype )
cROMAN.prototype.Calculate = function ( arg ) {
......@@ -2458,9 +2965,22 @@ cROMAN.prototype.getInfo = function () {
}
function cROUND() {
cBaseFunction.call( this, "ROUND" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "ROUND" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "ROUND";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cROUND.prototype = Object.create( cBaseFunction.prototype )
cROUND.prototype.Calculate = function ( arg ) {
......@@ -2596,9 +3116,22 @@ cROUND.prototype.getInfo = function () {
}
function cROUNDDOWN() {
cBaseFunction.call( this, "ROUNDDOWN" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "ROUNDDOWN" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "ROUNDDOWN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cROUNDDOWN.prototype = Object.create( cBaseFunction.prototype )
cROUNDDOWN.prototype.Calculate = function ( arg ) {
......@@ -2707,9 +3240,22 @@ cROUNDDOWN.prototype.getInfo = function () {
}
function cROUNDUP() {
cBaseFunction.call( this, "ROUNDUP" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "ROUNDUP" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "ROUNDUP";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cROUNDUP.prototype = Object.create( cBaseFunction.prototype )
cROUNDUP.prototype.Calculate = function ( arg ) {
......@@ -2818,9 +3364,22 @@ cROUNDUP.prototype.getInfo = function () {
}
function cSERIESSUM() {
cBaseFunction.call( this, "SERIESSUM" );
this.setArgumentsMin( 4 );
this.setArgumentsMax( 4 );
// cBaseFunction.call( this, "SERIESSUM" );
// this.setArgumentsMin( 4 );
// this.setArgumentsMax( 4 );
this.name = "SERIESSUM";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
this.argumentsMax = 4;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSERIESSUM.prototype = Object.create( cBaseFunction.prototype )
cSERIESSUM.prototype.Calculate = function ( arg ) {
......@@ -2887,9 +3446,22 @@ cSERIESSUM.prototype.getInfo = function () {
}
function cSIGN() {
cBaseFunction.call( this, "SIGN" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "SIGN" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "SIGN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSIGN.prototype = Object.create( cBaseFunction.prototype )
cSIGN.prototype.Calculate = function ( arg ) {
......@@ -2937,9 +3509,22 @@ cSIGN.prototype.getInfo = function () {
}
function cSIN() {
cBaseFunction.call( this, "SIN" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "SIN" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "SIN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSIN.prototype = Object.create( cBaseFunction.prototype )
cSIN.prototype.Calculate = function ( arg ) {
......@@ -2972,9 +3557,22 @@ cSIN.prototype.getInfo = function () {
}
function cSINH() {
cBaseFunction.call( this, "SINH" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "SINH" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "SINH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSINH.prototype = Object.create( cBaseFunction.prototype )
cSINH.prototype.Calculate = function ( arg ) {
......@@ -3010,9 +3608,22 @@ cSINH.prototype.getInfo = function () {
}
function cSQRT() {
cBaseFunction.call( this, "SQRT" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "SQRT" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "SQRT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSQRT.prototype = Object.create( cBaseFunction.prototype )
cSQRT.prototype.Calculate = function ( arg ) {
......@@ -3048,9 +3659,22 @@ cSQRT.prototype.getInfo = function () {
}
function cSQRTPI() {
cBaseFunction.call( this, "SQRTPI" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "SQRTPI" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "SQRTPI";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSQRTPI.prototype = Object.create( cBaseFunction.prototype )
cSQRTPI.prototype.Calculate = function ( arg ) {
......@@ -3091,9 +3715,22 @@ function cSUBTOTAL() {
cSUBTOTAL.prototype = Object.create( cBaseFunction.prototype )
function cSUM() {
cBaseFunction.call( this, "SUM" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "SUM" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "SUM";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSUM.prototype = Object.create( cBaseFunction.prototype )
cSUM.prototype.Calculate = function ( arg ) {
......@@ -3140,9 +3777,22 @@ cSUM.prototype.getInfo = function () {
}
function cSUMIF() {
cBaseFunction.call( this, "SUMIF" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "SUMIF" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 3 );
this.name = "SUMIF";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSUMIF.prototype = Object.create( cBaseFunction.prototype )
cSUMIF.prototype.Calculate = function ( arg ) {
......@@ -3220,9 +3870,22 @@ function cSUMIFS() {
cSUMIFS.prototype = Object.create( cBaseFunction.prototype )
function cSUMPRODUCT() {
cBaseFunction.call( this, "SUMPRODUCT" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "SUMPRODUCT" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "SUMPRODUCT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSUMPRODUCT.prototype = Object.create( cBaseFunction.prototype )
cSUMPRODUCT.prototype.Calculate = function ( arg ) {
......@@ -3291,9 +3954,22 @@ cSUMPRODUCT.prototype.getInfo = function () {
}
function cSUMSQ() {
cBaseFunction.call( this, "SUMSQ" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "SUMSQ" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "SUMSQ";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSUMSQ.prototype = Object.create( cBaseFunction.prototype )
cSUMSQ.prototype.Calculate = function ( arg ) {
......@@ -3346,9 +4022,22 @@ cSUMSQ.prototype.getInfo = function () {
}
function cSUMX2MY2() {
cBaseFunction.call( this, "SUMX2MY2" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "SUMX2MY2" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "SUMX2MY2";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSUMX2MY2.prototype = Object.create( cBaseFunction.prototype )
cSUMX2MY2.prototype.Calculate = function ( arg ) {
......@@ -3430,9 +4119,22 @@ cSUMX2MY2.prototype.getInfo = function () {
}
function cSUMX2PY2() {
cBaseFunction.call( this, "SUMX2PY2" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "SUMX2PY2" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "SUMX2PY2";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSUMX2PY2.prototype = Object.create( cBaseFunction.prototype )
cSUMX2PY2.prototype.Calculate = function ( arg ) {
......@@ -3514,9 +4216,22 @@ cSUMX2PY2.prototype.getInfo = function () {
}
function cSUMXMY2() {
cBaseFunction.call( this, "SUMXMY2" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "SUMXMY2" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "SUMXMY2";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSUMXMY2.prototype = Object.create( cBaseFunction.prototype )
cSUMXMY2.prototype.Calculate = function ( arg ) {
......@@ -3598,9 +4313,22 @@ cSUMXMY2.prototype.getInfo = function () {
}
function cTAN() {
cBaseFunction.call( this, "TAN" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "TAN" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "TAN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cTAN.prototype = Object.create( cBaseFunction.prototype )
cTAN.prototype.Calculate = function ( arg ) {
......@@ -3636,9 +4364,22 @@ cTAN.prototype.getInfo = function () {
}
function cTANH() {
cBaseFunction.call( this, "TANH" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "TANH" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "TANH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cTANH.prototype = Object.create( cBaseFunction.prototype )
cTANH.prototype.Calculate = function ( arg ) {
......@@ -3674,9 +4415,22 @@ cTANH.prototype.getInfo = function () {
}
function cTRUNC() {
cBaseFunction.call(this, "TRUNC" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 2 );
// cBaseFunction.call(this, "TRUNC" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 2 );
this.name = "TRUNC";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cTRUNC.prototype = Object.create( cBaseFunction.prototype )
cTRUNC.prototype.Calculate = function ( arg ) {
......
"use strict";
var __fc__ = 0;
/** @enum */
var cElementType = {
number:0,
......@@ -1026,8 +1026,21 @@ parentRight.prototype.toString = function () {
}
function cUnarMinusOperator() {
cBaseOperator.apply( this, ['un_minus'/**name operator*/, 50/**priority of operator*/, 1/**count arguments*/] );
// cBaseOperator.apply( this, ['un_minus'/**name operator*/, 50/**priority of operator*/, 1/**count arguments*/] );
this.name = "un_minus";
this.isRightAssociative = true;
this.priority = 50;
this.type = cElementType.operator;
this.argumentsCurrent = 1;
this.value = null;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cUnarMinusOperator.prototype = Object.create( cBaseOperator.prototype );
cUnarMinusOperator.prototype.Calculate = function ( arg ) {
......@@ -1055,8 +1068,21 @@ cUnarMinusOperator.prototype.Assemble = function ( arg ) {
}
function cUnarPlusOperator() {
cBaseOperator.apply( this, ['un_plus', 50, 1] );
// cBaseOperator.apply( this, ['un_plus', 50, 1] );
this.name = "un_plus";
this.isRightAssociative = true;
this.priority = 50;
this.type = cElementType.operator;
this.argumentsCurrent = 1;
this.value = null;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cUnarPlusOperator.prototype = Object.create( cBaseOperator.prototype );
cUnarPlusOperator.prototype.Calculate = function ( arg ) {
......@@ -1075,7 +1101,20 @@ cUnarPlusOperator.prototype.Assemble = function ( arg ) {
}
function cPlusOperator() {
cBaseOperator.apply( this, ['+', 20] );
// cBaseOperator.apply( this, ['+', 20] );
this.name = "+";
this.priority = 20;
this.type = cElementType.operator;
this.isRightAssociative = false;
this.argumentsCurrent = 2;
this.value = null;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cPlusOperator.prototype = Object.create( cBaseOperator.prototype );
cPlusOperator.prototype.Calculate = function ( arg ) {
......@@ -1084,7 +1123,20 @@ cPlusOperator.prototype.Calculate = function ( arg ) {
}
function cMinusOperator() {
cBaseOperator.apply( this, ['-', 20] );
// cBaseOperator.apply( this, ['-', 20] );
this.name = "-";
this.priority = 20;
this.type = cElementType.operator;
this.isRightAssociative = false;
this.argumentsCurrent = 2;
this.value = null;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cMinusOperator.prototype = Object.create( cBaseOperator.prototype );
cMinusOperator.prototype.Calculate = function ( arg ) {
......@@ -1093,8 +1145,20 @@ cMinusOperator.prototype.Calculate = function ( arg ) {
}
function cPercentOperator() {
cBaseOperator.apply( this, ['%', 45, 1] );
// cBaseOperator.apply( this, ['%', 45, 1] );
this.name = "%";
this.isRightAssociative = true;
this.priority = 45;
this.type = cElementType.operator;
this.argumentsCurrent = 1;
this.value = null;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cPercentOperator.prototype = Object.create( cBaseOperator.prototype );
cPercentOperator.prototype.Calculate = function ( arg ) {
......@@ -1121,7 +1185,21 @@ cPercentOperator.prototype.Assemble = function ( arg ) {
}
function cPowOperator() {
cBaseOperator.apply( this, ['^', 40] );
// cBaseOperator.apply( this, ['^', 40] );
this.name = "^";
this.priority = 40;
this.type = cElementType.operator;
this.isRightAssociative = false;
this.argumentsCurrent = 2;
this.value = null;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cPowOperator.prototype = Object.create( cBaseOperator.prototype );
cPowOperator.prototype.Calculate = function ( arg ) {
......@@ -1146,7 +1224,20 @@ cPowOperator.prototype.Calculate = function ( arg ) {
}
function cMultOperator() {
cBaseOperator.apply( this, ['*', 30] );
// cBaseOperator.apply( this, ['*', 30] );
this.name = "*";
this.priority = 30;
this.type = cElementType.operator;
this.isRightAssociative = false;
this.argumentsCurrent = 2;
this.value = null;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cMultOperator.prototype = Object.create( cBaseOperator.prototype );
cMultOperator.prototype.Calculate = function ( arg ) {
......@@ -1155,7 +1246,20 @@ cMultOperator.prototype.Calculate = function ( arg ) {
}
function cDivOperator() {
cBaseOperator.apply( this, ['/', 30] );
// cBaseOperator.apply( this, ['/', 30] );
this.name = "/";
this.priority = 30;
this.type = cElementType.operator;
this.isRightAssociative = false;
this.argumentsCurrent = 2;
this.value = null;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cDivOperator.prototype = Object.create( cBaseOperator.prototype );
cDivOperator.prototype.Calculate = function ( arg ) {
......@@ -1164,7 +1268,20 @@ cDivOperator.prototype.Calculate = function ( arg ) {
}
function cConcatSTROperator() {
cBaseOperator.apply( this, ['&', 15] );
// cBaseOperator.apply( this, ['&', 15] );
this.name = "&";
this.priority = 15;
this.type = cElementType.operator;
this.isRightAssociative = false;
this.argumentsCurrent = 2;
this.value = null;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cConcatSTROperator.prototype = Object.create( cBaseOperator.prototype );
cConcatSTROperator.prototype.Calculate = function ( arg ) {
......@@ -1184,7 +1301,21 @@ cConcatSTROperator.prototype.Calculate = function ( arg ) {
}
function cEqualsOperator() {
cBaseOperator.apply( this, ['=', 10] );
// cBaseOperator.apply( this, ['=', 10] );
this.name = "=";
this.priority = 10;
this.type = cElementType.operator;
this.isRightAssociative = false;
this.argumentsCurrent = 2;
this.value = null;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cEqualsOperator.prototype = Object.create( cBaseOperator.prototype );
cEqualsOperator.prototype.Calculate = function ( arg ) {
......@@ -1193,7 +1324,20 @@ cEqualsOperator.prototype.Calculate = function ( arg ) {
}
function cNotEqualsOperator() {
cBaseOperator.apply( this, ['<>', 10] );
// cBaseOperator.apply( this, ['<>', 10] );
this.name = "<>";
this.priority = 10;
this.type = cElementType.operator;
this.isRightAssociative = false;
this.argumentsCurrent = 2;
this.value = null;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cNotEqualsOperator.prototype = Object.create( cBaseOperator.prototype );
cNotEqualsOperator.prototype.Calculate = function ( arg ) {
......@@ -1202,7 +1346,20 @@ cNotEqualsOperator.prototype.Calculate = function ( arg ) {
}
function cLessOperator() {
cBaseOperator.apply( this, ['<', 10] );
// cBaseOperator.apply( this, ['<', 10] );
this.name = "<";
this.priority = 10;
this.type = cElementType.operator;
this.isRightAssociative = false;
this.argumentsCurrent = 2;
this.value = null;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cLessOperator.prototype = Object.create( cBaseOperator.prototype );
cLessOperator.prototype.Calculate = function ( arg ) {
......@@ -1211,7 +1368,20 @@ cLessOperator.prototype.Calculate = function ( arg ) {
}
function cLessOrEqualOperator() {
cBaseOperator.apply( this, ['<=', 10] );
// cBaseOperator.apply( this, ['<=', 10] );
this.name = "<=";
this.priority = 10;
this.type = cElementType.operator;
this.isRightAssociative = false;
this.argumentsCurrent = 2;
this.value = null;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cLessOrEqualOperator.prototype = Object.create( cBaseOperator.prototype );
cLessOrEqualOperator.prototype.Calculate = function ( arg ) {
......@@ -1220,7 +1390,20 @@ cLessOrEqualOperator.prototype.Calculate = function ( arg ) {
}
function cGreaterOperator() {
cBaseOperator.apply( this, ['>', 10] );
// cBaseOperator.apply( this, ['>', 10] );
this.name = ">";
this.priority = 10;
this.type = cElementType.operator;
this.isRightAssociative = false;
this.argumentsCurrent = 2;
this.value = null;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cGreaterOperator.prototype = Object.create( cBaseOperator.prototype );
cGreaterOperator.prototype.Calculate = function ( arg ) {
......@@ -1229,7 +1412,20 @@ cGreaterOperator.prototype.Calculate = function ( arg ) {
}
function cGreaterOrEqualOperator() {
cBaseOperator.apply( this, ['>=', 10] );
// cBaseOperator.apply( this, ['>=', 10] );
this.name = ">=";
this.priority = 10;
this.type = cElementType.operator;
this.isRightAssociative = false;
this.argumentsCurrent = 2;
this.value = null;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cGreaterOrEqualOperator.prototype = Object.create( cBaseOperator.prototype );
cGreaterOrEqualOperator.prototype.Calculate = function ( arg ) {
......@@ -1266,10 +1462,8 @@ var cFormulaOperators = {
'/':cDivOperator,
'+':cPlusOperator,
'-':cMinusOperator,
'&'://concat str
cConcatSTROperator,
'=':// equals
cEqualsOperator,
'&':cConcatSTROperator /*concat str*/,
'=':cEqualsOperator/*equals*/,
'<>':cNotEqualsOperator,
'<':cLessOperator,
'<=':cLessOrEqualOperator,
......@@ -1307,7 +1501,13 @@ function getFormulasInfo() {
/*Basic types of an elements used into formulas*/
/** @constructor */
function cNumber( val ) {
cBaseType.apply( this, arguments );
// cBaseType.apply( this, arguments );
// cBaseType.call( this, val );
this.needRecalc = false;
this.numFormat = null;
this.ca = false;
this.node = undefined;
this.type = cElementType.number;
this.value = parseFloat( val );
if ( !isNaN( this.value ) && Math.abs( this.value ) != Infinity )
......@@ -1331,7 +1531,14 @@ cNumber.prototype.tocBool = function () {
/** @constructor */
function cString( val ) {
cBaseType.apply( this, arguments );
// cBaseType.call( this, val );
this.needRecalc = false;
this.numFormat = null;
this.value = val;
this.ca = false;
this.node = undefined;
this.type = cElementType.string;
}
cString.prototype = Object.create( cBaseType.prototype );
......@@ -1373,7 +1580,13 @@ cString.prototype.tryConvert = function () {
/** @constructor */
function cBool( val ) {
cBaseType.apply( this, arguments );
cBaseType.call( this, val );
this.needRecalc = false;
this.numFormat = null;
this.ca = false;
this.node = undefined;
this.type = cElementType.bool;
var v = val.toString().toUpperCase();
if ( v == "TRUE" )
......@@ -1403,7 +1616,14 @@ cBool.prototype.toBool = function () {
/** @constructor */
function cError( val ) {
cBaseType.apply( this, arguments );
// cBaseType.call( this, val );
this.needRecalc = false;
this.numFormat = null;
this.value = val;
this.ca = false;
this.node = undefined;
this.type = cElementType.error;
this.errorType = -1;
......@@ -1481,7 +1701,14 @@ cError.prototype.tocNumber = cError.prototype.tocString = cError.prototype.tocBo
/** @constructor */
function cArea( val, _ws ) {/*Area means "A1:E5" for example*/
cBaseType.apply( this, arguments );
// cBaseType.call( this, val, _ws );
this.needRecalc = false;
this.numFormat = null;
this.value = val;
this.ca = false;
this.node = undefined;
this.ws = _ws;
this.wb = _ws.workbook;
this._cells = val;
......@@ -1493,7 +1720,8 @@ function cArea( val, _ws ) {/*Area means "A1:E5" for example*/
cArea.prototype = Object.create( cBaseType.prototype );
cArea.prototype.clone = function () {
var oRes = new cArea(this._cells, this.ws);
cBaseType.prototype.cloneTo.call( this, oRes );
// cBaseType.prototype.cloneTo.call( this, oRes );
this.constructor.prototype.cloneTo.call( this, oRes );
oRes.isAbsolute = this.isAbsolute;
return oRes;
};
......@@ -1703,7 +1931,15 @@ cArea.prototype.getMatrix = function () {
/** @constructor */
function cRef( val, _ws ) {/*Ref means A1 for example*/
cBaseType.apply( this, arguments );
// cBaseType.apply( this, arguments );
// cBaseType.call( this, val, _ws );
this.needRecalc = false;
this.numFormat = null;
this.value = val;
this.ca = false;
this.node = undefined;
this._cells = val;
this.ws = _ws;
this.wb = _ws.workbook;
......@@ -1720,7 +1956,8 @@ function cRef( val, _ws ) {/*Ref means A1 for example*/
cRef.prototype = Object.create( cBaseType.prototype );
cRef.prototype.clone = function () {
var oRes = new cRef(this._cells, this.ws);
cBaseType.prototype.cloneTo.call( this, oRes );
// cBaseType.prototype.cloneTo.call( this, oRes );
this.constructor.prototype.cloneTo.call( this, oRes );
oRes.isAbsolute = oRes.isAbsolute;
return oRes;
};
......@@ -1777,7 +2014,14 @@ cRef.prototype.isValid = function () {
/** @constructor */
function cArea3D( val, _wsFrom, _wsTo, wb ) {/*Area3D means "Sheat1!A1:E5" for example*/
cBaseType.apply( this, arguments );
// cBaseType.call( this, val, _wsFrom, _wsTo, wb );
this.needRecalc = false;
this.numFormat = null;
this.value = val;
this.ca = false;
this.node = undefined;
this._wb = wb;
this._cells = val;
this.isAbsolute = false;
......@@ -1790,7 +2034,8 @@ cArea3D.prototype.clone = function () {
var wsFrom = this._wb.getWorksheetById( this.wsFrom ).getName();
var wsTo = this._wb.getWorksheetById( this.wsTo ).getName();
var oRes = new cArea3D(this._cells, wsFrom, wsTo, this._wb);
cBaseType.prototype.cloneTo.call( this, oRes );
// cBaseType.prototype.cloneTo.call( this, oRes );
this.constructor.prototype.cloneTo.call( this, oRes );
oRes.isAbsolute = this.isAbsolute;
return oRes;
};
......@@ -2085,7 +2330,14 @@ cArea3D.prototype.foreach2 = function ( action ) {
/** @constructor */
function cRef3D( val, _wsFrom, wb ) {/*Ref means Sheat1!A1 for example*/
cBaseType.apply( this, arguments );
// cBaseType.call( this, val, _wsFrom, wb );
this.needRecalc = false;
this.numFormat = null;
this.value = val;
this.ca = false;
this.node = undefined;
this._wb = wb;
this._cells = val;
this.isAbsolute = false;
......@@ -2095,7 +2347,8 @@ function cRef3D( val, _wsFrom, wb ) {/*Ref means Sheat1!A1 for example*/
cRef3D.prototype = Object.create( cBaseType.prototype );
cRef3D.prototype.clone = function () {
var oRes = new cRef3D(this._cells, this.ws.getName(), this._wb);
cBaseType.prototype.cloneTo.call( this, oRes );
// cBaseType.prototype.cloneTo.call( this, oRes );
this.constructor.prototype.cloneTo.call( this, oRes );
oRes.isAbsolute = this.isAbsolute;
return oRes;
};
......@@ -2171,7 +2424,14 @@ cRef3D.prototype.getWS = function () {
/** @constructor */
function cEmpty() {
cBaseType.apply( this, [""] );
// cBaseType.call( this );
this.needRecalc = false;
this.numFormat = null;
this.value = "";
this.ca = false;
this.node = undefined;
this.type = cElementType.empty;
}
cEmpty.prototype = Object.create( cBaseType.prototype );
......@@ -2190,7 +2450,14 @@ cEmpty.prototype.toString = function () {
/** @constructor */
function cName( val, wb ) {
cBaseType.apply( this, arguments );
// cBaseType.call( this, val, wb );
this.needRecalc = false;
this.numFormat = null;
this.value = val;
this.ca = false;
this.node = undefined;
this.wb = wb;
this.type = cElementType.name;
}
......@@ -2217,7 +2484,14 @@ cName.prototype.toRef = function ( wsID ) {
/** @constructor */
function cArray() {
cBaseType.apply( this, arguments );
// cBaseType.call( this );
this.needRecalc = false;
this.numFormat = null;
this.value = undefined;
this.ca = false;
this.node = undefined;
this.array = [];
this.rowCount = 0;
this.countElementInRow = [];
......@@ -2358,6 +2632,353 @@ cArray.prototype.fillFromArray = function ( arr ) {
this.countElement += arr[i].length;
}
}
function isalpha(c){
c = c.toUpperCase();
return c >= "A" && c <= "Z";
}
function isalnum(c){
return isdigit(c) || rg_str_allLang.test(c);
}
function isdigit( n ) {
return n == "0" || n == "1" ||
n == "2" || n == "3" ||
n == "4" || n == "5" ||
n == "6" || n == "7" ||
n == "8" || n == "9";
}
function isoper(c){
// return ":, ^*/+-&=<><<=>>=%".indexOf(c) > -1;
/*return ( c == ":" || c == "," || c == " " || c == "^" ||
c == "*" || c == "/" || c == "+" || c == "-" ||
c == "&" || c == "=" || c == "<>" || c == "<" ||
c == "<=" || c == ">" || c == ">=" || c == "%" )*/
return rx_operators.test(c)
}
function isOperator( str, pos ) {
skipSpace.call( this );
var op = this.Formula[this.pCurrPos];
switch ( op ) {
case "-":
case "%":
case "^":
case "*":
case "/":
case "+":
case "&":
case "=":
{
this.operand_str = op;
this.pCurrPos += op.length;
return true;
}
case "<":
{
if ( this.Formula[this.pCurrPos + 1] == ">" || this.Formula[this.pCurrPos + 1] == "=" ) {
this.operand_str = op + this.Formula[this.pCurrPos + 1];
this.pCurrPos += this.operand_str.length;
return true
}
this.operand_str = op;
this.pCurrPos += op.length;
return true;
}
case ">":
{
if ( this.Formula[this.pCurrPos + 1] == "=" ) {
this.operand_str = op + this.Formula[this.pCurrPos + 1];
this.pCurrPos += this.operand_str.length;
return true
}
this.operand_str = op;
this.pCurrPos += op.length;
return true;
}
}
return false;
}
function skipSpace( str, pos ) {
while ( this.Formula[this.pCurrPos] == " " ) this.pCurrPos++;
}
function isLeftParentheses( str, pos ) {
skipSpace.call( this );
var op = this.Formula[this.pCurrPos];
if ( op == "(" ) {
this.operand_str = op;
this.pCurrPos += op.length;
return true;
}
return false;
}
function isRightParentheses( str, pos ) {
skipSpace.call( this );
var op = this.Formula[this.pCurrPos];
if ( op == ")" ) {
this.operand_str = op;
this.pCurrPos += op.length;
return true;
}
return false;
}
function isLeftBrace( str, pos ) {
skipSpace.call( this );
var op = this.Formula[this.pCurrPos];
if ( op == "{" ) {
this.operand_str = op;
this.pCurrPos += op.length;
return true;
}
return false;
}
function isRightBrace( str, pos ) {
skipSpace.call( this );
var op = this.Formula[this.pCurrPos];
if ( op == "}" ) {
this.operand_str = op;
this.pCurrPos += op.length;
return true;
}
return false;
}
function isComma( str, pos ) {
skipSpace.call( this );
var op = this.Formula[this.pCurrPos];
if ( op == "," || op == ";" ) {
this.operand_str = op;
this.pCurrPos += op.length;
return true;
}
return false;
}
function isNumber( str, pos ) {
skipSpace.call( this );
var k = this.pCurrPos, pos = this.pCurrPos;
if ( isdigit( this.Formula[pos] ) ) {
pos++;
while ( isdigit( this.Formula[pos] ) ) pos++;
}
if ( this.Formula[pos] == '.' )//Дробная часть
{
pos++;
if ( isdigit( this.Formula[pos] ) ) {
pos++;
while ( isdigit( this.Formula[pos] ) ) pos++;
}
else return false;
}
if ( k!= pos && ((this.Formula[pos] == 'e') || (this.Formula[pos] == 'E')) ) {//Показатель
pos++;
if ( (this.Formula[pos] == '+') || (this.Formula[pos] == '-') ) pos++;
if ( isdigit( this.Formula[pos] ) ) {
pos++;
while ( isdigit( this.Formula[pos] ) ) pos++;
}
else return false;
}
var op = this.Formula.substring( k, pos );
if ( op.length > 0 ) {
this.operand_str = op;
this.pCurrPos = pos;
return true;
}
return false;
}
function isString( str, pos ){
skipSpace.call( this );
var op = this.Formula[this.pCurrPos], pos = this.pCurrPos, isString = true,
str = "", quoteCounts = 0, res = false;
if( op != '"' ) return res;
pos++;
while( true && pos < this.Formula.length ){
if( this.Formula[pos] == '"' && this.Formula[pos+1] == '"' ){
str += '"';
pos += 2;
continue;
}
else if( this.Formula[pos] == '"' && (this.Formula[pos+1] != '"' || this.Formula[pos+1] != '!')){
pos++;
res = true;
break;
}
str += this.Formula[pos];
pos++;
}
if( res ){
this.operand_str = str;
this.pCurrPos = pos;
}
return res;
}
function isRef( str, pos ){
skipSpace.call( this );
var op = this.Formula[this.pCurrPos], pos = this.pCurrPos, res = false, countChar = 3, ref = "", col = "", row = "";
while( pos < this.Formula.length ){
op = this.Formula[pos].toUpperCase();
if( op >= "A" && op <= "Z" ){
ref += op;
col += op;
countChar --;
pos++;
continue;
}
else if( isdigit(op) ){
ref += op;
row += op;
pos++;
continue;
}
else if( op == "$" ){
ref += op;
pos++;
continue;
}
else if( op=="(" )
{
return false;
}
break;
}
if( col == "" || row == "" ){
res = false;
}
else
res = true;
if(res){
this.pCurrPos = pos;
this.operand_str = ref;
}
return res;
}
function isArea( str, pos ){
skipSpace.call( this );
var op = this.Formula[this.pCurrPos], pos = this.pCurrPos, res = false, wasDelim = false, ref = "", wasDigit = false;
while(pos<this.Formula.length){
op = this.Formula[pos];
if( isalpha(op) ){
if( wasDigit )
return false;
// ref+=op;
pos++;
}
else if( isdigit(op) ){
// ref+=op;
pos++;
wasDigit = true;
}
else if( op == ":" ){
// ref+=op;
pos++;
wasDigit = false;
wasDelim = true;
}
else if( op == "$" ){
pos++;
}
else if( wasDelim ){
res = true;
break;
}else
return false;
}
if(pos == this.Formula.length && wasDelim){
res = true;
}
if(res){
this.operand_str = this.Formula.substring(this.pCurrPos,pos);
this.pCurrPos = pos;
}
return res;
}
function is3DRef(str,pos){
skipSpace.call( this );
var op = this.Formula[this.pCurrPos], pos = this.pCurrPos, sheetDelimPos = -1, sheetDelimPosCount = 0;
if( op == "'"){
var wasAp = false;
pos++;
if( this.Formula[pos] == "["){
return [false];//ToDo!!!!!
}
else{
op = this.Formula[pos];
if( op == "'" || op=="*" || op == "[" || op == "]" || op == "\\" || op == ":" || op == "/" || op == "?" ){
return [false];
}
while ( pos < this.Formula.length ) {
pos++;
op = this.Formula[pos];
if(op==":"){
if( wasAp ) return [false];
sheetDelimPos = pos;
sheetDelimPosCount++;
}
else if( isoper(op) || op == "[" || op == "]" || op == "\\" || op == "?" ){
return [false];
}
else if( op=="'" ){
wasAp = !wasAp;
}
else if( op=="!" ){
if( !wasAp )
return [false];
break;
}
}
}
}
else if( op == "[" ){
return [false];//ToDo!!!!!
}
else if( !isoper(op) && !(op == "'" || op == "[" || op == "]" || op == "\\" || op == "?" )){
while ( pos < this.Formula.length && op != "!" ) {
pos++;
op = this.Formula[pos];
if(op==":"){
sheetDelimPos = pos;
sheetDelimPosCount++;
}
else if( isoper(op) || op == "'" || op == "[" || op == "]" || op == "\\" || op == "?" || op == "(" || op==")" ){
return [false];
}
}
if( pos == this.Formula.length ){
return [false];
}
}
if ( sheetDelimPosCount > 1 ) return [false];
var s = this.operand_str = this.Formula.substring( this.pCurrPos, pos );
pos++;
this.pCurrPos = pos;
if( s.indexOf("'") > -1 ){
s = s.substring( 1, s.length-1 ).replace(/''/g,"'");
// s = s.replace(/''/g,"'");
}
if ( sheetDelimPos > -1 ) {
s = s.split( ":" );
return [true, s[0], s[1]];
}
return [true, s, s];
}
/** класс отвечающий за парсинг строки с формулой, подсчета формулы, перестройки формулы при манипуляции с ячейкой*/
/** @constructor */
function parserFormula( formula, _cellId, _ws ) {
......@@ -2440,6 +3061,7 @@ parserFormula.prototype = {
while ( this.pCurrPos < this.Formula.length ) {
/* Operators*/
if ( parserHelp.isOperator.call( this, this.Formula, this.pCurrPos )/* || isNextPtg(this.formula,this.pCurrPos) */ ) {
// if ( isOperator.call( this, this.Formula, this.pCurrPos )/* || isNextPtg(this.formula,this.pCurrPos) */ ) {
wasLeftParentheses = false;
var found_operator = null;
......@@ -2485,12 +3107,6 @@ parserFormula.prototype = {
}
}
}
else {
this.error.push( c_oAscError.ID.FrmlWrongOperator );
this.outStack = [];
this.elemArr = [];
return false;
}
while ( this.elemArr.length != 0 && (
found_operator.isRightAssociative ?
......@@ -2504,13 +3120,15 @@ parserFormula.prototype = {
}
/* Left & Right Parentheses */
else if ( parserHelp.isLeftParentheses.call( this, this.Formula, this.pCurrPos ) ) {
// else if ( parserHelp.isLeftParentheses.call( this, this.Formula, this.pCurrPos ) ) {
else if ( isLeftParentheses.call( this, this.Formula, this.pCurrPos ) ) {
operand_expected = true;
wasLeftParentheses = true;
this.elemArr.push( new cFormulaOperators[this.operand_str]() );
}
else if ( parserHelp.isRightParentheses.call( this, this.Formula, this.pCurrPos ) ) {
// else if ( parserHelp.isRightParentheses.call( this, this.Formula, this.pCurrPos ) ) {
else if ( isRightParentheses.call( this, this.Formula, this.pCurrPos ) ) {
var top_elem = null;
if ( this.elemArr.length != 0 && ( (top_elem = this.elemArr[this.elemArr.length - 1]).name == "(" ) && operand_expected ) {
if ( top_elem.getArguments() > 1 ) {
......@@ -2579,7 +3197,8 @@ parserFormula.prototype = {
}
/*Comma & arguments union*/
else if ( parserHelp.isComma.call( this, this.Formula, this.pCurrPos ) ) {
// else if ( parserHelp.isComma.call( this, this.Formula, this.pCurrPos ) ) {
else if ( isComma.call( this, this.Formula, this.pCurrPos ) ) {
wasLeftParentheses = false;
/* if( operand_expected ){
this.error.push(c_oAscError.ID.FrmlAnotherParsingError);
......@@ -2621,11 +3240,11 @@ parserFormula.prototype = {
/* Array */
else if ( parserHelp.isArray.call( this, this.Formula, this.pCurrPos ) ) {
wasLeftParentheses = false;
var pH = new parserHelper(), tO = {pCurrPos:0, Formula:this.operand_str};
var pos = 0, arr = new cArray();
var pH = new parserHelper(), tO = {pCurrPos:0, Formula:this.operand_str,operand_str:""};
var pos = 0, arr = new cArray(), operator = { isOperator: false, operatorName: ""};
while ( tO.pCurrPos < tO.Formula.length ) {
if ( pH.isComma.call( tO, tO.Formula, tO.pCurrPos ) ) {
if ( isComma.call( tO, tO.Formula, tO.pCurrPos ) ) {
if ( tO.operand_str == ";" ) {
arr.addRow();
}
......@@ -2639,8 +3258,24 @@ parserFormula.prototype = {
else if ( pH.isError.call( tO, tO.Formula, tO.pCurrPos ) ) {
arr.addElement( new cError( tO.operand_str ) );
}
else if ( pH.isNumber.call( tO, tO.Formula, tO.pCurrPos ) ) {
else if ( isNumber.call( tO, tO.Formula, tO.pCurrPos ) ) {
if( operator.isOperator ){
if( operator.operatorName == "+" || operator.operatorName == "-" ){
tO.operand_str = operator.operatorName +""+ tO.operand_str
}
else{
this.outStack = [];
this.elemArr = [];
this.error.push( c_oAscError.ID.FrmlAnotherParsingError );
return false;
}
}
arr.addElement( new cNumber( parseFloat( tO.operand_str ) ) );
operator = { isOperator: false, operatorName: ""};
}
else if( isOperator.call( tO, tO.Formula, tO.pCurrPos ) ){
operator.isOperator = true;
operator.operatorName = tO.operand_str;
}
}
if ( !arr.isValidArray() ) {
......@@ -2671,6 +3306,7 @@ parserFormula.prototype = {
/* Strings */
else if ( parserHelp.isString.call( this, this.Formula, this.pCurrPos ) ) {
// else if ( isString.call( this, this.Formula, this.pCurrPos ) ) {
found_operand = new cString( this.operand_str );
}
......@@ -2681,6 +3317,8 @@ parserFormula.prototype = {
/* Referens to 3D area: Sheet1:Sheet3!A1:B3, Sheet1:Sheet3!B3, Sheet1!B3*/
else if ( (_3DRefTmp = parserHelp.is3DRef.call( this, this.Formula, this.pCurrPos ))[0] ) {
// else if ( (_3DRefTmp = is3DRef.call( this, this.Formula, this.pCurrPos ))[0] ) {
this.is3D = true;
var _wsFrom = _3DRefTmp[1],
_wsTo = ( (_3DRefTmp[2] !== null) && (_3DRefTmp[2] !== undefined) ) ? _3DRefTmp[2] : _wsFrom;
......@@ -2697,6 +3335,7 @@ parserFormula.prototype = {
found_operand.isAbsolute = true;
}
else if ( parserHelp.isRef.call( this, this.Formula, this.pCurrPos ) ) {
// else if ( isRef.call( this, this.Formula, this.pCurrPos ) ) {
this.RefPos.push({start: this.pCurrPos - this.operand_str.length, end: this.pCurrPos, index: this.outStack.length});
if ( _wsTo != _wsFrom ) {
found_operand = new cArea3D( this.operand_str.toUpperCase(), _wsFrom, _wsTo, this.wb );
......@@ -2714,6 +3353,7 @@ parserFormula.prototype = {
}
/* Referens to cells area A1:A10 */
else if ( parserHelp.isArea.call( this, this.Formula, this.pCurrPos ) ) {
// else if ( isArea.call( this, this.Formula, this.pCurrPos ) ) {
this.RefPos.push({start: this.pCurrPos - this.operand_str.length, end: this.pCurrPos, index: this.outStack.length});
found_operand = new cArea( this.operand_str.toUpperCase(), this.ws );
if ( this.operand_str.indexOf( "$" ) > -1 )
......@@ -2721,6 +3361,7 @@ parserFormula.prototype = {
}
/* Referens to cell A4 */
else if ( parserHelp.isRef.call( this, this.Formula, this.pCurrPos, true ) ) {
// else if ( isRef.call( this, this.Formula, this.pCurrPos, true ) ) {
this.RefPos.push({start: this.pCurrPos - this.operand_str.length, end: this.pCurrPos, index: this.outStack.length});
found_operand = new cRef( this.operand_str.toUpperCase(), this.ws );
if ( this.operand_str.indexOf( "$" ) > -1 )
......@@ -2729,6 +3370,7 @@ parserFormula.prototype = {
/* Numbers*/
else if ( parserHelp.isNumber.call( this, this.Formula, this.pCurrPos ) ) {
// else if ( /*isdigit(this.Formula[this.pCurrPos] ) &&*/ isNumber.call( this, this.Formula, this.pCurrPos ) ) {
if ( this.operand_str != "." ) {
found_operand = new cNumber( parseFloat( this.operand_str ) );
}
......@@ -2828,6 +3470,7 @@ parserFormula.prototype = {
},
calculate:function () {
__fc__++;
if ( this.outStack.length < 1 ) {
return this.value = new cError( cErrorType.wrong_name );
}
......@@ -3391,7 +4034,7 @@ parserFormula.prototype = {
}
function parseNum( str ) {
if ( str.indexOf( "x" ) > -1 || str == "" )//исключаем запись числа в 16-ричной форме из числа.
if ( str.indexOf( "x" ) > -1 || str == "" || str.match(/\s+/) )//исключаем запись числа в 16-ричной форме из числа.
return false;
return !isNaN( str );
}
......
......@@ -133,9 +133,22 @@ cFormulaFunction.Statistical = {
'ZTEST':cZTEST
}
function cAVEDEV() {
cBaseFunction.call( this, "AVEDEV" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "AVEDEV" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "AVEDEV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cAVEDEV.prototype = Object.create( cBaseFunction.prototype )
cAVEDEV.prototype.Calculate = function ( arg ) {
......@@ -196,9 +209,22 @@ cAVEDEV.prototype.getInfo = function () {
function cAVERAGE() {
cBaseFunction.call( this, "AVERAGE" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "AVERAGE" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "AVERAGE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cAVERAGE.prototype = Object.create( cBaseFunction.prototype )
cAVERAGE.prototype.Calculate = function ( arg ) {
......@@ -264,9 +290,22 @@ cAVERAGE.prototype.getInfo = function () {
}
function cAVERAGEA() {
cBaseFunction.call( this, "AVERAGEA" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "AVERAGEA" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "AVERAGEA";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cAVERAGEA.prototype = Object.create( cBaseFunction.prototype )
cAVERAGEA.prototype.Calculate = function ( arg ) {
......@@ -334,9 +373,22 @@ cAVERAGEA.prototype.getInfo = function () {
}
function cAVERAGEIF() {
cBaseFunction.call( this, "AVERAGEIF" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "AVERAGEIF" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 3 );
this.name = "AVERAGEIF";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cAVERAGEIF.prototype = Object.create( cBaseFunction.prototype )
cAVERAGEIF.prototype.Calculate = function ( arg ) {
......@@ -430,9 +482,22 @@ function cBETAINV() {/*Нет реализации в Google Docs*/
cBETAINV.prototype = Object.create( cBaseFunction.prototype )
function cBINOMDIST() {
cBaseFunction.call( this, "BINOMDIST" );
this.setArgumentsMin( 4 );
this.setArgumentsMax( 4 );
// cBaseFunction.call( this, "BINOMDIST" );
// this.setArgumentsMin( 4 );
// this.setArgumentsMax( 4 );
this.name = "BINOMDIST";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
this.argumentsMax = 4;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cBINOMDIST.prototype = Object.create( cBaseFunction.prototype )
cBINOMDIST.prototype.Calculate = function ( arg ) {
......@@ -519,9 +584,22 @@ function cCHITEST() {
cCHITEST.prototype = Object.create( cBaseFunction.prototype )
function cCONFIDENCE() {
cBaseFunction.call( this, "CONFIDENCE" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "CONFIDENCE" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 3 );
this.name = "CONFIDENCE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCONFIDENCE.prototype = Object.create( cBaseFunction.prototype )
cCONFIDENCE.prototype.Calculate = function ( arg ) {
......@@ -570,9 +648,22 @@ cCONFIDENCE.prototype.getInfo = function () {
}
function cCORREL() {
cBaseFunction.call( this, "CORREL" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "CORREL" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "CORREL";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCORREL.prototype = Object.create( cBaseFunction.prototype )
cCORREL.prototype.Calculate = function ( arg ) {
......@@ -649,10 +740,23 @@ cCORREL.prototype.getInfo = function () {
}
function cCOUNT() {
cBaseFunction.call( this, "COUNT" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "COUNT" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
// this.setFormat( this.formatType.noneFormat );
this.name = "COUNT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cCOUNT.prototype = Object.create( cBaseFunction.prototype )
cCOUNT.prototype.Calculate = function ( arg ) {
......@@ -699,10 +803,23 @@ cCOUNT.prototype.getInfo = function () {
}
function cCOUNTA() {
cBaseFunction.call( this, "COUNTA" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "COUNTA" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
// this.setFormat( this.formatType.noneFormat );
this.name = "COUNTA";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cCOUNTA.prototype = Object.create( cBaseFunction.prototype )
cCOUNTA.prototype.Calculate = function ( arg ) {
......@@ -744,10 +861,23 @@ cCOUNTA.prototype.getInfo = function () {
}
function cCOUNTBLANK() {
cBaseFunction.call( this, "COUNTBLANK" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "COUNTBLANK" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
// this.setFormat( this.formatType.noneFormat );
this.name = "COUNTBLANK";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
this.argumentsMax = 4;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cCOUNTBLANK.prototype = Object.create( cBaseFunction.prototype )
cCOUNTBLANK.prototype.Calculate = function ( arg ) {
......@@ -768,9 +898,22 @@ cCOUNTBLANK.prototype.getInfo = function () {
}
function cCOUNTIF() {
cBaseFunction.call( this, "COUNTIF" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "COUNTIF" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "COUNTIF";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCOUNTIF.prototype = Object.create( cBaseFunction.prototype )
cCOUNTIF.prototype.Calculate = function ( arg ) {
......@@ -835,9 +978,22 @@ function cCOUNTIFS() {
cCOUNTIFS.prototype = Object.create( cBaseFunction.prototype )
function cCOVAR() {
cBaseFunction.call( this, "COVAR" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "COVAR" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "COVAR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCOVAR.prototype = Object.create( cBaseFunction.prototype )
cCOVAR.prototype.Calculate = function ( arg ) {
......@@ -909,9 +1065,22 @@ cCOVAR.prototype.getInfo = function () {
}
function cCRITBINOM() {
cBaseFunction.call( this, "CRITBINOM" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "CRITBINOM" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 3 );
this.name = "CRITBINOM";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCRITBINOM.prototype = Object.create( cBaseFunction.prototype )
cCRITBINOM.prototype.Calculate = function ( arg ) {
......@@ -989,9 +1158,22 @@ cCRITBINOM.prototype.getInfo = function () {
}
function cDEVSQ() {
cBaseFunction.call( this, "DEVSQ" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "DEVSQ" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "DEVSQ";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cDEVSQ.prototype = Object.create( cBaseFunction.prototype )
cDEVSQ.prototype.Calculate = function ( arg ) {
......@@ -1063,9 +1245,22 @@ cDEVSQ.prototype.getInfo = function () {
}
function cEXPONDIST() {
cBaseFunction.call( this, "EXPONDIST" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "EXPONDIST" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 3 );
this.name = "EXPODIST";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cEXPONDIST.prototype = Object.create( cBaseFunction.prototype )
cEXPONDIST.prototype.Calculate = function ( arg ) {
......@@ -1127,9 +1322,22 @@ function cFINV() {
cFINV.prototype = Object.create( cBaseFunction.prototype )
function cFISHER() {
cBaseFunction.call( this, "FISHER" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "FISHER" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "FISHER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cFISHER.prototype = Object.create( cBaseFunction.prototype )
cFISHER.prototype.Calculate = function ( arg ) {
......@@ -1171,9 +1379,22 @@ cFISHER.prototype.getInfo = function () {
}
function cFISHERINV() {
cBaseFunction.call( this, "FISHERINV" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "FISHERINV" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "FISHERINV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cFISHERINV.prototype = Object.create( cBaseFunction.prototype )
cFISHERINV.prototype.Calculate = function ( arg ) {
......@@ -1215,9 +1436,22 @@ cFISHERINV.prototype.getInfo = function () {
}
function cFORECAST() {
cBaseFunction.call( this, "FORECAST" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "FORECAST" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 3 );
this.name = "FORECAST";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cFORECAST.prototype = Object.create( cBaseFunction.prototype )
cFORECAST.prototype.Calculate = function ( arg ) {
......@@ -1307,10 +1541,23 @@ cFORECAST.prototype.getInfo = function () {
}
function cFREQUENCY() {
cBaseFunction.call( this, "FREQUENCY" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "FREQUENCY" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
// this.setFormat( this.formatType.noneFormat );
this.name = "FREQUENCY";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cFREQUENCY.prototype = Object.create( cBaseFunction.prototype )
cFREQUENCY.prototype.Calculate = function ( arg ) {
......@@ -1416,9 +1663,22 @@ function cGAMMAINV() {
cGAMMAINV.prototype = Object.create( cBaseFunction.prototype )
function cGAMMALN() {
cBaseFunction.call( this, "GAMMALN" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "GAMMALN" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "GAMMALN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cGAMMALN.prototype = Object.create( cBaseFunction.prototype )
cGAMMALN.prototype.Calculate = function ( arg ) {
......@@ -1459,9 +1719,22 @@ cGAMMALN.prototype.getInfo = function () {
}
function cGEOMEAN() {
cBaseFunction.call( this, "GEOMEAN" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "GEOMEAN" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "GEOMEAN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cGEOMEAN.prototype = Object.create( cBaseFunction.prototype )
cGEOMEAN.prototype.Calculate = function ( arg ) {
......@@ -1535,9 +1808,22 @@ function cGROWTH() {
cGROWTH.prototype = Object.create( cBaseFunction.prototype )
function cHARMEAN() {
cBaseFunction.call( this, "HARMEAN" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "HARMEAN" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "HARMEAN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cHARMEAN.prototype = Object.create( cBaseFunction.prototype )
cHARMEAN.prototype.Calculate = function ( arg ) {
......@@ -1610,9 +1896,22 @@ cHARMEAN.prototype.getInfo = function () {
}
function cHYPGEOMDIST() {
cBaseFunction.call( this, "HYPGEOMDIST" );
this.setArgumentsMin( 4 );
this.setArgumentsMax( 4 );
// cBaseFunction.call( this, "HYPGEOMDIST" );
// this.setArgumentsMin( 4 );
// this.setArgumentsMax( 4 );
this.name = "HYPGEOMDIST";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
this.argumentsMax = 4;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cHYPGEOMDIST.prototype = Object.create( cBaseFunction.prototype )
cHYPGEOMDIST.prototype.Calculate = function ( arg ) {
......@@ -1677,9 +1976,22 @@ cHYPGEOMDIST.prototype.getInfo = function () {
}
function cINTERCEPT() {
cBaseFunction.call( this, "INTERCEPT" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "INTERCEPT" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "INTERCEPT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cINTERCEPT.prototype = Object.create( cBaseFunction.prototype )
cINTERCEPT.prototype.Calculate = function ( arg ) {
......@@ -1758,9 +2070,22 @@ cINTERCEPT.prototype.getInfo = function () {
}
function cKURT() {
cBaseFunction.call( this, "KURT" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "KURT" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "KURT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cKURT.prototype = Object.create( cBaseFunction.prototype )
cKURT.prototype.Calculate = function ( arg ) {
......@@ -1843,10 +2168,23 @@ cKURT.prototype.getInfo = function () {
}
function cLARGE() {
cBaseFunction.call( this, "LARGE" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "LARGE" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
// this.setFormat( this.formatType.noneFormat );
this.name = "LARGE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cLARGE.prototype = Object.create( cBaseFunction.prototype )
cLARGE.prototype.Calculate = function ( arg ) {
......@@ -1922,9 +2260,22 @@ function cLOGEST() {
cLOGEST.prototype = Object.create( cBaseFunction.prototype )
function cLOGINV() {
cBaseFunction.call( this, "LOGINV" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "LOGINV" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 3 );
this.name = "LOGINV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cLOGINV.prototype = Object.create( cBaseFunction.prototype )
cLOGINV.prototype.Calculate = function ( arg ) {
......@@ -1977,9 +2328,22 @@ cLOGINV.prototype.getInfo = function () {
}
function cLOGNORMDIST() {
cBaseFunction.call( this, "LOGNORMDIST" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "LOGNORMDIST" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 3 );
this.name = "LOGNORMDIST";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cLOGNORMDIST.prototype = Object.create( cBaseFunction.prototype )
cLOGNORMDIST.prototype.Calculate = function ( arg ) {
......@@ -2032,9 +2396,22 @@ cLOGNORMDIST.prototype.getInfo = function () {
}
function cMAX() {
cBaseFunction.call( this, "MAX" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "MAX" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "MAX";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cMAX.prototype = Object.create( cBaseFunction.prototype )
cMAX.prototype.Calculate = function ( arg ) {
......@@ -2106,9 +2483,22 @@ cMAX.prototype.getInfo = function () {
}
function cMAXA() {
cBaseFunction.call( this, "MAXA" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "MAXA" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "MAXA";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cMAXA.prototype = Object.create( cBaseFunction.prototype )
cMAXA.prototype.Calculate = function ( arg ) {
......@@ -2182,9 +2572,22 @@ cMAXA.prototype.getInfo = function () {
}
function cMEDIAN() {
cBaseFunction.call( this, "MEDIAN" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "MEDIAN" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "MEDIAN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cMEDIAN.prototype = Object.create( cBaseFunction.prototype )
cMEDIAN.prototype.Calculate = function ( arg ) {
......@@ -2256,9 +2659,22 @@ cMEDIAN.prototype.getInfo = function () {
}
function cMIN() {
cBaseFunction.call( this, "MIN" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "MIN" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "MIN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cMIN.prototype = Object.create( cBaseFunction.prototype )
cMIN.prototype.Calculate = function ( arg ) {
......@@ -2331,9 +2747,22 @@ cMIN.prototype.getInfo = function () {
}
function cMINA() {
cBaseFunction.call( this, "MINA" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "MINA" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "MINA";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cMINA.prototype = Object.create( cBaseFunction.prototype )
cMINA.prototype.Calculate = function ( arg ) {
......@@ -2409,9 +2838,22 @@ cMINA.prototype.getInfo = function () {
}
function cMODE() {
cBaseFunction.call( this, "MODE" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "MODE" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "MODE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cMODE.prototype = Object.create( cBaseFunction.prototype )
cMODE.prototype.Calculate = function ( arg ) {
......@@ -2503,9 +2945,22 @@ cMODE.prototype.getInfo = function () {
}
function cNEGBINOMDIST() {
cBaseFunction.call( this, "NEGBINOMDIST" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "NEGBINOMDIST" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 3 );
this.name = "NEGBINOMDIST";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cNEGBINOMDIST.prototype = Object.create( cBaseFunction.prototype )
cNEGBINOMDIST.prototype.Calculate = function ( arg ) {
......@@ -2561,9 +3016,22 @@ cNEGBINOMDIST.prototype.getInfo = function () {
}
function cNORMDIST() {
cBaseFunction.call( this, "NORMDIST" );
this.setArgumentsMin( 4 );
this.setArgumentsMax( 4 );
// cBaseFunction.call( this, "NORMDIST" );
// this.setArgumentsMin( 4 );
// this.setArgumentsMax( 4 );
this.name = "NORMDIST";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
this.argumentsMax = 4;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cNORMDIST.prototype = Object.create( cBaseFunction.prototype )
cNORMDIST.prototype.Calculate = function ( arg ) {
......@@ -2630,9 +3098,22 @@ cNORMDIST.prototype.getInfo = function () {
}
function cNORMINV() {
cBaseFunction.call( this, "NORMINV" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "NORMINV" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 3 );
this.name = "NORMINV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cNORMINV.prototype = Object.create( cBaseFunction.prototype )
cNORMINV.prototype.Calculate = function ( arg ) {
......@@ -2685,9 +3166,22 @@ cNORMINV.prototype.getInfo = function () {
}
function cNORMSDIST() {
cBaseFunction.call( this, "NORMSDIST" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "NORMSDIST" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "NORMSDIST";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cNORMSDIST.prototype = Object.create( cBaseFunction.prototype )
cNORMSDIST.prototype.Calculate = function ( arg ) {
......@@ -2723,9 +3217,22 @@ cNORMSDIST.prototype.getInfo = function () {
}
function cNORMSINV() {
cBaseFunction.call( this, "NORMSINV" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "NORMSINV" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "NORMSINV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cNORMSINV.prototype = Object.create( cBaseFunction.prototype )
cNORMSINV.prototype.Calculate = function ( arg ) {
......@@ -2769,9 +3276,22 @@ cNORMSINV.prototype.getInfo = function () {
}
function cPEARSON() {
cBaseFunction.call( this, "PEARSON" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "PEARSON" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "PEARSON";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cPEARSON.prototype = Object.create( cBaseFunction.prototype )
cPEARSON.prototype.Calculate = function ( arg ) {
......@@ -2849,10 +3369,23 @@ cPEARSON.prototype.getInfo = function () {
}
function cPERCENTILE() {
cBaseFunction.call( this, "PERCENTILE" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "PERCENTILE" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
// this.setFormat( this.formatType.noneFormat );
this.name = "PERCENTILE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cPERCENTILE.prototype = Object.create( cBaseFunction.prototype )
cPERCENTILE.prototype.Calculate = function ( arg ) {
......@@ -2932,9 +3465,22 @@ cPERCENTILE.prototype.getInfo = function () {
}
function cPERCENTRANK() {
cBaseFunction.call( this, "PERCENTRANK" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "PERCENTRANK" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 3 );
this.name = "PERCEBTRANK";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cPERCENTRANK.prototype = Object.create( cBaseFunction.prototype )
cPERCENTRANK.prototype.Calculate = function ( arg ) {
......@@ -3043,9 +3589,22 @@ cPERCENTRANK.prototype.getInfo = function () {
}
function cPERMUT() {
cBaseFunction.call( this, "PERMUT" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "PERMUT" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "PERMUT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cPERMUT.prototype = Object.create( cBaseFunction.prototype )
cPERMUT.prototype.Calculate = function ( arg ) {
......@@ -3126,9 +3685,22 @@ cPERMUT.prototype.getInfo = function () {
}
function cPOISSON() {
cBaseFunction.call( this, "POISSON" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "POISSON" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 3 );
this.name = "POISSON";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cPOISSON.prototype = Object.create( cBaseFunction.prototype )
cPOISSON.prototype.Calculate = function ( arg ) {
......@@ -3195,10 +3767,23 @@ cPOISSON.prototype.getInfo = function () {
}
function cPROB() {
cBaseFunction.call( this, "PROB" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 4 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "PROB" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 4 );
// this.setFormat( this.formatType.noneFormat );
this.name = "PROB";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 4;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cPROB.prototype = Object.create( cBaseFunction.prototype )
cPROB.prototype.Calculate = function ( arg ) {
......@@ -3302,10 +3887,23 @@ cPROB.prototype.getInfo = function () {
}
function cQUARTILE() {
cBaseFunction.call( this, "QUARTILE" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "QUARTILE" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
// this.setFormat( this.formatType.noneFormat );
this.name = "QUARTILE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cQUARTILE.prototype = Object.create( cBaseFunction.prototype )
cQUARTILE.prototype.Calculate = function ( arg ) {
......@@ -3416,9 +4014,22 @@ function cRANK() {
cRANK.prototype = Object.create( cBaseFunction.prototype )
function cRSQ() {
cBaseFunction.call( this, "RSQ" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "RSQ" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "RSQ";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cRSQ.prototype = Object.create( cBaseFunction.prototype )
cRSQ.prototype.Calculate = function ( arg ) {
......@@ -3497,9 +4108,22 @@ cRSQ.prototype.getInfo = function () {
}
function cSKEW() {
cBaseFunction.call( this, "SKEW" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "SKEW" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "SKEW";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSKEW.prototype = Object.create( cBaseFunction.prototype )
cSKEW.prototype.Calculate = function ( arg ) {
......@@ -3585,9 +4209,22 @@ cSKEW.prototype.getInfo = function () {
}
function cSLOPE() {
cBaseFunction.call( this, "SLOPE" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "SLOPE" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "SLOPE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSLOPE.prototype = Object.create( cBaseFunction.prototype )
cSLOPE.prototype.Calculate = function ( arg ) {
......@@ -3665,10 +4302,23 @@ cSLOPE.prototype.getInfo = function () {
}
function cSMALL() {
cBaseFunction.call( this, "SMALL" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "SMALL" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
// this.setFormat( this.formatType.noneFormat );
this.name = "SMALL";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cSMALL.prototype = Object.create( cBaseFunction.prototype )
cSMALL.prototype.Calculate = function ( arg ) {
......@@ -3734,9 +4384,22 @@ cSMALL.prototype.getInfo = function () {
}
function cSTANDARDIZE() {
cBaseFunction.call( this, "STANDARDIZE" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "STANDARDIZE" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 3 );
this.name = "STANDARDIZE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSTANDARDIZE.prototype = Object.create( cBaseFunction.prototype )
cSTANDARDIZE.prototype.Calculate = function ( arg ) {
......@@ -3789,10 +4452,23 @@ cSTANDARDIZE.prototype.getInfo = function () {
}
function cSTDEV() {
cBaseFunction.call( this, "STDEV" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "STDEV" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
// this.setFormat( this.formatType.noneFormat );
this.name = "STDEV";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cSTDEV.prototype = Object.create( cBaseFunction.prototype )
cSTDEV.prototype.Calculate = function ( arg ) {
......@@ -3852,10 +4528,23 @@ cSTDEV.prototype.getInfo = function () {
}
function cSTDEVA() {
cBaseFunction.call( this, "STDEVA" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "STDEVA" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
// this.setFormat( this.formatType.noneFormat );
this.name = "STDEVA";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSTDEVA.prototype = Object.create( cBaseFunction.prototype )
cSTDEVA.prototype.Calculate = function ( arg ) {
......@@ -3955,9 +4644,22 @@ function cTTEST() {
cTTEST.prototype = Object.create( cBaseFunction.prototype )
function cVAR() {
cBaseFunction.call( this, "VAR" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "VAR" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "VAR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cVAR.prototype = Object.create( cBaseFunction.prototype )
cVAR.prototype.Calculate = function ( arg ) {
......
......@@ -56,9 +56,22 @@ function cBAHTTEXT() {
cBAHTTEXT.prototype = Object.create( cBaseFunction.prototype )
function cCHAR() {
cBaseFunction.call( this, "CHAR" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "CHAR" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "CHAR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCHAR.prototype = Object.create( cBaseFunction.prototype )
cCHAR.prototype.Calculate = function ( arg ) {
......@@ -98,9 +111,23 @@ cCHAR.prototype.getInfo = function () {
}
function cCLEAN() {
cBaseFunction.call( this, "CLEAN" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "CLEAN" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "CLEAN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCLEAN.prototype = Object.create( cBaseFunction.prototype )
cCLEAN.prototype.Calculate = function ( arg ) {
......@@ -132,9 +159,22 @@ cCLEAN.prototype.getInfo = function () {
}
function cCODE() {
cBaseFunction.call( this, "CODE" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "CODE" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "CODE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCODE.prototype = Object.create( cBaseFunction.prototype )
cCODE.prototype.Calculate = function ( arg ) {
......@@ -174,9 +214,22 @@ cCODE.prototype.getInfo = function () {
}
function cCONCATENATE() {
cBaseFunction.call( this, "CONCATENATE" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 255 );
// cBaseFunction.call( this, "CONCATENATE" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 255 );
this.name = "CONCATENATE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 255;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cCONCATENATE.prototype = Object.create( cBaseFunction.prototype )
cCONCATENATE.prototype.Calculate = function ( arg ) {
......@@ -217,10 +270,23 @@ cCONCATENATE.prototype.getInfo = function () {
}
function cDOLLAR() {
cBaseFunction.call( this, "DOLLAR" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 2 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "DOLLAR" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 2 );
// this.setFormat( this.formatType.noneFormat );
this.name = "DOLLAR";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cDOLLAR.prototype = Object.create( cBaseFunction.prototype )
cDOLLAR.prototype.Calculate = function ( arg ) {
......@@ -401,9 +467,22 @@ cDOLLAR.prototype.getInfo = function () {
}
function cEXACT() {
cBaseFunction.call( this, "EXACT" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "EXACT" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "EXACT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cEXACT.prototype = Object.create( cBaseFunction.prototype )
cEXACT.prototype.Calculate = function ( arg ) {
......@@ -443,9 +522,22 @@ cEXACT.prototype.getInfo = function () {
}
function cFIND() {
cBaseFunction.call( this, "FIND" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "FIND" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 3 );
this.name = "FIND";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cFIND.prototype = Object.create( cBaseFunction.prototype )
cFIND.prototype.Calculate = function ( arg ) {
......@@ -523,9 +615,22 @@ function cFINDB() {
}
function cFIXED() {
cBaseFunction.call( this, "FIXED" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "FIXED" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 3 );
this.name = "FIXED";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cFIXED.prototype = Object.create( cBaseFunction.prototype )
cFIXED.prototype.Calculate = function ( arg ) {
......@@ -707,9 +812,22 @@ function cJIS() {
cJIS.prototype = Object.create( cBaseFunction.prototype )
function cLEFT() {
cBaseFunction.call( this, "LEFT" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "LEFT" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 2 );
this.name = "LEFT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cLEFT.prototype = Object.create( cBaseFunction.prototype )
cLEFT.prototype.Calculate = function ( arg ) {
......@@ -757,9 +875,22 @@ function cLEFTB() {
}
function cLEN() {
cBaseFunction.call( this, "LEN" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "LEN" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "LEN";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cLEN.prototype = Object.create( cBaseFunction.prototype )
cLEN.prototype.Calculate = function ( arg ) {
......@@ -793,9 +924,22 @@ function cLENB() {
}
function cLOWER() {
cBaseFunction.call( this, "LOWER" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "LOWER" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "LOWER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cLOWER.prototype = Object.create( cBaseFunction.prototype )
cLOWER.prototype.Calculate = function ( arg ) {
......@@ -820,9 +964,22 @@ cLOWER.prototype.getInfo = function () {
}
function cMID() {
cBaseFunction.call( this, "MID" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "MID" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 3 );
this.name = "MID";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cMID.prototype = Object.create( cBaseFunction.prototype )
cMID.prototype.Calculate = function ( arg ) {
......@@ -887,9 +1044,22 @@ function cPHONETIC() {
cPHONETIC.prototype = Object.create( cBaseFunction.prototype )
function cPROPER() {
cBaseFunction.call( this, "PROPER" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "PROPER" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "PROPER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cPROPER.prototype = Object.create( cBaseFunction.prototype )
cPROPER.prototype.Calculate = function ( arg ) {
......@@ -951,9 +1121,22 @@ cPROPER.prototype.getInfo = function () {
}
function cREPLACE() {
cBaseFunction.call( this, "REPLACE" );
this.setArgumentsMin( 4 );
this.setArgumentsMax( 4 );
// cBaseFunction.call( this, "REPLACE" );
// this.setArgumentsMin( 4 );
// this.setArgumentsMax( 4 );
this.name = "REPLACE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 4;
this.argumentsCurrent = 0;
this.argumentsMax = 4;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cREPLACE.prototype = Object.create( cBaseFunction.prototype )
cREPLACE.prototype.Calculate = function ( arg ) {
......@@ -1033,9 +1216,22 @@ function cREPLACEB() {
}
function cREPT() {
cBaseFunction.call( this, "REPT" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "REPT" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "REPT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cREPT.prototype = Object.create( cBaseFunction.prototype )
cREPT.prototype.Calculate = function ( arg ) {
......@@ -1091,9 +1287,22 @@ cREPT.prototype.getInfo = function () {
}
function cRIGHT() {
cBaseFunction.call( this, "RIGHT" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "RIGHT" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 2 );
this.name = "RIGTH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cRIGHT.prototype = Object.create( cBaseFunction.prototype )
cRIGHT.prototype.Calculate = function ( arg ) {
......@@ -1141,9 +1350,22 @@ function cRIGHTB() {
}
function cSEARCH() {
cBaseFunction.call( this, "SEARCH" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 3 );
// cBaseFunction.call( this, "SEARCH" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 3 );
this.name = "SEARCH";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 3;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSEARCH.prototype = Object.create( cBaseFunction.prototype )
cSEARCH.prototype.Calculate = function ( arg ) {
......@@ -1234,9 +1456,22 @@ function cSEARCHB() {
}
function cSUBSTITUTE() {
cBaseFunction.call( this, "SUBSTITUTE" );
this.setArgumentsMin( 3 );
this.setArgumentsMax( 4 );
// cBaseFunction.call( this, "SUBSTITUTE" );
// this.setArgumentsMin( 3 );
// this.setArgumentsMax( 4 );
this.name = "SUBTITUTE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 3;
this.argumentsCurrent = 0;
this.argumentsMax = 4;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cSUBSTITUTE.prototype = Object.create( cBaseFunction.prototype )
cSUBSTITUTE.prototype.Calculate = function ( arg ) {
......@@ -1313,9 +1548,22 @@ cSUBSTITUTE.prototype.getInfo = function () {
}
function cT() {
cBaseFunction.call( this, "T" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "T" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "T";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cT.prototype = Object.create( cBaseFunction.prototype )
cT.prototype.Calculate = function ( arg ) {
......@@ -1345,9 +1593,22 @@ cT.prototype.getInfo = function () {
}
function cTEXT() {
cBaseFunction.call( this, "TEXT" );
this.setArgumentsMin( 2 );
this.setArgumentsMax( 2 );
// cBaseFunction.call( this, "TEXT" );
// this.setArgumentsMin( 2 );
// this.setArgumentsMax( 2 );
this.name = "TEXT";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 2;
this.argumentsCurrent = 0;
this.argumentsMax = 2;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cTEXT.prototype = Object.create( cBaseFunction.prototype )
cTEXT.prototype.Calculate = function ( arg ) {
......@@ -1407,9 +1668,22 @@ cTEXT.prototype.getInfo = function () {
}
function cTRIM() {
cBaseFunction.call( this, "TRIM" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "TRIM" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "TRIM";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cTRIM.prototype = Object.create( cBaseFunction.prototype )
cTRIM.prototype.Calculate = function ( arg ) {
......@@ -1441,9 +1715,22 @@ cTRIM.prototype.getInfo = function () {
}
function cUPPER() {
cBaseFunction.call( this, "UPPER" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
// cBaseFunction.call( this, "UPPER" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
this.name = "UPPER";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.def;
}
cUPPER.prototype = Object.create( cBaseFunction.prototype )
cUPPER.prototype.Calculate = function ( arg ) {
......@@ -1467,10 +1754,23 @@ cUPPER.prototype.getInfo = function () {
}
function cVALUE() {
cBaseFunction.call( this, "VALUE" );
this.setArgumentsMin( 1 );
this.setArgumentsMax( 1 );
this.setFormat( this.formatType.noneFormat );
// cBaseFunction.call( this, "VALUE" );
// this.setArgumentsMin( 1 );
// this.setArgumentsMax( 1 );
// this.setFormat( this.formatType.noneFormat );
this.name = "VALUE";
this.type = cElementType.func;
this.value = null;
this.argumentsMin = 1;
this.argumentsCurrent = 0;
this.argumentsMax = 1;
this.formatType = {
def:-1, //подразумевается формат первой ячейки входящей в формулу.
noneFormat:-2
};
this.numFormat = this.formatType.noneFormat;
}
cVALUE.prototype = Object.create( cBaseFunction.prototype )
cVALUE.prototype.Calculate = function ( arg ) {
......
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