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]
pub fn coerce<T: mozIPersonalDictionaryCoerce>(&self) -> &T
[src]
Cast this mozIPersonalDictionary
to one of its base interfaces.
impl mozIPersonalDictionary
[src]
pub unsafe fn Load(&self) -> nsresult
[src]
/**
* Load the dictionary
*/
void load ();
pub unsafe fn Save(&self) -> nsresult
[src]
/**
* Save the dictionary
*/
void save ();
pub unsafe fn GetWordList(
&self,
aWordList: *mut *const nsIStringEnumerator
) -> nsresult
[src]
&self,
aWordList: *mut *const nsIStringEnumerator
) -> nsresult
/**
* Get the (lexicographically sorted) list of words
*/
readonly attribute nsIStringEnumerator wordList;
pub unsafe fn Check(
&self,
word: *const int16_t,
lang: *const int16_t,
_retval: *mut bool
) -> nsresult
[src]
&self,
word: *const int16_t,
lang: *const int16_t,
_retval: *mut bool
) -> nsresult
/**
* Check a unicode string
*/
boolean check (in wstring word, in wstring lang);
pub unsafe fn AddWord(
&self,
word: *const int16_t,
lang: *const int16_t
) -> nsresult
[src]
&self,
word: *const int16_t,
lang: *const int16_t
) -> nsresult
/**
* Add a word to the personal dictionary
*/
void addWord (in wstring word, in wstring lang);
pub unsafe fn RemoveWord(
&self,
word: *const int16_t,
lang: *const int16_t
) -> nsresult
[src]
&self,
word: *const int16_t,
lang: *const int16_t
) -> nsresult
/**
* Remove a word from the personal dictionary
*/
void removeWord (in wstring word, in wstring lang);
pub unsafe fn IgnoreWord(&self, word: *const int16_t) -> nsresult
[src]
/**
* Add a word to the ignore all list
*/
void ignoreWord (in wstring word);
pub unsafe fn EndSession(&self) -> nsresult
[src]
/**
* Clear the ignore list
*/
void endSession ();
pub unsafe fn AddCorrection(
&self,
word: *const int16_t,
correction: *const int16_t,
lang: *const int16_t
) -> nsresult
[src]
&self,
word: *const int16_t,
correction: *const int16_t,
lang: *const int16_t
) -> nsresult
/**
* 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);
pub unsafe fn RemoveCorrection(
&self,
word: *const int16_t,
correction: *const int16_t,
lang: *const int16_t
) -> nsresult
[src]
&self,
word: *const int16_t,
correction: *const int16_t,
lang: *const int16_t
) -> nsresult
/**
* Remove a misspelling from the list of corrections
*/
void removeCorrection (in wstring word, in wstring correction, in wstring lang);
pub unsafe fn GetCorrection(
&self,
word: *const int16_t,
words: *mut *mut *const int16_t,
count: *mut uint32_t
) -> nsresult
[src]
&self,
word: *const int16_t,
words: *mut *mut *const int16_t,
count: *mut uint32_t
) -> nsresult
/**
* 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>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for mozIPersonalDictionary
[src]
const IID: nsIID
IID: nsIID = nsID(2129997487, 47073, 17963, [135, 226, 93, 29, 186, 202, 144, 72])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for mozIPersonalDictionary
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.