Scribus
Open source desktop publishing at your fingertips
prefs_documentitemattributes.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_DOCUMENTITEMATTRIBUTES_H
9 #define PREFS_DOCUMENTITEMATTRIBUTES_H
10 
11 #include "ui_prefs_documentitemattributesbase.h"
12 #include "prefs_pane.h"
13 #include "scribusapi.h"
14 #include "scribusstructs.h"
15 
16 class SCRIBUS_API Prefs_DocumentItemAttributes : public Prefs_Pane, Ui::Prefs_DocumentItemAttributes
17 {
18  Q_OBJECT
19 
20  public:
21  Prefs_DocumentItemAttributes(QWidget* parent, ScribusDoc* doc=NULL);
22  ~Prefs_DocumentItemAttributes();
23  virtual void restoreDefaults(struct ApplicationPrefs *prefsData);
24  virtual void saveGuiToPrefs(struct ApplicationPrefs *prefsData) const;
25 
26  public slots:
27  void languageChange();
28  virtual QStringList getDocAttributesNames();
29 
30  protected:
31  virtual void updateTable();
32  protected slots:
33  virtual void tableItemChanged( int row, int col );
34  virtual void addEntry();
35  virtual void deleteEntry();
36  virtual void clearEntries();
37  virtual void copyEntry();
38  private:
39  ObjAttrVector localAttributes;
40  QStringList relationships;
41  QStringList relationshipsData;
42  QStringList autoAddTo;
43  QStringList autoAddToData;
44  QStringList types;
45  QStringList typesData;
46 };
47 
48 #endif // PREFS_DOCUMENTITEMATTRIBUTES_H
Definition: prefsstructs.h:453
the Document Class
Definition: scribusdoc.h:90
Definition: prefs_pane.h:14