Scribus
Open source desktop publishing at your fingertips
docpreference.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 DOCPREFERENCE_H
9 #define DOCPREFERENCE_H
10 
11 #include <QObject>
12 #include <QDomNode>
13 #include <QDomElement>
14 #include <QString>
15 
16 struct docPrefer
17 {
18  QString self;
19  QString PageHeight;
20  QString PageWidth;
21  QString DocumentBleedTopOffset;
22  QString DocBleedBotOffset;
23  QString DocBleedLeftOffset;
24  QString DocBleedRightOffset;
25  QString ColumnDirection;
26  QString MasterTextFrame;
27 };
28 
30 {
31  QString top;
32  QString bottom;
33  QString right;
34  QString left;
35 };
36 
38 {
39  QString FillColor;
40  QString FillTint;
41  QString StrokeWeight;
42  QString StrokeColor;
43  QString StrokeTint;
44  QString GradFillAngle;
45  QString GradStrokeAngle;
46 };
47 
49 {
50  QString OpticalMarginSize;
51  QString StoryDirection;
52  QString StoryOrientation;
53 };
54 
56 {
57  QString Self;
58  QString FirstLineIndent;
59  QString LeftIndent;
60  QString RightIndent;
61  QString SpaceBefore;
62  QString SpaceAfter;
63  QString Justification;
64  QString MinWordSpacing;
65  QString MaxWordSpacing;
66  QString DesWordSpacing;
67  QString MinGlyphScaling;
68  QString MaxGlyphScaling;
69  QString AppliedPStyle;
70  QString AppliedCStyle;
71  QString FontStyle;
72  QString PointSize;
73  QString Capitalization;
74  QString Underline;
75  QString HorizontalScale;
76  QString VerticalScale;
77  QString BaselineShift;
78  QString FillTint;
79  QString StrokeTint;
80  QString StrokeWeight;
81  QString UnderlineOffset;
82  QString UnderlineWeight;
83  QString StrikeThruOffset;
84  QString StrikeThruWeight;
85  QString FillColor;
86  QString StrokeColor;
87  QString AppliedLanguage;
88  QString BasedOn;
89  QString AppliedFont;
90 };
91 
92 
93 
100 class DocPreferences : public QObject
101 {
102  Q_OBJECT
103  public:
104 
105  DocPreferences();
106  ~DocPreferences();
107  bool processFile(QDomElement& root);
108  docPrefer preference;
109  marginPrefer marginPreference;
110  PageItemDefault pageDefault;
111  StoryPrefer storyPreference;
112  TextDefault textDefault;
113 };
114 #endif
Definition: docpreference.h:29
Definition: docpreference.h:55
DocPreferences()
Definition: docpreference.cpp:17
Definition: docpreference.h:37
Definition: docpreference.h:16
Definition: docpreference.h:48
A class to represent the necessary preferences from Resources/Preferences.xml in the idml package...
Definition: docpreference.h:100