Struct xpcom::interfaces::mozIPersonalDictionary [] [src]

#[repr(C)]
pub struct mozIPersonalDictionary { /* fields omitted */ }

interface mozIPersonalDictionary : nsISupports

/**
 * This interface represents a Personal Dictionary.
 */

Methods

impl mozIPersonalDictionary
[src]

[src]

Cast this mozIPersonalDictionary to one of its base interfaces.

impl mozIPersonalDictionary
[src]

[src]

/**
   * Load the dictionary
   */

void load ();

[src]

/**
   * Save the dictionary
   */

void save ();

[src]

/**
   * Get the (lexicographically sorted) list of words
   */

readonly attribute nsIStringEnumerator wordList;

[src]

/**
   * Check a unicode string
   */

boolean check (in wstring word, in wstring lang);

[src]

/**
   * Add a word to the personal dictionary
   */

void addWord (in wstring word, in wstring lang);

[src]

/**
   * Remove a word from the personal dictionary
   */

void removeWord (in wstring word, in wstring lang);

[src]

/**
   * Add a word to the ignore all list
   */

void ignoreWord (in wstring word);

[src]

/**
   * Clear the ignore list
   */

void endSession ();

[src]

/**
   * These three functions are here in case we want to store previous
   * misspellings and return them at the head of the misspell list.
   */
/**
   * Add a misspelling to the list of corrections
   */

void addCorrection (in wstring word, in wstring correction, in wstring lang);

[src]

/**
   * Remove a misspelling from the list of corrections
   */

void removeCorrection (in wstring word, in wstring correction, in wstring lang);

[src]

/**
   * Get a list of previous corrections for the word
   */

void getCorrection (in wstring word, [array, size_is (count)] out wstring words, out uint32_t count);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for mozIPersonalDictionary
[src]

IID: nsIID = nsID(2129997487, 47073, 17963, [135, 226, 93, 29, 186, 202, 144, 72])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for mozIPersonalDictionary
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for mozIPersonalDictionary
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.