4 #ifndef BPSPRINTERSETTINGS_H
5 #define BPSPRINTERSETTINGS_H
11 #include <QVariantList>
Public include file for BPS CORE library macros.
#define BPSCORE_EXPORT
Declare class to be an import from the shared library.
Definition: bpscore_global.h:22
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
The BpsPrinterSettings class allows to save and restore printer settings.
Definition: bpsprintersettings.h:42
static QMap< QPrinter::Orientation, QString > orientations()
BpsPrinterSettings(QPrinter *aPrinter, BpsSettings *aSettings=nullptr, QObject *aParent=nullptr)
static QMap< QPrinter::PaperSize, QSizeF > paperSizes()
A map with paper size informations.
static QMap< QPrinter::PaperSize, QString > paperNames()
A map with the paper names.
bool setConfig(const QMap< QString, QString > &aConfig)
Load the settings from a config map instead from the settings.
QMap< QString, QString > config() const
bool restore()
Restore the settings from human readable keys/values.
void save()
Save the settings as human readable keys/values.
static QMap< QPrinter::PaperSource, QString > paperSources()
static QMap< QPrinter::ColorMode, QString > colorModes()
Query and edit settings.
Definition: bpssettings.h:17