42 #ifndef QPRINTENGINE_PDF_P_H 43 #define QPRINTENGINE_PDF_P_H 56 #include "QtGui/qprintengine.h" 59 #include "QtCore/qmap.h" 60 #include "QtGui/qmatrix.h" 61 #include "QtCore/qstring.h" 62 #include "QtCore/qvector.h" 63 #include "QtGui/qpaintengine.h" 64 #include "QtGui/qpainterpath.h" 65 #include "QtCore/qdatastream.h" 67 #include "private/qfontengine_p.h" 68 #include "private/qpdf_p.h" 69 #include "private/qpaintengine_p.h" 133 QRect r = paperRect();
137 QRect r = paperRect();
144 int addImage(
const QImage &image,
bool *bitmap,
qint64 serial_no);
145 int addConstantAlphaObject(
int brushAlpha,
int penAlpha = 255);
146 int addBrushPattern(
const QTransform &matrix,
bool *specifyColor,
int *gStateObject);
155 #ifdef USE_NATIVE_GRADIENTS 156 int gradientBrush(
const QBrush &b,
const QMatrix &matrix,
int *gStateObject);
160 void writePageRoot();
168 int writeImage(
const QByteArray &
data,
int width,
int height,
int depth,
169 int maskObject,
int softMaskObject,
bool dct =
false);
172 int addXrefEntry(
int object,
bool printostr =
true);
173 void printString(
const QString &
string);
174 void xprintf(
const char* fmt, ...);
177 streampos += data.
size();
180 int writeCompressed(
const char *src,
int len);
193 #endif // QT_NO_PRINTER 195 #endif // QPRINTENGINE_PDF_P_H
bool abort()
Instructs the print engine to abort the printing process.
void setAuthor(const QString &author)
static mach_timebase_info_data_t info
#define QT_END_NAMESPACE
This macro expands to.
The QMatrix class specifies 2D transformations of a coordinate system.
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.
QHash< QPair< uint, uint >, uint > alphaCache
QPdfEngine(QPrinter::PrinterMode m)
int width() const
Returns the width of the rectangle.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
int height() const
Returns the height of the rectangle.
The QString class provides a Unicode character string.
QVector< int > xrefPositions
int writeCompressed(const QByteArray &data)
The QPen class defines how a QPainter should draw lines and outlines of shapes.
Type type() const
Reimplement this function to return the paint engine Type.
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 re...
void drawTextItem(const QPointF &p, const QTextItem &textItem)
This function draws the text item textItem at position p.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
void write(const QByteArray &data)
void drawTiledPixmap(const QRectF &rectangle, const QPixmap &pixmap, const QPointF &point)
Reimplement this function to draw the pixmap in the given rect, starting at the given p...
The QPrinter class is a paint device that paints on a printer.
void setDevice(QIODevice *dev)
The QImage class provides a hardware-independent image representation that allows direct access to th...
static const char * data(const QByteArray &arr)
QPrinter::PrinterState printerState() const
Returns the current state of the printer being used by the print engine.
The QRegion class specifies a clip region for a painter.
void drawPixmap(const QRectF &rectangle, const QPixmap &pixmap, const QRectF &sr)
Reimplement this function to draw the part of the pm specified by the sr rectangle in the given r...
int length() const
Same as size().
const char * constData() const
Returns a pointer to the data stored in the byte array.
The QBrush class defines the fill pattern of shapes drawn by QPainter.
QHash< qint64, uint > imageCache
#define Q_DECLARE_PUBLIC(Class)
bool newPage()
Instructs the print engine to start a new page.
The QFile class provides an interface for reading from and writing to files.
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.
int size() const
Returns the number of bytes in this byte array.
The QPixmap class is an off-screen image representation that can be used as a paint device...
#define Q_DECLARE_PRIVATE(Class)
The QDataStream class provides serialization of binary data to a QIODevice.
QPrinter::PrinterState state
The QIODevice class is the base interface class of all I/O devices in Qt.
int writeRawData(const char *, int len)
Writes len bytes from s to the stream.
Q_DECL_CONSTEXPR int qRound(qreal d)
bool begin(QPaintDevice *pdev)
Reimplement this function to initialise your paint engine when painting is to start on the paint devi...