Struct xpcom::interfaces::mozISpellCheckingEngine [] [src]

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

interface mozISpellCheckingEngine : nsISupports

/**
 * This interface represents a SpellChecker.
 */

Methods

impl mozISpellCheckingEngine
[src]

[src]

Cast this mozISpellCheckingEngine to one of its base interfaces.

impl mozISpellCheckingEngine
[src]

[src]

/**
   * The name of the current dictionary. Is either a value from
   * getDictionaryList or the empty string if no dictionary is selected.
   * Setting this attribute to a value not in getDictionaryList will throw
   * NS_ERROR_FILE_NOT_FOUND.
   *
   * If the dictionary is changed to no dictionary (the empty string), an
   * observer is allowed to set another dictionary before it returns.
   */

attribute wstring dictionary;

[src]

/**
   * The name of the current dictionary. Is either a value from
   * getDictionaryList or the empty string if no dictionary is selected.
   * Setting this attribute to a value not in getDictionaryList will throw
   * NS_ERROR_FILE_NOT_FOUND.
   *
   * If the dictionary is changed to no dictionary (the empty string), an
   * observer is allowed to set another dictionary before it returns.
   */

attribute wstring dictionary;

[src]

/**
   * The language this spellchecker is using when checking
   */

readonly attribute wstring language;

[src]

/**
   * Does the engine provide its own personal dictionary?
   */

readonly attribute boolean providesPersonalDictionary;

[src]

/**
   * Does the engine provide its own word utils?
   */

readonly attribute boolean providesWordUtils;

[src]

/**
   * The name of the engine
   */

readonly attribute wstring name;

[src]

/**
   * a string indicating the copyright of the engine
   */

readonly attribute wstring copyright;

[src]

/**
   * the personal dictionary
   */

attribute mozIPersonalDictionary personalDictionary;

[src]

/**
   * the personal dictionary
   */

attribute mozIPersonalDictionary personalDictionary;

[src]

/**
   * Get the list of dictionaries
   */

void getDictionaryList ([array, size_is (count)] out wstring dictionaries, out uint32_t count);

[src]

/**
   * check a word
   */

boolean check (in wstring word);

[src]

/**
   * get a list of suggestions for a misspelled word
   */

void suggest (in wstring word, [array, size_is (count)] out wstring suggestions, out uint32_t count);

[src]

/**
   * Load dictionaries from the specified dir
   */

void loadDictionariesFromDir (in nsIFile dir);

[src]

/**
   * Add dictionaries from a directory to the spell checker
   */

void addDirectory (in nsIFile dir);

[src]

/**
   * Remove dictionaries from a directory from the spell checker
   */

void removeDirectory (in nsIFile dir);

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 mozISpellCheckingEngine
[src]

IID: nsIID = nsID(2342929316, 32220, 18018, [185, 118, 126, 193, 35, 132, 63, 16])

[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 mozISpellCheckingEngine
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for mozISpellCheckingEngine
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.