#include <enchant_checker.h>
Public Member Functions | |
| virtual | ~EnchantChecker () |
| virtual bool | addToCustomDict (const UT_UCSChar *word, size_t len) |
| virtual void | correctWord (const UT_UCSChar *toCorrect, size_t toCorrectLen, const UT_UCSChar *correct, size_t correctLen) |
| virtual void | ignoreWord (const UT_UCSChar *toCorrect, size_t toCorrectLen) |
| virtual bool | isIgnored (const UT_UCSChar *pWord, size_t len) const |
Protected Member Functions | |
| EnchantChecker () | |
Private Member Functions | |
| bool | _requestDictionary (const char *szLang) |
| SpellChecker::SpellCheckResult | _checkWord (const UT_UCSChar *word, size_t len) |
| UT_GenericVector< UT_UCSChar * > * | _suggestWord (const UT_UCSChar *word, size_t len) |
Private Attributes | |
| EnchantDict * | m_dict |
Friends | |
| class | SpellManager |
| EnchantChecker::~EnchantChecker | ( | ) | [virtual] |
References m_dict, s_enchant_broker, s_enchant_broker_count, and UT_return_if_fail.
| EnchantChecker::EnchantChecker | ( | ) | [protected] |
References gchar, XAP_App::getApp(), s_enchant_broker, and s_enchant_broker_count.
| SpellChecker::SpellCheckResult EnchantChecker::_checkWord | ( | const UT_UCSChar * | word, | |
| size_t | len | |||
| ) | [private, virtual] |
Implements SpellChecker.
References UT_UTF8String::byteLength(), SpellChecker::LOOKUP_ERROR, m_dict, UT_return_val_if_fail, and UT_UTF8String::utf8_str().
| bool EnchantChecker::_requestDictionary | ( | const char * | szLang | ) | [private, virtual] |
Implements SpellChecker.
References FREEP, m_dict, s_enchant_broker, and UT_return_val_if_fail.
| UT_GenericVector< UT_UCSChar * > * EnchantChecker::_suggestWord | ( | const UT_UCSChar * | word, | |
| size_t | len | |||
| ) | [private, virtual] |
Implements SpellChecker.
References UT_GenericVector< T >::addItem(), m_dict, UT_return_val_if_fail, and utf8_to_utf32().
| bool EnchantChecker::addToCustomDict | ( | const UT_UCSChar * | word, | |
| size_t | len | |||
| ) | [virtual] |
Reimplemented from SpellChecker.
References UT_UTF8String::byteLength(), m_dict, UT_return_val_if_fail, and UT_UTF8String::utf8_str().
| void EnchantChecker::correctWord | ( | const UT_UCSChar * | toCorrect, | |
| size_t | toCorrectLen, | |||
| const UT_UCSChar * | correct, | |||
| size_t | correctLen | |||
| ) | [virtual] |
Reimplemented from SpellChecker.
References UT_UTF8String::byteLength(), m_dict, UT_return_if_fail, and UT_UTF8String::utf8_str().
| void EnchantChecker::ignoreWord | ( | const UT_UCSChar * | toCorrect, | |
| size_t | toCorrectLen | |||
| ) | [virtual] |
Implements SpellChecker.
References UT_UTF8String::byteLength(), m_dict, UT_return_if_fail, and UT_UTF8String::utf8_str().
| bool EnchantChecker::isIgnored | ( | const UT_UCSChar * | pWord, | |
| size_t | len | |||
| ) | const [virtual] |
Implements SpellChecker.
References UT_UTF8String::byteLength(), m_dict, UT_return_val_if_fail, and UT_UTF8String::utf8_str().
friend class SpellManager [friend] |
Reimplemented from SpellChecker.
EnchantDict* EnchantChecker::m_dict [private] |
Referenced by _checkWord(), _requestDictionary(), _suggestWord(), addToCustomDict(), correctWord(), ignoreWord(), isIgnored(), and ~EnchantChecker().
1.7.1