Commit 9a26f644 authored by Alexey.Musinov's avatar Alexey.Musinov

mobile-coautoring

parent 36d63e83
......@@ -4374,21 +4374,18 @@ function OfflineEditor () {
{
stream["WriteLong"](Asc.c_oAscTypeSelectElement.Paragraph);
asc_menu_WriteParagraphPr(SelectedObjects[i].Value, stream);
//console.log('c_oAscTypeSelectElement.Paragraph');
break;
}
case Asc.c_oAscTypeSelectElement.Image:
{
stream["WriteLong"](Asc.c_oAscTypeSelectElement.Image);
asc_menu_WriteImagePr(SelectedObjects[i].Value, stream);
//console.log('c_oAscTypeSelectElement.Image');
break;
}
case Asc.c_oAscTypeSelectElement.Hyperlink:
{
stream["WriteLong"](Asc.c_oAscTypeSelectElement.Hyperlink);
asc_menu_WriteHyperPr(SelectedObjects[i].Value, stream);
//console.log('c_oAscTypeSelectElement.Hyperlink');
break;
}
default:
......@@ -5381,15 +5378,13 @@ window["native"]["offline_mouse_down"] = function(x, y, pin, isViewerMode, isFor
var ct = ws.getCursorTypeFromXY(x, y, isViewerMode);
//console.log(JSON.stringify(ct));
ws.startCellMoveResizeRange = null;
var rangeChange = new window["Asc"].Range(resizeRange[0], resizeRange[1], resizeRange[2], resizeRange[3]);
var target = {
formulaRange: rangeChange,
row: ct.row, //isChartRange ? ct.row : targetRow,
col: ct.col, //isChartRange ? ct.col : targetCol,
row: ct.row,
col: ct.col,
target: ct.target,
targetArr: isChartRange ? -1 : 0,
cursor: "se-resize",
......@@ -7289,6 +7284,9 @@ window["native"]["offline_apply_event"] = function(type,params) {
case 'cursor' :
t._onCursor(dataObject);
break;
case 'meta' :
t._onMeta(dataObject);
break;
case 'getLock' :
t._onGetLock(dataObject);
break;
......@@ -7327,15 +7325,24 @@ window["native"]["offline_apply_event"] = function(type,params) {
case 'license':
t._onLicense(dataObject);
break;
case 'session' :
t._onSession(dataObject);
break;
}
break;
}
case 11010: // ASC_SOCKET_EVENT_TYPE_ON_DISCONNECT
{
}
case 11020: // ASC_SOCKET_EVENT_TYPE_TRY_RECONNECT
{
var t = _api.CoAuthoringApi._CoAuthoringApi;
t.onDisconnect("", false, false);
delete t.sockjs;
t._initSocksJs();
}
default:
......@@ -7479,7 +7486,6 @@ window["AscCommonExcel"].WorksheetView.prototype._drawCollaborativeElements = fu
};
window["Asc"]["spreadsheet_api"].prototype.openDocument = function(sData) {
//asc["editor"] = this;
var t = this;
......
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