Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions

QPrintEngine Class Reference

The QPrintEngine class defines an interface for how QPrinter interacts with a given printing subsystem. More...

#include <QPrintEngine>

Part of the QtGui module.

Public Types

Public Functions


Detailed Description

The QPrintEngine class defines an interface for how QPrinter interacts with a given printing subsystem.

The common use is to derive from both QPaintEngine and QPrintEngine when implementing a new printer.

See also QPaintEngine.


Member Type Documentation

enum QPrintEngine::PrintEnginePropertyKey

This enum is used to communicate properties between the print engine and QPrinter. A property may or may not be supported by a given print engine.

ConstantValueDescription
QPrintEngine::PPK_CollateCopies0A bool value describing wether the printout should be collated or not.
QPrintEngine::PPK_ColorMode1Refers to QPrinter::ColorMode, either color or monochrome.
QPrintEngine::PPK_Creator2 
ConstantValueDescription
QPrintEngine::PPK_DocumentName3A string describing the document name in the spooler.
QPrintEngine::PPK_FullPage4A boolean describing if the printer should be full page or not.
QPrintEngine::PPK_NumberOfCopies5An integer specifying the number of copies
QPrintEngine::PPK_Orientation6Specifies a QPrinter::Orientation value.
QPrintEngine::PPK_OutputFileName7The output file name as a string. An empty file name indicates that we do not print to file.
QPrintEngine::PPK_PageOrder8Specifies a QPrinter::PageOrder value.
QPrintEngine::PPK_PageRect9A QRect specifying the page rectangle
QPrintEngine::PPK_PageSize10Specifies a QPrinter::PageSize value.
QPrintEngine::PPK_PaperRect11A QRect specifying the paper rectangle.
QPrintEngine::PPK_PaperSource12Specifies a QPrinter::PaperSource value.
QPrintEngine::PPK_PrinterName13A string specifying the name of the printer.
QPrintEngine::PPK_PrinterProgram14A string specifying the name of the printer program used for printing,
QPrintEngine::PPK_Resolution15An integer describing the dots per inch for this printer.
QPrintEngine::PPK_SelectionOption16 
ConstantValueDescription
QPrintEngine::PPK_SupportedResolutions17A list of integer QVariants describing the set of supported resolutions that the printer has.
QPrintEngine::PPK_WindowsPageSize18An integer specifying a DM_PAPER entry on Windows(tm).
QPrintEngine::PPK_CustomBase0xff00Basis for extension.

Member Function Documentation

QPrintEngine::~QPrintEngine ()   [virtual]

bool QPrintEngine::abort ()   [pure virtual]

HDC QPrintEngine::getPrinterDC () const   [virtual]

int QPrintEngine::metric ( QPaintDevice::PaintDeviceMetric ) const   [pure virtual]

bool QPrintEngine::newPage ()   [pure virtual]

QPrinter::PrinterState QPrintEngine::printerState () const   [pure virtual]

QVariant QPrintEngine::property ( PrintEnginePropertyKey key ) const   [pure virtual]

void QPrintEngine::releasePrinterDC ( HDC ) const   [virtual]

void QPrintEngine::setProperty ( PrintEnginePropertyKey key, const QVariant & value )   [pure virtual]


Copyright © 2005 Trolltech Trademarks
Qt 4.0.0-b2