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

KDECore

  • kdecore
  • sonnet
spellerplugin_p.h
Go to the documentation of this file.
1// -*- Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil; -*-
2/*
3 *
4 * Copyright (C) 2004 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#ifndef SONNET_SPELLERPLUGIN_P_H
22#define SONNET_SPELLERPLUGIN_P_H
23
24#include <QtCore/QStringList>
25#include <QtCore/QString>
26
27#include <kdecore_export.h>
28
29namespace Sonnet
30{
38 class KDECORE_EXPORT SpellerPlugin
39 {
40 public:
41 virtual ~SpellerPlugin();
42
47 virtual bool isCorrect(const QString &word) const =0;
48
53 bool isMisspelled(const QString &word) const;
54
60 virtual QStringList suggest(const QString &word) const =0;
61
66 virtual bool checkAndSuggest(const QString& word,
67 QStringList &suggestions) const;
68
73 virtual bool storeReplacement(const QString &bad,
74 const QString &good) =0;
75
80 virtual bool addToPersonal(const QString &word) =0;
81
86 virtual bool addToSession(const QString &word) =0;
87
91 QString language() const;
92
93 protected:
94 SpellerPlugin(const QString &lang);
95 private:
96 class Private;
97 Private* const d;
98 };
99}
100
101#endif
QStringList
QString
Sonnet::SpellerPlugin
Class is returned by from Loader.
Definition: spellerplugin_p.h:39
Sonnet::SpellerPlugin::addToPersonal
virtual bool addToPersonal(const QString &word)=0
Adds word to the list of of personal words.
Sonnet::SpellerPlugin::addToSession
virtual bool addToSession(const QString &word)=0
Adds word to the words recognizable in the current session.
Sonnet::SpellerPlugin::suggest
virtual QStringList suggest(const QString &word) const =0
Fetches suggestions for the word.
Sonnet::SpellerPlugin::isCorrect
virtual bool isCorrect(const QString &word) const =0
Checks the given word.
Sonnet::SpellerPlugin::storeReplacement
virtual bool storeReplacement(const QString &bad, const QString &good)=0
Stores user defined good replacement for the bad word.
kdecore_export.h
Sonnet
The sonnet namespace.
Definition: backgroundchecker.h:34
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • 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
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal