• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KDECore

spellerplugin_p.h

Go to the documentation of this file.
00001 // -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; -*-
00002 /*
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 SONNET_SPELLERPLUGIN_P_H
00022 #define SONNET_SPELLERPLUGIN_P_H
00023 
00024 #include <QtCore/QStringList>
00025 #include <QtCore/QString>
00026 
00027 #include <kdecore_export.h>
00028 
00029 namespace Sonnet
00030 {
00038     class KDECORE_EXPORT SpellerPlugin
00039     {
00040     public:
00041         virtual ~SpellerPlugin();
00042 
00047         virtual bool isCorrect(const QString &word) const =0;
00048 
00053         bool isMisspelled(const QString &word) const;
00054 
00060         virtual QStringList suggest(const QString &word) const =0;
00061 
00066         virtual bool checkAndSuggest(const QString& word,
00067                                      QStringList &suggestions) const;
00068 
00073         virtual bool storeReplacement(const QString &bad,
00074                                       const QString &good) =0;
00075 
00080         virtual bool addToPersonal(const QString &word) =0;
00081 
00086         virtual bool addToSession(const QString &word) =0;
00087 
00091         QString language() const;
00092 
00093     protected:
00094         SpellerPlugin(const QString &lang);
00095     private:
00096         class Private;
00097         Private* const d;
00098     };
00099 }
00100 
00101 #endif

KDECore

Skip menu "KDECore"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal