Subversion Repositories Scribus

Rev

Rev 5876 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4430 cbradney 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
*/
3 paul 7
#ifndef REFORMDOC_H
8
#define REFORMDOC_H
9
 
10
#include <qlayout.h>
11
#include <qcheckbox.h>
519 cbradney 12
#include <qcombobox.h>
3 paul 13
#include <qgroupbox.h>
705 fschmid 14
#include <qbuttongroup.h>
15
#include <qradiobutton.h>
3 paul 16
#include <qlabel.h>
519 cbradney 17
#include <qlineedit.h>
3 paul 18
#include <qpushbutton.h>
726 fschmid 19
#include <qtoolbutton.h>
705 fschmid 20
#include <qcolor.h>
838 cbradney 21
 
2969 craig 22
#include "scribusapi.h"
838 cbradney 23
#include "scribusstructs.h"
693 fschmid 24
#include "prefsdialogbase.h"
838 cbradney 25
 
26
class QSpinBox;
3757 cbradney 27
class DocSections;
838 cbradney 28
class ScribusDoc;
4026 craig 29
class ScribusMainWindow;
788 fschmid 30
class TabTypograpy;
795 fschmid 31
class HySettings;
32
class CMSPrefs;
838 cbradney 33
class MSpinBox;
2246 subik 34
class DocInfos;
879 fschmid 35
class TabGuides;
1194 fschmid 36
class TabTools;
1235 fschmid 37
class TabCheckDoc;
1307 fschmid 38
class TabPDFOptions;
1321 fschmid 39
class FontPrefs;
1641 cbradney 40
class DocumentItemAttributes;
1684 cbradney 41
class TOCIndexPrefs;
2769 fschmid 42
class MarginWidget;
2901 fschmid 43
class PageLayouts;
5876 subik 44
class TabDisplay;
45
class TabDocument;
3 paul 46
 
5876 subik 47
 
2969 craig 48
class SCRIBUS_API ReformDoc : public PrefsDialogBase
693 fschmid 49
{
50
        Q_OBJECT
3 paul 51
 
52
public:
1194 fschmid 53
        ReformDoc( QWidget* parent, ScribusDoc* doc );
693 fschmid 54
        ~ReformDoc() {};
2965 cbradney 55
 
56
        const int getSelectedUnit();
57
        const bool imageResolutionChanged();
58
        const bool colorManagementSettingsChanged();
59
        void updateDocumentSettings(); 
60
 
4026 craig 61
        ScribusMainWindow *ScMW;
2965 cbradney 62
        ScribusDoc* currDoc;
5512 subik 63
        int docUnitIndex;
2965 cbradney 64
        int decimals;
65
        double unitRatio;
66
 
67
protected:
68
        QStringList docAttributesList;
69
 
5876 subik 70
        TabDocument* tabPage;
2246 subik 71
        DocInfos* docInfos;
3757 cbradney 72
        DocSections* tabDocSections;
879 fschmid 73
        TabGuides* tabGuides;
5876 subik 74
        TabDisplay* tabView;
788 fschmid 75
        TabTypograpy* tabTypo;
1194 fschmid 76
        TabTools* tabTools;
795 fschmid 77
        HySettings* tabHyphenator;
1321 fschmid 78
        FontPrefs* tabFonts;
1235 fschmid 79
        TabCheckDoc* tabDocChecker;
795 fschmid 80
        CMSPrefs* tabColorManagement;
1307 fschmid 81
        TabPDFOptions* tabPDF;
1641 cbradney 82
        DocumentItemAttributes* tabDocItemAttributes;
1684 cbradney 83
        TOCIndexPrefs* tabTOCIndexPrefs;
2965 cbradney 84
 
85
        bool viewToRecalcPictureRes;
2246 subik 86
 
3 paul 87
protected slots:
1828 fschmid 88
        virtual void restoreDefaults();
734 fschmid 89
        virtual void unitChange();
2901 fschmid 90
        virtual void setDS(int layout);
1307 fschmid 91
        virtual void switchCMS(bool enable);
5876 subik 92
        virtual void showWidgetInStack(QWidget *widgetToShow);
5502 subik 93
        virtual void applyChangesButton_clicked();
3 paul 94
};
95
 
96
#endif // REFORMDOC_H