C# Class SIL.FieldWorks.FwCoreDlgs.DummyFwFindReplaceDlg

Dummy find dialog
Inheritance: FwFindReplaceDlg
Show file Open project: sillsdev/FieldWorks Class Usage Examples

Public Properties

Property Type Description
m_fInvalidRegExDisplayed bool
m_matchMsg string
m_matchNotFoundType MatchType

Public Methods

Method Description
ApplyStyle ( FwTextBox fwTextBox, string sStyle ) : void

Exposes the ApplyStyle method

DummyFwFindReplaceDlg ( ) : System

PopulateStyleMenu ( ) : void

Expose the PopulateStyleMenu method

PopulateWritingSystemMenu ( ) : void

Expose the PopulateWritingSystemMenu method

SimulateFindButtonClick ( ) : void

SimulateFindPrevButtonClick ( ) : void

SimulateReplaceAllButtonClick ( ) : void

SimulateReplaceButtonClick ( ) : void

VerifySelection ( int iInstancePara, int iPara, int iInstanceString, int ichAnchor, int ichEnd ) : void

Verifies that the correct selection was made as the result of the find/replace operation.

Protected Methods

Method Description
DisplayInvalidRegExMessage ( string errorMessage ) : void

Displays a message box that the regular expression is invalid.

Private Methods

Method Description
OnMatchNotFound ( object sender, string defaultMsg, MatchType matchType ) : bool

Method Details

ApplyStyle() public method

Exposes the ApplyStyle method
public ApplyStyle ( FwTextBox fwTextBox, string sStyle ) : void
fwTextBox SIL.FieldWorks.Common.Widgets.FwTextBox The Tss edit control whose selection should have the /// specified style applied to it.
sStyle string The name of the style to apply
return void

DisplayInvalidRegExMessage() protected method

Displays a message box that the regular expression is invalid.
protected DisplayInvalidRegExMessage ( string errorMessage ) : void
errorMessage string The error message.
return void

DummyFwFindReplaceDlg() public method

public DummyFwFindReplaceDlg ( ) : System
return System

PopulateStyleMenu() public method

Expose the PopulateStyleMenu method
public PopulateStyleMenu ( ) : void
return void

PopulateWritingSystemMenu() public method

Expose the PopulateWritingSystemMenu method
public PopulateWritingSystemMenu ( ) : void
return void

SimulateFindButtonClick() public method

public SimulateFindButtonClick ( ) : void
return void

SimulateFindPrevButtonClick() public method

public SimulateFindPrevButtonClick ( ) : void
return void

SimulateReplaceAllButtonClick() public method

public SimulateReplaceAllButtonClick ( ) : void
return void

SimulateReplaceButtonClick() public method

public SimulateReplaceButtonClick ( ) : void
return void

VerifySelection() public method

Verifies that the correct selection was made as the result of the find/replace operation.
public VerifySelection ( int iInstancePara, int iPara, int iInstanceString, int ichAnchor, int ichEnd ) : void
iInstancePara int The index of the instance of the paragraph property /// in whose contants the selection was expected.
iPara int The index of the para where the selection was expected.
iInstanceString int The index of the instance of the string property where /// the selection was expected.
ichAnchor int The character offset of the anchor.
ichEnd int The character offset of the end.
return void

Property Details

m_fInvalidRegExDisplayed public property

true if the "Invalid RegEx" message box was displayed
public bool m_fInvalidRegExDisplayed
return bool

m_matchMsg public property

public string m_matchMsg
return string

m_matchNotFoundType public property

public MatchType m_matchNotFoundType
return MatchType