C# Class SIL.FieldWorks.LexText.Controls.WebPageInteractor

Show file Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
GoToPreviousWordGrammarPage ( ) : void

Back up a page in the Word Grammar Debugger

We cannot merely use the history mechanism of the html control because we need to keep track of the xml page source file as well as the html page. This info is kept in the WordGrammarStack.

JumpToToolBasedOnHvo ( int hvo ) : void

Have the main FLEx window jump to the appropriate item

ShowWordGrammarDetail ( string sNodeId ) : void

Show the first pass of the Word Grammar Debugger

TryWordGrammarAgain ( string sNodeId ) : void

Try another pass in the Word Grammar Debugger

WebPageInteractor ( HtmlControl htmlControl, XCore.Mediator mediator, FwTextBox tbWordForm ) : System

Protected Methods

Method Description
AdjustForm ( string sForm ) : string

Modify the content of the form to use entities when needed

HandleDomClick ( object sender, Gecko.DomMouseEventArgs e ) : void
TryGetHvo ( Gecko.GeckoElement element, int &hvo ) : bool

Method Details

AdjustForm() protected method

Modify the content of the form to use entities when needed
protected AdjustForm ( string sForm ) : string
sForm string form to adjust
return string

GoToPreviousWordGrammarPage() public method

Back up a page in the Word Grammar Debugger
We cannot merely use the history mechanism of the html control because we need to keep track of the xml page source file as well as the html page. This info is kept in the WordGrammarStack.
public GoToPreviousWordGrammarPage ( ) : void
return void

HandleDomClick() protected method

protected HandleDomClick ( object sender, Gecko.DomMouseEventArgs e ) : void
sender object
e Gecko.DomMouseEventArgs
return void

JumpToToolBasedOnHvo() public method

Have the main FLEx window jump to the appropriate item
public JumpToToolBasedOnHvo ( int hvo ) : void
hvo int item whose parent will indcate where to jump to
return void

ShowWordGrammarDetail() public method

Show the first pass of the Word Grammar Debugger
public ShowWordGrammarDetail ( string sNodeId ) : void
sNodeId string The node id in the XAmple trace to use
return void

TryGetHvo() protected method

protected TryGetHvo ( Gecko.GeckoElement element, int &hvo ) : bool
element Gecko.GeckoElement
hvo int
return bool

TryWordGrammarAgain() public method

Try another pass in the Word Grammar Debugger
public TryWordGrammarAgain ( string sNodeId ) : void
sNodeId string the node id of the step to try
return void

WebPageInteractor() public method

public WebPageInteractor ( HtmlControl htmlControl, XCore.Mediator mediator, FwTextBox tbWordForm ) : System
htmlControl XCore.HtmlControl
mediator XCore.Mediator
tbWordForm SIL.FieldWorks.Common.Widgets.FwTextBox
return System