21 #include "defaultdictionary.h"
28 class DefaultDictionary::Private
36 DefaultDictionary::DefaultDictionary(
const TQString& lang,
Broker *broker )
42 connect( broker, TQ_SIGNAL(configurationChanged()),
43 TQ_SLOT(defaultConfigurationChanged()) );
46 DefaultDictionary::~DefaultDictionary()
51 bool DefaultDictionary::isValid()
const
57 bool DefaultDictionary::check(
const TQString& word )
60 return d->dict->check( word );
65 TQStringList DefaultDictionary::suggest(
const TQString& word )
68 return d->dict->suggest( word );
70 return TQStringList();
74 bool DefaultDictionary::checkAndSuggest(
const TQString& word,
75 TQStringList& suggestions )
78 return d->dict->checkAndSuggest( word, suggestions );
83 bool DefaultDictionary::storeReplacement(
const TQString& bad,
84 const TQString& good )
87 return d->dict->storeReplacement( bad, good );
92 bool DefaultDictionary::addToPersonal(
const TQString& word )
95 return d->dict->addToPersonal( word );
100 bool DefaultDictionary::addToSession(
const TQString& word )
103 return d->dict->addToSession( word );
108 void DefaultDictionary::defaultConfigurationChanged()
111 d->dict = d->broker->dictionary();
113 m_language = d->dict->language();
115 m_language = TQString::null;
118 #include "defaultdictionary.moc"
Class used to deal with dictionaries.
Dictionary * dictionary(const TQString &language=TQString::null, const TQString &client=TQString::null) const
Returns dictionary for the given language and preferred client.
Class is returned by from Broker.