Scribus
Open source desktop publishing at your fingertips
hunspellpluginimpl.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 #ifndef HUNSPELLPLUGINIMPL_H
8 #define HUNSPELLPLUGINIMPL_H
9 
10 #include "hunspelldict.h"
11 #include "hunspellpluginstructs.h"
12 
13 #include <QObject>
14 #include <QMap>
15 #include <QString>
16 #include <QStringList>
17 
18 class QString;
19 class ScribusDoc;
20 class PageItem;
21 class StoryText;
22 class StoryEditor;
23 
24 
25 
26 class HunspellPluginImpl : public QObject
27 {
28  Q_OBJECT
29  public:
32  bool run(const QString & target, ScribusDoc* doc=0);
33  bool initHunspell();
34  bool checkWithHunspell();
35  bool checkWithHunspellSE();
36  bool parseTextFrame(StoryText *);
37  bool openGUIForTextFrame(StoryText *iText);
38  bool openGUIForStoryEditor(StoryText *iText);
39  void setRunningForSE(bool rfSE, StoryEditor *sE);
40  QList<WordsFound> wordsToCorrect;
41 
42  protected:
43  QMap<QString, QString> dictionaryMap;
44  QStringList dictionaryPaths;
45  //int numDicts, numAFFs;
46  QMap<QString, HunspellDict*> hspellerMap;
47  ScribusDoc* m_doc;
48  bool m_runningForSE;
49  StoryEditor* m_SE;
50 };
51 
52 #endif
53 
Definition: storytext.h:71
Definition: hunspellpluginimpl.h:26
Definition: storyeditor.h:377
the Document Class
Definition: scribusdoc.h:90
Definition: pageitem.h:92