Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qpdf_p.h>
Public Attributes | |
int | currentObject |
QPdfPage * | currentPage |
QPdf::Stroker | stroker |
QPointF | brushOrigin |
QBrush | brush |
QPen | pen |
QList< QPainterPath > | clips |
bool | clipEnabled |
bool | allClipped |
bool | hasPen |
bool | hasBrush |
bool | simplePen |
bool | needsTransform |
qreal | opacity |
QPdfEngine::PdfVersion | pdfVersion |
QPdfEngine::ColorModel | colorModel |
QHash< QFontEngine::FaceId, QFontSubset * > | fonts |
QPaintDevice * | pdev |
QIODevice * | outDevice |
bool | ownsDevice |
QString | outputFileName |
QString | title |
QString | creator |
bool | embedFonts |
int | resolution |
QPageLayout | m_pageLayout |
Public Attributes inherited from QPaintEnginePrivate | |
QPaintDevice * | pdev |
QPaintEngine * | q_ptr |
QRegion | baseSystemClip |
QRegion | systemClip |
QRect | systemRect |
QRegion | systemViewport |
QTransform | systemTransform |
QPaintDevice * | currentClipDevice |
uint | hasSystemTransform: 1 |
uint | hasSystemViewport: 1 |
Additional Inherited Members | |
Static Public Member Functions inherited from QPaintEnginePrivate | |
static QPaintEnginePrivate * | get (QPaintEngine *paintEngine) |
QPdfEnginePrivate::QPdfEnginePrivate | ( | ) |
Definition at line 1431 of file qpdf.cpp.
References currentObject, currentPage, initResources(), resolution, QPdf::Stroker::stream, and stroker.
QPdfEnginePrivate::~QPdfEnginePrivate | ( | ) |
Definition at line 1539 of file qpdf.cpp.
References currentPage, fonts, and qDeleteAll().
int QPdfEnginePrivate::addBrushPattern | ( | const QTransform & | matrix, |
bool * | specifyColor, | ||
int * | gStateObject ) |
Definition at line 2922 of file qpdf.cpp.
References addConstantAlphaObject(), addImage(), QColor::alpha(), QList< T >::append(), brushOrigin, QPen::color(), currentPage, Qt::Dense1Pattern, Qt::DiagCrossPattern, QImage::Format_Mono, QImage::Format_MonoLSB, QPdf::generateMatrix(), Qt::LinearGradientPattern, QPainter::LosslessImageRendering, QPainter::NonCosmeticBrushPatterns, opacity, pageMatrix(), QPdf::patternForBrush(), QPdfPage::patterns, pen, qRound(), Qt::RadialGradientPattern, str, Qt::TexturePattern, QTransform::translate(), QPointF::x(), and QPointF::y().
int QPdfEnginePrivate::addConstantAlphaObject | ( | int | brushAlpha, |
int | penAlpha = 255 ) |
Definition at line 2901 of file qpdf.cpp.
References QList< T >::append(), currentPage, QPdfPage::graphicStates, QListSpecialMethodsBase< T >::indexOf(), QHash< Key, T >::insert(), and QHash< Key, T >::value().
Referenced by addBrushPattern().
int QPdfEnginePrivate::addImage | ( | const QImage & | img, |
bool * | bitmap, | ||
bool | lossless, | ||
qint64 | serial_no ) |
Adds an image to the pdf and return the pdf-object id.
Returns -1 if adding the image failed.
Definition at line 3024 of file qpdf.cpp.
References colorModel, contains(), QByteArray::data(), QImage::Format_ARGB32, QImage::Format_CMYK8888, QImage::Format_Mono, QImage::Format_MonoLSB, QImage::Format_RGB32, QCmyk32::fromCmyk32(), QPdfEngine::Grayscale, grayscale(), hasAlpha(), imageData, QHash< Key, T >::insert(), is_monochrome(), pdfVersion, qAlpha(), qBlue(), qGray(), qGreen(), qRed(), QRgb, QByteArray::resize(), rgb, QImageWriter::supportedImageFormats(), QHash< Key, T >::value(), QPdfEngine::Version_A1b, and Qt::white.
Referenced by addBrushPattern().
void QPdfEnginePrivate::drawTextItem | ( | const QPointF & | p, |
const QTextItemInt & | ti ) |
Definition at line 3197 of file qpdf.cpp.
References QTextFormat::AnchorHref, QTextFormat::AnchorName, QPdfPage::annotations, QList< T >::append(), QByteArray::constData(), QListSpecialMethodsBase< T >::contains(), currentPage, embedFonts, QFontEngine::FaceId::filename, font, QPdfPage::fonts, fonts, QTransform::fromTranslate(), i, QHash< Key, T >::insert(), QByteArray::isEmpty(), QList< T >::last(), QTransform::map(), QPdf::Stroker::matrix, pageMatrix(), pdfVersion, pos, positions, Q_ASSERT, requestObject(), QByteArray::setNum(), QString::sliced(), QString::startsWith(), stroker, QFontEngine::SynthesizedBold, QFontEngine::SynthesizedItalic, QFontEngine::SynthesizedStretch, QPdf::toHex(), QString::toLatin1(), QHash< Key, T >::value(), and QPdfEngine::Version_A1b.
void QPdfEnginePrivate::newPage | ( | ) |
Definition at line 3390 of file qpdf.cpp.
References QList< T >::append(), currentPage, QPageLayout::fullRectPoints(), QPdf::generateMatrix(), QSize::isEmpty(), m_pageLayout, pageMatrix(), QPdfPage::pageSize, requestObject(), QRect::size(), QPdf::Stroker::stream, and stroker.
QTransform QPdfEnginePrivate::pageMatrix | ( | ) | const |
Definition at line 3378 of file qpdf.cpp.
References QPageLayout::FullPageMode, QPageLayout::fullRectPoints(), QRect::height(), m_pageLayout, QPageLayout::mode(), QPageLayout::paintRectPixels(), resolution, and QTransform::translate().
Referenced by addBrushPattern(), drawTextItem(), and newPage().
|
inline |
Definition at line 219 of file qpdf_p.h.
Referenced by drawTextItem(), newPage(), and writeHeader().
void QPdfEnginePrivate::writeHeader | ( | ) |
Definition at line 1546 of file qpdf.cpp.
References QByteArray::isEmpty(), pdfVersion, requestObject(), and QPdfEngine::Version_A1b.
void QPdfEnginePrivate::writeTail | ( | ) |
Definition at line 2220 of file qpdf.cpp.
References QList< T >::constLast(), QUuid::createUuid(), QCryptographicHash::hash(), i, QCryptographicHash::Md5, pdfVersion, QList< T >::size(), QString::toLatin1(), and QPdfEngine::Version_A1b.
QPointF QPdfEnginePrivate::brushOrigin |
Definition at line 239 of file qpdf_p.h.
Referenced by addBrushPattern().
QList<QPainterPath> QPdfEnginePrivate::clips |
QPdfEngine::ColorModel QPdfEnginePrivate::colorModel |
Definition at line 251 of file qpdf_p.h.
Referenced by addImage(), and QPdfPrintEnginePrivate::printerColorMode().
int QPdfEnginePrivate::currentObject |
Definition at line 234 of file qpdf_p.h.
Referenced by QPdfEnginePrivate().
QPdfPage* QPdfEnginePrivate::currentPage |
Definition at line 236 of file qpdf_p.h.
Referenced by QPdfEnginePrivate(), ~QPdfEnginePrivate(), addBrushPattern(), addConstantAlphaObject(), drawTextItem(), and newPage().
bool QPdfEnginePrivate::embedFonts |
Definition at line 265 of file qpdf_p.h.
Referenced by drawTextItem().
QHash<QFontEngine::FaceId, QFontSubset *> QPdfEnginePrivate::fonts |
Definition at line 253 of file qpdf_p.h.
Referenced by ~QPdfEnginePrivate(), and drawTextItem().
QPageLayout QPdfEnginePrivate::m_pageLayout |
Definition at line 269 of file qpdf_p.h.
Referenced by QCupsPrintEnginePrivate::closePrintDevice(), newPage(), and pageMatrix().
qreal QPdfEnginePrivate::opacity |
Definition at line 249 of file qpdf_p.h.
Referenced by addBrushPattern().
QIODevice* QPdfEnginePrivate::outDevice |
Definition at line 258 of file qpdf_p.h.
Referenced by QPdfPrintEnginePrivate::closePrintDevice(), QPdfPrintEnginePrivate::openPrintDevice(), and QCupsPrintEnginePrivate::openPrintDevice().
QString QPdfEnginePrivate::outputFileName |
Definition at line 262 of file qpdf_p.h.
Referenced by QPdfPrintEnginePrivate::openPrintDevice(), and QCupsPrintEnginePrivate::openPrintDevice().
QPaintDevice* QPdfEnginePrivate::pdev |
QPdfEngine::PdfVersion QPdfEnginePrivate::pdfVersion |
Definition at line 250 of file qpdf_p.h.
Referenced by addImage(), drawTextItem(), writeHeader(), and writeTail().
QPen QPdfEnginePrivate::pen |
Definition at line 241 of file qpdf_p.h.
Referenced by addBrushPattern().
int QPdfEnginePrivate::resolution |
Definition at line 266 of file qpdf_p.h.
Referenced by QPdfEnginePrivate(), QPdfPrintEnginePrivate::QPdfPrintEnginePrivate(), and pageMatrix().
QPdf::Stroker QPdfEnginePrivate::stroker |
Definition at line 237 of file qpdf_p.h.
Referenced by QPdfEnginePrivate(), drawTextItem(), and newPage().
QString QPdfEnginePrivate::title |
Definition at line 263 of file qpdf_p.h.
Referenced by QCupsPrintEnginePrivate::closePrintDevice().