Commit 2cb64d97 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

В апи добавлены функции для переключения между режимами редатирования.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@63851 954022d7-b5bf-4e40-9824-e11837661b57
parent 58d83e27
...@@ -207,7 +207,13 @@ CDocumentSpelling.prototype = ...@@ -207,7 +207,13 @@ CDocumentSpelling.prototype =
private_CompareWordsAndLangs : function(Words1, Words2, Langs1, Langs2) private_CompareWordsAndLangs : function(Words1, Words2, Langs1, Langs2)
{ {
if (undefined === Words1 || undefined === Words2 || undefined === Langs1 || undefined === Langs2 || Words1.length !== Words2.length || Words1.length !== Langs1.length || Words1.length !== Langs2.length) if (undefined === Words1
|| undefined === Words2
|| undefined === Langs1
|| undefined === Langs2
|| Words1.length !== Words2.length
|| Words1.length !== Langs1.length
|| Words1.length !== Langs2.length)
return false; return false;
for (var nIndex = 0, nCount = Words1.length; nIndex < nCount; nIndex++) for (var nIndex = 0, nCount = Words1.length; nIndex < nCount; nIndex++)
......
...@@ -7446,6 +7446,19 @@ asc_docs_api.prototype.asc_IsDefaultStyleChanged = function(sName) ...@@ -7446,6 +7446,19 @@ asc_docs_api.prototype.asc_IsDefaultStyleChanged = function(sName)
{ {
return this.WordControl.m_oLogicDocument.Is_DefaultStyleChanged(sName); return this.WordControl.m_oLogicDocument.Is_DefaultStyleChanged(sName);
}; };
//----------------------------------------------------------------------------------------------------------------------
// Работаем с рецензированием
//----------------------------------------------------------------------------------------------------------------------
asc_docs_api.prototype.asc_SetEditingType = function(Type)
{
return this.WordControl.m_oLogicDocument.Set_EditingType(Type);
};
asc_docs_api.prototype.asc_GetEditingType = function(Type)
{
return this.WordControl.m_oLogicDocument.Get_EditingType();
};
asc_docs_api.prototype.asc_stopSaving = function () { asc_docs_api.prototype.asc_stopSaving = function () {
this.asc_IncrementCounterLongAction(); this.asc_IncrementCounterLongAction();
}; };
......
...@@ -573,4 +573,10 @@ var c_oAscMathInterfaceType = ...@@ -573,4 +573,10 @@ var c_oAscMathInterfaceType =
Phantom : 0x0f Phantom : 0x0f
}; };
var c_oAscEditingTypes =
{
Common : 0x00,
Review : 0x01
};
window["flat_desine"] = false; window["flat_desine"] = false;
\ 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