blob: e40d50117897536e1e9c4ccc5ffd32143c4b1789 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
/*
For general Scribus (>=1.3.2) copyright and licensing information please refer
to the COPYING file provided with the program. Following this notice may exist
a copyright and/or license notice that predates the release of Scribus 1.3.2
for which a new license (GPL+exception) is in place.
*/
#ifndef PDF_OPTS_H
#define PDF_OPTS_H
#include <QDialog>
#include <QList>
class QHBoxLayout;
class QGridLayout;
class QVBoxLayout;
class QGroupBox;
class QLineEdit;
class QToolButton;
class QCheckBox;
class QPushButton;
#include "scribusapi.h"
#include "scribusstructs.h"
#include "tabpdfoptions.h"
class ScribusView;
/**
* @file pdfopts.h
* @brief PDF export GUI code
*/
class PDFOptions;
class ScribusDoc;
/**
* @brief PDF export dialog
*
* Most of the guts of the dialog actually come from TabPDFOptions, which
* is also used by the preferences dialog.
*/
class SCRIBUS_API PDFExportDialog : public QDialog
{
Q_OBJECT
public:
PDFExportDialog( QWidget* parent, const QString & docFileName,
const QMap<QString, int > & DocFonts,
ScribusView * currView, PDFOptions & pdfOptions,
const QList<PDFPresentationData> & Eff,
const ProfilesL & PDFXProfiles, const SCFonts & AllFonts,
double unitRatio, const ProfilesL & printerProfiles);
~PDFExportDialog() {};
void updateDocOptions();
const QString cmsDescriptor();
const int colorSpaceComponents();
const QString getPagesString();
protected slots:
void DoExport();
void ChangeFile();
void fileNameChanged();
void enableSave();
void disableSave();
protected:
// Widgets
QVBoxLayout* PDFExportLayout;
QGridLayout* NameLayout;
QHBoxLayout* Layout7;
QGroupBox* Name;
QCheckBox* multiFile;
QToolButton* FileC;
QPushButton* OK;
QPushButton* Cancel;
QLineEdit* fileNameLineEdit;
TabPDFOptions* Options;
// Other members
ScribusDoc* doc;
QList<PDFPresentationData> EffVal;
PDFOptions & Opts;
double docUnitRatio;
QString cmsDescriptorName;
int components;
const ProfilesL & appPrinterProfiles;
};
#endif // PDF_OPTS_H
|