Commit 8b4ac6c1 authored by Alexey.Musinov's avatar Alexey.Musinov Committed by Alexander.Trofimov

[ios] tables

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@63657 954022d7-b5bf-4e40-9824-e11837661b57
parent 8dc6b229
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -180,7 +180,29 @@ WorksheetView.prototype._drawGrid_Local = function (drawingCtx, c1, r1, c2, r2, ...@@ -180,7 +180,29 @@ WorksheetView.prototype._drawGrid_Local = function (drawingCtx, c1, r1, c2, r2,
}; };
WorksheetView.prototype._drawCellsAndBorders_Local = function (drawingCtx, c1, r1, c2, r2, offsetXForDraw, offsetYForDraw) { WorksheetView.prototype._drawCellsAndBorders_Local = function (drawingCtx, c1, r1, c2, r2, offsetXForDraw, offsetYForDraw) {
this._drawCellsAndBorders(drawingCtx, new asc_Range(c1, r1, c2, r2), offsetXForDraw, offsetYForDraw); var range = new asc_Range(c1, r1, c2, r2);
this._drawCellsAndBorders(drawingCtx, range, offsetXForDraw, offsetYForDraw);
var oldrange = this.visibleRange;
this.visibleRange = range;
var cellsLeft_Local = this.cellsLeft;
var cellsTop_Local = this.cellsTop;
this.cellsLeft = -(offsetXForDraw - this.cols[c1].left);
this.cellsTop = -(offsetYForDraw - this.rows[r1].top);
// TODO: frozen places implementation native only
if (this.drawingArea.frozenPlaces.length) {
this.drawingArea.frozenPlaces[0].range = range;
}
this.objectRender.showDrawingObjectsEx(false);
this.cellsLeft = cellsLeft_Local;
this.cellsTop = cellsTop_Local;
this.visibleRange = oldrange;
}; };
WorksheetView.prototype._getDrawSelection_Local = function (c1, r1, c2, r2, isFrozen) { WorksheetView.prototype._getDrawSelection_Local = function (c1, r1, c2, r2, isFrozen) {
......
...@@ -259,7 +259,7 @@ document.createElement = function(type) ...@@ -259,7 +259,7 @@ document.createElement = function(type)
} }
return _null_object; return _null_object;
} };
function _return_empty_html_element() { return _null_object; }; function _return_empty_html_element() { return _null_object; };
...@@ -1450,12 +1450,6 @@ function OfflineEditor () { ...@@ -1450,12 +1450,6 @@ function OfflineEditor () {
// prop // prop
this.getMaxSizeX = function () {
return this.contentX;
};
this.getMaxSizeY = function () {
return this.contextY;
};
this.getMaxBounds = function () { this.getMaxBounds = function () {
var worksheet = _api.wb.getWorksheet(); var worksheet = _api.wb.getWorksheet();
var left = worksheet.cols[worksheet.cols.length - 1].left; var left = worksheet.cols[worksheet.cols.length - 1].left;
...@@ -1475,6 +1469,9 @@ function OfflineEditor () { ...@@ -1475,6 +1469,9 @@ function OfflineEditor () {
return _api.wb.getWorksheet()._getDrawSelection_Local(region.columnBeg, region.rowBeg, region.columnEnd, region.rowEnd); return _api.wb.getWorksheet()._getDrawSelection_Local(region.columnBeg, region.rowBeg, region.columnEnd, region.rowEnd);
}; };
// serialize
this.asc_WriteAllWorksheets = function (callEvent) { this.asc_WriteAllWorksheets = function (callEvent) {
var _stream = global_memory_stream_menu; var _stream = global_memory_stream_menu;
...@@ -1507,7 +1504,6 @@ function OfflineEditor () { ...@@ -1507,7 +1504,6 @@ function OfflineEditor () {
window["native"]["OnCallMenuEvent"](2130, global_memory_stream_menu); // ASC_SPREADSHEETS_EVENT_TYPE_WORKSHEETS window["native"]["OnCallMenuEvent"](2130, global_memory_stream_menu); // ASC_SPREADSHEETS_EVENT_TYPE_WORKSHEETS
} }
}; };
this.asc_writeWorksheet = function(i) { this.asc_writeWorksheet = function(i) {
var _stream = global_memory_stream_menu; var _stream = global_memory_stream_menu;
_stream["ClearNoAttack"](); _stream["ClearNoAttack"]();
...@@ -1670,13 +1666,6 @@ function OfflineEditor () { ...@@ -1670,13 +1666,6 @@ function OfflineEditor () {
rowOff: rowOff rowOff: rowOff
}; };
}; };
this._updateContentSize = function (isColumnRecalc, isRowRecalc) {
// сделать пересчет по надобности
//var gc_nMaxRow = 1048576;
//var gc_nMaxCol = 16384;
};
this.offline_showWorksheet = function(index) { this.offline_showWorksheet = function(index) {
...@@ -1716,8 +1705,6 @@ var _s = new OfflineEditor(); ...@@ -1716,8 +1705,6 @@ var _s = new OfflineEditor();
//-------------------------------------------------------------------------------- //--------------------------------------------------------------------------------
function offline_of() {_s.openFile();} function offline_of() {_s.openFile();}
function offline_sx() {_s.getMaxSizeX();}
function offline_sy() {_s.getMaxSizeY();}
function offline_stz(v) {_s.zoom = v; _api.asc_setZoom(v);} 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);}
...@@ -1750,11 +1737,13 @@ function offline_apply_event(type,params) { ...@@ -1750,11 +1737,13 @@ function offline_apply_event(type,params) {
case 3: // ASC_MENU_EVENT_TYPE_UNDO case 3: // ASC_MENU_EVENT_TYPE_UNDO
{ {
_api.asc_Undo(); _api.asc_Undo();
_s.asc_WriteAllWorksheets(true);
break; break;
} }
case 4: // ASC_MENU_EVENT_TYPE_REDO case 4: // ASC_MENU_EVENT_TYPE_REDO
{ {
_api.asc_Redo(); _api.asc_Redo();
_s.asc_WriteAllWorksheets(true);
break; break;
} }
...@@ -1964,17 +1953,20 @@ function offline_apply_event(type,params) { ...@@ -1964,17 +1953,20 @@ function offline_apply_event(type,params) {
{ {
var name = (params[_current.pos++]); var name = (params[_current.pos++]);
_api.asc_renameWorksheet(name); _api.asc_renameWorksheet(name);
_s.asc_WriteAllWorksheets(true);
break; break;
} }
case 2: // color case 2: // color
{ {
var tabColor = asc_menu_ReadColor(params, _current); var tabColor = asc_menu_ReadColor(params, _current);
_api.asc_setWorksheetTabColor(tabColor); _api.asc_setWorksheetTabColor(tabColor);
_s.asc_WriteAllWorksheets(true);
break; break;
} }
case 4: // hidden case 4: // hidden
{ {
_api.asc_hideWorksheet(); _api.asc_hideWorksheet();
_s.asc_WriteAllWorksheets(true);
break; break;
} }
......
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