Genero Desktop Client 2.20 New Features / Widgets: Genero Desktop Client 2.20 New Features |
A spelling checker is included for TextEdits.
The spelling checker uses LGPL Hunspell (see http://hunspell.sourceforge.net/) which is the default spell checker of OpenOffice.org or Mozilla tools.
You need to provide the Genero Desktop Client (GDC) the two dictionary files needed for each language. These files can be downloaded from http://extensions.openoffice.org/. Extract the files in the oxt archive.
"<affix file>|<dictionnary file>"
<Style name="TextEdit.spellUs"> <StyleAttribute name="spellCheck" value="file:///c:/dics/en_US.aff|file:///c:/dics/en_US.dic" /> </Style>
GDC will underline unknown words, and a right click on the unknown word will add the list of suggestions for this word to the contextual menu.
Figure 1. Spell checker window flow
<Style name="TextEdit.spellUs"> <StyleAttribute name="spellCheck" value="en_US.aff|en_US.dic" /> </Style>