42 #ifndef QPRINTENGINE_QWS_P_H 43 #define QPRINTENGINE_QWS_P_H 56 #include "QtGui/qprinter.h" 60 #include "QtGui/qprintengine.h" 61 #include "QtCore/qbytearray.h" 62 #include "private/qpaintengine_p.h" 117 int size()
const {
return _data.size(); }
121 void append(
char value ) { _data.append( value ); }
122 void append(
short value );
123 void append(
int value );
126 void patch(
int posn,
int value );
135 #define QT_QWS_PRINTER_DEFAULT_DPI 200 146 pageOrder(
QPrinter::FirstPageFirst),
154 collateCopies(false),
200 void writeG3FaxHeader();
201 void writeG3FaxPage();
202 int writeG3IFDEntry(
int tag,
int type,
int count,
int value );
203 void writeG3Code(
int code,
int bits );
204 void writeG3WhiteRun(
int len );
205 void writeG3BlackRun(
int len );
211 #endif // QT_NO_PRINTER 213 #endif // QPRINTENGINE_QWS_P_H The QVariant class acts like a union for the most common Qt data types.
#define QT_QWS_PRINTER_DEFAULT_DPI
QPrinter::PaperSize paperSize
void append(const QByteArray &array)
void updateState(const QPaintEngineState &state)
Reimplement this function to update the state of a paint engine.
PaperSize paperSize(QPrinter::PaperSize paperSize)
QPrinter::Orientation orientation
#define QT_END_NAMESPACE
This macro expands to.
QPrinter::PrinterState printerState() const
Returns the current state of the printer being used by the print engine.
QPrinter::PaperSource paperSource
QPaintEngineState * state
PrinterMode
This enum describes the mode the printer should work in.
The QByteArray class provides an array of bytes.
The QPointF class defines a point in the plane using floating point precision.
Orientation
This enum type (not to be confused with Orientation) is used to specify each page's orientation...
bool end()
Reimplement this function to finish painting on the current paint device.
The QString class provides a Unicode character string.
void drawPixmap(const QRectF &r, const QPixmap &pm, const QRectF &sr)
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r...
QPaintEngine * paintEngine() const
The QPrintDialog class provides a dialog for specifying the printer's configuration.
QtopiaPrintEngine(QPrinter::PrinterMode mode)
The QPageSetupDialog class provides a configuration dialog for the page-related options on a printer...
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
The QPrintEngine class defines an interface for how QPrinter interacts with a given printing subsyste...
QPaintEngine * _paintEngine
The QPrinter class is a paint device that paints on a printer.
The QImage class provides a hardware-independent image representation that allows direct access to th...
#define FALSE
Synonym for false.
bool newPage()
Instructs the print engine to start a new page.
bool begin(QPaintDevice *dev)
Reimplement this function to initialise your paint engine when painting is to start on the paint devi...
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
QtopiaPrintBuffer(bool bigEndian=FALSE)
const QByteArray & data() const
QPrinter::ColorMode colorMode
#define Q_DECLARE_PUBLIC(Class)
QtopiaPrintEnginePrivate(QPrinter::PrinterMode m)
void drawTextItem(const QPointF &p, const QTextItem &ti)
This function draws the text item textItem at position p.
bool abort()
Instructs the print engine to abort the printing process.
QPrinter::PrinterMode mode
PaperSize
This enum type specifies what paper size QPrinter should use.
ColorMode
This enum type is used to indicate whether QPrinter should print in color or not. ...
The QRect class defines a rectangle in the plane using integer precision.
PageOrder
This enum type is used by QPrinter to tell the application program how to print.
The QPixmap class is an off-screen image representation that can be used as a paint device...
The QPaintEngineState class provides information about the active paint engine's current state...
QPrinter::PrinterState printerState
QPaintEngine::Type type() const
Reimplement this function to return the paint engine Type.
#define Q_DECLARE_PRIVATE(Class)
The QRasterPaintEngine class enables hardware acceleration of painting operations in Qt for Embedded ...
The QTextItem class provides all the information required to draw text in a custom paint engine...
QVariant property(PrintEnginePropertyKey key) const
Returns the print engine's property specified by key.
QPrinter::PageOrder pageOrder
void setProperty(PrintEnginePropertyKey key, const QVariant &value)
Sets the print engine's property specified by key to the given value.
int metric(QPaintDevice::PaintDeviceMetric metricType) const
Returns the metric for the given id.
PaperSource
This enum type specifies what paper source QPrinter is to use.
PrintEnginePropertyKey
This enum is used to communicate properties between the print engine and QPrinter.