Commit 10fcf8ce authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

documentName for desktop chromium

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@62207 954022d7-b5bf-4e40-9824-e11837661b57
parent 9e7e064d
...@@ -466,6 +466,11 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -466,6 +466,11 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
this.User.asc_setId(this.DocInfo["UserId"]); this.User.asc_setId(this.DocInfo["UserId"]);
this.User.asc_setUserName(this.DocInfo["UserName"]); this.User.asc_setUserName(this.DocInfo["UserName"]);
} }
if (undefined != window["AscDesktopEditor"])
{
window["AscDesktopEditor"]["SetDocumentName"](this.documentTitle);
}
var sProtocol = window.location.protocol; var sProtocol = window.location.protocol;
var sHost = window.location.host; var sHost = window.location.host;
...@@ -600,6 +605,22 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -600,6 +605,22 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
}; };
spreadsheet_api.prototype.asc_Copy = function(){ spreadsheet_api.prototype.asc_Copy = function(){
if (window["AscDesktopEditor"])
{
window["AscDesktopEditorButtonMode"] = true;
var _e = {};
_e.ctrlKey = true;
_e.shiftKey = false;
_e.which = 86;
this.controller._onWindowKeyDown(_e);
window["AscDesktopEditorButtonMode"] = false;
return;
}
var result = this.wb.copyToClipboardButton(); var result = this.wb.copyToClipboardButton();
this.wb.restoreFocus(); this.wb.restoreFocus();
return result; return result;
......
...@@ -824,6 +824,11 @@ asc_docs_api.prototype.LoadDocument = function(c_DocInfo) ...@@ -824,6 +824,11 @@ asc_docs_api.prototype.LoadDocument = function(c_DocInfo)
} }
this.DocumentName = documentTitle; this.DocumentName = documentTitle;
if (undefined != window["AscDesktopEditor"])
{
window["AscDesktopEditor"]["SetDocumentName"](this.DocumentName);
}
var oThis = this; var oThis = this;
if (this.DocInfo.get_OfflineApp() === true) if (this.DocInfo.get_OfflineApp() === true)
......
...@@ -799,6 +799,11 @@ asc_docs_api.prototype.LoadDocument = function(c_DocInfo) ...@@ -799,6 +799,11 @@ asc_docs_api.prototype.LoadDocument = function(c_DocInfo)
} }
this.DocumentName = documentTitle; this.DocumentName = documentTitle;
if (undefined != window["AscDesktopEditor"])
{
window["AscDesktopEditor"]["SetDocumentName"](this.DocumentName);
}
var oThis = this; var oThis = this;
if (this.DocInfo.get_OfflineApp() === true) if (this.DocInfo.get_OfflineApp() === true)
......
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