Back to index

scribus-ng  1.3.4.dfsg+svn20071115
pdfopts.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 PDF_OPTS_H
00008 #define PDF_OPTS_H
00009 
00010 #include <qdialog.h>
00011 #include <qlabel.h>
00012 #include <qlineedit.h>
00013 #include <qpushbutton.h>
00014 #include <qtoolbutton.h>
00015 #include <qlayout.h>
00016 #include <qtooltip.h>
00017 #include <qmap.h>
00018 #include <qvaluelist.h>
00019 #include <qgroupbox.h>
00020 #include <qcheckbox.h>
00021 
00022 #include "scribusapi.h"
00023 #include "scribusstructs.h"
00024 #include "tabpdfoptions.h"
00025 
00031 class PDFOptions;
00032 class ScribusDoc;
00033 
00040 class SCRIBUS_API PDFExportDialog : public QDialog
00041 {
00042        Q_OBJECT
00043 
00044 public:
00045        PDFExportDialog( QWidget* parent, const QString & docFileName,
00046                                     const QMap<QString, int > & DocFonts,
00047                                     ScribusView * currView, PDFOptions & pdfOptions,
00048                                     const QValueList<PDFPresentationData> & Eff,
00049                                     const ProfilesL & PDFXProfiles, const SCFonts & AllFonts,
00050                                     double unitRatio, const ProfilesL & printerProfiles);
00051        ~PDFExportDialog() {};
00052 
00053        void updateDocOptions();
00054        const QString cmsDescriptor();
00055        const int colorSpaceComponents();
00056        const QString getPagesString();
00057 
00058 protected slots:
00059        void DoExport();
00060        void ChangeFile();
00061        void fileNameChanged();
00062        void enableSave();
00063        void disableSave();
00064 
00065 protected:
00066        // Widgets
00067        QVBoxLayout* PDFExportLayout;
00068        QGridLayout* NameLayout;
00069        QHBoxLayout* Layout7;
00070        QGroupBox* Name;
00071        QCheckBox* multiFile;
00072        QToolButton* FileC;
00073        QPushButton* OK;
00074        QPushButton* Cancel;
00075        QLineEdit* fileNameLineEdit;
00076        TabPDFOptions* Options;
00077 
00078        // Other members
00079        ScribusDoc* doc;
00080        QValueList<PDFPresentationData> EffVal;
00081        PDFOptions & Opts;
00082        double docUnitRatio;
00083        QString cmsDescriptorName;
00084        int components;
00085        const ProfilesL & appPrinterProfiles;
00086 };
00087 
00088 #endif // PDF_OPTS_H