Commit ebf31763 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@63310 954022d7-b5bf-4e40-9824-e11837661b57
parent facb5fc7
...@@ -6480,24 +6480,23 @@ ...@@ -6480,24 +6480,23 @@
var c1 = mc ? mc.c1 : ar.startCol, var c1 = mc ? mc.c1 : ar.startCol,
r1 = mc ? mc.r1 : ar.startRow, r1 = mc ? mc.r1 : ar.startRow,
ar_norm = ar.normalize(), ar_norm = ar.normalize(),
mc_norm = mc ? mc.normalize() : null; mc_norm = mc ? mc.normalize() : null,
c2 = mc_norm ? mc_norm.isEqual(ar_norm)? mc_norm.c1 : ar_norm.c2 : ar_norm.c2,
var c2 = mc_norm ? mc_norm.isEqual(ar_norm)? mc_norm.c1 : ar_norm.c2 : ar_norm.c2, r2 = mc_norm ? mc_norm.isEqual(ar_norm)? mc_norm.r1 : ar_norm.r2 : ar_norm.r2,
r2 = mc_norm ? mc_norm.isEqual(ar_norm)? mc_norm.r1 : ar_norm.r2 : ar_norm.r2; selectionSize = !bRangeText ? "" : (function (r) {
var rc = Math.abs(r.r2 - r.r1) + 1;
var selectionSize = !bRangeText ? "" : (function (r) { var cc = Math.abs(r.c2 - r.c1) + 1;
var rc = Math.abs(r.r2 - r.r1) + 1; switch (r.type) {
var cc = Math.abs(r.c2 - r.c1) + 1; case c_oAscSelectionType.RangeCells: return rc + "R x " + cc + "C";
switch (r.type) { case c_oAscSelectionType.RangeCol: return cc + "C";
case c_oAscSelectionType.RangeCells: return rc + "R x " + cc + "C"; case c_oAscSelectionType.RangeRow: return rc + "R";
case c_oAscSelectionType.RangeCol: return cc + "C"; case c_oAscSelectionType.RangeMax: return gc_nMaxRow + "R x " + gc_nMaxCol + "C";
case c_oAscSelectionType.RangeRow: return rc + "R"; }
case c_oAscSelectionType.RangeMax: return gc_nMaxRow + "R x " + gc_nMaxCol + "C"; return "";
} })(ar ),
return ""; cellName = this._getColumnTitle( c1 ) + this._getRowTitle( r1 ),
})(ar); defName = null,
dN = new Asc.Range(ar_norm.c1, ar_norm.r1, c2 ,r2, true ).normalize();
var cellName = this._getColumnTitle( c1 ) + this._getRowTitle( r1 ), defName = null, dN = new Asc.Range(c1, r1, c2 ,r2, true);
/*if( c1==c2 && r1==r2 ){ /*if( c1==c2 && r1==r2 ){
defName = this.model.getName() + "!" + dN.getAbsName(); defName = this.model.getName() + "!" + dN.getAbsName();
......
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