Rev 15082 |
Rev 20103 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
/*
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 PREFS_PDFEXPORT_H
#define PREFS_PDFEXPORT_H
#include "ui_prefs_pdfexportbase.h"
#include "prefs_pane.h"
#include "scfonts.h"
#include "scribusapi.h"
#include "pdfoptions.h"
class ScribusDoc;
class SCRIBUS_API Prefs_PDFExport : public Prefs_Pane, Ui::Prefs_PDFExport
{
Q_OBJECT
public:
Prefs_PDFExport(QWidget* parent, ScribusDoc* doc=NULL);
~Prefs_PDFExport();
virtual void restoreDefaults(struct ApplicationPrefs *prefsData);
virtual void restoreDefaults(struct ApplicationPrefs *prefsData, const ProfilesL & PDFXProfiles,
bool exporting=false);
virtual void saveGuiToPrefs(struct ApplicationPrefs *prefsData) const;
void enableCMS(bool);
QStringList fontsToEmbed();
QStringList fontsToOutline();
signals:
void noInfo();
void hasInfo();
public slots:
void languageChange();
void unitChange(int);
protected slots:
void enableRangeControls(bool);
void enableSecurityControls(bool);
void enablePDFExportTabs(bool);
void createPageNumberRange();
void setMaximumResolution();
void enableProfiles(int);
void enableLPI(int);
void enableLPI2();
void enablePG();
void enablePGI();
void enablePGI2();
void enablePDFX(int);
void SelLPIcol(int);
void DoDownsample();
void RemoveEmbed();
void PutToEmbed();
void RemoveOutline();
void PutToOutline();
void SelAFont(QListWidgetItem*);
void SelEFont(QListWidgetItem*);
void SelSFont(QListWidgetItem*);
void EmbedAll();
void OutlineAll();
void PagePr();
void doDocBleeds();
void SetEffOpts(int nr);
protected:
void setCustomRenderingWidgetsShown(bool);
void setSolidsImagesWidgetsShown(bool);
void enableCustomRenderingWidgets(bool);
void enableSolidsImagesWidgets(bool);
void enablePDFXWidgets(bool);
void addPDFVersions(bool);
void enableEffects(bool);
bool cmsEnabled;
double unitRatio;
ScribusDoc* m_doc;
QString defaultSolidColorRGBProfile;
QString defaultPrinterProfile;
PDFOptions Opts;
QMap<QString, QString> AnnotationFonts;
QList<PDFPresentationData> EffVal;
SCFonts AllFonts;
bool exportingPDF;
QString SelLPIcolor;
};
#endif // PREFS_PDFEXPORT_H