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

getRefMatrix

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@67699 954022d7-b5bf-4e40-9824-e11837661b57
parent 1758adcf
......@@ -682,10 +682,13 @@ cArea.prototype.getMatrix = function () {
};
cArea.prototype.getRefMatrix = function () {
var t = this, arr = [], r = this.getRange();
r._foreach( function ( cell, i, j, r1, c1 ) {
r._foreach2( function ( cell, i, j, r1, c1 ) {
if ( !arr[i - r1] )
arr[i - r1] = [];
arr[i - r1][j - c1] = new cRef( cell.getName(), t.ws );
if (cell)
arr[i - r1][j - c1] = new cRef( cell.getName(), t.ws );
else
arr[i - r1][j - c1] = new cRef( t.ws._getCell( i, j ).getName(), t.ws );
} );
return arr;
};
......
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