cubeFunctions.js 4.53 KB
Newer Older
Alexander.Trofimov's avatar
Alexander.Trofimov committed
1
/*
2
 * (c) Copyright Ascensio System SIA 2010-2017
Alexander.Trofimov's avatar
Alexander.Trofimov committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
 *
 * This program is a free software product. You can redistribute it and/or
 * modify it under the terms of the GNU Affero General Public License (AGPL)
 * version 3 as published by the Free Software Foundation. In accordance with
 * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
 * that Ascensio System SIA expressly excludes the warranty of non-infringement
 * of any third-party rights.
 *
 * This program is distributed WITHOUT ANY WARRANTY; without even the implied
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR  PURPOSE. For
 * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
 *
 * You can contact Ascensio System SIA at Lubanas st. 125a-25, Riga, Latvia,
 * EU, LV-1021.
 *
 * The  interactive user interfaces in modified source and object code versions
 * of the Program must display Appropriate Legal Notices, as required under
 * Section 5 of the GNU AGPL version 3.
 *
 * Pursuant to Section 7(b) of the License you must retain the original Product
 * logo when distributing the program. Pursuant to Section 7(e) we decline to
 * grant you any rights under trademark law for use of our trademarks.
 *
 * All the Product's GUI elements, including illustrations and icon sets, as
 * well as technical writing content are licensed under the terms of the
 * Creative Commons Attribution-ShareAlike 4.0 International. See the License
 * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
 *
 */

33 34
"use strict";

35 36 37
(/**
 * @param {Window} window
 * @param {undefined} undefined
38
 */
39 40 41 42 43 44 45 46
	function (window, undefined) {
	var cBaseFunction = AscCommonExcel.cBaseFunction;
	var cFormulaFunctionGroup = AscCommonExcel.cFormulaFunctionGroup;

	cFormulaFunctionGroup['Cube'] = cFormulaFunctionGroup['Cube'] || [];
	cFormulaFunctionGroup['Cube'].push(cCUBEKPIMEMBER, cCUBEMEMBER, cCUBEMEMBERPROPERTY, cCUBERANKEDMEMBER, cCUBESET,
		cCUBESETCOUNT, cCUBEVALUE);

GoshaZotov's avatar
GoshaZotov committed
47 48 49 50
	cFormulaFunctionGroup['NotRealised'] = cFormulaFunctionGroup['NotRealised'] || [];
	cFormulaFunctionGroup['NotRealised'].push(cCUBEKPIMEMBER, cCUBEMEMBER, cCUBEMEMBERPROPERTY, cCUBERANKEDMEMBER,
		cCUBESET, cCUBESETCOUNT, cCUBEVALUE);

Alexander.Trofimov's avatar
Alexander.Trofimov committed
51 52 53 54
	/**
	 * @constructor
	 * @extends {AscCommonExcel.cBaseFunction}
	 */
55 56 57 58 59
	function cCUBEKPIMEMBER() {
		this.value = null;
		this.argumentsCurrent = 0;
	}

Alexander.Trofimov's avatar
Alexander.Trofimov committed
60
	cCUBEKPIMEMBER.prototype = Object.create(cBaseFunction.prototype);
61
	cCUBEKPIMEMBER.prototype.constructor = cCUBEKPIMEMBER;
62
	cCUBEKPIMEMBER.prototype.name = 'CUBEKPIMEMBER';
63

Alexander.Trofimov's avatar
Alexander.Trofimov committed
64 65 66 67
	/**
	 * @constructor
	 * @extends {AscCommonExcel.cBaseFunction}
	 */
68 69 70 71 72
	function cCUBEMEMBER() {
		this.value = null;
		this.argumentsCurrent = 0;
	}

Alexander.Trofimov's avatar
Alexander.Trofimov committed
73
	cCUBEMEMBER.prototype = Object.create(cBaseFunction.prototype);
74
	cCUBEMEMBER.prototype.constructor = cCUBEMEMBER;
75
	cCUBEMEMBER.prototype.name = 'CUBEMEMBER';
76

Alexander.Trofimov's avatar
Alexander.Trofimov committed
77 78 79 80
	/**
	 * @constructor
	 * @extends {AscCommonExcel.cBaseFunction}
	 */
81 82 83 84 85
	function cCUBEMEMBERPROPERTY() {
		this.value = null;
		this.argumentsCurrent = 0;
	}

Alexander.Trofimov's avatar
Alexander.Trofimov committed
86
	cCUBEMEMBERPROPERTY.prototype = Object.create(cBaseFunction.prototype);
87
	cCUBEMEMBERPROPERTY.prototype.constructor = cCUBEMEMBERPROPERTY;
88
	cCUBEMEMBERPROPERTY.prototype.name = 'CUBEMEMBERPROPERTY';
89

Alexander.Trofimov's avatar
Alexander.Trofimov committed
90 91 92 93
	/**
	 * @constructor
	 * @extends {AscCommonExcel.cBaseFunction}
	 */
94 95 96 97 98
	function cCUBERANKEDMEMBER() {
		this.value = null;
		this.argumentsCurrent = 0;
	}

Alexander.Trofimov's avatar
Alexander.Trofimov committed
99
	cCUBERANKEDMEMBER.prototype = Object.create(cBaseFunction.prototype);
100
	cCUBERANKEDMEMBER.prototype.constructor = cCUBERANKEDMEMBER;
101
	cCUBERANKEDMEMBER.prototype.name = 'CUBERANKEDMEMBER';
102

Alexander.Trofimov's avatar
Alexander.Trofimov committed
103 104 105 106
	/**
	 * @constructor
	 * @extends {AscCommonExcel.cBaseFunction}
	 */
107 108 109 110 111
	function cCUBESET() {
		this.value = null;
		this.argumentsCurrent = 0;
	}

Alexander.Trofimov's avatar
Alexander.Trofimov committed
112
	cCUBESET.prototype = Object.create(cBaseFunction.prototype);
113
	cCUBESET.prototype.constructor = cCUBESET;
114
	cCUBESET.prototype.name = 'CUBESET';
115

Alexander.Trofimov's avatar
Alexander.Trofimov committed
116 117 118 119
	/**
	 * @constructor
	 * @extends {AscCommonExcel.cBaseFunction}
	 */
120 121 122 123 124
	function cCUBESETCOUNT() {
		this.value = null;
		this.argumentsCurrent = 0;
	}

Alexander.Trofimov's avatar
Alexander.Trofimov committed
125
	cCUBESETCOUNT.prototype = Object.create(cBaseFunction.prototype);
126
	cCUBESETCOUNT.prototype.constructor = cCUBESETCOUNT;
127
	cCUBESETCOUNT.prototype.name = 'CUBESETCOUNT';
128

Alexander.Trofimov's avatar
Alexander.Trofimov committed
129 130 131 132
	/**
	 * @constructor
	 * @extends {AscCommonExcel.cBaseFunction}
	 */
133 134 135 136 137
	function cCUBEVALUE() {
		this.value = null;
		this.argumentsCurrent = 0;
	}

Alexander.Trofimov's avatar
Alexander.Trofimov committed
138
	cCUBEVALUE.prototype = Object.create(cBaseFunction.prototype);
139
	cCUBEVALUE.prototype.constructor = cCUBEVALUE;
140
	cCUBEVALUE.prototype.name = 'CUBEVALUE';
141
})(window);