Commit 6ce4f686 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66423 954022d7-b5bf-4e40-9824-e11837661b57
parent 02ec1396
"use strict"; "use strict";
function CheckLicense(licenseUrl, customerId, userId, userFirstName, userLastName, callback)
{
callback(true, g_oLicenseResult.Success);
}
///////////////////////////////////////////////////////// /////////////////////////////////////////////////////////
////////////// FONTS //////////////////////// ////////////// FONTS ////////////////////////
///////////////////////////////////////////////////////// /////////////////////////////////////////////////////////
...@@ -142,6 +147,11 @@ window["CDocsCoApi"].prototype.askSaveChanges = function(callback) ...@@ -142,6 +147,11 @@ window["CDocsCoApi"].prototype.askSaveChanges = function(callback)
{ {
callback({"saveLock": false}); callback({"saveLock": false});
}; };
window["CDocsCoApi"].prototype.saveChanges = function(arrayChanges, deleteIndex, excelAdditionalInfo)
{
window["AscDesktopEditor"]["LocalFileSaveChanges"](arrayChanges.join("\",\""), deleteIndex, arrayChanges.length);
this.onUnSaveLock();
};
window["NativeCorrectImageUrlOnCopy"] = function(url) window["NativeCorrectImageUrlOnCopy"] = function(url)
{ {
......
...@@ -8,9 +8,9 @@ asc_docs_api.prototype._OfflineAppDocumentStartLoad = function() ...@@ -8,9 +8,9 @@ asc_docs_api.prototype._OfflineAppDocumentStartLoad = function()
History.UserSaveMode = true; History.UserSaveMode = true;
window["AscDesktopEditor"]["LocalStartOpen"](); window["AscDesktopEditor"]["LocalStartOpen"]();
}; };
asc_docs_api.prototype._OfflineAppDocumentEndLoad = function(_data) asc_docs_api.prototype._OfflineAppDocumentEndLoad = function(_url, _data)
{ {
this.OpenDocument2(documentUrl, _data); this.OpenDocument2(_url, _data);
this.WordControl.m_oLogicDocument.Set_FastCollaborativeEditing(false); this.WordControl.m_oLogicDocument.Set_FastCollaborativeEditing(false);
this.DocumentOrientation = (null == this.WordControl.m_oLogicDocument) ? true : !this.WordControl.m_oLogicDocument.Orientation; this.DocumentOrientation = (null == this.WordControl.m_oLogicDocument) ? true : !this.WordControl.m_oLogicDocument.Orientation;
DesktopOfflineUpdateLocalName(this); DesktopOfflineUpdateLocalName(this);
...@@ -18,7 +18,7 @@ asc_docs_api.prototype._OfflineAppDocumentEndLoad = function(_data) ...@@ -18,7 +18,7 @@ asc_docs_api.prototype._OfflineAppDocumentEndLoad = function(_data)
window["DesktopOfflineAppDocumentEndLoad"] = function(_url, _data) window["DesktopOfflineAppDocumentEndLoad"] = function(_url, _data)
{ {
g_oDocumentUrls.documentUrl = _url; g_oDocumentUrls.documentUrl = _url;
editor._OfflineAppDocumentEndLoad(_data); editor._OfflineAppDocumentEndLoad(_url, _data);
}; };
///////////////////////////////////////////////////////// /////////////////////////////////////////////////////////
......
...@@ -8,15 +8,15 @@ asc_docs_api.prototype._OfflineAppDocumentStartLoad = function() ...@@ -8,15 +8,15 @@ asc_docs_api.prototype._OfflineAppDocumentStartLoad = function()
History.UserSaveMode = true; History.UserSaveMode = true;
window["AscDesktopEditor"]["LocalStartOpen"](); window["AscDesktopEditor"]["LocalStartOpen"]();
}; };
asc_docs_api.prototype._OfflineAppDocumentEndLoad = function(_data) asc_docs_api.prototype._OfflineAppDocumentEndLoad = function(_url, _data)
{ {
if (c_oSerFormat.Signature !== _data.substring(0, c_oSerFormat.Signature.length)) if (c_oSerFormat.Signature !== _data.substring(0, c_oSerFormat.Signature.length))
{ {
this.OpenDocument(documentUrl, _data); this.OpenDocument(_url, _data);
} }
else else
{ {
this.OpenDocument2(documentUrl, _data); this.OpenDocument2(_url, _data);
this.WordControl.m_oLogicDocument.Set_FastCollaborativeEditing(false); this.WordControl.m_oLogicDocument.Set_FastCollaborativeEditing(false);
} }
DesktopOfflineUpdateLocalName(this); DesktopOfflineUpdateLocalName(this);
...@@ -24,7 +24,7 @@ asc_docs_api.prototype._OfflineAppDocumentEndLoad = function(_data) ...@@ -24,7 +24,7 @@ asc_docs_api.prototype._OfflineAppDocumentEndLoad = function(_data)
window["DesktopOfflineAppDocumentEndLoad"] = function(_url, _data) window["DesktopOfflineAppDocumentEndLoad"] = function(_url, _data)
{ {
g_oDocumentUrls.documentUrl = _url; g_oDocumentUrls.documentUrl = _url;
editor._OfflineAppDocumentEndLoad(_data); editor._OfflineAppDocumentEndLoad(_url, _data);
}; };
///////////////////////////////////////////////////////// /////////////////////////////////////////////////////////
......
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