CopperSpice API  1.9.2
QPlatformPrinterSupport Class Reference

Provides an abstraction for print support. More...

Public Methods

virtual QStringList availablePrintDeviceIds () const
 
virtual QPrintDevice createDefaultPrintDevice ()
 
virtual QPrintEnginecreateNativePrintEngine (QPrinter::PrinterMode mode)
 
virtual QPaintEnginecreatePaintEngine (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)
 

Detailed Description

The QPlatformPrinterSupport class provides an abstraction for printer support.

Method Documentation

QStringList QPlatformPrinterSupport::availablePrintDeviceIds ( ) const
virtual

Returns a list of valid printer device id. Base class implementation returns an empty list.

QPrintDevice QPlatformPrinterSupport::createDefaultPrintDevice ( )
virtual

Creates the default print device. Base class implementation returns a nullptr.

QPrintEngine * QPlatformPrinterSupport::createNativePrintEngine ( QPrinter::PrinterMode  mode)
virtual

Creates a native print engine based on the given mode. Base class implementation returns a nullptr.

QPageSize QPlatformPrinterSupport::createPageSize ( const QString id,
QSize  size,
const QString localizedName 
)
staticprotected

Creates a page size object based on the id, size, and localizedName. Base class implementation returns an empty QPageSize().

QPaintEngine * QPlatformPrinterSupport::createPaintEngine ( QPrintEngine engine,
QPrinter::PrinterMode  mode 
)
virtual

Creates a QPaintEnginebased using the given print engine and mode. The base class implementation returns a nullptr.

QPrintDevice QPlatformPrinterSupport::createPrintDevice ( const QString id)
virtual

Creates a print device based on the given id. Base class implementation returns a nullptr.

QPrintDevice QPlatformPrinterSupport::createPrintDevice ( QPlatformPrintDevice device)
staticprotected

Creates a print device based on the given platform print device. Base class implementation returns a nullptr.

QString QPlatformPrinterSupport::defaultPrintDeviceId ( ) const
virtual

Returns the id of the default print device. Base class implementation returns an empty string.