Commit 2cb605af authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

новые методы в апи для DocBuilder

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68631 954022d7-b5bf-4e40-9824-e11837661b57
parent dd1b115b
...@@ -7132,6 +7132,19 @@ window["asc_docs_api"].prototype["asc_nativeOpenFile"] = function(base64File, ve ...@@ -7132,6 +7132,19 @@ window["asc_docs_api"].prototype["asc_nativeOpenFile"] = function(base64File, ve
this.asc_fireCallback("asc_onError",c_oAscError.ID.MobileUnexpectedCharCount,c_oAscError.Level.Critical); this.asc_fireCallback("asc_onError",c_oAscError.ID.MobileUnexpectedCharCount,c_oAscError.Level.Critical);
} }
if (window.NATIVE_EDITOR_ENJINE === true && undefined != window["native"])
{
window["CDocsCoApi"].prototype.askSaveChanges = function(callback)
{
callback({"saveLock": false});
};
window["CDocsCoApi"].prototype.saveChanges = function(arrayChanges, deleteIndex, excelAdditionalInfo)
{
if (window["native"]["SaveChanges"])
window["native"]["SaveChanges"](arrayChanges.join("\",\""), deleteIndex, arrayChanges.length);
};
}
if (undefined != window["Native"]) if (undefined != window["Native"])
return; return;
...@@ -7200,6 +7213,21 @@ window["asc_docs_api"].prototype["asc_nativeApplyChanges"] = function(changes) ...@@ -7200,6 +7213,21 @@ window["asc_docs_api"].prototype["asc_nativeApplyChanges"] = function(changes)
CollaborativeEditing.Apply_OtherChanges(); CollaborativeEditing.Apply_OtherChanges();
}; };
window["asc_docs_api"].prototype["asc_nativeInitBuilder"] = function()
{
this.asc_setDocInfo(new window["CDocInfo"]());
};
window["asc_docs_api"].prototype["asc_SetSilentMode"] = function(bEnabled)
{
if (!this.WordControl.m_oLogicDocument)
return;
if (bEnabled)
this.WordControl.m_oLogicDocument.Start_SilentMode();
else
this.WordControl.m_oLogicDocument.End_SilentMode();
};
window["asc_docs_api"].prototype["asc_nativeApplyChanges2"] = function(data, isFull) window["asc_docs_api"].prototype["asc_nativeApplyChanges2"] = function(data, isFull)
{ {
// Чтобы заново созданные параграфы не отображались залоченными // Чтобы заново созданные параграфы не отображались залоченными
......
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