C# Class ACAT.Extensions.Default.SpellCheckers.SpellChecker

Inheritance: ISpellChecker
Exibir arquivo Open project: brlima94/acat-localization

Public Methods

Method Description
Dispose ( ) : void

Disposes resources

Init ( ) : bool

Initializes the spell checker. Reads the spell check file and loads the spellings into the list

LoadDefaultSettings ( ) : bool

Loads factory default settings.

LoadSettings ( String configFileDirectory ) : bool

Loads settings from the specified directory

Lookup ( String word ) : String

Looks up the spelling list for the indicated word and returns the correct spelling if found. Returns empty string if it didn't find the word.

SaveSettings ( String configFileDirectory ) : bool

Saves settings into the specified directory

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Disposer. Release resources and cleanup.

Private Methods

Method Description
createAndAdd ( XmlNode node ) : void

Extracts word and replacement from the xml node and adds the word and its replacement to the word list.

Method Details

Dispose() public method

Disposes resources
public Dispose ( ) : void
return void

Dispose() protected method

Disposer. Release resources and cleanup.
protected Dispose ( bool disposing ) : void
disposing bool true to dispose managed resources
return void

Init() public method

Initializes the spell checker. Reads the spell check file and loads the spellings into the list
public Init ( ) : bool
return bool

LoadDefaultSettings() public method

Loads factory default settings.
public LoadDefaultSettings ( ) : bool
return bool

LoadSettings() public method

Loads settings from the specified directory
public LoadSettings ( String configFileDirectory ) : bool
configFileDirectory String directory name
return bool

Lookup() public method

Looks up the spelling list for the indicated word and returns the correct spelling if found. Returns empty string if it didn't find the word.
public Lookup ( String word ) : String
word String word to lookup
return String

SaveSettings() public method

Saves settings into the specified directory
public SaveSettings ( String configFileDirectory ) : bool
configFileDirectory String name of the directory
return bool