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

kspell2

defaultdictionary.h
00001 /*
00002  * defaultdictionary.h
00003  *
00004  * Copyright (C)  2004  Zack Rusin <zack@kde.org>
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019  * 02110-1301  USA
00020  */
00021 #ifndef KSPELL_DEFAULTDICTIONARY_H
00022 #define KSPELL_DEFAULTDICTIONARY_H
00023 
00024 #include "dictionary.h"
00025 
00026 #include <tqobject.h>
00027 #include <tqstringlist.h>
00028 
00029 namespace KSpell2
00030 {
00031     class Broker;
00032     class DefaultDictionary : public TQObject,
00033                               public Dictionary
00034     {
00035         Q_OBJECT
00036     public:
00037         DefaultDictionary( const TQString& lang, Broker *broker );
00038         ~DefaultDictionary();
00039     public:
00046         bool isValid() const;
00047 
00048         //Dictionary interface
00049         virtual bool check( const TQString& word );
00050         virtual TQStringList suggest( const TQString& word );
00051         virtual bool checkAndSuggest( const TQString& word,
00052                                       TQStringList& suggestions );
00053         virtual bool storeReplacement( const TQString& bad,
00054                                        const TQString& good );
00055         virtual bool addToPersonal( const TQString& word );
00056         virtual bool addToSession( const TQString& word );
00057         //end of Dictionary interfaces
00058 
00059     signals:
00060         void changed();
00061 
00062     protected slots:
00063         void defaultConfigurationChanged();
00064 
00065     private:
00066         class Private;
00067         Private *d;
00068     };
00069 }
00070 
00071 #endif

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