• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KDECore

Sonnet::Speller

Sonnet::Speller Class Reference

#include <speller.h>

List of all members.


Detailed Description

Spell checker object.

class used for actuall spell checking

Definition at line 38 of file speller.h.


Public Types

enum  Attribute { CheckUppercase, SkipRunTogether }

Public Member Functions

bool addToPersonal (const QString &word)
bool addToSession (const QString &word)
QStringList availableBackends () const
QStringList availableLanguageNames () const
QStringList availableLanguages () const
bool checkAndSuggest (const QString &word, QStringList &suggestions) const
QString defaultClient () const
QString defaultLanguage () const
bool isCorrect (const QString &word) const
bool isMisspelled (const QString &word) const
bool isValid () const
QString language () const
Speller & operator= (const Speller &speller)
void restore (KConfig *config)
void save (KConfig *config)
void setAttribute (Attribute attr, bool b=true)
void setDefaultClient (const QString &client)
void setDefaultLanguage (const QString &lang)
void setLanguage (const QString &lang)
 Speller (const Speller &speller)
 Speller (const QString &lang=QString())
bool storeReplacement (const QString &bad, const QString &good)
QStringList suggest (const QString &word) const
bool testAttribute (Attribute attr) const
 ~Speller ()

Member Enumeration Documentation

enum Sonnet::Speller::Attribute

Enumerator:
CheckUppercase 
SkipRunTogether 

Definition at line 108 of file speller.h.


Constructor & Destructor Documentation

Sonnet::Speller::Speller ( const QString &  lang = QString()  ) 

Definition at line 72 of file speller.cpp.

Sonnet::Speller::~Speller (  ) 

Definition at line 79 of file speller.cpp.

Sonnet::Speller::Speller ( const Speller &  speller  ) 

Definition at line 86 of file speller.cpp.


Member Function Documentation

bool Sonnet::Speller::addToPersonal ( const QString &  word  ) 

Adds word to the list of of personal words.

Returns:
true on success

Definition at line 142 of file speller.cpp.

bool Sonnet::Speller::addToSession ( const QString &  word  ) 

Adds word to the words recognizable in the current session.

Returns:
true on success

Definition at line 150 of file speller.cpp.

QStringList Sonnet::Speller::availableBackends (  )  const

Returns names of all supported backends (e.g.

ISpell, ASpell)

Definition at line 183 of file speller.cpp.

QStringList Sonnet::Speller::availableLanguageNames (  )  const

Returns a localized list of names of supported languages.

Definition at line 197 of file speller.cpp.

QStringList Sonnet::Speller::availableLanguages (  )  const

Returns a list of supported languages.

Definition at line 190 of file speller.cpp.

bool Sonnet::Speller::checkAndSuggest ( const QString &  word,
QStringList &  suggestions 
) const

Convience method calling isCorrect() and suggest() if the word isn't correct.

Definition at line 124 of file speller.cpp.

QString Sonnet::Speller::defaultClient (  )  const

Definition at line 222 of file speller.cpp.

QString Sonnet::Speller::defaultLanguage (  )  const

Definition at line 210 of file speller.cpp.

bool Sonnet::Speller::isCorrect ( const QString &  word  )  const

Checks the given word.

Returns:
false if the word is misspelled. true otherwise

Definition at line 102 of file speller.cpp.

bool Sonnet::Speller::isMisspelled ( const QString &  word  )  const

Checks the given word.

Returns:
true if the word is misspelled. false otherwise

Definition at line 110 of file speller.cpp.

bool Sonnet::Speller::isValid (  )  const

Returns true is the speller supports currently selected language.

Definition at line 254 of file speller.cpp.

QString Sonnet::Speller::language (  )  const

Returns language supported by this speller.

Definition at line 158 of file speller.cpp.

Speller & Sonnet::Speller::operator= ( const Speller &  speller  ) 

Definition at line 94 of file speller.cpp.

void Sonnet::Speller::restore ( KConfig *  config  ) 

Definition at line 174 of file speller.cpp.

void Sonnet::Speller::save ( KConfig *  config  ) 

Definition at line 166 of file speller.cpp.

void Sonnet::Speller::setAttribute ( Attribute  attr,
bool  b = true 
)

Definition at line 228 of file speller.cpp.

void Sonnet::Speller::setDefaultClient ( const QString &  client  ) 

Definition at line 216 of file speller.cpp.

void Sonnet::Speller::setDefaultLanguage ( const QString &  lang  ) 

Definition at line 204 of file speller.cpp.

void Sonnet::Speller::setLanguage ( const QString &  lang  ) 

Sets the language supported by this speller.

Definition at line 259 of file speller.cpp.

bool Sonnet::Speller::storeReplacement ( const QString &  bad,
const QString &  good 
)

Stores user defined good replacement for the bad word.

Returns:
true on success

Definition at line 133 of file speller.cpp.

QStringList Sonnet::Speller::suggest ( const QString &  word  )  const

Fetches suggestions for the word.

Returns:
list of all suggestions for the word

Definition at line 117 of file speller.cpp.

bool Sonnet::Speller::testAttribute ( Attribute  attr  )  const

Definition at line 241 of file speller.cpp.


The documentation for this class was generated from the following files:
  • speller.h
  • speller.cpp

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal