Commit 52ff45ea authored by Alexander.Trofimov's avatar Alexander.Trofimov

asc_docs_api -> 'asc_docs_api'

parent 765d5847
This diff is collapsed.
......@@ -6,7 +6,7 @@ var c_oAscError = Asc.c_oAscError;
/////////////////////////////////////////////////////////
////////////// OPEN ////////////////////////
/////////////////////////////////////////////////////////
Asc.asc_docs_api.prototype._OfflineAppDocumentStartLoad = function()
Asc['asc_docs_api'].prototype._OfflineAppDocumentStartLoad = function()
{
this.asc_registerCallback('asc_onDocumentContentReady', function(){
DesktopOfflineUpdateLocalName(editor);
......@@ -15,7 +15,7 @@ Asc.asc_docs_api.prototype._OfflineAppDocumentStartLoad = function()
AscCommon.History.UserSaveMode = true;
window["AscDesktopEditor"]["LocalStartOpen"]();
};
Asc.asc_docs_api.prototype._OfflineAppDocumentEndLoad = function(_url, _data)
Asc['asc_docs_api'].prototype._OfflineAppDocumentEndLoad = function(_url, _data)
{
AscCommon.g_oIdCounter.m_sUserId = window["AscDesktopEditor"]["CheckUserId"]();
if (_data == "")
......@@ -105,7 +105,7 @@ window["DesktopOfflineAppDocumentApplyChanges"] = function(_changes)
/////////////////////////////////////////////////////////
//////////////// SAVE //////////////////////
/////////////////////////////////////////////////////////
Asc.asc_docs_api.prototype.SetDocumentModified = function(bValue)
Asc['asc_docs_api'].prototype.SetDocumentModified = function(bValue)
{
this.isDocumentModify = bValue;
this.asc_fireCallback("asc_onDocumentModifiedChanged");
......@@ -116,7 +116,7 @@ Asc.asc_docs_api.prototype.SetDocumentModified = function(bValue)
}
};
Asc.asc_docs_api.prototype.asc_Save = function (isNoUserSave, isSaveAs)
Asc['asc_docs_api'].prototype.asc_Save = function (isNoUserSave, isSaveAs)
{
if (true !== isNoUserSave)
this.IsUserSave = true;
......@@ -169,42 +169,42 @@ window["DesktopOfflineAppDocumentEndSave"] = function(error)
if (2 == error)
editor.sendEvent("asc_onError", c_oAscError.ID.ConvertationError, c_oAscError.Level.Critical);
};
Asc.asc_docs_api.prototype.asc_DownloadAs = function(typeFile, bIsDownloadEvent)
Asc['asc_docs_api'].prototype.asc_DownloadAs = function(typeFile, bIsDownloadEvent)
{
this.asc_Save(false, true);
};
Asc.asc_docs_api.prototype.AddImageUrl = function(url, imgProp)
Asc['asc_docs_api'].prototype.AddImageUrl = function(url, imgProp)
{
var _url = window["AscDesktopEditor"]["LocalFileGetImageUrl"](url);
this.AddImageUrlAction(AscCommon.g_oDocumentUrls.getImageUrl(_url), imgProp);
};
Asc.asc_docs_api.prototype.AddImage = function()
Asc['asc_docs_api'].prototype.AddImage = function()
{
window["AscDesktopEditor"]["LocalFileGetImageUrlFromOpenFileDialog"]();
};
Asc.asc_docs_api.prototype.asc_addImage = function()
Asc['asc_docs_api'].prototype.asc_addImage = function()
{
window["AscDesktopEditor"]["LocalFileGetImageUrlFromOpenFileDialog"]();
};
Asc.asc_docs_api.prototype.asc_isOffline = function()
Asc['asc_docs_api'].prototype.asc_isOffline = function()
{
return true;
};
Asc.asc_docs_api.prototype.SetThemesPath = function(path)
Asc['asc_docs_api'].prototype.SetThemesPath = function(path)
{
this.ThemeLoader.ThemesUrl = path;
this.ThemeLoader.ThemesUrlAbs = path;
};
Asc.asc_docs_api.prototype["asc_addImage"] = Asc.asc_docs_api.prototype.asc_addImage;
Asc.asc_docs_api.prototype["AddImageUrl"] = Asc.asc_docs_api.prototype.AddImageUrl;
Asc.asc_docs_api.prototype["AddImage"] = Asc.asc_docs_api.prototype.AddImage;
Asc.asc_docs_api.prototype["asc_Save"] = Asc.asc_docs_api.prototype.asc_Save;
Asc.asc_docs_api.prototype["asc_DownloadAs"] = Asc.asc_docs_api.prototype.asc_DownloadAs;
Asc.asc_docs_api.prototype["asc_isOffline"] = Asc.asc_docs_api.prototype.asc_isOffline;
Asc.asc_docs_api.prototype["SetDocumentModified"] = Asc.asc_docs_api.prototype.SetDocumentModified;
Asc.asc_docs_api.prototype["SetThemesPath"] = Asc.asc_docs_api.prototype.SetThemesPath;
Asc['asc_docs_api'].prototype["asc_addImage"] = Asc['asc_docs_api'].prototype.asc_addImage;
Asc['asc_docs_api'].prototype["AddImageUrl"] = Asc['asc_docs_api'].prototype.AddImageUrl;
Asc['asc_docs_api'].prototype["AddImage"] = Asc['asc_docs_api'].prototype.AddImage;
Asc['asc_docs_api'].prototype["asc_Save"] = Asc['asc_docs_api'].prototype.asc_Save;
Asc['asc_docs_api'].prototype["asc_DownloadAs"] = Asc['asc_docs_api'].prototype.asc_DownloadAs;
Asc['asc_docs_api'].prototype["asc_isOffline"] = Asc['asc_docs_api'].prototype.asc_isOffline;
Asc['asc_docs_api'].prototype["SetDocumentModified"] = Asc['asc_docs_api'].prototype.SetDocumentModified;
Asc['asc_docs_api'].prototype["SetThemesPath"] = Asc['asc_docs_api'].prototype.SetThemesPath;
window["DesktopOfflineAppDocumentAddImageEnd"] = function(url)
{
......
......@@ -25,7 +25,7 @@ window["use_native_fonts_only"] = true;
window["ftm"] = FT_Memory;
Asc.asc_docs_api.prototype["Native_Editor_Initialize_Settings"] = function(_params)
Asc['asc_docs_api'].prototype["Native_Editor_Initialize_Settings"] = function(_params)
{
window["NativeSupportTimeouts"] = true;
......@@ -107,7 +107,7 @@ Asc.asc_docs_api.prototype["Native_Editor_Initialize_Settings"] = function(_para
Asc.asc_docs_api.prototype["CheckSlideBounds"] = function(nSlideIndex){
Asc['asc_docs_api'].prototype["CheckSlideBounds"] = function(nSlideIndex){
var oBoundsChecker = new AscFormat.CSlideBoundsChecker();
this.WordControl.m_oLogicDocument.Draw(nSlideIndex, oBoundsChecker);
var oBounds = oBoundsChecker.Bounds;
......@@ -116,7 +116,7 @@ Asc.asc_docs_api.prototype["CheckSlideBounds"] = function(nSlideIndex){
]
}
Asc.asc_docs_api.prototype["GetNativePageMeta"] = function(pageIndex)
Asc['asc_docs_api'].prototype["GetNativePageMeta"] = function(pageIndex)
{
this.WordControl.m_oDrawingDocument.RenderPage(pageIndex);
};
......
"use strict";
Asc.asc_docs_api.prototype.asc_addComment = function(AscCommentData) {
Asc['asc_docs_api'].prototype.asc_addComment = function(AscCommentData) {
//if ( true === CollaborativeEditing.Get_GlobalLock() )
// return;
......@@ -17,4 +17,4 @@ Asc.asc_docs_api.prototype.asc_addComment = function(AscCommentData) {
}
};
Asc.asc_docs_api.prototype['asc_addComment'] = asc_docs_api.prototype.asc_addComment;
\ No newline at end of file
Asc['asc_docs_api'].prototype['asc_addComment'] = Asc['asc_docs_api'].prototype.asc_addComment;
\ No newline at end of file
......@@ -6,7 +6,7 @@ var c_oAscError = Asc.c_oAscError;
/////////////////////////////////////////////////////////
////////////// OPEN ////////////////////////
/////////////////////////////////////////////////////////
Asc.asc_docs_api.prototype._OfflineAppDocumentStartLoad = function()
Asc['asc_docs_api'].prototype._OfflineAppDocumentStartLoad = function()
{
this.asc_registerCallback('asc_onDocumentContentReady', function(){
DesktopOfflineUpdateLocalName(editor);
......@@ -15,7 +15,7 @@ Asc.asc_docs_api.prototype._OfflineAppDocumentStartLoad = function()
AscCommon.History.UserSaveMode = true;
window["AscDesktopEditor"]["LocalStartOpen"]();
};
Asc.asc_docs_api.prototype._OfflineAppDocumentEndLoad = function(_url, _data)
Asc['asc_docs_api'].prototype._OfflineAppDocumentEndLoad = function(_url, _data)
{
AscCommon.g_oIdCounter.m_sUserId = window["AscDesktopEditor"]["CheckUserId"]();
if (_data == "")
......@@ -47,11 +47,11 @@ window["DesktopOfflineAppDocumentEndLoad"] = function(_url, _data)
editor._OfflineAppDocumentEndLoad(_url, _data);
};
Asc.asc_docs_api.prototype.asc_setAdvancedOptions = function(idOption, option)
Asc['asc_docs_api'].prototype.asc_setAdvancedOptions = function(idOption, option)
{
window["AscDesktopEditor"]["SetAdvancedOptions"]("" + option.asc_getCodePage());
};
Asc.asc_docs_api.prototype["asc_setAdvancedOptions"] = Asc.asc_docs_api.prototype.asc_setAdvancedOptions;
Asc['asc_docs_api'].prototype["asc_setAdvancedOptions"] = Asc['asc_docs_api'].prototype.asc_setAdvancedOptions;
window["asc_initAdvancedOptions"] = function()
{
......@@ -121,7 +121,7 @@ window["DesktopOfflineAppDocumentApplyChanges"] = function(_changes)
/////////////////////////////////////////////////////////
//////////////// SAVE //////////////////////
/////////////////////////////////////////////////////////
Asc.asc_docs_api.prototype.SetDocumentModified = function(bValue)
Asc['asc_docs_api'].prototype.SetDocumentModified = function(bValue)
{
this.isDocumentModify = bValue;
this.asc_fireCallback("asc_onDocumentModifiedChanged");
......@@ -132,7 +132,7 @@ Asc.asc_docs_api.prototype.SetDocumentModified = function(bValue)
}
};
Asc.asc_docs_api.prototype.asc_Save = function (isNoUserSave, isSaveAs)
Asc['asc_docs_api'].prototype.asc_Save = function (isNoUserSave, isSaveAs)
{
if (true !== isNoUserSave)
this.IsUserSave = true;
......@@ -192,38 +192,38 @@ window["DesktopOfflineAppDocumentEndSave"] = function(error)
if (2 == error)
editor.sendEvent("asc_onError", c_oAscError.ID.ConvertationError, c_oAscError.Level.NoCritical);
};
Asc.asc_docs_api.prototype.asc_DownloadAs = function(typeFile, bIsDownloadEvent)
Asc['asc_docs_api'].prototype.asc_DownloadAs = function(typeFile, bIsDownloadEvent)
{
this.asc_Save(false, true);
};
Asc.asc_docs_api.prototype.AddImageUrl = function(url, imgProp)
Asc['asc_docs_api'].prototype.AddImageUrl = function(url, imgProp)
{
var _url = window["AscDesktopEditor"]["LocalFileGetImageUrl"](url);
this.AddImageUrlAction(AscCommon.g_oDocumentUrls.getImageUrl(_url), imgProp);
};
Asc.asc_docs_api.prototype.AddImage = function()
Asc['asc_docs_api'].prototype.AddImage = function()
{
window["AscDesktopEditor"]["LocalFileGetImageUrlFromOpenFileDialog"]();
};
Asc.asc_docs_api.prototype.asc_addImage = function()
Asc['asc_docs_api'].prototype.asc_addImage = function()
{
window["AscDesktopEditor"]["LocalFileGetImageUrlFromOpenFileDialog"]();
};
Asc.asc_docs_api.prototype.asc_isOffline = function()
Asc['asc_docs_api'].prototype.asc_isOffline = function()
{
return true;
};
Asc.asc_docs_api.prototype["asc_addImage"] = Asc.asc_docs_api.prototype.asc_addImage;
Asc.asc_docs_api.prototype["AddImageUrl"] = Asc.asc_docs_api.prototype.AddImageUrl;
Asc.asc_docs_api.prototype["AddImage"] = Asc.asc_docs_api.prototype.AddImage;
Asc.asc_docs_api.prototype["asc_Save"] = Asc.asc_docs_api.prototype.asc_Save;
Asc.asc_docs_api.prototype["asc_DownloadAs"] = Asc.asc_docs_api.prototype.asc_DownloadAs;
Asc.asc_docs_api.prototype["asc_isOffline"] = Asc.asc_docs_api.prototype.asc_isOffline;
Asc.asc_docs_api.prototype["SetDocumentModified"] = Asc.asc_docs_api.prototype.SetDocumentModified;
Asc['asc_docs_api'].prototype["asc_addImage"] = Asc['asc_docs_api'].prototype.asc_addImage;
Asc['asc_docs_api'].prototype["AddImageUrl"] = Asc['asc_docs_api'].prototype.AddImageUrl;
Asc['asc_docs_api'].prototype["AddImage"] = Asc['asc_docs_api'].prototype.AddImage;
Asc['asc_docs_api'].prototype["asc_Save"] = Asc['asc_docs_api'].prototype.asc_Save;
Asc['asc_docs_api'].prototype["asc_DownloadAs"] = Asc['asc_docs_api'].prototype.asc_DownloadAs;
Asc['asc_docs_api'].prototype["asc_isOffline"] = Asc['asc_docs_api'].prototype.asc_isOffline;
Asc['asc_docs_api'].prototype["SetDocumentModified"] = Asc['asc_docs_api'].prototype.SetDocumentModified;
window["DesktopOfflineAppDocumentAddImageEnd"] = function(url)
......
......@@ -11,12 +11,12 @@ var c_oAscError = Asc.c_oAscError;
//----------------------------------------------------------------------------------------------------------------------
// Функции для работы с MailMerge
//----------------------------------------------------------------------------------------------------------------------
Asc.asc_docs_api.prototype.asc_StartMailMerge = function(oData)
Asc['asc_docs_api'].prototype.asc_StartMailMerge = function(oData)
{
this.mailMergeFileData = oData;
this.asc_DownloadAs(Asc.c_oAscFileType.JSON);
};
Asc.asc_docs_api.prototype.asc_StartMailMergeByList = function(aList)
Asc['asc_docs_api'].prototype.asc_StartMailMergeByList = function(aList)
{
if (!aList || !aList.length || aList.length <= 1)
aList = [[]];
......@@ -67,55 +67,55 @@ Asc.asc_docs_api.prototype.asc_StartMailMergeByList = function(aList)
this.WordControl.m_oLogicDocument.Start_MailMerge(DstList);
};
Asc.asc_docs_api.prototype.asc_GetReceptionsCount = function()
Asc['asc_docs_api'].prototype.asc_GetReceptionsCount = function()
{
return this.WordControl.m_oLogicDocument.Get_MailMergeReceptionsCount();
};
Asc.asc_docs_api.prototype.asc_GetMailMergeFieldsNameList = function()
Asc['asc_docs_api'].prototype.asc_GetMailMergeFieldsNameList = function()
{
return this.WordControl.m_oLogicDocument.Get_MailMergeFieldsNameList();
};
Asc.asc_docs_api.prototype.asc_AddMailMergeField = function(Name)
Asc['asc_docs_api'].prototype.asc_AddMailMergeField = function(Name)
{
this.WordControl.m_oLogicDocument.Add_MailMergeField(Name);
};
Asc.asc_docs_api.prototype.asc_SetHighlightMailMergeFields = function(Value)
Asc['asc_docs_api'].prototype.asc_SetHighlightMailMergeFields = function(Value)
{
this.WordControl.m_oLogicDocument.Set_HightlightMailMergeFields(Value);
};
Asc.asc_docs_api.prototype.asc_PreviewMailMergeResult = function(Index)
Asc['asc_docs_api'].prototype.asc_PreviewMailMergeResult = function(Index)
{
this.WordControl.m_oLogicDocument.Preview_MailMergeResult(Index);
};
Asc.asc_docs_api.prototype.asc_EndPreviewMailMergeResult = function()
Asc['asc_docs_api'].prototype.asc_EndPreviewMailMergeResult = function()
{
this.WordControl.m_oLogicDocument.EndPreview_MailMergeResult();
};
Asc.asc_docs_api.prototype.sync_StartMailMerge = function()
Asc['asc_docs_api'].prototype.sync_StartMailMerge = function()
{
this.asc_fireCallback("asc_onStartMailMerge");
};
Asc.asc_docs_api.prototype.sync_PreviewMailMergeResult = function(Index)
Asc['asc_docs_api'].prototype.sync_PreviewMailMergeResult = function(Index)
{
this.asc_fireCallback("asc_onPreviewMailMergeResult", Index);
};
Asc.asc_docs_api.prototype.sync_EndPreviewMailMergeResult = function()
Asc['asc_docs_api'].prototype.sync_EndPreviewMailMergeResult = function()
{
this.asc_fireCallback("asc_onEndPreviewMailMergeResult");
};
Asc.asc_docs_api.prototype.sync_HighlightMailMergeFields = function(Value)
Asc['asc_docs_api'].prototype.sync_HighlightMailMergeFields = function(Value)
{
this.asc_fireCallback("asc_onHighlightMailMergeFields", Value);
};
Asc.asc_docs_api.prototype.asc_getMailMergeData = function()
Asc['asc_docs_api'].prototype.asc_getMailMergeData = function()
{
return this.WordControl.m_oLogicDocument.Get_MailMergeReceptionsList();
};
Asc.asc_docs_api.prototype.asc_setMailMergeData = function(aList)
Asc['asc_docs_api'].prototype.asc_setMailMergeData = function(aList)
{
this.asc_StartMailMergeByList(aList);
};
Asc.asc_docs_api.prototype.asc_sendMailMergeData = function(oData)
Asc['asc_docs_api'].prototype.asc_sendMailMergeData = function(oData)
{
var actionType = Asc.c_oAscAsyncAction.SendMailMerge;
oData.put_UserId(this.documentUserId);
......@@ -141,11 +141,11 @@ Asc.asc_docs_api.prototype.asc_sendMailMergeData = function(oData)
t.sync_EndAction(Asc.c_oAscAsyncActionType.BlockInteraction, actionType);
});
};
Asc.asc_docs_api.prototype.asc_GetMailMergeFiledValue = function(nIndex, sName)
Asc['asc_docs_api'].prototype.asc_GetMailMergeFiledValue = function(nIndex, sName)
{
return this.WordControl.m_oLogicDocument.Get_MailMergeFileldValue(nIndex, sName);
};
Asc.asc_docs_api.prototype.asc_DownloadAsMailMerge = function(typeFile, StartIndex, EndIndex, bIsDownload)
Asc['asc_docs_api'].prototype.asc_DownloadAsMailMerge = function(typeFile, StartIndex, EndIndex, bIsDownload)
{
var oDocumentMailMerge = this.WordControl.m_oLogicDocument.Get_MailMergedDocument(StartIndex, EndIndex);
if (null != oDocumentMailMerge)
......@@ -161,23 +161,23 @@ Asc.asc_docs_api.prototype.asc_DownloadAsMailMerge = function(typeFile, StartInd
return null != oDocumentMailMerge ? true : false;
};
Asc.asc_docs_api.prototype['asc_StartMailMerge'] = Asc.asc_docs_api.prototype.asc_StartMailMerge;
Asc.asc_docs_api.prototype['asc_StartMailMergeByList'] = Asc.asc_docs_api.prototype.asc_StartMailMergeByList;
Asc.asc_docs_api.prototype['asc_GetReceptionsCount'] = Asc.asc_docs_api.prototype.asc_GetReceptionsCount;
Asc.asc_docs_api.prototype['asc_GetMailMergeFieldsNameList'] = Asc.asc_docs_api.prototype.asc_GetMailMergeFieldsNameList;
Asc.asc_docs_api.prototype['asc_AddMailMergeField'] = Asc.asc_docs_api.prototype.asc_AddMailMergeField;
Asc.asc_docs_api.prototype['asc_SetHighlightMailMergeFields'] = Asc.asc_docs_api.prototype.asc_SetHighlightMailMergeFields;
Asc.asc_docs_api.prototype['asc_PreviewMailMergeResult'] = Asc.asc_docs_api.prototype.asc_PreviewMailMergeResult;
Asc.asc_docs_api.prototype['asc_EndPreviewMailMergeResult'] = Asc.asc_docs_api.prototype.asc_EndPreviewMailMergeResult;
Asc.asc_docs_api.prototype['sync_StartMailMerge'] = Asc.asc_docs_api.prototype.sync_StartMailMerge;
Asc.asc_docs_api.prototype['sync_PreviewMailMergeResult'] = Asc.asc_docs_api.prototype.sync_PreviewMailMergeResult;
Asc.asc_docs_api.prototype['sync_EndPreviewMailMergeResult'] = Asc.asc_docs_api.prototype.sync_EndPreviewMailMergeResult;
Asc.asc_docs_api.prototype['sync_HighlightMailMergeFields'] = Asc.asc_docs_api.prototype.sync_HighlightMailMergeFields;
Asc.asc_docs_api.prototype['asc_getMailMergeData'] = Asc.asc_docs_api.prototype.asc_getMailMergeData;
Asc.asc_docs_api.prototype['asc_setMailMergeData'] = Asc.asc_docs_api.prototype.asc_setMailMergeData;
Asc.asc_docs_api.prototype['asc_sendMailMergeData'] = Asc.asc_docs_api.prototype.asc_sendMailMergeData;
Asc.asc_docs_api.prototype['asc_GetMailMergeFiledValue'] = Asc.asc_docs_api.prototype.asc_GetMailMergeFiledValue;
Asc.asc_docs_api.prototype['asc_DownloadAsMailMerge'] = Asc.asc_docs_api.prototype.asc_DownloadAsMailMerge;
Asc['asc_docs_api'].prototype['asc_StartMailMerge'] = Asc['asc_docs_api'].prototype.asc_StartMailMerge;
Asc['asc_docs_api'].prototype['asc_StartMailMergeByList'] = Asc['asc_docs_api'].prototype.asc_StartMailMergeByList;
Asc['asc_docs_api'].prototype['asc_GetReceptionsCount'] = Asc['asc_docs_api'].prototype.asc_GetReceptionsCount;
Asc['asc_docs_api'].prototype['asc_GetMailMergeFieldsNameList'] = Asc['asc_docs_api'].prototype.asc_GetMailMergeFieldsNameList;
Asc['asc_docs_api'].prototype['asc_AddMailMergeField'] = Asc['asc_docs_api'].prototype.asc_AddMailMergeField;
Asc['asc_docs_api'].prototype['asc_SetHighlightMailMergeFields'] = Asc['asc_docs_api'].prototype.asc_SetHighlightMailMergeFields;
Asc['asc_docs_api'].prototype['asc_PreviewMailMergeResult'] = Asc['asc_docs_api'].prototype.asc_PreviewMailMergeResult;
Asc['asc_docs_api'].prototype['asc_EndPreviewMailMergeResult'] = Asc['asc_docs_api'].prototype.asc_EndPreviewMailMergeResult;
Asc['asc_docs_api'].prototype['sync_StartMailMerge'] = Asc['asc_docs_api'].prototype.sync_StartMailMerge;
Asc['asc_docs_api'].prototype['sync_PreviewMailMergeResult'] = Asc['asc_docs_api'].prototype.sync_PreviewMailMergeResult;
Asc['asc_docs_api'].prototype['sync_EndPreviewMailMergeResult'] = Asc['asc_docs_api'].prototype.sync_EndPreviewMailMergeResult;
Asc['asc_docs_api'].prototype['sync_HighlightMailMergeFields'] = Asc['asc_docs_api'].prototype.sync_HighlightMailMergeFields;
Asc['asc_docs_api'].prototype['asc_getMailMergeData'] = Asc['asc_docs_api'].prototype.asc_getMailMergeData;
Asc['asc_docs_api'].prototype['asc_setMailMergeData'] = Asc['asc_docs_api'].prototype.asc_setMailMergeData;
Asc['asc_docs_api'].prototype['asc_sendMailMergeData'] = Asc['asc_docs_api'].prototype.asc_sendMailMergeData;
Asc['asc_docs_api'].prototype['asc_GetMailMergeFiledValue'] = Asc['asc_docs_api'].prototype.asc_GetMailMergeFiledValue;
Asc['asc_docs_api'].prototype['asc_DownloadAsMailMerge'] = Asc['asc_docs_api'].prototype.asc_DownloadAsMailMerge;
//----------------------------------------------------------------------------------------------------------------------
// Функции для работы с MailMerge
//----------------------------------------------------------------------------------------------------------------------
......
......@@ -8,37 +8,37 @@
//----------------------------------------------------------------------------------------------------------------------
// asc_docs_api (Обращение из апи)
//----------------------------------------------------------------------------------------------------------------------
Asc.asc_docs_api.prototype.asc_GetStyleFromFormatting = function()
Asc['asc_docs_api'].prototype.asc_GetStyleFromFormatting = function()
{
return this.WordControl.m_oLogicDocument.Get_StyleFromFormatting();
};
Asc.asc_docs_api.prototype.asc_AddNewStyle = function(oStyle)
Asc['asc_docs_api'].prototype.asc_AddNewStyle = function(oStyle)
{
this.WordControl.m_oLogicDocument.Add_NewStyle(oStyle);
};
Asc.asc_docs_api.prototype.asc_RemoveStyle = function(sName)
Asc['asc_docs_api'].prototype.asc_RemoveStyle = function(sName)
{
this.WordControl.m_oLogicDocument.Remove_Style(sName);
};
Asc.asc_docs_api.prototype.asc_RemoveAllCustomStyles = function()
Asc['asc_docs_api'].prototype.asc_RemoveAllCustomStyles = function()
{
this.WordControl.m_oLogicDocument.Remove_AllCustomStyles();
};
Asc.asc_docs_api.prototype.asc_IsStyleDefault = function(sName)
Asc['asc_docs_api'].prototype.asc_IsStyleDefault = function(sName)
{
return this.WordControl.m_oLogicDocument.Is_StyleDefault(sName);
};
Asc.asc_docs_api.prototype.asc_IsDefaultStyleChanged = function(sName)
Asc['asc_docs_api'].prototype.asc_IsDefaultStyleChanged = function(sName)
{
return this.WordControl.m_oLogicDocument.Is_DefaultStyleChanged(sName);
};
Asc.asc_docs_api.prototype['asc_GetStyleFromFormatting'] = Asc.asc_docs_api.prototype.asc_GetStyleFromFormatting;
Asc.asc_docs_api.prototype['asc_AddNewStyle'] = Asc.asc_docs_api.prototype.asc_AddNewStyle;
Asc.asc_docs_api.prototype['asc_RemoveStyle'] = Asc.asc_docs_api.prototype.asc_RemoveStyle;
Asc.asc_docs_api.prototype['asc_RemoveAllCustomStyles'] = Asc.asc_docs_api.prototype.asc_RemoveAllCustomStyles;
Asc.asc_docs_api.prototype['asc_IsStyleDefault'] = Asc.asc_docs_api.prototype.asc_IsStyleDefault;
Asc.asc_docs_api.prototype['asc_IsDefaultStyleChanged'] = Asc.asc_docs_api.prototype.asc_IsDefaultStyleChanged;
Asc['asc_docs_api'].prototype['asc_GetStyleFromFormatting'] = Asc['asc_docs_api'].prototype.asc_GetStyleFromFormatting;
Asc['asc_docs_api'].prototype['asc_AddNewStyle'] = Asc['asc_docs_api'].prototype.asc_AddNewStyle;
Asc['asc_docs_api'].prototype['asc_RemoveStyle'] = Asc['asc_docs_api'].prototype.asc_RemoveStyle;
Asc['asc_docs_api'].prototype['asc_RemoveAllCustomStyles'] = Asc['asc_docs_api'].prototype.asc_RemoveAllCustomStyles;
Asc['asc_docs_api'].prototype['asc_IsStyleDefault'] = Asc['asc_docs_api'].prototype.asc_IsStyleDefault;
Asc['asc_docs_api'].prototype['asc_IsDefaultStyleChanged'] = Asc['asc_docs_api'].prototype.asc_IsDefaultStyleChanged;
//----------------------------------------------------------------------------------------------------------------------
// CDocument
//----------------------------------------------------------------------------------------------------------------------
......
......@@ -7,83 +7,83 @@ var History = AscCommon.History;
//----------------------------------------------------------------------------------------------------------------------
// Работаем с рецензированием
//----------------------------------------------------------------------------------------------------------------------
Asc.asc_docs_api.prototype.asc_SetTrackRevisions = function(bTrack)
Asc['asc_docs_api'].prototype.asc_SetTrackRevisions = function(bTrack)
{
return this.WordControl.m_oLogicDocument.Set_TrackRevisions(bTrack);
};
Asc.asc_docs_api.prototype.asc_IsTrackRevisions = function()
Asc['asc_docs_api'].prototype.asc_IsTrackRevisions = function()
{
return this.WordControl.m_oLogicDocument.Is_TrackRevisions();
};
Asc.asc_docs_api.prototype.sync_BeginCatchRevisionsChanges = function()
Asc['asc_docs_api'].prototype.sync_BeginCatchRevisionsChanges = function()
{
this.RevisionChangesStack = [];
};
Asc.asc_docs_api.prototype.sync_EndCatchRevisionsChanges = function()
Asc['asc_docs_api'].prototype.sync_EndCatchRevisionsChanges = function()
{
this.asc_fireCallback("asc_onShowRevisionsChange", this.RevisionChangesStack);
};
Asc.asc_docs_api.prototype.sync_AddRevisionsChange = function(Change)
Asc['asc_docs_api'].prototype.sync_AddRevisionsChange = function(Change)
{
this.RevisionChangesStack.push(Change);
};
Asc.asc_docs_api.prototype.asc_AcceptChanges = function(Change)
Asc['asc_docs_api'].prototype.asc_AcceptChanges = function(Change)
{
if (undefined !== Change)
this.WordControl.m_oLogicDocument.Accept_RevisionChange(Change);
else
this.WordControl.m_oLogicDocument.Accept_RevisionChangesBySelection();
};
Asc.asc_docs_api.prototype.asc_RejectChanges = function(Change)
Asc['asc_docs_api'].prototype.asc_RejectChanges = function(Change)
{
if (undefined !== Change)
this.WordControl.m_oLogicDocument.Reject_RevisionChange(Change);
else
this.WordControl.m_oLogicDocument.Reject_RevisionChangesBySelection();
};
Asc.asc_docs_api.prototype.asc_HaveRevisionsChanges = function()
Asc['asc_docs_api'].prototype.asc_HaveRevisionsChanges = function()
{
this.WordControl.m_oLogicDocument.Have_RevisionChanges();
};
Asc.asc_docs_api.prototype.asc_HaveNewRevisionsChanges = function()
Asc['asc_docs_api'].prototype.asc_HaveNewRevisionsChanges = function()
{
return this.asc_HaveRevisionsChanges();
};
Asc.asc_docs_api.prototype.asc_GetNextRevisionsChange = function()
Asc['asc_docs_api'].prototype.asc_GetNextRevisionsChange = function()
{
return this.WordControl.m_oLogicDocument.Get_NextRevisionChange();
};
Asc.asc_docs_api.prototype.asc_GetPrevRevisionsChange = function()
Asc['asc_docs_api'].prototype.asc_GetPrevRevisionsChange = function()
{
return this.WordControl.m_oLogicDocument.Get_PrevRevisionChange();
};
Asc.asc_docs_api.prototype.sync_UpdateRevisionsChangesPosition = function(X, Y)
Asc['asc_docs_api'].prototype.sync_UpdateRevisionsChangesPosition = function(X, Y)
{
this.asc_fireCallback("asc_onUpdateRevisionsChangesPosition", X, Y);
};
Asc.asc_docs_api.prototype.asc_AcceptAllChanges = function()
Asc['asc_docs_api'].prototype.asc_AcceptAllChanges = function()
{
this.WordControl.m_oLogicDocument.Accept_AllRevisionChanges();
};
Asc.asc_docs_api.prototype.asc_RejectAllChanges = function()
Asc['asc_docs_api'].prototype.asc_RejectAllChanges = function()
{
this.WordControl.m_oLogicDocument.Reject_AllRevisionChanges();
};
Asc.asc_docs_api.prototype['asc_SetTrackRevisions'] = Asc.asc_docs_api.prototype.asc_SetTrackRevisions;
Asc.asc_docs_api.prototype['asc_IsTrackRevisions'] = Asc.asc_docs_api.prototype.asc_IsTrackRevisions;
Asc.asc_docs_api.prototype['sync_BeginCatchRevisionsChanges'] = Asc.asc_docs_api.prototype.sync_BeginCatchRevisionsChanges;
Asc.asc_docs_api.prototype['sync_EndCatchRevisionsChanges'] = Asc.asc_docs_api.prototype.sync_EndCatchRevisionsChanges;
Asc.asc_docs_api.prototype['sync_AddRevisionsChange'] = Asc.asc_docs_api.prototype.sync_AddRevisionsChange;
Asc.asc_docs_api.prototype['asc_AcceptChanges'] = Asc.asc_docs_api.prototype.asc_AcceptChanges;
Asc.asc_docs_api.prototype['asc_RejectChanges'] = Asc.asc_docs_api.prototype.asc_RejectChanges;
Asc.asc_docs_api.prototype['asc_HaveRevisionsChanges'] = Asc.asc_docs_api.prototype.asc_HaveRevisionsChanges;
Asc.asc_docs_api.prototype['asc_HaveNewRevisionsChanges'] = Asc.asc_docs_api.prototype.asc_HaveNewRevisionsChanges;
Asc.asc_docs_api.prototype['asc_GetNextRevisionsChange'] = Asc.asc_docs_api.prototype.asc_GetNextRevisionsChange;
Asc.asc_docs_api.prototype['asc_GetPrevRevisionsChange'] = Asc.asc_docs_api.prototype.asc_GetPrevRevisionsChange;
Asc.asc_docs_api.prototype['sync_UpdateRevisionsChangesPosition'] = Asc.asc_docs_api.prototype.sync_UpdateRevisionsChangesPosition;
Asc.asc_docs_api.prototype['asc_AcceptAllChanges'] = Asc.asc_docs_api.prototype.asc_AcceptAllChanges;
Asc.asc_docs_api.prototype['asc_RejectAllChanges'] = Asc.asc_docs_api.prototype.asc_RejectAllChanges;
Asc['asc_docs_api'].prototype['asc_SetTrackRevisions'] = Asc['asc_docs_api'].prototype.asc_SetTrackRevisions;
Asc['asc_docs_api'].prototype['asc_IsTrackRevisions'] = Asc['asc_docs_api'].prototype.asc_IsTrackRevisions;
Asc['asc_docs_api'].prototype['sync_BeginCatchRevisionsChanges'] = Asc['asc_docs_api'].prototype.sync_BeginCatchRevisionsChanges;
Asc['asc_docs_api'].prototype['sync_EndCatchRevisionsChanges'] = Asc['asc_docs_api'].prototype.sync_EndCatchRevisionsChanges;
Asc['asc_docs_api'].prototype['sync_AddRevisionsChange'] = Asc['asc_docs_api'].prototype.sync_AddRevisionsChange;
Asc['asc_docs_api'].prototype['asc_AcceptChanges'] = Asc['asc_docs_api'].prototype.asc_AcceptChanges;
Asc['asc_docs_api'].prototype['asc_RejectChanges'] = Asc['asc_docs_api'].prototype.asc_RejectChanges;
Asc['asc_docs_api'].prototype['asc_HaveRevisionsChanges'] = Asc['asc_docs_api'].prototype.asc_HaveRevisionsChanges;
Asc['asc_docs_api'].prototype['asc_HaveNewRevisionsChanges'] = Asc['asc_docs_api'].prototype.asc_HaveNewRevisionsChanges;
Asc['asc_docs_api'].prototype['asc_GetNextRevisionsChange'] = Asc['asc_docs_api'].prototype.asc_GetNextRevisionsChange;
Asc['asc_docs_api'].prototype['asc_GetPrevRevisionsChange'] = Asc['asc_docs_api'].prototype.asc_GetPrevRevisionsChange;
Asc['asc_docs_api'].prototype['sync_UpdateRevisionsChangesPosition'] = Asc['asc_docs_api'].prototype.sync_UpdateRevisionsChangesPosition;
Asc['asc_docs_api'].prototype['asc_AcceptAllChanges'] = Asc['asc_docs_api'].prototype.asc_AcceptAllChanges;
Asc['asc_docs_api'].prototype['asc_RejectAllChanges'] = Asc['asc_docs_api'].prototype.asc_RejectAllChanges;
//----------------------------------------------------------------------------------------------------------------------
// CDocument
//----------------------------------------------------------------------------------------------------------------------
......
"use strict";
Asc.asc_docs_api.prototype.asc_addComment = function(AscCommentData) {
Asc['asc_docs_api'].prototype.asc_addComment = function(AscCommentData) {
if (true === AscCommon.CollaborativeEditing.Get_GlobalLock()) {
return;
}
......@@ -23,4 +23,4 @@ Asc.asc_docs_api.prototype.asc_addComment = function(AscCommentData) {
return Comment.Get_Id();
}
};
Asc.asc_docs_api.prototype['asc_addComment'] = asc_docs_api.prototype.asc_addComment;
\ No newline at end of file
Asc['asc_docs_api'].prototype['asc_addComment'] = Asc['asc_docs_api'].prototype.asc_addComment;
\ No newline at end of file
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