#include <spell_manager.h>
Public Member Functions | |
virtual | ~SpellManager () |
virtual SpellChecker * | lastDictionary (void) const |
virtual SpellChecker * | requestDictionary (const char *szLang) |
UT_uint32 | numLoadedDicts () const |
SpellChecker * | getInstance () const |
Static Public Member Functions | |
static SpellManager & | instance (void) |
Private Member Functions | |
SpellManager () | |
SpellManager (const SpellManager &other) | |
SpellManager & | operator= (const SpellManager &other) |
Private Attributes | |
UT_StringPtrMap | m_map |
UT_String | m_missingHashs |
SpellChecker * | m_lastDict |
UT_uint32 | m_nLoadedDicts |
SpellManager::~SpellManager | ( | ) | [virtual] |
Destructor
References DELETEP, UT_GenericStringMap< T >::enumerate(), m_map, UT_ASSERT, and UT_VECTOR_PURGEALL.
SpellManager::SpellManager | ( | ) | [private] |
Protected constructor
This (Singleton) class is responsible for creating, handing out, and destroying instances of the ISpellChecker class
References m_missingHashs.
SpellManager::SpellManager | ( | const SpellManager & | other | ) | [private] |
SpellChecker * SpellManager::getInstance | ( | ) | const |
SpellManager & SpellManager::instance | ( | void | ) | [static] |
If an instance already exists it will be returned for you. If not, one is created and returned for you
References s_instance.
SpellChecker * SpellManager::lastDictionary | ( | void | ) | const [virtual] |
Returns the last used dictionary, or 0
References m_lastDict.
UT_uint32 SpellManager::numLoadedDicts | ( | ) | const [inline] |
SpellManager& SpellManager::operator= | ( | const SpellManager & | other | ) | [private] |
SpellChecker * SpellManager::requestDictionary | ( | const char * | szLang | ) | [virtual] |
Request an instance of a dictionary capable of checking the language Represented by szLang
szLang | - The language tag ("en-US") we want to use |
References UT_String::c_str(), UT_GenericStringMap< T >::contains(), UT_GenericStringMap< T >::insert(), m_lastDict, m_map, m_missingHashs, m_nLoadedDicts, and UT_GenericStringMap< T >::pick().
SpellChecker* SpellManager::m_lastDict [private] |
Referenced by lastDictionary(), and requestDictionary().
UT_StringPtrMap SpellManager::m_map [private] |
Referenced by requestDictionary(), and ~SpellManager().
UT_String SpellManager::m_missingHashs [private] |
Referenced by requestDictionary(), and SpellManager().
UT_uint32 SpellManager::m_nLoadedDicts [private] |
Referenced by requestDictionary().