#include <spell_manager.h>
List of all members.
Public Types |
| enum | SpellCheckResult { LOOKUP_SUCCEEDED = 0,
LOOKUP_FAILED = 1,
LOOKUP_ERROR = 2
} |
Public Member Functions |
| SpellCheckResult | checkWord (const UT_UCSChar *word, size_t len) |
| UT_GenericVector< UT_UCSChar * > * | suggestWord (const UT_UCSChar *word, size_t len) |
| virtual UT_Vector & | getMapping () |
| virtual bool | doesDictionaryExist (const char *) |
| 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)=0 |
| virtual bool | isIgnored (const UT_UCSChar *pWord, size_t len) const =0 |
| const UT_String & | getLanguage () const |
| bool | requestDictionary (const char *szLang) |
| bool | isDictionaryFound (void) |
| void | setDictionaryFound (bool b) |
Protected Member Functions |
| | SpellChecker () |
| virtual | ~SpellChecker () |
| void | setLanguage (const char *lang) |
Static Protected Member Functions |
| static void | couldNotLoadDictionary (const char *szLang) |
Protected Attributes |
| UT_String | m_sLanguage |
| BarbarismChecker | m_BarbarismChecker |
| UT_Vector | m_vecEmpty |
| bool | m_bIsBarbarism |
| bool | m_bIsDictionaryWord |
| bool | m_bFoundDictionary |
Private Member Functions |
| | SpellChecker (const SpellChecker &) |
| void | operator= (const SpellChecker &) |
| virtual bool | _requestDictionary (const char *szLang)=0 |
| virtual SpellCheckResult | _checkWord (const UT_UCSChar *word, size_t len)=0 |
virtual UT_GenericVector
< UT_UCSChar * > * | _suggestWord (const UT_UCSChar *word, size_t len)=0 |
Friends |
| class | SpellManager |
Member Enumeration Documentation
- Enumerator:
| LOOKUP_SUCCEEDED |
|
| LOOKUP_FAILED |
|
| LOOKUP_ERROR |
|
Constructor & Destructor Documentation
| SpellChecker::SpellChecker |
( |
|
) |
[protected] |
| SpellChecker::~SpellChecker |
( |
|
) |
[protected, virtual] |
| SpellChecker::SpellChecker |
( |
const SpellChecker & |
|
) |
[private] |
Member Function Documentation
| virtual bool SpellChecker::_requestDictionary |
( |
const char * |
szLang |
) |
[private, pure virtual] |
| bool SpellChecker::addToCustomDict |
( |
const UT_UCSChar * |
word, |
|
|
size_t |
len | |
|
) |
| | [virtual] |
References _checkWord(), BarbarismChecker::checkWord(), getLanguage(), LOOKUP_FAILED, LOOKUP_SUCCEEDED, m_BarbarismChecker, m_bIsBarbarism, m_bIsDictionaryWord, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by AP_Dialog_Spell::_spellCheckWord(), and AP_Dialog_Spell::nextMisspelledWord().
| void SpellChecker::correctWord |
( |
const UT_UCSChar * |
toCorrect, |
|
|
size_t |
toCorrectLen, |
|
|
const UT_UCSChar * |
correct, |
|
|
size_t |
correctLen | |
|
) |
| | [virtual] |
| void SpellChecker::couldNotLoadDictionary |
( |
const char * |
szLang |
) |
[static, protected] |
References UT_String::c_str(), gchar, XAP_App::getApp(), UT_Language::getIndxFromCode(), XAP_App::getLastFocussedFrame(), UT_Language::getNthLangName(), XAP_App::getStringSet(), XAP_StringSet::getValue(), XAP_Frame::showMessageBox(), UT_DEBUGMSG, and UT_String_sprintf().
| virtual bool SpellChecker::doesDictionaryExist |
( |
const char * |
|
) |
[inline, virtual] |
| const UT_String& SpellChecker::getLanguage |
( |
void |
|
) |
const [inline] |
| virtual UT_Vector& SpellChecker::getMapping |
( |
|
) |
[inline, virtual] |
| virtual void SpellChecker::ignoreWord |
( |
const UT_UCSChar * |
toCorrect, |
|
|
size_t |
toCorrectLen | |
|
) |
| | [pure virtual] |
| bool SpellChecker::isDictionaryFound |
( |
void |
|
) |
[inline] |
| virtual bool SpellChecker::isIgnored |
( |
const UT_UCSChar * |
pWord, |
|
|
size_t |
len | |
|
) |
| | const [pure virtual] |
| void SpellChecker::operator= |
( |
const SpellChecker & |
|
) |
[private] |
| bool SpellChecker::requestDictionary |
( |
const char * |
szLang |
) |
|
| void SpellChecker::setDictionaryFound |
( |
bool |
b |
) |
[inline] |
| void SpellChecker::setLanguage |
( |
const char * |
lang |
) |
[inline, protected] |
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following files: