Commit 99423bbf 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@68911 954022d7-b5bf-4e40-9824-e11837661b57
parent e66b64b8
...@@ -2845,6 +2845,7 @@ function OfflineEditor () { ...@@ -2845,6 +2845,7 @@ function OfflineEditor () {
this.cellPin = 0; this.cellPin = 0;
this.col0 = 0; this.col0 = 0;
this.row0 = 0; this.row0 = 0;
this.translate = null;
// main // main
...@@ -4293,6 +4294,21 @@ function OfflineEditor () { ...@@ -4293,6 +4294,21 @@ function OfflineEditor () {
} }
}; };
if (this.translate) {
var t = JSON.parse(this.translate);
if (t) {
var translateChart = new Asc.asc_CChartTranslate();
if (t['diagrammtitle']) translateChart.asc_setTitle(t['diagrammtitle']);
if (t['xaxis']) translateChart.asc_setXAxis(t['xaxis']);
if (t['yaxis']) translateChart.asc_setYAxis(t['yaxis']);
if (t['series']) translateChart.asc_setSeries(t['series']);
_api.asc_setChartTranslate(translateChart);
var translateArt = new Asc.asc_TextArtTranslate();
if (t['art'])translateArt.asc_setDefaultText(t['art']);
_api.asc_setTextArtTranslate(translateArt);
}
}
}; };
this.offline_afteInit = function () { this.offline_afteInit = function () {
window.AscAlwaysSaveAspectOnResizeTrack = true; window.AscAlwaysSaveAspectOnResizeTrack = true;
...@@ -5087,7 +5103,6 @@ function offline_calculate_range(x, y, w, h) { ...@@ -5087,7 +5103,6 @@ function offline_calculate_range(x, y, w, h) {
ws.cols[range.c2].left + ws.cols[range.c2].width, ws.cols[range.c2].left + ws.cols[range.c2].width,
ws.rows[range.r2].top + ws.rows[range.r1].height]; ws.rows[range.r2].top + ws.rows[range.r1].height];
} }
function offline_calculate_complete_range(x, y, w, h) { function offline_calculate_complete_range(x, y, w, h) {
var ws = _api.wb.getWorksheet(); var ws = _api.wb.getWorksheet();
...@@ -5119,6 +5134,10 @@ function offline_calculate_complete_range(x, y, w, h) { ...@@ -5119,6 +5134,10 @@ function offline_calculate_complete_range(x, y, w, h) {
ws.rows[range.r2].top + ws.rows[range.r1].height]; ws.rows[range.r2].top + ws.rows[range.r1].height];
} }
function offline_set_translate(translate) {
_s.translate = translate;
}
function offline_apply_event(type,params) { function offline_apply_event(type,params) {
var _stream = null; var _stream = null;
var _return = undefined; var _return = undefined;
...@@ -6062,9 +6081,6 @@ function offline_apply_event(type,params) { ...@@ -6062,9 +6081,6 @@ function offline_apply_event(type,params) {
var ws = _api.wb.getWorksheet(); var ws = _api.wb.getWorksheet();
ws.changeColumnWidth(toColumn, width, 0); ws.changeColumnWidth(toColumn, width, 0);
// _api.asc_setColumnWidth(params);
break; break;
} }
...@@ -6076,8 +6092,6 @@ function offline_apply_event(type,params) { ...@@ -6076,8 +6092,6 @@ function offline_apply_event(type,params) {
var ws = _api.wb.getWorksheet(); var ws = _api.wb.getWorksheet();
ws.changeRowHeight(toRow, height, 0); ws.changeRowHeight(toRow, height, 0);
// _api.asc_setRowHeight(params);
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