blob: c3fe1c0f0217ce1f88e58dbc68d437abe37db0c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
/*
For general Scribus (>=1.3.2) copyright and licensing information please refer
to the COPYING file provided with the program. Following this notice may exist
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
#ifndef REFORMDOC_H
#define REFORMDOC_H
#include <QLayout>
#include <QCheckBox>
#include <QComboBox>
#include <QRadioButton>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QToolButton>
#include <QColor>
#include "scribusapi.h"
#include "scribusstructs.h"
#include "prefsdialogbase.h"
class QSpinBox;
class DocSections;
class ScribusDoc;
class ScribusMainWindow;
class TabTypograpy;
class HySettings;
class CMSPrefs;
class ScrSpinBox;
class DocInfos;
class TabGuides;
class TabTools;
class TabCheckDoc;
class TabPDFOptions;
class FontPrefs;
class DocumentItemAttributes;
class TOCIndexPrefs;
class MarginWidget;
class PageLayouts;
class TabDisplay;
class TabDocument;
class SCRIBUS_API ReformDoc : public PrefsDialogBase
{
Q_OBJECT
public:
ReformDoc( QWidget* parent, ScribusDoc* doc );
~ReformDoc() {};
const int getSelectedUnit();
const bool imageResolutionChanged();
const bool colorManagementSettingsChanged();
void updateDocumentSettings();
ScribusMainWindow *ScMW;
ScribusDoc* currDoc;
int docUnitIndex;
int decimals;
double unitRatio;
protected:
QStringList docAttributesList;
TabDocument* tabPage;
DocInfos* docInfos;
DocSections* tabDocSections;
TabGuides* tabGuides;
TabDisplay* tabView;
TabTypograpy* tabTypo;
TabTools* tabTools;
HySettings* tabHyphenator;
FontPrefs* tabFonts;
TabCheckDoc* tabDocChecker;
CMSPrefs* tabColorManagement;
TabPDFOptions* tabPDF;
DocumentItemAttributes* tabDocItemAttributes;
TOCIndexPrefs* tabTOCIndexPrefs;
bool viewToRecalcPictureRes;
protected slots:
virtual void restoreDefaults();
virtual void unitChange();
virtual void setDS(int layout);
virtual void switchCMS(bool enable);
virtual void showWidgetInStack(QWidget *widgetToShow);
virtual void applyChangesButton_clicked();
};
#endif // REFORMDOC_H
|