55 #include "QtGui/qmatrix.h" 56 #include "QtCore/qstring.h" 57 #include "QtCore/qvector.h" 58 #include "private/qstroker_p.h" 59 #include "private/qfontengine_p.h" 60 #include "QtGui/qprinter.h" 61 #include "private/qfontsubset_p.h" 62 #include "private/qpaintengine_alpha_p.h" 70 #define PPK_CupsOptions QPrintEngine::PrintEnginePropertyKey(0xfe00) 71 #define PPK_CupsPageRect QPrintEngine::PrintEnginePropertyKey(0xfe01) 72 #define PPK_CupsPaperRect QPrintEngine::PrintEnginePropertyKey(0xfe02) 73 #define PPK_CupsStringPageSize QPrintEngine::PrintEnginePropertyKey(0xfe03) 129 #ifdef USE_NATIVE_GRADIENTS 135 void setPen(
const QPen &pen);
173 void streamImage(
int w,
int h,
int object);
212 virtual void setBrush() = 0;
213 void setupGraphicsState(QPaintEngine::DirtyFlags flags);
226 bool openPrintDevice();
227 void closePrintDevice();
233 QRect paperRect()
const;
234 QRect pageRect()
const;
289 #if !defined(QT_NO_CUPS) && !defined(QT_NO_LIBRARY) 296 #endif // QT_NO_PRINTER The QVariant class acts like a union for the most common Qt data types.
QVector< uint > graphicStates
PaperSize paperSize(QPrinter::PaperSize paperSize)
#define QT_END_NAMESPACE
This macro expands to.
QByteArray generateMatrix(const QTransform &matrix)
QPrinter::Orientation orientation
static int maxMemorySize()
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
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...
const char * qt_int_to_string(int val, char *buf)
QByteArray generateDashes(const QPen &pen)
The QString class provides a Unicode character string.
The QHash class is a template class that provides a hash-table-based dictionary.
const char * paperSizeToString(QPrinter::PaperSize paperSize)
ByteStream(bool fileBacking=false)
The QPen class defines how a QPainter should draw lines and outlines of shapes.
The QSizeF class defines the size of a two-dimensional object using floating point precision...
The QLineF class provides a two-dimensional vector using floating point precision.
DuplexMode
This enum is used to indicate whether printing will occur on one or both sides of each sheet of paper...
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
QPrinter::PageOrder pageOrder
The QPrintEngine class defines an interface for how QPrinter interacts with a given printing subsyste...
static void drawRects(const T *rects, int n, const QTransform &transform, IDirectFBSurface *surface)
The QStringList class provides a list of strings.
QPrinter::DuplexMode duplex
QHash< QFontEngine::FaceId, QFontSubset * > fonts
const char * qt_real_to_string(qreal val, char *buf)
bool hasCustomPageMargins
const char * toHex(ushort u, char *buffer)
QPrinter::ColorMode colorMode
The QBrush class defines the fill pattern of shapes drawn by QPainter.
QList< QPainterPath > clips
#define Q_DECLARE_PUBLIC(Class)
QPrinter::PaperSize paperSize
The QLinearGradient class is used in combination with QBrush to specify a linear gradient brush...
PaperSize
This enum type specifies what paper size QPrinter should use.
QVector< uint > annotations
QByteArray patternForBrush(const QBrush &b)
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.
void constructor_helper(QIODevice *dev)
static void drawPoints(const T *points, int n, const QTransform &transform, IDirectFBSurface *surface)
PageOrder
This enum type is used by QPrinter to tell the application program how to print.
The QPaintEngineState class provides information about the active paint engine's current state...
The QSize class defines the size of a two-dimensional object using integer point precision.
#define Q_DECLARE_PRIVATE(Class)
QString cupsStringPageSize
static void drawLines(const T *lines, int n, const QTransform &transform, IDirectFBSurface *surface)
The QTextItem class provides all the information required to draw text in a custom paint engine...
QByteArray generatePath(const QPainterPath &path, const QTransform &matrix, PathFlags flags)
static const KeyPair *const end
ByteStream & operator<<(char chr)
The QIODevice class is the base interface class of all I/O devices in Qt.
QPrinter::PaperSource paperSource
PaperSource
This enum type specifies what paper source QPrinter is to use.
QByteArray ascii85Encode(const QByteArray &input)
PrintEnginePropertyKey
This enum is used to communicate properties between the print engine and QPrinter.