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

Sonnet

  • sonnet
  • plugins
  • hspell
kspell_hspelldict.h
Go to the documentation of this file.
1
22#ifndef KSPELL_HSPELLDICT_H
23#define KSPELL_HSPELLDICT_H
24
25#include "spellerplugin_p.h"
26/* libhspell is a C library and it does not have #ifdef __cplusplus */
27extern "C" {
28#include "hspell.h"
29}
30
31class HSpellDict : public Sonnet::SpellerPlugin
32{
33public:
34 explicit HSpellDict( const QString& lang );
35 ~HSpellDict();
36 virtual bool isCorrect( const QString& word ) const;
37
38 virtual QStringList suggest( const QString& word ) const;
39
40 virtual bool storeReplacement( const QString& bad,
41 const QString& good );
42
43 virtual bool addToPersonal( const QString& word );
44 virtual bool addToSession( const QString& word );
45 inline bool isInitialized() const { return initialized; }
46private:
47 struct dict_radix *m_speller;
48 QTextCodec *codec;
49 bool initialized;
50};
51
52#endif
HSpellDict
kspell_hspelldict.h
Definition: kspell_hspelldict.h:32
HSpellDict::isInitialized
bool isInitialized() const
Definition: kspell_hspelldict.h:45
HSpellDict::storeReplacement
virtual bool storeReplacement(const QString &bad, const QString &good)
Definition: kspell_hspelldict.cpp:83
HSpellDict::addToSession
virtual bool addToSession(const QString &word)
Definition: kspell_hspelldict.cpp:98
HSpellDict::~HSpellDict
~HSpellDict()
Definition: kspell_hspelldict.cpp:44
HSpellDict::suggest
virtual QStringList suggest(const QString &word) const
Definition: kspell_hspelldict.cpp:69
HSpellDict::isCorrect
virtual bool isCorrect(const QString &word) const
Definition: kspell_hspelldict.cpp:51
HSpellDict::addToPersonal
virtual bool addToPersonal(const QString &word)
Definition: kspell_hspelldict.cpp:91
Sonnet::SpellerPlugin
spellerplugin_p.h
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.

Sonnet

Skip menu "Sonnet"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • 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