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