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

tdespell2

dictionary.h
00001 // -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; -*-
00002 /*
00003  * dictionary.h
00004  *
00005  * Copyright (C)  2004  Zack Rusin <zack@kde.org>
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00020  * 02110-1301  USA
00021  */
00022 #ifndef TDESPELL_DICTIONARY_H
00023 #define TDESPELL_DICTIONARY_H
00024 
00025 #include <tqstringlist.h>
00026 #include <tqstring.h>
00027 
00028 namespace KSpell2
00029 {
00037     class Dictionary
00038     {
00039     public:
00040         virtual ~Dictionary() {}
00041 
00046         virtual bool check( const TQString& word ) =0;
00047 
00053         virtual TQStringList suggest( const TQString& word ) =0;
00054 
00058         virtual bool checkAndSuggest( const TQString& word,
00059                                       TQStringList& suggestions ) =0;
00060 
00065         virtual bool storeReplacement( const TQString& bad,
00066                                        const TQString& good ) =0;
00067 
00072         virtual bool addToPersonal( const TQString& word ) =0;
00073 
00078         virtual bool addToSession( const TQString& word ) =0;
00079 
00083         TQString language() const
00084         {
00085             return m_language;
00086         }
00087 
00092         bool isDefault() const
00093         {
00094             return m_default;
00095         }
00096 
00097     protected:
00098         Dictionary( const TQString& lang, bool def = false )
00099             : m_language( lang ), m_default( def ) {}
00100     protected:
00101         friend class Broker;
00102         TQString m_language;
00103         bool    m_default;
00104     private:
00105         class Private;
00106         Private *d;
00107     };
00108 }
00109 
00110 #endif

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.7.6.1
This website is maintained by Timothy Pearson.