Commit 0b180512 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

IsSpellCheckCurrentWord

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@65126 954022d7-b5bf-4e40-9824-e11837661b57
parent bdf19f53
......@@ -1977,6 +1977,7 @@ function CDrawingDocument()
{
//this.m_oWordControl.m_oLogicDocument.RecalculateCurPos();
this.m_lCurrentPage = this.m_oWordControl.m_oLogicDocument.Get_CurPage();
this.m_oWordControl.m_oApi.asc_fireCallback("asc_onEndCalculate");
}
if (-1 != this.m_lCurrentPage)
......@@ -2009,8 +2010,7 @@ function CDrawingDocument()
if (isFull)
{
this.m_oWordControl.OnScroll();
this.m_oWordControl.m_oApi.asc_fireCallback("asc_onEndCalculate");
this.m_oWordControl.OnScroll();
}
//console.log("end " + this.m_lCountCalculatePages + "," + isFull + "," + isBreak);
......
......@@ -3770,6 +3770,8 @@ function CEditorPage(api)
}
}
}
oWordControl.m_oApi.asc_fireCallback("asc_onPaintTimer");
this.m_nPaintTimerId = setTimeout(oWordControl.onTimerScroll2, oWordControl.m_nTimerScrollInterval);
//window.requestAnimationFrame(oWordControl.onTimerScroll2);
......
......@@ -321,7 +321,7 @@ CParaSpellChecker.prototype =
if ( 1 >= Element.Word.length )
Element.Checked = true;
else if ( null === Element.Checked && -1 != CurPos && Element.EndPos.Compare( CurPos ) >= 0 && Element.StartPos.Compare( CurPos ) <= 0 )
else if ( editor.asc_IsSpellCheckCurrentWord() !== true && null === Element.Checked && -1 != CurPos && Element.EndPos.Compare( CurPos ) >= 0 && Element.StartPos.Compare( CurPos ) <= 0 )
{
Element.Checked = true;
Element.CurPos = true;
......
......@@ -409,6 +409,8 @@ function asc_docs_api(name)
this.isApplyChangesOnOpen = false;
this.isApplyChangesOnOpenEnabled = true;
this.IsSpellCheckCurrentWord = false;
// Массив lock-ов, которые были на открытии документа
this.arrPreOpenLocksObjects = [];
......@@ -7674,7 +7676,32 @@ window.asc_docs_api.prototype["Add_Text"] = window.asc_docs_api.prototype.Add_Te
};
window.asc_docs_api.prototype["Add_NewParagraph"] = window.asc_docs_api.prototype.Add_NewParagraph = function()
{
this.WordControl.m_oLogicDocument.Add_NewParagraph(_text);
this.WordControl.m_oLogicDocument.Add_NewParagraph(true);
};
window.asc_docs_api.prototype["Cursor_MoveLeft"] = window.asc_docs_api.prototype.Cursor_MoveLeft = function()
{
this.WordControl.m_oLogicDocument.Cursor_MoveLeft();
};
window.asc_docs_api.prototype["Cursor_MoveRight"] = window.asc_docs_api.prototype.Cursor_MoveRight = function()
{
this.WordControl.m_oLogicDocument.Cursor_MoveRight();
};
window.asc_docs_api.prototype["Cursor_MoveUp"] = window.asc_docs_api.prototype.Cursor_MoveUp = function()
{
this.WordControl.m_oLogicDocument.Cursor_MoveUp();
};
window.asc_docs_api.prototype["Cursor_MoveDown"] = window.asc_docs_api.prototype.Cursor_MoveDown = function()
{
this.WordControl.m_oLogicDocument.Cursor_MoveDown();
};
window.asc_docs_api.prototype["asc_IsSpellCheckCurrentWord"] = window.asc_docs_api.prototype.asc_IsSpellCheckCurrentWord = function()
{
return this.IsSpellCheckCurrentWord;
};
window.asc_docs_api.prototype["asc_putSpellCheckCurrentWord"] = window.asc_docs_api.prototype.asc_putSpellCheckCurrentWord = function(value)
{
this.IsSpellCheckCurrentWord = value;
};
// desktop editor spellcheck
......
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