Rev 15082 | Rev 20103 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
19828 | jghali | 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 | |||
8 | #ifndef PREFS_PDFEXPORT_H |
||
9 | #define PREFS_PDFEXPORT_H |
||
10 | |||
11 | #include "ui_prefs_pdfexportbase.h" |
||
12 | #include "prefs_pane.h" |
||
13 | #include "scfonts.h" |
||
14 | #include "scribusapi.h" |
||
15 | |||
16 | #include "pdfoptions.h" |
||
17 | class ScribusDoc; |
||
18 | |||
19 | class SCRIBUS_API Prefs_PDFExport : public Prefs_Pane, Ui::Prefs_PDFExport |
||
20 | { |
||
21 | Q_OBJECT |
||
22 | |||
23 | public: |
||
24 | Prefs_PDFExport(QWidget* parent, ScribusDoc* doc=NULL); |
||
25 | ~Prefs_PDFExport(); |
||
26 | |||
27 | virtual void restoreDefaults(struct ApplicationPrefs *prefsData); |
||
28 | virtual void restoreDefaults(struct ApplicationPrefs *prefsData, const ProfilesL & PDFXProfiles, |
||
29 | bool exporting=false); |
||
30 | virtual void saveGuiToPrefs(struct ApplicationPrefs *prefsData) const; |
||
31 | void enableCMS(bool); |
||
32 | |||
33 | QStringList fontsToEmbed(); |
||
34 | QStringList fontsToOutline(); |
||
35 | |||
36 | signals: |
||
37 | void noInfo(); |
||
38 | void hasInfo(); |
||
39 | |||
40 | public slots: |
||
41 | void languageChange(); |
||
42 | void unitChange(int); |
||
43 | |||
44 | protected slots: |
||
45 | void enableRangeControls(bool); |
||
46 | void enableSecurityControls(bool); |
||
47 | void enablePDFExportTabs(bool); |
||
48 | void createPageNumberRange(); |
||
49 | void setMaximumResolution(); |
||
50 | void enableProfiles(int); |
||
51 | void enableLPI(int); |
||
52 | void enableLPI2(); |
||
53 | void enablePG(); |
||
54 | void enablePGI(); |
||
55 | void enablePGI2(); |
||
56 | void enablePDFX(int); |
||
57 | void SelLPIcol(int); |
||
58 | void DoDownsample(); |
||
59 | void RemoveEmbed(); |
||
60 | void PutToEmbed(); |
||
61 | void RemoveOutline(); |
||
62 | void PutToOutline(); |
||
63 | void SelAFont(QListWidgetItem*); |
||
64 | void SelEFont(QListWidgetItem*); |
||
65 | void SelSFont(QListWidgetItem*); |
||
66 | void EmbedAll(); |
||
67 | void OutlineAll(); |
||
68 | void PagePr(); |
||
69 | void doDocBleeds(); |
||
70 | void SetEffOpts(int nr); |
||
71 | |||
72 | protected: |
||
73 | void setCustomRenderingWidgetsShown(bool); |
||
74 | void setSolidsImagesWidgetsShown(bool); |
||
75 | void enableCustomRenderingWidgets(bool); |
||
76 | void enableSolidsImagesWidgets(bool); |
||
77 | void enablePDFXWidgets(bool); |
||
78 | void addPDFVersions(bool); |
||
79 | void enableEffects(bool); |
||
80 | bool cmsEnabled; |
||
81 | double unitRatio; |
||
82 | ScribusDoc* m_doc; |
||
83 | QString defaultSolidColorRGBProfile; |
||
84 | QString defaultPrinterProfile; |
||
85 | PDFOptions Opts; |
||
86 | QMap<QString, QString> AnnotationFonts; |
||
87 | |||
88 | QList<PDFPresentationData> EffVal; |
||
89 | SCFonts AllFonts; |
||
90 | bool exportingPDF; |
||
91 | QString SelLPIcolor; |
||
92 | }; |
||
93 | |||
94 | #endif // PREFS_PDFEXPORT_H |