Commit 840cfe4c authored by Alexey.Musinov's avatar Alexey.Musinov Committed by Alexander.Trofimov

[ios] update

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68829 954022d7-b5bf-4e40-9824-e11837661b57
parent 806407a4
...@@ -4306,7 +4306,7 @@ function offline_stz(v) {_s.zoom = v; _api.asc_setZoom(v);} ...@@ -4306,7 +4306,7 @@ function offline_stz(v) {_s.zoom = v; _api.asc_setZoom(v);}
function offline_ds(x, y, width, height, ratio) {_s.drawSheet(x, y, width, height, ratio);} function offline_ds(x, y, width, height, ratio) {_s.drawSheet(x, y, width, height, ratio);}
function offline_dh(x, y, width, height, type, ratio) {_s.drawHeader(x, y, width, height, type, ratio);} function offline_dh(x, y, width, height, type, ratio) {_s.drawHeader(x, y, width, height, type, ratio);}
function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeResize, chartRange) { function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeResize, isChartRange, indexRange, resizeRange, targetCol, targetRow) {
_s.isShapeAction = false; _s.isShapeAction = false;
var ws = _api.wb.getWorksheet(); var ws = _api.wb.getWorksheet();
...@@ -4351,17 +4351,21 @@ function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeR ...@@ -4351,17 +4351,21 @@ function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeR
var ct = ws.getCursorTypeFromXY(x, y, isViewerMode); var ct = ws.getCursorTypeFromXY(x, y, isViewerMode);
var rangeChange = new asc.Range(chartRange[0], chartRange[1], chartRange[2], chartRange[3]); //console.log(JSON.stringify(ct));
ws.startCellMoveResizeRange = null;
var rangeChange = new asc.Range(resizeRange[0], resizeRange[1], resizeRange[2], resizeRange[3]);
var target = { var target = {
formulaRange: rangeChange, formulaRange: rangeChange,
row: ct.row, row: ct.row, //isChartRange ? ct.row : targetRow,
col: ct.col, //isChartRange ? ct.col : targetCol,
target: ct.target, target: ct.target,
targetArr: -1, targetArr: isChartRange ? -1 : 0,
col: ct.col,
cursor: "se-resize", cursor: "se-resize",
indexFormulaRange: 0 indexFormulaRange: indexRange
}; };
ws.changeSelectionMoveResizeRangeHandle(x, y, target); ws.changeSelectionMoveResizeRangeHandle(x, y, target, wb.cellEditor);
} }
} else { } else {
...@@ -4395,7 +4399,7 @@ function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeR ...@@ -4395,7 +4399,7 @@ function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeR
return null; return null;
} }
function offline_mouse_move(x, y, isViewerMode, isRangeResize, chartRange) { function offline_mouse_move(x, y, isViewerMode, isRangeResize, isChartRange, indexRange, resizeRange, targetCol, targetRow) {
var ws = _api.wb.getWorksheet(); var ws = _api.wb.getWorksheet();
var wb = _api.wb; var wb = _api.wb;
...@@ -4408,17 +4412,17 @@ function offline_mouse_move(x, y, isViewerMode, isRangeResize, chartRange) { ...@@ -4408,17 +4412,17 @@ function offline_mouse_move(x, y, isViewerMode, isRangeResize, chartRange) {
if (!isViewerMode) { if (!isViewerMode) {
var ct = ws.getCursorTypeFromXY(x, y, isViewerMode); var ct = ws.getCursorTypeFromXY(x, y, isViewerMode);
var rangeChange = new asc.Range(chartRange[0], chartRange[1], chartRange[2], chartRange[3]); var rangeChange = new asc.Range(resizeRange[0], resizeRange[1], resizeRange[2], resizeRange[3]);
var target = { var target = {
formulaRange: rangeChange, //formulaRange: rangeChange,
row: ct.row, row: isChartRange ? ct.row : targetRow,
col: isChartRange ? ct.col : targetCol,
target: ct.target, target: ct.target,
targetArr: -1, targetArr: isChartRange ? -1 : 0,
col: ct.col,
cursor: "se-resize", cursor: "se-resize",
indexFormulaRange: 0 indexFormulaRange: indexRange
}; };
ws.changeSelectionMoveResizeRangeHandle(x, y, target); ws.changeSelectionMoveResizeRangeHandle(x, y, target, wb.cellEditor);
} }
} else { } else {
...@@ -4459,7 +4463,7 @@ function offline_mouse_move(x, y, isViewerMode, isRangeResize, chartRange) { ...@@ -4459,7 +4463,7 @@ function offline_mouse_move(x, y, isViewerMode, isRangeResize, chartRange) {
return null; return null;
} }
function offline_mouse_up(x, y, isViewerMode, isRangeResize, chartRange) { function offline_mouse_up(x, y, isViewerMode, isRangeResize, isChartRange, indexRange, resizeRange, targetCol, targetRow) {
var ret = null; var ret = null;
var ws = _api.wb.getWorksheet(); var ws = _api.wb.getWorksheet();
var wb = _api.wb; var wb = _api.wb;
...@@ -4481,13 +4485,14 @@ function offline_mouse_up(x, y, isViewerMode, isRangeResize, chartRange) { ...@@ -4481,13 +4485,14 @@ function offline_mouse_up(x, y, isViewerMode, isRangeResize, chartRange) {
if (isRangeResize) { if (isRangeResize) {
if (!isViewerMode) { if (!isViewerMode) {
var ct = ws.getCursorTypeFromXY(x, y, isViewerMode); // var ct = ws.getCursorTypeFromXY(x, y, isViewerMode);
var target = { var target = {
//row: isChartRange ? ct.row : targetRow,
//col: isChartRange ? ct.col : targetCol,
target: 5, target: 5,
targetArr: -1, targetArr: isChartRange ? -1 : 0,
cursor: "se-resize", cursor: "se-resize",
indexFormulaRange: 0 indexFormulaRange: indexRange
}; };
if (ws.moveRangeDrawingObjectTo) { if (ws.moveRangeDrawingObjectTo) {
......
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