Scribus
Open source desktop publishing at your fingertips
prefs_documentsections.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_DOCUMENTSECTIONS_H
9 #define PREFS_DOCUMENTSECTIONS_H
10 
11 #include "ui_prefs_documentsectionsbase.h"
12 #include "pagestructs.h"
13 #include "prefs_pane.h"
14 #include "scribusapi.h"
15 
16 class ScribusDoc;
17 
18 class SCRIBUS_API Prefs_DocumentSections : public Prefs_Pane, Ui::Prefs_DocumentSections
19 {
20  Q_OBJECT
21 
22  public:
23  Prefs_DocumentSections(QWidget* parent, ScribusDoc* doc=NULL);
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:
32  DocumentSectionMap localSections;
33  uint m_maxpageindex;
34  QStringList styles;
35  ScribusDoc* m_doc;
36  virtual void updateTable();
37 
38  protected slots:
39  virtual void tableItemChanged(int, int);
40  virtual void addEntry();
41  virtual void deleteEntry();
42 };
43 
44 #endif // PREFS_DOCUMENTSECTIONS_H
Definition: prefsstructs.h:453
Definition: prefs_documentsections.h:18
the Document Class
Definition: scribusdoc.h:90
Definition: prefs_pane.h:14