42 #ifndef QPRINTENGINE_MAC_P_H 43 #define QPRINTENGINE_MAC_P_H 58 #include "QtGui/qprinter.h" 59 #include "QtGui/qprintengine.h" 60 #include "private/qpaintengine_mac_p.h" 61 #include "private/qpainter_p.h" 142 orient(
QPrinter::Portrait), printInfo(0), format(0), settings(0),
143 session(0), paintEngine(0), suppressStatus(false),
144 hasCustomPaperSize(false), hasCustomPageMargins(false) {}
147 void releaseSession();
148 bool newPage_helper();
154 #ifndef QT_MAC_USE_COCOA 157 return printInfo != 0;
160 bool shouldSuppressStatus()
const;
165 #endif // QT_NO_PRINTER 167 #endif // QPRINTENGINE_WIN_P_H The QVariant class acts like a union for the most common Qt data types.
PaperSize paperSize(QPrinter::PaperSize paperSize)
bool hasCustomPageMargins
#define QT_END_NAMESPACE
This macro expands to.
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
QPaintEngineState * state
PrinterMode
This enum describes the mode the printer should work in.
void setProperty(PrintEnginePropertyKey key, const QVariant &value)
Sets the print engine's property specified by key to the given value.
The QPointF class defines a point in the plane using floating point precision.
bool begin(QPaintDevice *dev)
Reimplement this function to initialise your paint engine when painting is to start on the paint devi...
virtual 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...
Orientation
This enum type (not to be confused with Orientation) is used to specify each page's orientation...
QHash< QMacPrintEngine::PrintEnginePropertyKey, QVariant > valueCache
The QString class provides a Unicode character string.
void updateState(const QPaintEngineState &state)
Reimplement this function to update the state of a paint engine.
QPrinter::PrinterState printerState() const
Returns the current state of the printer being used by the print engine.
virtual void drawPoints(const QPointF *p, int pointCount)
Draws the first pointCount points in the buffer points.
The QSizeF class defines the size of a two-dimensional object using floating point precision...
QPaintEngine * paintEngine() const
The QLineF class provides a two-dimensional vector using floating point precision.
bool isPrintSessionInitialized() const
virtual void drawRects(const QRectF *r, int num)
Draws the first rectCount rectangles in the buffer rects.
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. ...
The QPrintEngine class defines an interface for how QPrinter interacts with a given printing subsyste...
virtual QPaintEngine::Type type() const
Reimplement this function to return the paint engine Type.
QVariant property(PrintEnginePropertyKey key) const
Returns the print engine's property specified by key.
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...
virtual void drawTiledPixmap(const QRectF &r, const QPixmap &pixmap, const QPointF &s)
Reimplement this function to draw the pixmap in the given rect, starting at the given p...
virtual void drawLines(const QLineF *lines, int lineCount)
The default implementation splits the list of lines in lines into lineCount separate calls to drawPat...
QPrinter::PrinterMode mode
virtual void drawPath(const QPainterPath &)
The default implementation ignores the path and does nothing.
virtual void drawImage(const QRectF &r, const QImage &pm, const QRectF &sr, Qt::ImageConversionFlags flags)
Reimplement this function to draw the part of the image specified by the sr rectangle in the given re...
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
QPrinter::PrinterState state
virtual 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...
bool end()
Reimplement this function to finish painting on the current paint device.
#define Q_DECLARE_PUBLIC(Class)
Qt::HANDLE handle() const
PaperSize
This enum type specifies what paper size QPrinter should use.
QMacPrintEngine(QPrinter::PrinterMode mode)
int metric(QPaintDevice::PaintDeviceMetric) const
Returns the metric for the given id.
QPaintEngine * paintEngine
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...
bool abort()
Instructs the print engine to abort the printing process.
#define Q_DECLARE_PRIVATE(Class)
The QTextItem class provides all the information required to draw text in a custom paint engine...
QPrinter::Orientation orient
bool newPage()
Instructs the print engine to start a new page.
virtual void drawEllipse(const QRectF &r)
Reimplement this function to draw the largest ellipse that can be contained within rectangle rect...
virtual void drawTextItem(const QPointF &p, const QTextItem &ti)
This function draws the text item textItem at position p.
PrintEnginePropertyKey
This enum is used to communicate properties between the print engine and QPrinter.