Commit a0a3c7d0 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

sync_TryUndoInFastCollaborative to events

_onEndPermissions to baseEditorsApi

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66454 954022d7-b5bf-4e40-9824-e11837661b57
parent 82c2519e
...@@ -158,6 +158,10 @@ baseEditorsApi.prototype.sync_StartAction = function() { ...@@ -158,6 +158,10 @@ baseEditorsApi.prototype.sync_StartAction = function() {
}; };
baseEditorsApi.prototype.sync_EndAction = function() { baseEditorsApi.prototype.sync_EndAction = function() {
}; };
baseEditorsApi.prototype.sync_TryUndoInFastCollaborative = function()
{
this.sendEvent("asc_OnTryUndoInFastCollaborative");
};
// Выставление интервала автосохранения (0 - означает, что автосохранения нет) // Выставление интервала автосохранения (0 - означает, что автосохранения нет)
baseEditorsApi.prototype.asc_setAutoSaveGap = function(autoSaveGap) { baseEditorsApi.prototype.asc_setAutoSaveGap = function(autoSaveGap) {
if (typeof autoSaveGap === "number") { if (typeof autoSaveGap === "number") {
...@@ -180,6 +184,11 @@ baseEditorsApi.prototype.asc_coAuthoringGetUsers = function() { ...@@ -180,6 +184,11 @@ baseEditorsApi.prototype.asc_coAuthoringGetUsers = function() {
baseEditorsApi.prototype.asc_getEditorPermissions = function() { baseEditorsApi.prototype.asc_getEditorPermissions = function() {
this._coAuthoringInit(); this._coAuthoringInit();
}; };
baseEditorsApi.prototype._onEndPermissions = function() {
if (this.isOnFirstConnectEnd) {
this.sendEvent('asc_onGetEditorPermissions', new window['Asc'].asc_CAscEditorPermissions());
}
};
// Images & Charts & TextArts // Images & Charts & TextArts
baseEditorsApi.prototype.asc_setChartTranslate = function(translate) { baseEditorsApi.prototype.asc_setChartTranslate = function(translate) {
this.chartTranslate = translate; this.chartTranslate = translate;
...@@ -228,11 +237,7 @@ baseEditorsApi.prototype.asc_showRevision = function(newObj) { ...@@ -228,11 +237,7 @@ baseEditorsApi.prototype.asc_showRevision = function(newObj) {
}; };
baseEditorsApi.prototype.asc_undoAllChanges = function() { baseEditorsApi.prototype.asc_undoAllChanges = function() {
}; };
// Offline mode
baseEditorsApi.prototype.asc_isOffline = function() { baseEditorsApi.prototype.asc_isOffline = function() {
return false; return false;
};
baseEditorsApi.prototype.sync_TryUndoInFastCollaborative = function()
{
this.sendEvent("asc_OnTryUndoInFastCollaborative");
}; };
\ No newline at end of file
...@@ -391,12 +391,6 @@ var editor; ...@@ -391,12 +391,6 @@ var editor;
g_oUndoRedoAutoFilters = new UndoRedoAutoFilters(wbModel); g_oUndoRedoAutoFilters = new UndoRedoAutoFilters(wbModel);
}; };
spreadsheet_api.prototype._onEndPermissions = function() {
if (this.isOnFirstConnectEnd) {
this.handlers.trigger('asc_onGetEditorPermissions', new asc.asc_CAscEditorPermissions());
}
};
spreadsheet_api.prototype.asc_DownloadAs = function(typeFile, bIsDownloadEvent) {//передаем число соответствующее своему формату. например c_oAscFileType.XLSX spreadsheet_api.prototype.asc_DownloadAs = function(typeFile, bIsDownloadEvent) {//передаем число соответствующее своему формату. например c_oAscFileType.XLSX
if (!this.canSave || this.isChartEditor || c_oAscAdvancedOptionsAction.None !== this.advancedOptionsAction) { if (!this.canSave || this.isChartEditor || c_oAscAdvancedOptionsAction.None !== this.advancedOptionsAction) {
return; return;
......
...@@ -623,11 +623,6 @@ asc_docs_api.prototype.sync_ChangeLastSelectedElement = function(type, obj) ...@@ -623,11 +623,6 @@ asc_docs_api.prototype.sync_ChangeLastSelectedElement = function(type, obj)
asc_docs_api.prototype.Init = function() { asc_docs_api.prototype.Init = function() {
this.WordControl.Init(); this.WordControl.Init();
}; };
asc_docs_api.prototype._onEndPermissions = function() {
if (this.isOnFirstConnectEnd) {
this.asc_fireCallback('asc_onGetEditorPermissions', new window['Asc'].asc_CAscEditorPermissions());
}
};
asc_docs_api.prototype.asc_setLocale = function(val) { asc_docs_api.prototype.asc_setLocale = function(val) {
}; };
asc_docs_api.prototype.LoadDocument = function() { asc_docs_api.prototype.LoadDocument = function() {
......
...@@ -540,11 +540,6 @@ asc_docs_api.prototype.Init = function() ...@@ -540,11 +540,6 @@ asc_docs_api.prototype.Init = function()
this.WordControl.Init(); this.WordControl.Init();
}; };
asc_docs_api.prototype._onEndPermissions = function() {
if (this.isOnFirstConnectEnd) {
this.asc_fireCallback('asc_onGetEditorPermissions', new window['Asc'].asc_CAscEditorPermissions());
}
};
asc_docs_api.prototype.asc_setLocale = function(val) asc_docs_api.prototype.asc_setLocale = function(val)
{ {
this.InterfaceLocale = val; this.InterfaceLocale = val;
......
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