42 #ifndef QPRINTENGINE_WIN_P_H 43 #define QPRINTENGINE_WIN_P_H 58 #include "QtGui/qprinter.h" 59 #include "QtGui/qprintengine.h" 60 #include "QtGui/qpaintengine.h" 61 #include "QtCore/qt_windows.h" 62 #include "private/qpaintengine_alpha_p.h" 126 pageMarginsSet(false),
131 has_custom_paper_size(false)
166 HGLOBAL *createDevNames();
168 void readDevmode(HGLOBAL globalDevmode);
169 void readDevnames(HGLOBAL globalDevnames);
172 hdc = ResetDC(hdc, devMode);
186 void setPageMargins(
int margin_left,
int margin_top,
int margin_right,
int margin_bottom);
187 QRect getPageMargins()
const;
188 void updateCustomPaperSize();
259 #endif // QT_NO_PRINTER 261 #endif // QPRINTENGINE_WIN_P_H The QVariant class acts like a union for the most common Qt data types.
The QColor class provides colors based on RGB, HSV or CMYK values.
#define QT_END_NAMESPACE
This macro expands to.
QWin32PrintEnginePrivate()
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
QPaintEngineState * state
void releaseDC(HDC) const
Empty default implementation.
PrinterMode
This enum describes the mode the printer should work in.
The QPointF class defines a point in the plane using floating point precision.
void updateState(const QPaintEngineState &state)
Reimplement this function to update the state of a paint engine.
QRect previousDialogMargins
bool begin(QPaintDevice *dev)
Reimplement this function to initialise your paint engine when painting is to start on the paint devi...
The QString class provides a Unicode character string.
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...
QPrinter::PrinterMode mode
The QPen class defines how a QPainter should draw lines and outlines of shapes.
QVariant property(PrintEnginePropertyKey key) const
Returns the print engine's property specified by key.
The QSizeF class defines the size of a two-dimensional object using floating point precision...
QPrinter::PrinterState printerState() const
Returns the current state of the printer being used by the print engine.
void updateMatrix(const QTransform &matrix)
The QPrintDialog class provides a dialog for specifying the printer's configuration.
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. ...
bool newPage()
Instructs the print engine to start a new page.
The QPrintEngine class defines an interface for how QPrinter interacts with a given printing subsyste...
The QPrinter class is a paint device that paints on a printer.
QRect devPhysicalPageRect
int metric(QPaintDevice::PaintDeviceMetric) const
Returns the metric for the given id.
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...
void updateClipPath(const QPainterPath &clip, Qt::ClipOperation op)
#define Q_DECLARE_PUBLIC(Class)
bool abort()
Instructs the print engine to abort the printing process.
bool end()
Reimplement this function to finish painting on the current paint device.
The QRect class defines a rectangle in the plane using integer precision.
void releasePrinterDC(HDC dc) const
The QPixmap class is an off-screen image representation that can be used as a paint device...
HDC getDC() const
Empty default implementation.
The QPaintEngineState class provides information about the active paint engine's current state...
#define Q_DECLARE_PRIVATE(Class)
uint has_custom_paper_size
The QTextItem class provides all the information required to draw text in a custom paint engine...
void drawTextItem(const QPointF &p, const QTextItem &textItem)
This function draws the text item textItem at position p.
void setProperty(PrintEnginePropertyKey key, const QVariant &value)
Sets the print engine's property specified by key to the given value.
void drawPolygon(const QPointF *points, int pointCount, PolygonDrawMode mode)
Reimplement this virtual function to draw the polygon defined by the pointCount first points in point...
QPrinter::PrinterState state
QWin32PrintEngine(QPrinter::PrinterMode mode)
QPaintEngine::Type type() const
Reimplement this function to return the paint engine Type.
PrintEnginePropertyKey
This enum is used to communicate properties between the print engine and QPrinter.
void drawPath(const QPainterPath &path)
The default implementation ignores the path and does nothing.