Window wOptions

The format wOptions implements the spell checker options window. Via this window, the user can set the various spell checker options and open, close or edit custom dictionaries.

You should have no need to call the public procedures of the format directly. You should be able to do everything you want via the procedures of the menu mSpell.

The public procedures of the format are as follows.

Init ()

Initialises the spell checker and options. It defaults the language path to ‘librarypath\LANG_LEX\’, the custom path to ‘librarypath\USER_LEX\’, and the options path to ‘librarypath’. It then calls LoadOptions(‘OSPELL.CFG’).

You should not need to call this procedure. The procedure mSpell/CheckData will call Init the first time it is called.

SetLanguagePath ( pPath )

You can call this procedure if you wish to override the default directory for the language dictionaries. pPath must contain a full path. Do not change the path once procedure Init has been called.

SetCustomPath ( pPath )

You can call this procedure if you wish to override the default directory for the custom dictionaries. pPath must contain a full path. Do not change the path once procedure Init has been called.

SetOptionsPath ( pPath )

You can call this procedure if you wish to override the default directory for the options file. pPath must contain a full path. Do not change the path once procedure Init has been called.

LoadOptions ( pOptionsFileName )

Loads the spell checker options from the specified file and opens the language and custom dictionaries which were open when the file was last saved. pOptionsFileName must not contain a path, the default options path is used (see SetOptionsPath ).

SaveOptions ( pOptionsFileName )

Saves the spell checker options and open dictionaries to the specified file. pOptionsFileName must not contain a path. The default options path is used.

BuildLanguageList ( pList )

Builds a list of all available language dictionaries and their descriptions and returns them in pList. The list must be defined with three columns of type Character, Character and Long integer. The first column will contain the dictionaries file name, the second the description, and the third the language code. The current line identifies the current language.

NewDictionary ()

Prompts the user to enter a name for a new custom dictionary and creates it in the custom dictionary directory.

DeleteDictionary ( pDictName[, pDictID] )

Deletes the specified custom dictionary. If the dictionary is already open, it must be closed first, or the optional pDictID must be specified. If pDictID is specified, the dictionary is closed before it is deleted.

OpenDictionary ( pDictName )

Opens the specified custom dictionary. pDictName must contain the file name only.

CloseDictionary ( pID )

Closes the specified custom dictionary.