mozIPersonalDictionary

IID:7EF52EAF-B7E1-462B-87E2-5D1DBACA9048
Inherits From:nsISupports

This interface represents a Personal Dictionary.

This interface is implemented by the following components:


Properties

readonly nsIStringEnumerator wordList

Get the (lexicographically sorted) list of words


Methods

void addCorrection ( PRUnichar* word , PRUnichar* correction , PRUnichar* lang ) void addWord ( PRUnichar* word , PRUnichar* lang ) PRBool check ( PRUnichar* word , PRUnichar* lang ) void endSession ( ) void getCorrection ( PRUnichar* word , out arrayof PRUnichar* words , out PRUint32 count ) void ignoreWord ( PRUnichar* word ) void load ( ) void removeCorrection ( PRUnichar* word , PRUnichar* correction , PRUnichar* lang ) void removeWord ( PRUnichar* word , PRUnichar* lang ) void save ( )

void addCorrection ( PRUnichar* word , PRUnichar* correction , PRUnichar* lang )

Add a misspelling to the list of corrections

Arguments:
word
correction
lang

void addWord ( PRUnichar* word , PRUnichar* lang )

Add a word to the personal dictionary

Arguments:
word
lang

PRBool check ( PRUnichar* word , PRUnichar* lang )

Check a unicode string

Arguments:
word
lang

void endSession ( )

Clear the ignore list


void getCorrection ( PRUnichar* word , out arrayof PRUnichar* words , out PRUint32 count )

Get a list of previous corrections for the word

Arguments:
word
words
count

void ignoreWord ( PRUnichar* word )

Add a word to the ignore all list

Arguments:
word

void load ( )

Load the dictionary


void removeCorrection ( PRUnichar* word , PRUnichar* correction , PRUnichar* lang )

Remove a misspelling from the list of corrections

Arguments:
word
correction
lang

void removeWord ( PRUnichar* word , PRUnichar* lang )

Remove a word from the personal dictionary

Arguments:
word
lang

void save ( )

Save the dictionary

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com