File indexing completed on 2024-05-05 04:01:24

0001 /*
0002  * nsspellcheckerdict.h
0003  *
0004  * SPDX-FileCopyrightText: 2015 Nick Shaforostoff <shaforostoff@gmail.com>
0005  *
0006  * SPDX-License-Identifier: LGPL-2.1-or-later
0007  */
0008 #ifndef KSPELL_NSSPELLDICT_H
0009 #define KSPELL_NSSPELLDICT_H
0010 
0011 #include "spellerplugin_p.h"
0012 
0013 class NSSpellCheckerDict : public Sonnet::SpellerPlugin
0014 {
0015 public:
0016     explicit NSSpellCheckerDict(const QString &lang);
0017     ~NSSpellCheckerDict();
0018     virtual bool isCorrect(const QString &word) const;
0019 
0020     virtual QStringList suggest(const QString &word) const;
0021 
0022     virtual bool storeReplacement(const QString &bad, const QString &good);
0023 
0024     virtual bool addToPersonal(const QString &word);
0025     virtual bool addToSession(const QString &word);
0026 
0027 private:
0028 #ifdef __OBJC__
0029     NSString *m_langCode;
0030 #else
0031     void *m_langCode;
0032 #endif
0033 };
0034 
0035 #endif