Scribus
Open source desktop publishing at your fingertips
prefs_hyphenator.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 PREFS_HYPHENATOR_H
9 #define PREFS_HYPHENATOR_H
10 
11 #include "ui_prefs_hyphenatorbase.h"
12 #include "prefs_pane.h"
13 #include "scribusapi.h"
14 #include "scribusstructs.h"
15 
16 class ScribusDoc;
17 
18 class SCRIBUS_API Prefs_Hyphenator : public Prefs_Pane, Ui::Prefs_Hyphenator
19 {
20  Q_OBJECT
21 
22  public:
23  Prefs_Hyphenator(QWidget* parent, ScribusDoc* doc=NULL);
24  ~Prefs_Hyphenator();
25  virtual void restoreDefaults(struct ApplicationPrefs *prefsData);
26  virtual void saveGuiToPrefs(struct ApplicationPrefs *prefsData) const;
27 
28  public slots:
29  void languageChange();
30 
31  protected slots:
32  void addToIgnoreList();
33  void editIgnoreListEntry();
34  void removeIgnoreListEntry();
35  void enableIgnoreButtons();
36  void addToExceptList();
37  void editExceptListEntry();
38  void removeExceptListEntry();
39  void enableExceptButtons();
40 
41  protected:
42  QString affixFileName(QStringList files);
43  QString dictFileName(QStringList files);
44  void setAvailDictsXMLFile(QString availDictsXMLDataFile);
45  QMap<QString, QString> dictionaryMap;
46  QStringList dictionaryPaths;
47 
48 };
49 
50 #endif // PREFS_HYPHENATOR_H
Definition: prefsstructs.h:453
the Document Class
Definition: scribusdoc.h:90
Definition: prefs_pane.h:14