Scribus
Open source desktop publishing at your fingertips
hunspelldict.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 
8 #ifndef HUNSPELLDICT_H
9 #define HUNSPELLDICT_H
10 
11 #include <QString>
12 #include <QStringList>
13 
14 class Hunspell;
15 class QTextCodec;
16 
18 {
19 public:
20  HunspellDict(const QString& affPath, const QString& dictPath);
21  ~HunspellDict();
22 
23  int spell(QString word);
24  QStringList suggest(QString word);
25 
26 protected:
27  Hunspell* m_hunspell;
28  QTextCodec* m_codec;
29 };
30 
31 #endif
Definition: hunspelldict.h:17