Scribus
Open source desktop publishing at your fingertips
printdialog.h
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 */
7 #ifndef PRINTDIALOG_H
8 #define PRINTDIALOG_H
9 
10 #include "scribusapi.h"
11 #include "scribusstructs.h"
12 
13 #include <QDialog>
14 #include "ui_printdialogbase.h"
15 
16 class PrefsContext;
17 class ScribusDoc;
18 class CupsOptions;
19 
20 struct PrintOptions;
21 
22 class SCRIBUS_API PrintDialog : public QDialog, Ui::PrintDialogBase
23 {
24  Q_OBJECT
25 
26 public:
27  PrintDialog( QWidget* parent, ScribusDoc* doc, const PrintOptions& printOptions, bool gcr, QStringList spots);
28  ~PrintDialog();
29  QString printerName();
30  QString outputFileName();
31  bool outputToFile();
32  int numCopies();
33  bool outputSeparations();
34  QString separationName();
35  QStringList allSeparations();
36  QString PrinterOpts;
37  bool color();
38  bool mirrorHorizontal();
39  bool mirrorVertical();
40  bool doGCR();
41  bool doClip();
42  PrintEngine printEngine();
43  bool doDev();
44  bool doSpot();
45  bool doPrintAll();
46  bool doPrintCurrentPage();
47  QString getPageString();
48  QByteArray DevMode;
49 
50 public slots:
51  void setMinMax(int min, int max, int cur);
52 
53 signals:
54  void doPreview();
55 
56 protected slots:
57  void doDocBleeds();
58  void createPageNumberRange();
59  void SetOptions();
60  void SelEngine(const QString& eng);
61  void SelPrinter(const QString& prn);
62  void SelRange(bool e);
63  void SelMode(int e);
64  void SelFile();
65  void SelComm();
66  void okButtonClicked();
67  void previewButtonClicked();
68 
69 protected:
70  ScribusDoc* m_doc;
71  PrintEngineMap printEngineMap;
72  PrefsContext* prefs;
73  void setStoredValues(const QString& fileName, bool gcr);
74  CupsOptions *cdia;
75  int unit;
76  double unitRatio;
77  void getOptions();
78  void getDefaultPrintOptions(PrintOptions& options, bool gcr);
79  void storeValues();
80  void refreshPrintEngineBox();
81  void setPrintEngine(PrintEngine engine);
82 };
83 
84 #endif // PRINTDIALOG_H
Definition: printdialog.h:22
Definition: cupsoptions.h:44
the Document Class
Definition: scribusdoc.h:90
Definition: scribusstructs.h:213
Definition: prefscontext.h:40