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

kspell2

  • kspell2
  • plugins
  • hspell
kspell_hspelldict.h
1 
22 #ifndef KSPELL_HSPELLDICT_H
23 #define KSPELL_HSPELLDICT_H
24 
25 #include "dictionary.h"
26 /* libhspell is a C library and it does not have #ifdef __cplusplus */
27 extern "C" {
28 #include "hspell.h"
29 }
30 
31 class HSpellDict : public KSpell2::Dictionary
32 {
33 public:
34  HSpellDict( const TQString& lang );
35  ~HSpellDict();
36  virtual bool check( const TQString& word );
37 
38  virtual TQStringList suggest( const TQString& word );
39 
40  virtual bool checkAndSuggest( const TQString& word,
41  TQStringList& suggestions ) ;
42 
43  virtual bool storeReplacement( const TQString& bad,
44  const TQString& good );
45 
46  virtual bool addToPersonal( const TQString& word );
47  virtual bool addToSession( const TQString& word );
48 private:
49  struct dict_radix *m_speller;
50  TQTextCodec *codec;
51 };
52 
53 #endif
HSpellDict
kspell_hspelldict.h
Definition: kspell_hspelldict.h:32
HSpellDict::checkAndSuggest
virtual bool checkAndSuggest(const TQString &word, TQStringList &suggestions)
Checks the word and fetches suggestions for it.
Definition: kspell_hspelldict.cpp:78
HSpellDict::check
virtual bool check(const TQString &word)
Checks the given word.
Definition: kspell_hspelldict.cpp:46
HSpellDict::suggest
virtual TQStringList suggest(const TQString &word)
Fetches suggestions for the word.
Definition: kspell_hspelldict.cpp:64
HSpellDict::addToSession
virtual bool addToSession(const TQString &word)
Adds word to the words recognizable in the current session.
Definition: kspell_hspelldict.cpp:102
HSpellDict::addToPersonal
virtual bool addToPersonal(const TQString &word)
Adds word to the list of of personal words.
Definition: kspell_hspelldict.cpp:95
HSpellDict::storeReplacement
virtual bool storeReplacement(const TQString &bad, const TQString &good)
Stores user defined good replacement for the bad word.
Definition: kspell_hspelldict.cpp:87
KSpell2::Dictionary
Class is returned by from Broker.
Definition: dictionary.h:38

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.9.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |