Qt 4.8
|
#include <qprintengine_win_p.h>
Public Functions | |
bool | abort () |
Instructs the print engine to abort the printing process. More... | |
bool | begin (QPaintDevice *dev) |
Reimplement this function to initialise your paint engine when painting is to start on the paint device pdev. More... | |
void | drawPath (const QPainterPath &path) |
The default implementation ignores the path and does nothing. More... | |
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. More... | |
void | drawPolygon (const QPointF *points, int pointCount, PolygonDrawMode mode) |
Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode. More... | |
void | drawTextItem (const QPointF &p, const QTextItem &textItem) |
This function draws the text item textItem at position p. More... | |
void | drawTiledPixmap (const QRectF &r, const QPixmap &pm, const QPointF &p) |
Reimplement this function to draw the pixmap in the given rect, starting at the given p. More... | |
bool | end () |
Reimplement this function to finish painting on the current paint device. More... | |
HDC | getDC () const |
Empty default implementation. More... | |
HDC | getPrinterDC () const |
int | metric (QPaintDevice::PaintDeviceMetric) const |
Returns the metric for the given id. More... | |
bool | newPage () |
Instructs the print engine to start a new page. More... | |
QPrinter::PrinterState | printerState () const |
Returns the current state of the printer being used by the print engine. More... | |
QVariant | property (PrintEnginePropertyKey key) const |
Returns the print engine's property specified by key. More... | |
QWin32PrintEngine (QPrinter::PrinterMode mode) | |
void | releaseDC (HDC) const |
Empty default implementation. More... | |
void | releasePrinterDC (HDC dc) const |
void | setProperty (PrintEnginePropertyKey key, const QVariant &value) |
Sets the print engine's property specified by key to the given value. More... | |
QPaintEngine::Type | type () const |
Reimplement this function to return the paint engine Type. More... | |
void | updateClipPath (const QPainterPath &clip, Qt::ClipOperation op) |
void | updateMatrix (const QTransform &matrix) |
void | updateState (const QPaintEngineState &state) |
Reimplement this function to update the state of a paint engine. More... | |
Public Functions inherited from QAlphaPaintEngine | |
virtual void | drawImage (const QRectF &r, const QImage &image, const QRectF &sr) |
~QAlphaPaintEngine () | |
Public Functions inherited from QPaintEngine | |
void | clearDirty (DirtyFlags df) |
virtual QPoint | coordinateOffset () const |
Returns the offset from the painters origo to the engines origo. More... | |
virtual void | drawEllipse (const QRectF &r) |
Reimplement this function to draw the largest ellipse that can be contained within rectangle rect. More... | |
virtual void | drawEllipse (const QRect &r) |
The default implementation of this function calls the floating point version of this function. More... | |
virtual void | drawImage (const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags=Qt::AutoColor) |
Reimplement this function to draw the part of the image specified by the sr rectangle in the given rectangle using the given conversion flags flags, to convert it to a pixmap. More... | |
virtual void | drawLines (const QLine *lines, int lineCount) |
The default implementation converts the first lineCount lines in lines to a QLineF and calls the floating point version of this function. More... | |
virtual void | drawLines (const QLineF *lines, int lineCount) |
The default implementation splits the list of lines in lines into lineCount separate calls to drawPath() or drawPolygon() depending on the feature set of the paint engine. More... | |
virtual void | drawPoints (const QPointF *points, int pointCount) |
Draws the first pointCount points in the buffer points. More... | |
virtual void | drawPoints (const QPoint *points, int pointCount) |
Draws the first pointCount points in the buffer points. More... | |
virtual void | drawPolygon (const QPoint *points, int pointCount, PolygonDrawMode mode) |
Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode. More... | |
virtual void | drawRects (const QRect *rects, int rectCount) |
The default implementation converts the first rectCount rectangles in the buffer rects to a QRectF and calls the floating point version of this function. More... | |
virtual void | drawRects (const QRectF *rects, int rectCount) |
Draws the first rectCount rectangles in the buffer rects. More... | |
void | fix_neg_rect (int *x, int *y, int *w, int *h) |
bool | hasFeature (PaintEngineFeatures feature) const |
Returns true if the paint engine supports the specified feature; otherwise returns false. More... | |
bool | isActive () const |
Returns true if the paint engine is actively drawing; otherwise returns false. More... | |
bool | isExtended () const |
Returns true if the paint engine is a QPaintEngineEx derivative. More... | |
QPaintDevice * | paintDevice () const |
Returns the device that this engine is painting on, if painting is active; otherwise returns 0. More... | |
QPainter * | painter () const |
Returns the paint engine's painter. More... | |
QPaintEngine (PaintEngineFeatures features=0) | |
Creates a paint engine with the featureset specified by caps. More... | |
void | setActive (bool newState) |
Sets the active state of the paint engine to state. More... | |
void | setDirty (DirtyFlags df) |
void | setPaintDevice (QPaintDevice *device) |
void | setSystemClip (const QRegion &baseClip) |
Sets the system clip for this engine. More... | |
void | setSystemRect (const QRect &rect) |
Sets the target rect for drawing within the backing store. More... | |
void | syncState () |
Updates all dirty states in this engine. More... | |
QRegion | systemClip () const |
Returns the system clip. More... | |
QRect | systemRect () const |
Retrieves the rect for drawing within the backing store. More... | |
bool | testDirty (DirtyFlags df) |
virtual | ~QPaintEngine () |
Destroys the paint engine. More... | |
Public Functions inherited from QPrintEngine | |
virtual | ~QPrintEngine () |
Destroys the print engine. More... | |
Friends | |
class | QPageSetupDialog |
class | QPrintDialog |
Definition at line 70 of file qprintengine_win_p.h.
QWin32PrintEngine::QWin32PrintEngine | ( | QPrinter::PrinterMode | mode | ) |
Definition at line 162 of file qprintengine_win.cpp.
|
virtual |
Instructs the print engine to abort the printing process.
Returns true if successful; otherwise returns false.
Implements QPrintEngine.
Definition at line 328 of file qprintengine_win.cpp.
|
virtual |
Reimplement this function to initialise your paint engine when painting is to start on the paint device pdev.
Return true if the initialization was successful; otherwise return false.
Reimplemented from QAlphaPaintEngine.
Definition at line 178 of file qprintengine_win.cpp.
|
virtual |
The default implementation ignores the path and does nothing.
Reimplemented from QAlphaPaintEngine.
Definition at line 902 of file qprintengine_win.cpp.
Referenced by drawPolygon().
|
virtual |
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r.
Reimplemented from QAlphaPaintEngine.
Definition at line 616 of file qprintengine_win.cpp.
|
virtual |
Reimplement this virtual function to draw the polygon defined by the pointCount first points in points, using mode mode.
Reimplemented from QAlphaPaintEngine.
Definition at line 922 of file qprintengine_win.cpp.
This function draws the text item textItem at position p.
The default implementation of this function converts the text to a QPainterPath and paints the resulting path.
Reimplemented from QAlphaPaintEngine.
Definition at line 334 of file qprintengine_win.cpp.
|
virtual |
Reimplement this function to draw the pixmap in the given rect, starting at the given p.
The pixmap will be drawn repeatedly until the rect is filled.
Reimplemented from QAlphaPaintEngine.
Definition at line 713 of file qprintengine_win.cpp.
|
virtual |
Reimplement this function to finish painting on the current paint device.
Return true if painting was finished successfully; otherwise return false.
Reimplemented from QAlphaPaintEngine.
Definition at line 241 of file qprintengine_win.cpp.
|
virtual |
Empty default implementation.
Reimplemented from QPaintEngine.
Definition at line 1560 of file qprintengine_win.cpp.
Referenced by getPrinterDC(), and type().
|
inlinevirtual |
Reimplemented from QPrintEngine.
Definition at line 105 of file qprintengine_win_p.h.
|
virtual |
Returns the metric for the given id.
Implements QPrintEngine.
Definition at line 405 of file qprintengine_win.cpp.
|
virtual |
Instructs the print engine to start a new page.
Returns true if the printer was able to create the new page; otherwise returns false.
Implements QPrintEngine.
Definition at line 267 of file qprintengine_win.cpp.
|
virtual |
Returns the current state of the printer being used by the print engine.
Implements QPrintEngine.
Definition at line 1555 of file qprintengine_win.cpp.
|
virtual |
Returns the print engine's property specified by key.
Implements QPrintEngine.
Definition at line 1384 of file qprintengine_win.cpp.
Referenced by setProperty().
|
virtual |
Empty default implementation.
Reimplemented from QPaintEngine.
Definition at line 1565 of file qprintengine_win.cpp.
Referenced by releasePrinterDC(), and type().
|
inlinevirtual |
Reimplemented from QPrintEngine.
Definition at line 106 of file qprintengine_win_p.h.
|
virtual |
Sets the print engine's property specified by key to the given value.
Implements QPrintEngine.
Definition at line 1206 of file qprintengine_win.cpp.
|
inlinevirtual |
Reimplement this function to return the paint engine Type.
Implements QPaintEngine.
Definition at line 100 of file qprintengine_win_p.h.
void QWin32PrintEngine::updateClipPath | ( | const QPainterPath & | clip, |
Qt::ClipOperation | op | ||
) |
Definition at line 568 of file qprintengine_win.cpp.
Referenced by updateState().
void QWin32PrintEngine::updateMatrix | ( | const QTransform & | matrix | ) |
Definition at line 605 of file qprintengine_win.cpp.
Referenced by begin(), and updateState().
|
virtual |
Reimplement this function to update the state of a paint engine.
When implemented, this function is responsible for checking the paint engine's current state and update the properties that are changed. Use the QPaintEngineState::state() function to find out which properties that must be updated, then use the corresponding GetFunction{get function} to retrieve the current values for the given properties.
Reimplemented from QAlphaPaintEngine.
Definition at line 527 of file qprintengine_win.cpp.
|
friend |
Definition at line 110 of file qprintengine_win_p.h.
|
friend |
Definition at line 109 of file qprintengine_win_p.h.