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

kspell2

  • kspell2
  • plugins
  • ispell
kspell_ispelldict.cpp
1 
21 #include "kspell_ispelldict.h"
22 
23 #include <kdebug.h>
24 
25 #include "ispell_checker.h"
26 
27 using namespace KSpell2;
28 
29 ISpellDict::ISpellDict( const TQString& lang )
30  : Dictionary( lang )
31 {
32  m_checker = new ISpellChecker();
33 
34  if ( !m_checker->requestDictionary( lang.latin1() ) ) {
35  kdError()<<"Language \""<< lang << "\" doesn't exist for Ispell"<<endl;
36  }
37 }
38 
39 ISpellDict::~ISpellDict()
40 {
41 }
42 
43 bool ISpellDict::check( const TQString& word )
44 {
45  return m_checker->checkWord( word );
46 }
47 
48 TQStringList ISpellDict::suggest( const TQString& word )
49 {
50  return m_checker->suggestWord( word );
51 }
52 
53 bool ISpellDict::checkAndSuggest( const TQString& word,
54  TQStringList& suggestions )
55 {
56  bool c = check( word );
57  if ( c )
58  suggestions = suggest( word );
59  return c;
60 }
61 
62 bool ISpellDict::storeReplacement( const TQString& ,
63  const TQString& )
64 {
65  return false;
66 }
67 
68 bool ISpellDict::addToPersonal( const TQString& )
69 {
70  return false;
71 }
72 
73 bool ISpellDict::addToSession( const TQString& )
74 {
75  return false;
76 }
KSpell2::Dictionary
Class is returned by from Broker.
Definition: dictionary.h:37
KSpell2
kspell_hspellclient.h
Definition: backgroundchecker.h:28

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