Back to index

scribus-ng  1.3.4.dfsg+svn20071115
reformdoc.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef REFORMDOC_H
00008 #define REFORMDOC_H
00009 
00010 #include <qlayout.h>
00011 #include <qcheckbox.h>
00012 #include <qcombobox.h>
00013 #include <qgroupbox.h>
00014 #include <qbuttongroup.h>
00015 #include <qradiobutton.h>
00016 #include <qlabel.h>
00017 #include <qlineedit.h>
00018 #include <qpushbutton.h>
00019 #include <qtoolbutton.h>
00020 #include <qcolor.h>
00021 
00022 #include "scribusapi.h"
00023 #include "scribusstructs.h"
00024 #include "prefsdialogbase.h"
00025 
00026 class QSpinBox;
00027 class DocSections;
00028 class ScribusDoc;
00029 class ScribusMainWindow;
00030 class TabTypograpy;
00031 class HySettings;
00032 class CMSPrefs;
00033 class MSpinBox;
00034 class DocInfos;
00035 class TabGuides;
00036 class TabTools;
00037 class TabCheckDoc;
00038 class TabPDFOptions;
00039 class FontPrefs;
00040 class DocumentItemAttributes;
00041 class TOCIndexPrefs;
00042 class MarginWidget;
00043 class PageLayouts;
00044 class TabDisplay;
00045 class TabDocument;
00046 
00047 
00048 class SCRIBUS_API ReformDoc : public PrefsDialogBase
00049 {
00050        Q_OBJECT
00051 
00052 public:
00053        ReformDoc( QWidget* parent, ScribusDoc* doc );
00054        ~ReformDoc() {};
00055        
00056        const int getSelectedUnit();
00057        const bool imageResolutionChanged();
00058        const bool colorManagementSettingsChanged();
00059        void updateDocumentSettings();     
00060 
00061        ScribusMainWindow *ScMW;
00062        ScribusDoc* currDoc;
00063        int docUnitIndex;
00064        int decimals;
00065        double unitRatio;
00066 
00067 protected:
00068        QStringList docAttributesList;
00069        
00070        TabDocument* tabPage;
00071        DocInfos* docInfos;
00072        DocSections* tabDocSections;
00073        TabGuides* tabGuides;
00074        TabDisplay* tabView;
00075        TabTypograpy* tabTypo;
00076        TabTools* tabTools;
00077        HySettings* tabHyphenator;
00078        FontPrefs* tabFonts;
00079        TabCheckDoc* tabDocChecker;
00080        CMSPrefs* tabColorManagement;
00081        TabPDFOptions* tabPDF;
00082        DocumentItemAttributes* tabDocItemAttributes;
00083        TOCIndexPrefs* tabTOCIndexPrefs;
00084        
00085        bool viewToRecalcPictureRes;
00086 
00087 protected slots:
00088        virtual void restoreDefaults();
00089        virtual void unitChange();
00090        virtual void setDS(int layout);
00091        virtual void switchCMS(bool enable);
00092        virtual void showWidgetInStack(QWidget *widgetToShow);
00093        virtual void applyChangesButton_clicked();
00094 };
00095 
00096 #endif // REFORMDOC_H