Commit 0957160f authored by Alexander.Trofimov's avatar Alexander.Trofimov

add functions asc_Recalculate and asc_canPaste

parent 72285717
......@@ -3505,4 +3505,6 @@ var editor;
prot["asc_pluginButtonClick"] = prot.asc_pluginButtonClick;
prot["asc_addOleObject"] = prot.asc_addOleObject;
prot["asc_editOleObject"] = prot.asc_editOleObject;
prot["asc_Recalculate"] = prot.asc_Recalculate;
prot["asc_canPaste"] = prot.asc_canPaste;
})(window);
......@@ -20,7 +20,7 @@ function baseEditorsApi(config, editorId) {
this.HtmlElementName = config['id-view'] || '';
this.HtmlElement = null;
this.isMobileVersion = (config['mobile'] === true) ? true : false;
this.isMobileVersion = (config['mobile'] === true);
this.isViewMode = false;
......@@ -741,6 +741,10 @@ baseEditorsApi.prototype.asc_pluginButtonClick = function(id)
};
baseEditorsApi.prototype.asc_SetSilentMode = function() {
};
baseEditorsApi.prototype.asc_canPaste = function() {
};
baseEditorsApi.prototype.asc_Recalculate = function() {
};
......
......@@ -6591,6 +6591,8 @@ asc_docs_api.prototype["asc_pluginResize"] = asc_docs_api.prototype.asc
asc_docs_api.prototype["asc_pluginButtonClick"] = asc_docs_api.prototype.asc_pluginButtonClick;
asc_docs_api.prototype["asc_addOleObject"] = asc_docs_api.prototype.asc_addOleObject;
asc_docs_api.prototype["asc_editOleObject"] = asc_docs_api.prototype.asc_editOleObject;
asc_docs_api.prototype["asc_Recalculate"] = asc_docs_api.prototype.asc_Recalculate;
asc_docs_api.prototype["asc_canPaste"] = asc_docs_api.prototype.asc_canPaste;
window['Asc']['asc_CCommentData'] = window['Asc'].asc_CCommentData = asc_CCommentData;
asc_CCommentData.prototype['asc_getText'] = asc_CCommentData.prototype.asc_getText;
......
......@@ -7872,6 +7872,14 @@ asc_docs_api.prototype.asc_SetFastCollaborative = function(isOn)
asc_docs_api.superclass._onEndLoadSdk.call(this);
};
asc_docs_api.prototype.asc_Recalculate = function(bIsUpdateInterface)
{
if (!this.WordControl.m_oLogicDocument)
return;
return this.WordControl.m_oLogicDocument.Recalculate_FromStart(bIsUpdateInterface);
};
window["asc_docs_api"] = asc_docs_api;
window["asc_docs_api"].prototype["asc_nativeOpenFile"] = function(base64File, version)
{
......@@ -8010,14 +8018,6 @@ window["asc_docs_api"].prototype.asc_SetSilentMode = function(bEnabled)
this.WordControl.m_oLogicDocument.End_SilentMode();
};
window["asc_docs_api"].prototype.asc_Recalculate = function(bIsUpdateInterface)
{
if (!this.WordControl.m_oLogicDocument)
return;
return this.WordControl.m_oLogicDocument.Recalculate_FromStart(bIsUpdateInterface);
};
window["asc_docs_api"].prototype["asc_nativeApplyChanges2"] = function(data, isFull)
{
// Чтобы заново созданные параграфы не отображались залоченными
......@@ -8818,6 +8818,7 @@ asc_docs_api.prototype["asc_SetSilentMode"] = asc_docs_api.prototype.asc
asc_docs_api.prototype["asc_addOleObject"] = asc_docs_api.prototype.asc_addOleObject;
asc_docs_api.prototype["asc_editOleObject"] = asc_docs_api.prototype.asc_editOleObject;
asc_docs_api.prototype["asc_Recalculate"] = asc_docs_api.prototype.asc_Recalculate;
asc_docs_api.prototype["asc_canPaste"] = asc_docs_api.prototype.asc_canPaste;
CParagraphPropEx.prototype['get_ContextualSpacing'] = CParagraphPropEx.prototype.get_ContextualSpacing;
CParagraphPropEx.prototype['get_Ind'] = CParagraphPropEx.prototype.get_Ind;
......
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