CopperSpice API
1.9.2
|
Provides an abstraction for print support. More...
Public Methods | |
virtual QStringList | availablePrintDeviceIds () const |
virtual QPrintDevice | createDefaultPrintDevice () |
virtual QPrintEngine * | createNativePrintEngine (QPrinter::PrinterMode mode) |
virtual QPaintEngine * | createPaintEngine (QPrintEngine *engine, QPrinter::PrinterMode mode) |
virtual QPrintDevice | createPrintDevice (const QString &id) |
virtual QString | defaultPrintDeviceId () const |
Static Protected Methods | |
static QPageSize | createPageSize (const QString &id, QSize size, const QString &localizedName) |
static QPrintDevice | createPrintDevice (QPlatformPrintDevice *device) |
The QPlatformPrinterSupport class provides an abstraction for printer support.
|
virtual |
Returns a list of valid printer device id. Base class implementation returns an empty list.
|
virtual |
Creates the default print device. Base class implementation returns a nullptr.
|
virtual |
Creates a native print engine based on the given mode. Base class implementation returns a nullptr.
|
staticprotected |
Creates a page size object based on the id, size, and localizedName. Base class implementation returns an empty QPageSize().
|
virtual |
Creates a QPaintEnginebased using the given print engine and mode. The base class implementation returns a nullptr.
|
virtual |
Creates a print device based on the given id. Base class implementation returns a nullptr.
|
staticprotected |
Creates a print device based on the given platform print device. Base class implementation returns a nullptr.
|
virtual |
Returns the id of the default print device. Base class implementation returns an empty string.