Subversion Repositories Scribus

Rev

Rev 12243 | 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
*/
10863 cbradney 7
#ifndef PRINTDIALOG_H
8
#define PRINTDIALOG_H
3 paul 9
 
2969 craig 10
#include "scribusapi.h"
10947 jghali 11
#include "scribusstructs.h"
3252 craig 12
 
9907 fschmid 13
#include <QDialog>
12243 fschmid 14
#include "ui_printdialogbase.h"
3 paul 15
 
3252 craig 16
class PrefsContext;
5880 jghali 17
class ScribusDoc;
6119 tsoots 18
class CupsOptions;
3252 craig 19
 
12253 jghali 20
struct PrintOptions;
21
 
12243 fschmid 22
class SCRIBUS_API PrintDialog : public QDialog, Ui::PrintDialogBase
307 Franz 23
{
24
        Q_OBJECT
3 paul 25
 
26
public:
10863 cbradney 27
        PrintDialog( QWidget* parent, ScribusDoc* doc, QString PDatei, QString PDev, QString PCom, QByteArray& PSettings, bool gcr, QStringList spots);
28
        ~PrintDialog();
168 Franz 29
        QString printerName();
30
        QString outputFileName();
31
        bool outputToFile();
32
        int numCopies();
33
        bool outputSeparations();
34
        QString separationName();
3068 fschmid 35
        QStringList allSeparations();
168 Franz 36
        QString PrinterOpts;
37
        bool color();
3234 fschmid 38
        bool mirrorHorizontal();
39
        bool mirrorVertical();
40
        bool doGCR();
4649 fschmid 41
        bool doClip();
10947 jghali 42
        PrintEngine printEngine();
3234 fschmid 43
        bool doDev();
44
        bool doSpot();
5308 fschmid 45
        bool doOverprint();
3234 fschmid 46
        bool ICCinUse();
12243 fschmid 47
        bool doPrintAll();
48
        bool doPrintCurrentPage();
49
        QString getPageString();
4361 cbradney 50
        QByteArray DevMode;
3 paul 51
 
52
public slots:
307 Franz 53
        void setMinMax(int min, int max, int cur);
54
 
3234 fschmid 55
signals:
56
        void doPreview();
57
 
6663 cbradney 58
protected slots:
6954 fschmid 59
        void doDocBleeds();
6663 cbradney 60
        void createPageNumberRange();
61
        void SetOptions();
10947 jghali 62
        void SelEngine(const QString& eng);
6663 cbradney 63
        void SelPrinter(const QString& prn);
64
        void SelRange(bool e);
65
        void SelMode(int e);
66
        void SelFile();
67
        void SelComm();
68
        void okButtonClicked();
6690 fschmid 69
        void previewButtonClicked();
6663 cbradney 70
 
3 paul 71
protected:
10947 jghali 72
        ScribusDoc*  m_doc;
73
        PrintEngineMap printEngineMap;
451 tsoots 74
        PrefsContext* prefs;
3234 fschmid 75
        void setStoredValues(bool gcr);
6119 tsoots 76
        CupsOptions *cdia;
11987 jghali 77
        int    unit;
6954 fschmid 78
        double unitRatio;
10947 jghali 79
        void   getOptions();
12253 jghali 80
        void   getDefaultPrintOptions(PrintOptions& options, bool gcr);
10947 jghali 81
        void   storeValues();
82
        void   refreshPrintEngineBox();
83
        void   setPrintEngine(PrintEngine engine);
3 paul 84
};
85
 
10863 cbradney 86
#endif // PRINTDIALOG_H