• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kspell2
 

kspell2

  • KSpell2
  • Dictionary
Public Member Functions | Protected Member Functions | Protected Attributes | Friends
KSpell2::Dictionary Class Reference

#include <dictionary.h>

Inheritance diagram for KSpell2::Dictionary:
ASpellDict HSpellDict

List of all members.

Public Member Functions

virtual bool check (const TQString &word)=0
virtual TQStringList suggest (const TQString &word)=0
virtual bool checkAndSuggest (const TQString &word, TQStringList &suggestions)=0
virtual bool storeReplacement (const TQString &bad, const TQString &good)=0
virtual bool addToPersonal (const TQString &word)=0
virtual bool addToSession (const TQString &word)=0
TQString language () const
bool isDefault () const

Protected Member Functions

 Dictionary (const TQString &lang, bool def=false)

Protected Attributes

TQString m_language
bool m_default

Friends

class Broker

Detailed Description

Class is returned by from Broker.

It acts as the actual spellchecker.

Author:
Zack Rusin <zack@kde.org> class used for actuall spell checking

Definition at line 37 of file dictionary.h.


Member Function Documentation

virtual bool KSpell2::Dictionary::addToPersonal ( const TQString &  word) [pure virtual]

Adds word to the list of of personal words.

Returns:
true on success

Implemented in HSpellDict, and ASpellDict.

virtual bool KSpell2::Dictionary::addToSession ( const TQString &  word) [pure virtual]

Adds word to the words recognizable in the current session.

Returns:
true on success

Implemented in HSpellDict, and ASpellDict.

virtual bool KSpell2::Dictionary::check ( const TQString &  word) [pure virtual]

Checks the given word.

Returns:
false if the word is misspelled. true otherwise

Implemented in HSpellDict, and ASpellDict.

virtual bool KSpell2::Dictionary::checkAndSuggest ( const TQString &  word,
TQStringList &  suggestions 
) [pure virtual]

Checks the word and fetches suggestions for it.

Implemented in HSpellDict, and ASpellDict.

bool KSpell2::Dictionary::isDefault ( ) const [inline]

Returns true if this dictionary was constructed from default Settings values.

Definition at line 92 of file dictionary.h.

TQString KSpell2::Dictionary::language ( ) const [inline]

Returns language supported by this dictionary.

Definition at line 83 of file dictionary.h.

virtual bool KSpell2::Dictionary::storeReplacement ( const TQString &  bad,
const TQString &  good 
) [pure virtual]

Stores user defined good replacement for the bad word.

Returns:
true on success

Implemented in HSpellDict, and ASpellDict.

virtual TQStringList KSpell2::Dictionary::suggest ( const TQString &  word) [pure virtual]

Fetches suggestions for the word.

Returns:
list of all suggestions for the word

Implemented in HSpellDict, and ASpellDict.


The documentation for this class was generated from the following file:
  • dictionary.h

kspell2

Skip menu "kspell2"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kspell2

Skip menu "kspell2"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kspell2 by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |