Go to the documentation of this file.00001
00004 #ifndef BPSPRINTERSETTINGS_H
00005 #define BPSPRINTERSETTINGS_H
00006
00007 #include "bpscore_global.h"
00008 #include <QObject>
00009 #include <QMap>
00010 #include <QPrinter>
00011 #include <QVariantList>
00012
00013 class BpsSettings;
00014
00041 class BPSCORE_EXPORT BpsPrinterSettings : public QObject
00042 {
00043 Q_OBJECT
00044 BPS_PRIVATE(BpsPrinterSettings)
00045
00046 public:
00052 BpsPrinterSettings(QPrinter* aPrinter, BpsSettings* aSettings = 0, QObject* aParent = 0);
00053
00054 virtual ~BpsPrinterSettings();
00055
00061 bool setConfig(const QMap<QString,QString>& aConfig);
00062
00066 QMap<QString,QString> config() const;
00067
00071 void save();
00072
00077 void save(const QString& aKey);
00078
00083 bool restore();
00084
00090 bool restore(const QString& aKey);
00091
00096 static QMap<QPrinter::PaperSize, QString> paperNames();
00097
00103 static QMap<QPrinter::PaperSize, QSizeF> paperSizes();
00104
00108 static QMap<QPrinter::Orientation, QString> orientations();
00109
00113 static QMap<QPrinter::ColorMode, QString> colorModes();
00114
00118 static QMap<QPrinter::DuplexMode, QString> duplexModes();
00119
00123 static QMap<QPrinter::PaperSource, QString> paperSources();
00124
00128 static QMap<QPrinter::PageOrder, QString> pageOrders();
00129 };
00130
00131 #endif // BPSPRINTERSETTINGS_H