21 #include "tdespell_ispelldict.h" 25 #include "ispell_checker.h" 29 ISpellDict::ISpellDict(
const TQString& lang )
32 m_checker =
new ISpellChecker();
34 if ( !m_checker->requestDictionary( lang.latin1() ) ) {
35 kdError()<<
"Language \""<< lang <<
"\" doesn't exist for Ispell"<<endl;
39 ISpellDict::~ISpellDict()
43 bool ISpellDict::check(
const TQString& word )
45 return m_checker->checkWord( word );
48 TQStringList ISpellDict::suggest(
const TQString& word )
50 return m_checker->suggestWord( word );
53 bool ISpellDict::checkAndSuggest(
const TQString& word,
54 TQStringList& suggestions )
56 bool c =
check( word );
62 bool ISpellDict::storeReplacement(
const TQString& ,
68 bool ISpellDict::addToPersonal(
const TQString& )
73 bool ISpellDict::addToSession(
const TQString& )
Class is returned by from Broker.
virtual bool check(const TQString &word)
Checks the given word.
virtual TQStringList suggest(const TQString &word)
Fetches suggestions for the word.