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

tdespell2

  • tdespell2
  • plugins
  • ispell
tdespell_ispelldict.cpp
1/*
2 * tdespell_aspelldict.cpp
3 *
4 * Copyright (C) 2003 Zack Rusin <zack@kde.org>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 * 02110-1301 USA
20 */
21#include "tdespell_ispelldict.h"
22
23#include <kdebug.h>
24
25#include "ispell_checker.h"
26
27using namespace KSpell2;
28
29ISpellDict::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
39ISpellDict::~ISpellDict()
40{
41}
42
43bool ISpellDict::check( const TQString& word )
44{
45 return m_checker->checkWord( word );
46}
47
48TQStringList ISpellDict::suggest( const TQString& word )
49{
50 return m_checker->suggestWord( word );
51}
52
53bool 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
62bool ISpellDict::storeReplacement( const TQString& ,
63 const TQString& )
64{
65 return false;
66}
67
68bool ISpellDict::addToPersonal( const TQString& )
69{
70 return false;
71}
72
73bool ISpellDict::addToSession( const TQString& )
74{
75 return false;
76}
KSpell2::Dictionary
Class is returned by from Broker.
Definition: dictionary.h:37
KSpell2
tdespell_hspellclient.h
Definition: backgroundchecker.h:29

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
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdespell2 by doxygen 1.9.4
This website is maintained by Timothy Pearson.