Commit 8cb90b3c authored by Alexander.Trofimov's avatar Alexander.Trofimov

refactoring

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53086 954022d7-b5bf-4e40-9824-e11837661b57
parent 941f2d7b
...@@ -5216,6 +5216,7 @@ ...@@ -5216,6 +5216,7 @@
} }
} }
var oResDefault = {cursor: kCurDefault, target: "none", col: -1, row: -1};
// Эпсилон для fillHandle // Эпсилон для fillHandle
var fillHandleEpsilon = this.width_1px; var fillHandleEpsilon = this.width_1px;
if (!isViewerMode && !this.isChartAreaEditMode && if (!isViewerMode && !this.isChartAreaEditMode &&
...@@ -5255,7 +5256,8 @@ ...@@ -5255,7 +5256,8 @@
if (x > this.cellsLeft && y > this.cellsTop) { if (x > this.cellsLeft && y > this.cellsTop) {
c = this._findColUnderCursor(x, true); c = this._findColUnderCursor(x, true);
r = this._findRowUnderCursor(y, true); r = this._findRowUnderCursor(y, true);
if (c === null || r === null) {break;} if (c === null || r === null)
return oResDefault;
// Проверка на совместное редактирование // Проверка на совместное редактирование
var lockRange = undefined; var lockRange = undefined;
...@@ -5359,7 +5361,8 @@ ...@@ -5359,7 +5361,8 @@
if (x <= this.cellsLeft && y >= this.cellsTop) { if (x <= this.cellsLeft && y >= this.cellsTop) {
r = this._findRowUnderCursor(y, true); r = this._findRowUnderCursor(y, true);
if (r === null) {break;} if (r === null)
return oResDefault;
f = !isViewerMode && (r.row !== this.visibleRange.r1 && y < r.top + 3 || y >= r.bottom - 3); f = !isViewerMode && (r.row !== this.visibleRange.r1 && y < r.top + 3 || y >= r.bottom - 3);
// ToDo В Excel зависимость epsilon от размера ячейки (у нас фиксированный 3) // ToDo В Excel зависимость epsilon от размера ячейки (у нас фиксированный 3)
return { return {
...@@ -5373,7 +5376,8 @@ ...@@ -5373,7 +5376,8 @@
if (y <= this.cellsTop && x >= this.cellsLeft) { if (y <= this.cellsTop && x >= this.cellsLeft) {
c = this._findColUnderCursor(x, true); c = this._findColUnderCursor(x, true);
if (c === null) {break;} if (c === null)
return oResDefault;
f = !isViewerMode && (c.col !== this.visibleRange.c1 && x < c.left + 3 || x >= c.right - 3); f = !isViewerMode && (c.col !== this.visibleRange.c1 && x < c.left + 3 || x >= c.right - 3);
// ToDo В Excel зависимость epsilon от размера ячейки (у нас фиксированный 3) // ToDo В Excel зависимость epsilon от размера ячейки (у нас фиксированный 3)
return { return {
...@@ -5385,7 +5389,7 @@ ...@@ -5385,7 +5389,7 @@
}; };
} }
return {cursor: kCurDefault, target: "none", col: -1, row: -1}; return oResDefault;
}, },
_fixSelectionOfMergedCells: function (fixedRange) { _fixSelectionOfMergedCells: function (fixedRange) {
......
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