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

asc_docs_api -> 'asc_docs_api'

parent 765d5847
var global_memory_stream_menu = CreateNativeMemoryStream();
Asc.asc_docs_api.prototype.Update_ParaInd = function( Ind )
Asc['asc_docs_api'].prototype.Update_ParaInd = function( Ind )
{
this.WordControl.m_oDrawingDocument.Update_ParaInd(Ind);
};
Asc.asc_docs_api.prototype.Internal_Update_Ind_Left = function(Left)
Asc['asc_docs_api'].prototype.Internal_Update_Ind_Left = function(Left)
{
};
Asc.asc_docs_api.prototype.Internal_Update_Ind_Right = function(Right)
Asc['asc_docs_api'].prototype.Internal_Update_Ind_Right = function(Right)
{
};
// editor
Asc.asc_docs_api.prototype["NativeAfterLoad"] = function()
Asc['asc_docs_api'].prototype["NativeAfterLoad"] = function()
{
this.WordControl.m_oDrawingDocument.AfterLoad();
this.WordControl.m_oLogicDocument.Set_UseTextShd(false);
};
Asc.asc_docs_api.prototype["GetNativePageMeta"] = function(pageIndex)
Asc['asc_docs_api'].prototype["GetNativePageMeta"] = function(pageIndex)
{
this.WordControl.m_oDrawingDocument.LogicDocument = _api.WordControl.m_oDrawingDocument.m_oLogicDocument;
this.WordControl.m_oDrawingDocument.RenderPage(pageIndex);
};
// HTML page interface
Asc.asc_docs_api.prototype["Call_OnUpdateOverlay"] = function(param)
Asc['asc_docs_api'].prototype["Call_OnUpdateOverlay"] = function(param)
{
this.WordControl.m_oDrawingDocument.OnUpdateOverlay();
};
Asc.asc_docs_api.prototype["Call_OnMouseDown"] = function(e)
Asc['asc_docs_api'].prototype["Call_OnMouseDown"] = function(e)
{
return this.WordControl.m_oDrawingDocument.OnMouseDown(e);
};
Asc.asc_docs_api.prototype["Call_OnMouseUp"] = function(e)
Asc['asc_docs_api'].prototype["Call_OnMouseUp"] = function(e)
{
return this.WordControl.m_oDrawingDocument.OnMouseUp(e);
};
Asc.asc_docs_api.prototype["Call_OnMouseMove"] = function(e)
Asc['asc_docs_api'].prototype["Call_OnMouseMove"] = function(e)
{
return this.WordControl.m_oDrawingDocument.OnMouseMove(e);
};
Asc.asc_docs_api.prototype["Call_OnCheckMouseDown"] = function(e)
Asc['asc_docs_api'].prototype["Call_OnCheckMouseDown"] = function(e)
{
return this.WordControl.m_oDrawingDocument.OnCheckMouseDown(e);
};
Asc.asc_docs_api.prototype["Call_OnKeyDown"] = function(e)
Asc['asc_docs_api'].prototype["Call_OnKeyDown"] = function(e)
{
this.WordControl.m_oDrawingDocument.OnKeyDown(e);
};
Asc.asc_docs_api.prototype["Call_OnKeyPress"] = function(e)
Asc['asc_docs_api'].prototype["Call_OnKeyPress"] = function(e)
{
this.WordControl.m_oDrawingDocument.OnKeyPress(e);
};
Asc.asc_docs_api.prototype["Call_OnKeyUp"] = function(e)
Asc['asc_docs_api'].prototype["Call_OnKeyUp"] = function(e)
{
this.WordControl.m_oDrawingDocument.OnKeyUp(e);
};
Asc.asc_docs_api.prototype["Call_OnKeyboardEvent"] = function(e)
Asc['asc_docs_api'].prototype["Call_OnKeyboardEvent"] = function(e)
{
this.WordControl.m_oDrawingDocument.OnKeyboardEvent(e);
};
Asc.asc_docs_api.prototype["Call_CalculateResume"] = function()
Asc['asc_docs_api'].prototype["Call_CalculateResume"] = function()
{
Document_Recalculate_Page();
};
Asc.asc_docs_api.prototype["Call_TurnOffRecalculate"] = function()
Asc['asc_docs_api'].prototype["Call_TurnOffRecalculate"] = function()
{
this.WordControl.m_oLogicDocument.TurnOff_Recalculate();
};
Asc.asc_docs_api.prototype["Call_TurnOnRecalculate"] = function()
Asc['asc_docs_api'].prototype["Call_TurnOnRecalculate"] = function()
{
this.WordControl.m_oLogicDocument.TurnOn_Recalculate();
this.WordControl.m_oLogicDocument.Recalculate();
};
Asc.asc_docs_api.prototype["Call_CheckTargetUpdate"] = function()
Asc['asc_docs_api'].prototype["Call_CheckTargetUpdate"] = function()
{
this.WordControl.m_oDrawingDocument.UpdateTargetFromPaint = true;
this.WordControl.m_oLogicDocument.CheckTargetUpdate();
......@@ -88,7 +88,7 @@ Asc.asc_docs_api.prototype["Call_CheckTargetUpdate"] = function()
this.WordControl.m_oDrawingDocument.UpdateTargetFromPaint = false;
};
Asc.asc_docs_api.prototype["Call_Common"] = function(type, param)
Asc['asc_docs_api'].prototype["Call_Common"] = function(type, param)
{
switch (type)
{
......@@ -112,7 +112,7 @@ Asc.asc_docs_api.prototype["Call_Common"] = function(type, param)
}
};
Asc.asc_docs_api.prototype["Call_HR_Tabs"] = function(arrT, arrP)
Asc['asc_docs_api'].prototype["Call_HR_Tabs"] = function(arrT, arrP)
{
var _arr = new CParaTabs();
var _c = arrT.length;
......@@ -133,7 +133,7 @@ Asc.asc_docs_api.prototype["Call_HR_Tabs"] = function(arrT, arrP)
_logic.Set_ParagraphTabs(_arr);
}
};
Asc.asc_docs_api.prototype["Call_HR_Pr"] = function(_indent_left, _indent_right, _indent_first)
Asc['asc_docs_api'].prototype["Call_HR_Pr"] = function(_indent_left, _indent_right, _indent_first)
{
var _logic = this.WordControl.m_oLogicDocument;
if ( false === _logic.Document_Is_SelectionLocked(AscCommon.changestype_Paragraph_Properties) )
......@@ -143,7 +143,7 @@ Asc.asc_docs_api.prototype["Call_HR_Pr"] = function(_indent_left, _indent_right,
_logic.Document_UpdateInterfaceState();
}
};
Asc.asc_docs_api.prototype["Call_HR_Margins"] = function(_margin_left, _margin_right)
Asc['asc_docs_api'].prototype["Call_HR_Margins"] = function(_margin_left, _margin_right)
{
var _logic = this.WordControl.m_oLogicDocument;
if ( false === _logic.Document_Is_SelectionLocked(AscCommon.changestype_Document_SectPr) )
......@@ -152,7 +152,7 @@ Asc.asc_docs_api.prototype["Call_HR_Margins"] = function(_margin_left, _margin_r
_logic.Set_DocumentMargin( { Left : _margin_left, Right : _margin_right });
}
};
Asc.asc_docs_api.prototype["Call_HR_Table"] = function(_params, _cols, _margins, _rows)
Asc['asc_docs_api'].prototype["Call_HR_Table"] = function(_params, _cols, _margins, _rows)
{
var _logic = this.WordControl.m_oLogicDocument;
if ( false === _logic.Document_Is_SelectionLocked(AscCommon.changestype_Table_Properties) )
......@@ -168,7 +168,7 @@ Asc.asc_docs_api.prototype["Call_HR_Table"] = function(_params, _cols, _margins,
}
};
Asc.asc_docs_api.prototype["Call_VR_Margins"] = function(_top, _bottom)
Asc['asc_docs_api'].prototype["Call_VR_Margins"] = function(_top, _bottom)
{
var _logic = this.WordControl.m_oLogicDocument;
if ( false === _logic.Document_Is_SelectionLocked(AscCommon.changestype_Document_SectPr) )
......@@ -177,7 +177,7 @@ Asc.asc_docs_api.prototype["Call_VR_Margins"] = function(_top, _bottom)
_logic.Set_DocumentMargin( { Top : _top, Bottom : _bottom });
}
};
Asc.asc_docs_api.prototype["Call_VR_Header"] = function(_header_top, _header_bottom)
Asc['asc_docs_api'].prototype["Call_VR_Header"] = function(_header_top, _header_bottom)
{
var _logic = this.WordControl.m_oLogicDocument;
if ( false === _logic.Document_Is_SelectionLocked(AscCommon.changestype_HdrFtr) )
......@@ -186,7 +186,7 @@ Asc.asc_docs_api.prototype["Call_VR_Header"] = function(_header_top, _header_bot
_logic.Document_SetHdrFtrBounds(_header_top, _header_bottom);
}
};
Asc.asc_docs_api.prototype["Call_VR_Table"] = function(_params, _cols, _margins, _rows)
Asc['asc_docs_api'].prototype["Call_VR_Table"] = function(_params, _cols, _margins, _rows)
{
var _logic = this.WordControl.m_oLogicDocument;
if ( false === _logic.Document_Is_SelectionLocked(AscCommon.changestype_Table_Properties) )
......@@ -202,7 +202,7 @@ Asc.asc_docs_api.prototype["Call_VR_Table"] = function(_params, _cols, _margins,
}
};
Asc.asc_docs_api.prototype.GenerateNativeStyles = function()
Asc['asc_docs_api'].prototype.GenerateNativeStyles = function()
{
var StylesPainter = new CStylesPainter();
StylesPainter.GenerateStyles(this, this.LoadedObjectDS);
......@@ -1040,7 +1040,7 @@ function asc_menu_WriteParaFrame(_type, _frame, _stream)
_stream["WriteByte"](255);
}
Asc.asc_docs_api.prototype["Call_Menu_Event"] = function(type, _params)
Asc['asc_docs_api'].prototype["Call_Menu_Event"] = function(type, _params)
{
if (this.WordControl.m_oDrawingDocument.m_bIsMouseLockDocument)
{
......@@ -4153,7 +4153,7 @@ function asc_menu_WriteHyperPr(_hyperPr, _stream)
///////////////////////////////////////////////////////////////////////
Asc.asc_docs_api.prototype.UpdateTextPr = function(TextPr)
Asc['asc_docs_api'].prototype.UpdateTextPr = function(TextPr)
{
if (!TextPr)
return;
......@@ -4244,7 +4244,7 @@ Asc.asc_docs_api.prototype.UpdateTextPr = function(TextPr)
this.Send_Menu_Event(1);
};
Asc.asc_docs_api.prototype.UpdateParagraphProp = function(ParaPr)
Asc['asc_docs_api'].prototype.UpdateParagraphProp = function(ParaPr)
{
// TODO: как только разъединят настройки параграфа и текста переделать тут
var TextPr = this.WordControl.m_oLogicDocument.Get_Paragraph_TextPr();
......@@ -4372,7 +4372,7 @@ Asc.asc_docs_api.prototype.UpdateParagraphProp = function(ParaPr)
this.SelectedObjectsStack[this.SelectedObjectsStack.length] = new AscCommon.asc_CSelectedObject ( Asc.c_oAscTypeSelectElement.Paragraph, ParaPr );
};
Asc.asc_docs_api.prototype.put_PageNum = function(where,align)
Asc['asc_docs_api'].prototype.put_PageNum = function(where,align)
{
if ( where >= 0 )
{
......@@ -4392,7 +4392,7 @@ Asc.asc_docs_api.prototype.put_PageNum = function(where,align)
}
};
Asc.asc_docs_api.prototype.put_AddPageBreak = function()
Asc['asc_docs_api'].prototype.put_AddPageBreak = function()
{
if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Paragraph_Content) )
{
......@@ -4406,7 +4406,7 @@ Asc.asc_docs_api.prototype.put_AddPageBreak = function()
}
};
Asc.asc_docs_api.prototype.add_SectionBreak = function(_Type)
Asc['asc_docs_api'].prototype.add_SectionBreak = function(_Type)
{
var Type = section_type_Continuous;
switch(_Type)
......@@ -4425,7 +4425,7 @@ Asc.asc_docs_api.prototype.add_SectionBreak = function(_Type)
}
};
Asc.asc_docs_api.prototype.put_AddLineBreak = function()
Asc['asc_docs_api'].prototype.put_AddLineBreak = function()
{
if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Paragraph_Content) )
{
......@@ -4439,7 +4439,7 @@ Asc.asc_docs_api.prototype.put_AddLineBreak = function()
}
};
Asc.asc_docs_api.prototype.ImgApply = function(obj)
Asc['asc_docs_api'].prototype.ImgApply = function(obj)
{
var ImagePr = obj;
......@@ -4529,7 +4529,7 @@ Asc.asc_docs_api.prototype.ImgApply = function(obj)
}
};
Asc.asc_docs_api.prototype.IncreaseIndent = function()
Asc['asc_docs_api'].prototype.IncreaseIndent = function()
{
if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Paragraph_Properties) )
{
......@@ -4537,7 +4537,7 @@ Asc.asc_docs_api.prototype.IncreaseIndent = function()
this.WordControl.m_oLogicDocument.Paragraph_IncDecIndent( true );
}
};
Asc.asc_docs_api.prototype.DecreaseIndent = function()
Asc['asc_docs_api'].prototype.DecreaseIndent = function()
{
if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Paragraph_Properties) )
{
......@@ -4546,7 +4546,7 @@ Asc.asc_docs_api.prototype.DecreaseIndent = function()
}
};
Asc.asc_docs_api.prototype.MergeCells = function()
Asc['asc_docs_api'].prototype.MergeCells = function()
{
if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Table_Properties) )
{
......@@ -4554,7 +4554,7 @@ Asc.asc_docs_api.prototype.MergeCells = function()
this.WordControl.m_oLogicDocument.Table_MergeCells();
}
}
Asc.asc_docs_api.prototype.SplitCell = function(Cols, Rows)
Asc['asc_docs_api'].prototype.SplitCell = function(Cols, Rows)
{
if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Table_Properties) )
{
......@@ -4563,7 +4563,7 @@ Asc.asc_docs_api.prototype.SplitCell = function(Cols, Rows)
}
}
Asc.asc_docs_api.prototype.StartAddShape = function(sPreset, is_apply)
Asc['asc_docs_api'].prototype.StartAddShape = function(sPreset, is_apply)
{
this.isStartAddShape = true;
this.addShapePreset = sPreset;
......@@ -4578,7 +4578,7 @@ Asc.asc_docs_api.prototype.StartAddShape = function(sPreset, is_apply)
}
};
Asc.asc_docs_api.prototype.AddImageUrlNative = function(url, _w, _h, _pageNum)
Asc['asc_docs_api'].prototype.AddImageUrlNative = function(url, _w, _h, _pageNum)
{
var _section_select = this.WordControl.m_oLogicDocument.Get_PageSizesByDrawingObjects();
var _page_width = AscCommon.Page_Width;
......@@ -4628,12 +4628,12 @@ Asc.asc_docs_api.prototype.AddImageUrlNative = function(url, _w, _h, _pageNum)
}
};
Asc.asc_docs_api.prototype.Send_Menu_Event = function(type)
Asc['asc_docs_api'].prototype.Send_Menu_Event = function(type)
{
window["native"]["OnCallMenuEvent"](type, global_memory_stream_menu);
};
Asc.asc_docs_api.prototype.sync_EndCatchSelectedElements = function()
Asc['asc_docs_api'].prototype.sync_EndCatchSelectedElements = function()
{
if (this.WordControl && this.WordControl.m_oDrawingDocument)
this.WordControl.m_oDrawingDocument.EndTableStylesCheck();
......@@ -4741,7 +4741,7 @@ function Deserialize_Table_Markup(_params, _cols, _margins, _rows)
return _markup;
}
Asc.asc_docs_api.prototype.startGetDocInfo = function()
Asc['asc_docs_api'].prototype.startGetDocInfo = function()
{
/*
Возвращаем объект следующего вида:
......@@ -4758,14 +4758,14 @@ Asc.asc_docs_api.prototype.startGetDocInfo = function()
if (null != this.WordControl.m_oLogicDocument)
this.WordControl.m_oLogicDocument.Statistics_Start();
};
Asc.asc_docs_api.prototype.stopGetDocInfo = function()
Asc['asc_docs_api'].prototype.stopGetDocInfo = function()
{
this.sync_GetDocInfoStopCallback();
if (null != this.WordControl.m_oLogicDocument)
this.WordControl.m_oLogicDocument.Statistics_Stop();
};
Asc.asc_docs_api.prototype.sync_DocInfoCallback = function(obj)
Asc['asc_docs_api'].prototype.sync_DocInfoCallback = function(obj)
{
var _stream = global_memory_stream_menu;
_stream["ClearNoAttack"]();
......@@ -4777,21 +4777,21 @@ Asc.asc_docs_api.prototype.sync_DocInfoCallback = function(obj)
window["native"]["OnCallMenuEvent"](70, _stream); // ASC_MENU_EVENT_TYPE_STATISTIC_INFO
};
Asc.asc_docs_api.prototype.sync_GetDocInfoStartCallback = function()
Asc['asc_docs_api'].prototype.sync_GetDocInfoStartCallback = function()
{
var _stream = global_memory_stream_menu;
_stream["ClearNoAttack"]();
window["native"]["OnCallMenuEvent"](67, _stream); // ASC_MENU_EVENT_TYPE_STATISTIC_START
};
Asc.asc_docs_api.prototype.sync_GetDocInfoStopCallback = function()
Asc['asc_docs_api'].prototype.sync_GetDocInfoStopCallback = function()
{
var _stream = global_memory_stream_menu;
_stream["ClearNoAttack"]();
window["native"]["OnCallMenuEvent"](68, _stream); // ASC_MENU_EVENT_TYPE_STATISTIC_STOP
};
Asc.asc_docs_api.prototype.sync_GetDocInfoEndCallback = function()
Asc['asc_docs_api'].prototype.sync_GetDocInfoEndCallback = function()
{
var _stream = global_memory_stream_menu;
_stream["ClearNoAttack"]();
......@@ -4799,14 +4799,14 @@ Asc.asc_docs_api.prototype.sync_GetDocInfoEndCallback = function()
window["native"]["OnCallMenuEvent"](69, _stream); // ASC_MENU_EVENT_TYPE_STATISTIC_END
};
Asc.asc_docs_api.prototype.sync_CanUndoCallback = function(bCanUndo)
Asc['asc_docs_api'].prototype.sync_CanUndoCallback = function(bCanUndo)
{
var _stream = global_memory_stream_menu;
_stream["ClearNoAttack"]();
_stream["WriteBool"](bCanUndo);
window["native"]["OnCallMenuEvent"](60, _stream); // ASC_MENU_EVENT_TYPE_CAN_UNDO
};
Asc.asc_docs_api.prototype.sync_CanRedoCallback = function(bCanRedo)
Asc['asc_docs_api'].prototype.sync_CanRedoCallback = function(bCanRedo)
{
var _stream = global_memory_stream_menu;
_stream["ClearNoAttack"]();
......@@ -4814,7 +4814,7 @@ Asc.asc_docs_api.prototype.sync_CanRedoCallback = function(bCanRedo)
window["native"]["OnCallMenuEvent"](61, _stream); // ASC_MENU_EVENT_TYPE_CAN_REDO
};
Asc.asc_docs_api.prototype.SetDocumentModified = function(bValue)
Asc['asc_docs_api'].prototype.SetDocumentModified = function(bValue)
{
this.isDocumentModify = bValue;
......@@ -4825,7 +4825,7 @@ Asc.asc_docs_api.prototype.SetDocumentModified = function(bValue)
};
// find -------------------------------------------------------------------------------------------------
Asc.asc_docs_api.prototype.asc_findText = function(text, isNext, isMatchCase)
Asc['asc_docs_api'].prototype.asc_findText = function(text, isNext, isMatchCase)
{
var SearchEngine = editor.WordControl.m_oLogicDocument.Search( text, { MatchCase : isMatchCase } );
......@@ -4837,7 +4837,7 @@ Asc.asc_docs_api.prototype.asc_findText = function(text, isNext, isMatchCase)
return SearchEngine.Count;
};
Asc.asc_docs_api.prototype.asc_replaceText = function(text, replaceWith, isReplaceAll, isMatchCase)
Asc['asc_docs_api'].prototype.asc_replaceText = function(text, replaceWith, isReplaceAll, isMatchCase)
{
this.WordControl.m_oLogicDocument.Search( text, { MatchCase : isMatchCase } );
......@@ -4865,19 +4865,19 @@ Asc.asc_docs_api.prototype.asc_replaceText = function(text, replaceWith, isRepla
}
};
Asc.asc_docs_api.prototype.asc_selectSearchingResults = function(bShow)
Asc['asc_docs_api'].prototype.asc_selectSearchingResults = function(bShow)
{
this.WordControl.m_oLogicDocument.Search_Set_Selection(bShow);
};
Asc.asc_docs_api.prototype.asc_isSelectSearchingResults = function()
Asc['asc_docs_api'].prototype.asc_isSelectSearchingResults = function()
{
return this.WordControl.m_oLogicDocument.Search_Get_Selection();
};
// endfind ----------------------------------------------------------------------------------------------
// sectionPr --------------------------------------------------------------------------------------------
Asc.asc_docs_api.prototype.change_PageOrient = function(isPortrait)
Asc['asc_docs_api'].prototype.change_PageOrient = function(isPortrait)
{
if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Document_SectPr) )
{
......@@ -4895,7 +4895,7 @@ Asc.asc_docs_api.prototype.change_PageOrient = function(isPortrait)
this.sync_PageOrientCallback(editor.get_DocumentOrientation());
}
};
Asc.asc_docs_api.prototype.change_DocSize = function(width,height)
Asc['asc_docs_api'].prototype.change_DocSize = function(width,height)
{
if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Document_SectPr) )
{
......@@ -4906,7 +4906,7 @@ Asc.asc_docs_api.prototype.change_DocSize = function(width,height)
this.WordControl.m_oLogicDocument.Set_DocumentPageSize(height, width);
}
};
Asc.asc_docs_api.prototype.sync_PageOrientCallback = function(isPortrait)
Asc['asc_docs_api'].prototype.sync_PageOrientCallback = function(isPortrait)
{
this.DocumentOrientation = isPortrait;
var _stream = global_memory_stream_menu;
......@@ -4916,7 +4916,7 @@ Asc.asc_docs_api.prototype.sync_PageOrientCallback = function(isPortrait)
_stream["WriteByte"](255);
this.Send_Menu_Event(17, _stream); // ASC_MENU_EVENT_TYPE_SECTION
};
Asc.asc_docs_api.prototype.sync_DocSizeCallback = function(width,height)
Asc['asc_docs_api'].prototype.sync_DocSizeCallback = function(width,height)
{
var _stream = global_memory_stream_menu;
_stream["ClearNoAttack"]();
......@@ -5258,7 +5258,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;
......@@ -5339,7 +5339,7 @@ Asc.asc_docs_api.prototype["Native_Editor_Initialize_Settings"] = function(_para
};
/***************************** COPY|PASTE *******************************/
Asc.asc_docs_api.prototype.Call_Menu_Context_Copy = function()
Asc['asc_docs_api'].prototype.Call_Menu_Context_Copy = function()
{
var oCopyProcessor = new AscCommon.CopyProcessor(this, true);
var _binary_data = oCopyProcessor.getSelectedBinary();
......@@ -5371,7 +5371,7 @@ Asc.asc_docs_api.prototype.Call_Menu_Context_Copy = function()
_stream["WriteByte"](255);
return _stream;
};
Asc.asc_docs_api.prototype.Call_Menu_Context_Cut = function()
Asc['asc_docs_api'].prototype.Call_Menu_Context_Cut = function()
{
var oCopyProcessor = new AscCommon.CopyProcessor(this, true);
var _binary_data = oCopyProcessor.getSelectedBinary();
......@@ -5407,7 +5407,7 @@ Asc.asc_docs_api.prototype.Call_Menu_Context_Cut = function()
_stream["WriteByte"](255);
return _stream;
};
Asc.asc_docs_api.prototype.Call_Menu_Context_Paste = function(type, param)
Asc['asc_docs_api'].prototype.Call_Menu_Context_Paste = function(type, param)
{
if (0 == type)
{
......@@ -5423,7 +5423,7 @@ Asc.asc_docs_api.prototype.Call_Menu_Context_Paste = function(type, param)
oPasteProcessor.Start(null, null, false, param);
}
};
Asc.asc_docs_api.prototype.Call_Menu_Context_Delete = function()
Asc['asc_docs_api'].prototype.Call_Menu_Context_Delete = function()
{
if ( false === this.WordControl.m_oLogicDocument.Document_Is_SelectionLocked(AscCommon.changestype_Delete) )
{
......@@ -5431,17 +5431,17 @@ Asc.asc_docs_api.prototype.Call_Menu_Context_Delete = function()
this.WordControl.m_oLogicDocument.Remove( 1, true );
}
};
Asc.asc_docs_api.prototype.Call_Menu_Context_Select = function()
Asc['asc_docs_api'].prototype.Call_Menu_Context_Select = function()
{
this.WordControl.m_oLogicDocument.Cursor_MoveLeft(false, true);
this.WordControl.m_oLogicDocument.Cursor_MoveRight(true, true);
this.WordControl.m_oLogicDocument.Document_UpdateSelectionState();
};
Asc.asc_docs_api.prototype.Call_Menu_Context_SelectAll = function()
Asc['asc_docs_api'].prototype.Call_Menu_Context_SelectAll = function()
{
this.WordControl.m_oLogicDocument.Select_All();
};
Asc.asc_docs_api.prototype.pre_Paste = function(_fonts, _images, callback)
Asc['asc_docs_api'].prototype.pre_Paste = function(_fonts, _images, callback)
{
AscCommon.History.Create_NewPoint(AscDFH.historydescription_PasteNative);
callback();
......
......@@ -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