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

tdespell2

  • tdespell2
  • plugins
  • hspell
tdespell_hspelldict.h
1 
22 #ifndef TDESPELL_HSPELLDICT_H
23 #define TDESPELL_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::storeReplacement
virtual bool storeReplacement(const TQString &bad, const TQString &good)
Stores user defined good replacement for the bad word.
Definition: tdespell_hspelldict.cpp:87
HSpellDict::addToSession
virtual bool addToSession(const TQString &word)
Adds word to the words recognizable in the current session.
Definition: tdespell_hspelldict.cpp:102
KSpell2::Dictionary
Class is returned by from Broker.
Definition: dictionary.h:36
HSpellDict::addToPersonal
virtual bool addToPersonal(const TQString &word)
Adds word to the list of of personal words.
Definition: tdespell_hspelldict.cpp:95
HSpellDict::checkAndSuggest
virtual bool checkAndSuggest(const TQString &word, TQStringList &suggestions)
Checks the word and fetches suggestions for it.
Definition: tdespell_hspelldict.cpp:78
HSpellDict::check
virtual bool check(const TQString &word)
Checks the given word.
Definition: tdespell_hspelldict.cpp:46
HSpellDict::suggest
virtual TQStringList suggest(const TQString &word)
Fetches suggestions for the word.
Definition: tdespell_hspelldict.cpp:64
HSpellDict
tdespell_hspelldict.h
Definition: tdespell_hspelldict.h:31

tdespell2

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

tdespell2

Skip menu "tdespell2"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdespell2 by doxygen 1.8.8
This website is maintained by Timothy Pearson.