Commit 5d3484a9 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

asc_DownloadAs

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66831 954022d7-b5bf-4e40-9824-e11837661b57
parent c590a11f
......@@ -152,6 +152,11 @@ window["Asc"]['spreadsheet_api'].prototype.asc_Save = function (isNoUserSave)
window["DesktopOfflineAppDocumentStartSave"]();
}
};
window["Asc"]['spreadsheet_api'].asc_DownloadAs = function(typeFile, bIsDownloadEvent)
{
window["Asc"]["editor"].sync_StartAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.Save);
window["AscDesktopEditor"]["LocalFileSave"](true);
};
window["Asc"]['spreadsheet_api'].prototype.asc_isOffline = function()
{
......@@ -173,6 +178,7 @@ window["DesktopOfflineAppDocumentEndSave"] = function(isCancel)
window["Asc"]['spreadsheet_api'].prototype["asc_addImageDrawingObject"] = window["Asc"]['spreadsheet_api'].prototype.asc_addImageDrawingObject;
window["Asc"]['spreadsheet_api'].prototype["asc_showImageFileDialog"] = window["Asc"]['spreadsheet_api'].prototype.asc_showImageFileDialog;
window["Asc"]['spreadsheet_api'].prototype["asc_Save"] = window["Asc"]['spreadsheet_api'].prototype.asc_Save;
window["Asc"]['spreadsheet_api'].prototype["asc_DownloadAs"] = window["Asc"]['spreadsheet_api'].prototype.asc_DownloadAs;
window["Asc"]['spreadsheet_api'].prototype["asc_isOffline"] = window["Asc"]['spreadsheet_api'].prototype.asc_isOffline;
window["DesktopOfflineAppDocumentAddImageEnd"] = function(url)
......
......@@ -122,6 +122,11 @@ window["DesktopOfflineAppDocumentEndSave"] = function(isCancel)
if (isCancel !== true)
DesktopOfflineUpdateLocalName(editor);
};
asc_docs_api.prototype.asc_DownloadAs = function(typeFile, bIsDownloadEvent)
{
editor.sync_StartAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.Save);
window["AscDesktopEditor"]["LocalFileSave"](true);
};
asc_docs_api.prototype.AddImageUrl = function(url, imgProp)
{
......@@ -145,6 +150,7 @@ asc_docs_api.prototype["asc_addImage"] = asc_docs_api.prototype.asc_addImage;
asc_docs_api.prototype["AddImageUrl"] = asc_docs_api.prototype.AddImageUrl;
asc_docs_api.prototype["AddImage"] = asc_docs_api.prototype.AddImage;
asc_docs_api.prototype["asc_Save"] = asc_docs_api.prototype.asc_Save;
asc_docs_api.prototype["asc_DownloadAs"] = asc_docs_api.prototype.asc_DownloadAs;
asc_docs_api.prototype["asc_isOffline"] = asc_docs_api.prototype.asc_isOffline;
window["DesktopOfflineAppDocumentAddImageEnd"] = function(url)
......
......@@ -139,6 +139,11 @@ window["DesktopOfflineAppDocumentEndSave"] = function(isCancel)
if (isCancel !== true)
DesktopOfflineUpdateLocalName(editor);
};
asc_docs_api.prototype.asc_DownloadAs = function(typeFile, bIsDownloadEvent)
{
editor.sync_StartAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.Save);
window["AscDesktopEditor"]["LocalFileSave"](true);
};
asc_docs_api.prototype.AddImageUrl = function(url, imgProp)
{
......@@ -162,6 +167,7 @@ asc_docs_api.prototype["asc_addImage"] = asc_docs_api.prototype.asc_addImage;
asc_docs_api.prototype["AddImageUrl"] = asc_docs_api.prototype.AddImageUrl;
asc_docs_api.prototype["AddImage"] = asc_docs_api.prototype.AddImage;
asc_docs_api.prototype["asc_Save"] = asc_docs_api.prototype.asc_Save;
asc_docs_api.prototype["asc_DownloadAs"] = asc_docs_api.prototype.asc_DownloadAs;
asc_docs_api.prototype["asc_isOffline"] = asc_docs_api.prototype.asc_isOffline;
window["DesktopOfflineAppDocumentAddImageEnd"] = function(url)
......
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