Commit cf9a0cc2 authored by Alexander.Trofimov's avatar Alexander.Trofimov

add referenceType

parent 0253893e
......@@ -178,19 +178,19 @@
var strRef;
var strColumn = A1RefType ? g_oCellAddressUtils.colnumToColstrFromWsView(colNumber) : colNumber;
var strRow;
switch (refType) {
case 1:
switch (refType - 1) {
case AscCommonExcel.referenceType.A:
strRow = this._absolute(rowNumber, A1RefType);
strColumn = this._absolute(strColumn, A1RefType);
break;
case 2:
case AscCommonExcel.referenceType.ARRC:
strRow = this._absolute(rowNumber, A1RefType);
break;
case 3:
case AscCommonExcel.referenceType.RRAC:
strColumn = this._absolute(strColumn, A1RefType);
strRow = rowNumber;
break;
case 4:
case AscCommonExcel.referenceType.R:
strRow = rowNumber;
break;
}
......
......@@ -173,6 +173,13 @@
return undefined;
}
var referenceType = {
A: 0, // Absolute
ARRC: 1, // Absolute row; relative column
RRAC: 2, // Relative row; absolute column
R: 3 // Relative
};
function CRangeOffset(offsetCol, offsetRow) {
this.offsetCol = offsetCol;
this.offsetRow = offsetRow;
......@@ -1655,6 +1662,7 @@
window["Asc"].truncFracPart = truncFracPart;
window["Asc"].getEndValueRange = getEndValueRange;
window["AscCommonExcel"].referenceType = referenceType;
window["AscCommonExcel"].CRangeOffset = CRangeOffset;
window["Asc"].Range = Range;
window["AscCommonExcel"].Range3D = Range3D;
......
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