Scribus
Open source desktop publishing at your fingertips
prefs_pdfexport.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 
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  PDFOptions::PDFFontEmbedding fontEmbeddingMode();
34  QStringList fontsToEmbed();
35  QStringList fontsToSubset();
36  QStringList fontsToOutline();
37 
38  signals:
39  void noInfo();
40  void hasInfo();
41 
42  public slots:
43  void languageChange();
44  void unitChange(int);
45 
46  protected slots:
47  void enableRangeControls(bool);
48  void enableSecurityControls(bool);
49  void enablePDFExportTabs(bool);
50  void createPageNumberRange();
51  void setMaximumResolution();
52  void enableProfiles(int);
53  void enableLPI(int);
54  void enableLPI2();
55  void enablePG();
56  void enablePGI();
57  void enablePGI2();
58  void enablePDFX(int);
59  void SelLPIcol(int);
60  void DoDownsample();
61  void EmbeddingModeChange();
62  void RemoveSubset();
63  void PutToSubset();
64  void SelEFont(QListWidgetItem*);
65  void SelSFont(QListWidgetItem*);
66  void EmbedAll();
67  void SubsetAll();
68  void OutlineAll();
69  void PagePr();
70  void doDocBleeds();
71  void SetEffOpts(int nr);
72 
73  protected:
74  QListWidgetItem* addFontItem(QString fontName, QListWidget* fontList);
75  void setCustomRenderingWidgetsShown(bool);
76  void setSolidsImagesWidgetsShown(bool);
77  void enableCustomRenderingWidgets(bool);
78  void enableSolidsImagesWidgets(bool);
79  void enablePDFXWidgets(bool);
80  void addPDFVersions(bool);
81  void enableEffects(bool);
82  bool cmsEnabled;
83  double unitRatio;
84  ScribusDoc* m_doc;
85  QString defaultSolidColorRGBProfile;
86  QString defaultPrinterProfile;
87  PDFOptions Opts;
88  QMap<QString, QString> AnnotationFonts;
89 
90  QList<PDFPresentationData> EffVal;
91  SCFonts AllFonts;
92  bool exportingPDF;
93  QString SelLPIcolor;
94 };
95 
96 #endif // PREFS_PDFEXPORT_H
Definition: prefsstructs.h:453
the Document Class
Definition: scribusdoc.h:90
PDF Options struture. Capable of verifying its self, but otherwise largely a dumb struct...
Definition: pdfoptions.h:37
Definition: prefs_pane.h:14
Defines class PDFOptions, used for loading/saving/passing around PDF options.
Main class SCFonts. Subclass of QDict. This class replaces the previous SCFonts typedef...
Definition: scfonts.h:36