This commit is contained in:
2011-02-08 11:34:11 +00:00
parent 7105a1cfb7
commit a68a7cd8ec
5 changed files with 603 additions and 209 deletions

View File

@@ -7,13 +7,13 @@ namespace Volian.Controls.Library
{
public class VlnSpellCheck
{
private RTBItem _MyRTBItem;
public RTBItem MyRTBItem
private EditItem _MyEditItem;
public EditItem MyEditItem
{
get { return _MyRTBItem; }
get { return _MyEditItem; }
set
{
_MyRTBItem = value;
_MyEditItem = value;
}
}
@@ -24,14 +24,14 @@ namespace Volian.Controls.Library
public void DoSpellCheck()
{
while (MyRTBItem.MyStepRTB.SpellCheckNext())
while (MyEditItem.SpellCheckNext())
{
ItemInfo next = MyRTBItem.MyItemInfo.SearchNext;
ItemInfo next = MyEditItem.MyItemInfo.SearchNext;
if (next.IsSection)
return; // spell check only current section
MyRTBItem.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OpenItem(next);
MyEditItem.MyStepPanel.MyStepTabPanel.MyDisplayTabControl.OpenItem(next);
}
MyRTBItem.MyStepRTB.Focus();
MyEditItem.SetFocus();
}
}