Commit 42d785c8 authored by Alexander.Trofimov's avatar Alexander.Trofimov

delete unused setUserAlive

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66523 954022d7-b5bf-4e40-9824-e11837661b57
parent 7a04a0cb
...@@ -1438,10 +1438,6 @@ var editor; ...@@ -1438,10 +1438,6 @@ var editor;
this.collaborativeEditing.endCollaborationEditing(); this.collaborativeEditing.endCollaborationEditing();
}; };
// Update user alive
spreadsheet_api.prototype.setUserAlive = function() {
};
// End Load document // End Load document
spreadsheet_api.prototype._openDocumentEndCallback = function() { spreadsheet_api.prototype._openDocumentEndCallback = function() {
// Не инициализируем дважды // Не инициализируем дважды
......
...@@ -394,7 +394,6 @@ ...@@ -394,7 +394,6 @@
"updateUndoRedoChanged" : function (bCanUndo, bCanRedo) { "updateUndoRedoChanged" : function (bCanUndo, bCanRedo) {
self.handlers.trigger("asc_onCanUndoChanged", bCanUndo); self.handlers.trigger("asc_onCanUndoChanged", bCanUndo);
self.handlers.trigger("asc_onCanRedoChanged", bCanRedo); self.handlers.trigger("asc_onCanRedoChanged", bCanRedo);
self.Api.setUserAlive();
}, },
"applyCloseEvent" : function () {self.controller._onWindowKeyDown.apply(self.controller, arguments);}, "applyCloseEvent" : function () {self.controller._onWindowKeyDown.apply(self.controller, arguments);},
"isViewerMode" : function () {return self.controller.settings.isViewerMode;}, "isViewerMode" : function () {return self.controller.settings.isViewerMode;},
...@@ -476,11 +475,9 @@ ...@@ -476,11 +475,9 @@
}); });
this.model.handlers.add("setCanUndo", function (bCanUndo) { this.model.handlers.add("setCanUndo", function (bCanUndo) {
self.handlers.trigger("asc_onCanUndoChanged", bCanUndo); self.handlers.trigger("asc_onCanUndoChanged", bCanUndo);
self.Api.setUserAlive();
}); });
this.model.handlers.add("setCanRedo", function (bCanRedo) { this.model.handlers.add("setCanRedo", function (bCanRedo) {
self.handlers.trigger("asc_onCanRedoChanged", bCanRedo); self.handlers.trigger("asc_onCanRedoChanged", bCanRedo);
self.Api.setUserAlive();
}); });
this.model.handlers.add("setDocumentModified", function (bIsModified) { this.model.handlers.add("setDocumentModified", function (bIsModified) {
self.Api.onUpdateDocumentModified(bIsModified); self.Api.onUpdateDocumentModified(bIsModified);
......
...@@ -417,10 +417,6 @@ asc_docs_api.prototype._onUpdateDocumentCanSave = function () { ...@@ -417,10 +417,6 @@ asc_docs_api.prototype._onUpdateDocumentCanSave = function () {
} }
}; };
// Update user alive
asc_docs_api.prototype.setUserAlive = function () {
};
/////////////////////////////////////////// ///////////////////////////////////////////
asc_docs_api.prototype.SetUnchangedDocument = function() asc_docs_api.prototype.SetUnchangedDocument = function()
{ {
......
...@@ -11,7 +11,6 @@ asc_docs_api.prototype['SetCollaborativeMarksShowType'] = asc_docs_api.prototype ...@@ -11,7 +11,6 @@ asc_docs_api.prototype['SetCollaborativeMarksShowType'] = asc_docs_api.prototype
asc_docs_api.prototype['GetCollaborativeMarksShowType'] = asc_docs_api.prototype.GetCollaborativeMarksShowType; asc_docs_api.prototype['GetCollaborativeMarksShowType'] = asc_docs_api.prototype.GetCollaborativeMarksShowType;
asc_docs_api.prototype['Clear_CollaborativeMarks'] = asc_docs_api.prototype.Clear_CollaborativeMarks; asc_docs_api.prototype['Clear_CollaborativeMarks'] = asc_docs_api.prototype.Clear_CollaborativeMarks;
asc_docs_api.prototype['_onUpdateDocumentCanSave'] = asc_docs_api.prototype._onUpdateDocumentCanSave; asc_docs_api.prototype['_onUpdateDocumentCanSave'] = asc_docs_api.prototype._onUpdateDocumentCanSave;
asc_docs_api.prototype['setUserAlive'] = asc_docs_api.prototype.setUserAlive;
asc_docs_api.prototype['SetUnchangedDocument'] = asc_docs_api.prototype.SetUnchangedDocument; asc_docs_api.prototype['SetUnchangedDocument'] = asc_docs_api.prototype.SetUnchangedDocument;
asc_docs_api.prototype['SetDocumentModified'] = asc_docs_api.prototype.SetDocumentModified; asc_docs_api.prototype['SetDocumentModified'] = asc_docs_api.prototype.SetDocumentModified;
asc_docs_api.prototype['isDocumentModified'] = asc_docs_api.prototype.isDocumentModified; asc_docs_api.prototype['isDocumentModified'] = asc_docs_api.prototype.isDocumentModified;
......
...@@ -194,9 +194,6 @@ CHistory.prototype = ...@@ -194,9 +194,6 @@ CHistory.prototype =
return null; return null;
} }
if (this.Api)
this.Api.setUserAlive();
// Запоминаем самое последнее состояние документа для Redo // Запоминаем самое последнее состояние документа для Redo
if ( this.Index === this.Points.length - 1 ) if ( this.Index === this.Points.length - 1 )
this.LastState = this.Document.Get_SelectionState(); this.LastState = this.Document.Get_SelectionState();
...@@ -246,9 +243,6 @@ CHistory.prototype = ...@@ -246,9 +243,6 @@ CHistory.prototype =
if ( true != this.Can_Redo() ) if ( true != this.Can_Redo() )
return null; return null;
if (this.Api)
this.Api.setUserAlive();
this.Document.Selection_Remove(); this.Document.Selection_Remove();
var Point = this.Points[++this.Index]; var Point = this.Points[++this.Index];
...@@ -345,9 +339,6 @@ CHistory.prototype = ...@@ -345,9 +339,6 @@ CHistory.prototype =
if (0 !== this.TurnOffHistory || this.Index < 0) if (0 !== this.TurnOffHistory || this.Index < 0)
return; return;
if (this.Api)
this.Api.setUserAlive();
// Заглушка на случай, если у нас во время создания одной точки в истории, после нескольких изменений идет // Заглушка на случай, если у нас во время создания одной точки в истории, после нескольких изменений идет
// пересчет, потом снова добавляются изменения и снова запускается пересчет и т.д. // пересчет, потом снова добавляются изменения и снова запускается пересчет и т.д.
if ( this.RecIndex >= this.Index ) if ( this.RecIndex >= this.Index )
......
...@@ -1102,10 +1102,6 @@ asc_docs_api.prototype._onUpdateDocumentCanSave = function () { ...@@ -1102,10 +1102,6 @@ asc_docs_api.prototype._onUpdateDocumentCanSave = function () {
} }
}; };
// Update user alive
asc_docs_api.prototype.setUserAlive = function () {
};
// get functions // get functions
// Возвращает // Возвращает
//{ //{
......
...@@ -134,7 +134,6 @@ asc_docs_api.prototype['asc_coAuthoringDisconnect'] = asc_docs_api.prototype.asc ...@@ -134,7 +134,6 @@ asc_docs_api.prototype['asc_coAuthoringDisconnect'] = asc_docs_api.prototype.asc
asc_docs_api.prototype['asc_getSpellCheckLanguages'] = asc_docs_api.prototype.asc_getSpellCheckLanguages; asc_docs_api.prototype['asc_getSpellCheckLanguages'] = asc_docs_api.prototype.asc_getSpellCheckLanguages;
asc_docs_api.prototype['asc_SpellCheckDisconnect'] = asc_docs_api.prototype.asc_SpellCheckDisconnect; asc_docs_api.prototype['asc_SpellCheckDisconnect'] = asc_docs_api.prototype.asc_SpellCheckDisconnect;
asc_docs_api.prototype['_onUpdateDocumentCanSave'] = asc_docs_api.prototype._onUpdateDocumentCanSave; asc_docs_api.prototype['_onUpdateDocumentCanSave'] = asc_docs_api.prototype._onUpdateDocumentCanSave;
asc_docs_api.prototype['setUserAlive'] = asc_docs_api.prototype.setUserAlive;
asc_docs_api.prototype['put_FramePr'] = asc_docs_api.prototype.put_FramePr; asc_docs_api.prototype['put_FramePr'] = asc_docs_api.prototype.put_FramePr;
asc_docs_api.prototype['asyncFontEndLoaded_MathDraw'] = asc_docs_api.prototype.asyncFontEndLoaded_MathDraw; asc_docs_api.prototype['asyncFontEndLoaded_MathDraw'] = asc_docs_api.prototype.asyncFontEndLoaded_MathDraw;
asc_docs_api.prototype['sendMathTypesToMenu'] = asc_docs_api.prototype.sendMathTypesToMenu; asc_docs_api.prototype['sendMathTypesToMenu'] = asc_docs_api.prototype.sendMathTypesToMenu;
......
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