Qt 4.8
Public Functions | Public Variables | List of all members
QPSPrintEnginePrivate Class Reference

#include <qprintengine_ps_p.h>

Inheritance diagram for QPSPrintEnginePrivate:
QPdfBaseEnginePrivate QAlphaPaintEnginePrivate QPaintEnginePrivate

Public Functions

void drawImage (qreal x, qreal y, qreal w, qreal h, const QImage &img, const QImage &mask)
 
void drawImageHelper (qreal x, qreal y, qreal w, qreal h, const QImage &img, const QImage &mask, bool gray, qreal scaleX, qreal scaleY)
 
void emitHeader (bool finished)
 
void emitPages ()
 
void flushPage (bool last=false)
 
 QPSPrintEnginePrivate (QPrinter::PrinterMode m)
 
 ~QPSPrintEnginePrivate ()
 
- Public Functions inherited from QPdfBaseEnginePrivate
void closePrintDevice ()
 
virtual void drawTextItem (const QPointF &p, const QTextItemInt &ti)
 
bool openPrintDevice ()
 
QRect pageRect () const
 
QRect paperRect () const
 
 QPdfBaseEnginePrivate (QPrinter::PrinterMode m)
 
uint requestObject ()
 
 ~QPdfBaseEnginePrivate ()
 
- Public Functions inherited from QAlphaPaintEnginePrivate
void addAlphaRect (const QRectF &rect)
 
QRectF addPenWidth (const QPainterPath &path)
 
void drawAlphaImage (const QRectF &rect)
 
bool fullyContained (const QRectF &rect) const
 
 QAlphaPaintEnginePrivate ()
 
void resetState (QPainter *p)
 
QRect toRect (const QRectF &rect) const
 
 ~QAlphaPaintEnginePrivate ()
 
- Public Functions inherited from QPaintEnginePrivate
void drawBoxTextItem (const QPointF &p, const QTextItemInt &ti)
 
 QPaintEnginePrivate ()
 
void setSystemTransform (const QTransform &xform)
 
void setSystemViewport (const QRegion &region)
 
virtual void systemStateChanged ()
 
void transformSystemClip ()
 
virtual ~QPaintEnginePrivate ()
 

Public Variables

QRect boundingBox
 
QPdf::ByteStream buffer
 
bool epsf
 
bool firstPage
 
QByteArray fontsUsed
 
bool headerDone
 
bool hugeDocument
 
int pageCount
 
QPrinter::PrinterState printerState
 
QByteArray trailer
 
- Public Variables inherited from QPdfBaseEnginePrivate
bool allClipped
 
qreal bottomMargin
 
QBrush brush
 
QPointF brushOrigin
 
bool clipEnabled
 
QList< QPainterPathclips
 
bool collate
 
QPrinter::ColorMode colorMode
 
int copies
 
QString creator
 
QStringList cupsOptions
 
QRect cupsPageRect
 
QRect cupsPaperRect
 
QString cupsStringPageSize
 
QString cupsTempFile
 
int currentObject
 
QPdfPagecurrentPage
 
QSizeF customPaperSize
 
QPrinter::DuplexMode duplex
 
bool embedFonts
 
int fd
 
QHash< QFontEngine::FaceId, QFontSubset * > fonts
 
bool fullPage
 
bool hasBrush
 
bool hasCustomPageMargins
 
bool hasPen
 
qreal leftMargin
 
qreal opacity
 
QPrinter::Orientation orientation
 
QIODeviceoutDevice
 
QString outputFileName
 
QPrinter::PageOrder pageOrder
 
QPrinter::PaperSize paperSize
 
QPrinter::PaperSource paperSource
 
QPaintDevicepdev
 
QPen pen
 
bool postscript
 
QString printerName
 
QString printProgram
 
int resolution
 
qreal rightMargin
 
QString selectionOption
 
bool simplePen
 
QPdf::Stroker stroker
 
QString title
 
qreal topMargin
 
bool useAlphaEngine
 
- Public Variables inherited from QAlphaPaintEnginePrivate
bool m_advancedBrush
 
bool m_advancedPen
 
bool m_alphaBrush
 
bool m_alphaOpacity
 
bool m_alphaPen
 
QRegion m_alphargn
 
QRegion m_cliprgn
 
bool m_complexTransform
 
bool m_continueCall
 
bool m_emulateProjectiveTransforms
 
bool m_hasalpha
 
int m_pass
 
QPaintDevicem_pdev
 
QPen m_pen
 
QPicturem_pic
 
QPaintEnginem_picengine
 
QPainterm_picpainter
 
QPaintEngine::PaintEngineFeatures m_savedcaps
 
QTransform m_transform
 
- Public Variables inherited from QPaintEnginePrivate
QWidgetcurrentClipWidget
 
uint hasSystemTransform: 1
 
uint hasSystemViewport: 1
 
QPaintDevicepdev
 
QPaintEngineq_ptr
 
QRegion systemClip
 
QRect systemRect
 
QTransform systemTransform
 
QRegion systemViewport
 

Detailed Description

Definition at line 104 of file qprintengine_ps_p.h.

Constructors and Destructors

◆ QPSPrintEnginePrivate()

QPSPrintEnginePrivate::QPSPrintEnginePrivate ( QPrinter::PrinterMode  m)

Definition at line 174 of file qprintengine_ps.cpp.

177 {
178  useAlphaEngine = true;
179  postscript = true;
180 
181  firstPage = true;
182 
183 #ifndef QT_NO_SETTINGS
184  QSettings settings(QSettings::UserScope, QLatin1String("Trolltech"));
185  settings.beginGroup(QLatin1String("Qt"));
186  embedFonts = settings.value(QLatin1String("embedFonts"), true).toBool();
187 #else
188  embedFonts = true;
189 #endif
190 }
The QSettings class provides persistent platform-independent application settings.
Definition: qsettings.h:73
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
QPdfBaseEnginePrivate(QPrinter::PrinterMode m)
Definition: qpdf.cpp:1595
QPrinter::PrinterState printerState

◆ ~QPSPrintEnginePrivate()

QPSPrintEnginePrivate::~QPSPrintEnginePrivate ( )

Definition at line 192 of file qprintengine_ps.cpp.

193 {
194 }

Functions

◆ drawImage()

void QPSPrintEnginePrivate::drawImage ( qreal  x,
qreal  y,
qreal  w,
qreal  h,
const QImage img,
const QImage mask 
)

Definition at line 430 of file qprintengine_ps.cpp.

432 {
433  if (!w || !h || image.isNull()) return;
434 
435  QImage img(image);
436  QImage mask(msk);
437 
438  if (image.format() == QImage::Format_ARGB32_Premultiplied)
440 
441  if (!msk.isNull() && msk.format() == QImage::Format_ARGB32_Premultiplied)
443 
444  int width = img.width();
445  int height = img.height();
446  qreal scaleX = width/w;
447  qreal scaleY = height/h;
448 
449  bool gray = (colorMode == QPrinter::GrayScale) || img.allGray();
450  int splitSize = 21830 * (gray ? 3 : 1);
451  if (width * height > splitSize) { // 65535/3, tolerance for broken printers
452  int images, subheight;
453  images = (width * height + splitSize - 1) / splitSize;
454  subheight = (height + images-1) / images;
455  while (subheight * width > splitSize) {
456  images++;
457  subheight = (height + images-1) / images;
458  }
459  int suby = 0;
460  const QImage constImg(img);
461  const QImage constMask(mask);
462  while(suby < height) {
463  qreal subImageHeight = qMin(subheight, height-suby);
464  const QImage subImage(constImg.scanLine(suby), width, subImageHeight,
465  constImg.bytesPerLine(), constImg.format());
466  const QImage subMask = mask.isNull() ? mask : QImage(constMask.scanLine(suby), width, subImageHeight,
467  constMask.bytesPerLine(), constMask.format());
468  drawImageHelper(x, y + suby/scaleY, w, subImageHeight/scaleY,
469  subImage, subMask, gray, scaleX, scaleY);
470  suby += subheight;
471  }
472  } else {
473  drawImageHelper(x, y, width, height, img, mask, gray, scaleX, scaleY);
474  }
475 }
double qreal
Definition: qglobal.h:1193
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
Definition: qglobal.h:1215
bool isNull() const
Returns true if it is a null image, otherwise returns false.
Definition: qimage.cpp:1542
The QImage class provides a hardware-independent image representation that allows direct access to th...
Definition: qimage.h:87
QPrinter::ColorMode colorMode
Definition: qpdf_p.h:278
int width() const
Returns the width of the image.
Definition: qimage.cpp:1557
QImage convertToFormat(Format f, Qt::ImageConversionFlags flags=Qt::AutoColor) const Q_REQUIRED_RESULT
Returns a copy of the image in the given format.
Definition: qimage.cpp:3966
int height() const
Returns the height of the image.
Definition: qimage.cpp:1572
void drawImageHelper(qreal x, qreal y, qreal w, qreal h, const QImage &img, const QImage &mask, bool gray, qreal scaleX, qreal scaleY)
bool allGray() const
Returns true if all the colors in the image are shades of gray (i.e.
Definition: qimage.cpp:4435

◆ drawImageHelper()

void QPSPrintEnginePrivate::drawImageHelper ( qreal  x,
qreal  y,
qreal  w,
qreal  h,
const QImage img,
const QImage mask,
bool  gray,
qreal  scaleX,
qreal  scaleY 
)

Definition at line 384 of file qprintengine_ps.cpp.

Referenced by drawImage().

386 {
387  Q_UNUSED(h);
388  Q_UNUSED(w);
389  int width = img.width();
390  int height = img.height();
391 
392  QByteArray out;
393  int size = 0;
394  const char *bits;
395 
396  if (!mask.isNull()) {
397  int format;
398  out = compressHelper(mask, true, &format);
399  size = (width+7)/8*height;
400  *currentPage << "/mask currentfile/ASCII85Decode filter"
401  << filters[format]
402  << size << " string readstring\n";
403  ps_r7(*currentPage, out, out.size());
404  *currentPage << " pop def\n";
405  }
406  if (img.depth() == 1) {
407  size = (width+7)/8*height;
408  bits = "1 ";
409  } else if (gray) {
410  size = width*height;
411  bits = "8 ";
412  } else {
413  size = width*height*3;
414  bits = "24 ";
415  }
416 
417  int format;
418  out = compressHelper(img, gray, &format);
419  *currentPage << "/sl currentfile/ASCII85Decode filter"
420  << filters[format]
421  << size << " string readstring\n";
422  ps_r7(*currentPage, out, out.size());
423  *currentPage << " pop def\n";
424  *currentPage << width << ' ' << height << '[' << scaleX << " 0 0 " << scaleY << " 0 0]sl "
425  << bits << (!mask.isNull() ? "mask " : "false ")
426  << x << ' ' << y << " di\n";
427 }
static QByteArray compressHelper(const QImage &image, bool gray, int *format)
bool isNull() const
Returns true if it is a null image, otherwise returns false.
Definition: qimage.cpp:1542
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
int depth() const
Returns the depth of the image.
Definition: qimage.cpp:1620
static void ps_r7(QPdf::ByteStream &stream, const char *s, int l)
static const char *const filters[3]
int width() const
Returns the width of the image.
Definition: qimage.cpp:1557
int height() const
Returns the height of the image.
Definition: qimage.cpp:1572
int size() const
Returns the number of bytes in this byte array.
Definition: qbytearray.h:402
QPdfPage * currentPage
Definition: qpdf_p.h:239
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ emitHeader()

void QPSPrintEnginePrivate::emitHeader ( bool  finished)

Definition at line 477 of file qprintengine_ps.cpp.

Referenced by flushPage().

478 {
479  QPSPrintEngine *q = static_cast<QPSPrintEngine *>(q_ptr);
480  QPrinter *printer = static_cast<QPrinter*>(pdev);
481 
482  if (creator.isEmpty())
484 
485  QByteArray header;
486  QPdf::ByteStream s(&header);
487 
488  qreal scale = 72. / ((qreal) q->metric(QPaintDevice::PdmDpiY));
489  QRect pageRect = this->pageRect();
490  QRect paperRect = this->paperRect();
491  int mtop = pageRect.top() - paperRect.top();
492  int mleft = pageRect.left() - paperRect.left();
493  int mbottom = paperRect.bottom() - pageRect.bottom();
494  int mright = paperRect.right() - pageRect.right();
495  int width = pageRect.width();
496  int height = pageRect.height();
497  if (finished && pageCount == 1 && copies == 1 &&
499  {
500  // According to the EPSF 3.0 spec it is required that the PS
501  // version is PS-Adobe-3.0
502  s << "%!PS-Adobe-3.0";
503  if (!boundingBox.isValid())
504  boundingBox.setRect(0, 0, width, height);
506  if (!fullPage)
507  boundingBox.translate(-mleft, -mtop);
508  s << " EPSF-3.0\n%%BoundingBox: "
509  << int((printer->height() - boundingBox.bottom())*scale) // llx
510  << int((printer->width() - boundingBox.right())*scale - 1) // lly
511  << int((printer->height() - boundingBox.top())*scale + 1) // urx
512  << int((printer->width() - boundingBox.left())*scale); // ury
513  } else {
514  if (!fullPage)
515  boundingBox.translate(mleft, -mtop);
516  s << " EPSF-3.0\n%%BoundingBox: "
517  << int((boundingBox.left())*scale)
518  << int((printer->height() - boundingBox.bottom())*scale - 1)
519  << int((boundingBox.right())*scale + 1)
520  << int((printer->height() - boundingBox.top())*scale);
521  }
522  } else {
523  s << "%!PS-Adobe-1.0";
524  int w = width + (fullPage ? 0 : mleft + mright);
525  int h = height + (fullPage ? 0 : mtop + mbottom);
526  w = (int)(w*scale);
527  h = (int)(h*scale);
528  // set a bounding box according to the DSC
530  s << "\n%%BoundingBox: 0 0 " << h << w;
531  else
532  s << "\n%%BoundingBox: 0 0 " << w << h;
533  }
534  s << '\n' << wrapDSC("%%Creator: " + creator.toUtf8());
535  if (!title.isEmpty())
536  s << wrapDSC("%%Title: " + title.toUtf8());
537 #ifndef QT_NO_DATESTRING
538  s << "%%CreationDate: " << QDateTime::currentDateTime().toString().toUtf8();
539 #endif
540  s << "\n%%Orientation: ";
542  s << "Landscape";
543  else
544  s << "Portrait";
545 
546  s << "\n%%Pages: (atend)"
547  "\n%%DocumentFonts: (atend)"
548  "\n%%EndComments\n"
549 
550  "%%BeginProlog\n"
551  "% Prolog copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).\n"
552  "% You may copy this prolog in any way that is directly related to this document.\n"
553  "% For other use of this prolog, see your licensing agreement for Qt.\n"
554  << ps_header << '\n';
555 
556 
557  s << "/pageinit {\n";
558  if (!fullPage) {
560  s << mleft*scale << mbottom*scale << "translate\n";
561  else
562  s << mtop*scale << mleft*scale << "translate\n";
563  }
565  s << "% " << printer->widthMM() << '*' << printer->heightMM()
566  << "mm (portrait)\n0 " << height*scale
567  << "translate " << scale << '-' << scale << "scale } def\n";
568  } else {
569  s << "% " << printer->heightMM() << '*' << printer->widthMM()
570  << " mm (landscape)\n 90 rotate " << scale << '-' << scale << "scale } def\n";
571  }
572  s << "%%EndProlog\n";
573 
574  outDevice->write(header);
575  headerDone = true;
576 }
double qreal
Definition: qglobal.h:1193
QPrinter::Orientation orientation
Definition: qpdf_p.h:276
QByteArray toUtf8() const Q_REQUIRED_RESULT
Returns a UTF-8 representation of the string as a QByteArray.
Definition: qstring.cpp:4074
int height() const
Definition: qpaintdevice.h:92
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
static QByteArray wrapDSC(const QByteArray &str)
static bool qt_gen_epsf
int left() const
Returns the x-coordinate of the rectangle&#39;s left edge.
Definition: qrect.h:240
int width() const
Returns the width of the rectangle.
Definition: qrect.h:303
QPaintDevice * pdev
Definition: qpdf_p.h:256
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
int height() const
Returns the height of the rectangle.
Definition: qrect.h:306
int bottom() const
Returns the y-coordinate of the rectangle&#39;s bottom edge.
Definition: qrect.h:249
QString toString(Qt::DateFormat f=Qt::TextDate) const
Returns the datetime as a string in the format given.
Definition: qdatetime.cpp:2628
int width() const
Definition: qpaintdevice.h:91
QRect pageRect() const
Definition: qpdf.cpp:2057
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Definition: qstring.h:704
The QPrinter class is a paint device that paints on a printer.
Definition: qprinter.h:66
static const char *const ps_header
int metric(QPaintDevice::PaintDeviceMetric metricType) const
Returns the metric for the given id.
Definition: qpdf.cpp:1351
#define QT_VERSION_STR
This macro expands to a string that specifies Qt&#39;s version number (for example, "4.
Definition: qglobal.h:47
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
Definition: qstring.h:654
QString outputFileName
Definition: qpdf_p.h:263
int top() const
Returns the y-coordinate of the rectangle&#39;s top edge.
Definition: qrect.h:243
int right() const
Returns the x-coordinate of the rectangle&#39;s right edge.
Definition: qrect.h:246
void setRect(int x, int y, int w, int h)
Sets the coordinates of the rectangle&#39;s top-left corner to ({x}, {y}), and its size to the given widt...
Definition: qrect.h:400
The QRect class defines a rectangle in the plane using integer precision.
Definition: qrect.h:58
static QDateTime currentDateTime()
Returns the current datetime, as reported by the system clock, in the local time zone.
Definition: qdatetime.cpp:3138
QIODevice * outDevice
Definition: qpdf_p.h:259
QRect paperRect() const
Definition: qpdf.cpp:2028
qint64 write(const char *data, qint64 len)
Writes at most maxSize bytes of data from data to the device.
Definition: qiodevice.cpp:1342
bool isValid() const
Returns true if the rectangle is valid, otherwise returns false.
Definition: qrect.h:237
bool endsWith(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Returns true if the string ends with s; otherwise returns false.
Definition: qstring.cpp:3796
void translate(int dx, int dy)
Moves the rectangle dx along the x axis and dy along the y axis, relative to the current position...
Definition: qrect.h:312
int heightMM() const
Definition: qpaintdevice.h:94
int widthMM() const
Definition: qpaintdevice.h:93
QPaintEngine * q_ptr

◆ emitPages()

void QPSPrintEnginePrivate::emitPages ( )

Definition at line 579 of file qprintengine_ps.cpp.

Referenced by flushPage().

580 {
581  if (!hugeDocument) {
583  it != fonts.constEnd(); ++it)
584  outDevice->write((*it)->toType1());
585  }
586 
587  QIODevice *content = buffer.stream();
588  // Write the page contents in chunks.
589  while (!content->atEnd()) {
590  QByteArray buf = content->read(currentPage->chunkSize());
591  if (!buf.isEmpty())
592  outDevice->write(buf);
593  }
594  content = currentPage->stream();
595  // Write the page contents in chunks.
596  while (!content->atEnd()) {
597  QByteArray buf = content->read(currentPage->chunkSize());
598  if (!buf.isEmpty())
599  outDevice->write(buf);
600  }
602 
603  buffer.clear();
604  currentPage->clear();
605  trailer = QByteArray();
606  hugeDocument = true;
607 }
The QHash::const_iterator class provides an STL-style const iterator for QHash and QMultiHash...
Definition: qhash.h:395
static int chunkSize()
Definition: qpdf_p.h:102
#define it(className, varName)
The QByteArray class provides an array of bytes.
Definition: qbytearray.h:135
virtual bool atEnd() const
Returns true if the current read and write position is at the end of the device (i.e.
Definition: qiodevice.cpp:711
qint64 read(char *data, qint64 maxlen)
Reads at most maxSize bytes from the device into data, and returns the number of bytes read...
Definition: qiodevice.cpp:791
QIODevice * stream()
Definition: qpdf.cpp:225
QHash< QFontEngine::FaceId, QFontSubset * > fonts
Definition: qpdf_p.h:254
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the hash.
Definition: qhash.h:466
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the hash...
Definition: qhash.h:469
void clear()
Definition: qpdf.cpp:232
QIODevice * outDevice
Definition: qpdf_p.h:259
QPdfPage * currentPage
Definition: qpdf_p.h:239
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
Definition: qbytearray.h:421
qint64 write(const char *data, qint64 len)
Writes at most maxSize bytes of data from data to the device.
Definition: qiodevice.cpp:1342
The QIODevice class is the base interface class of all I/O devices in Qt.
Definition: qiodevice.h:66
QPdf::ByteStream buffer

◆ flushPage()

void QPSPrintEnginePrivate::flushPage ( bool  last = false)

Definition at line 616 of file qprintengine_ps.cpp.

617 {
618  if (!last && currentPage->stream()->size() == 0)
619  return;
620 
622  buffer << "%%Page: "
623  << pageCount << pageCount << "\n"
624  "%%BeginPageSetup\n"
625  "QI\n";
626  if (hugeDocument) {
628  it != fonts.constEnd(); ++it) {
629  if (currentPage->fonts.contains((*it)->object_id)) {
630  if ((*it)->downloaded_glyphs == 0) {
631  buffer << (*it)->toType1();
632  (*it)->downloaded_glyphs = 0;
633  } else {
634  buffer << (*it)->type1AddedGlyphs();
635  }
636  }
637  }
638  }
639  for (int i = 0; i < currentPage->fonts.size(); ++i)
640  buffer << "(F" << QByteArray::number(currentPage->fonts.at(i)) << ") T1Setup\n";
641 
642  buffer << "%%EndPageSetup\nq\n";
643  e << "\nQ QP\n";
644  if (last || hugeDocument
646 // qDebug("emiting header at page %d", pageCount);
647  if (!headerDone)
648  emitHeader(last);
649  emitPages();
650  } else {
651  buffer << *currentPage << e;
652  currentPage->clear();
653  trailer.clear();
654  }
655  pageCount++;
656 }
virtual qint64 size() const
For open random-access devices, this function returns the size of the device.
Definition: qiodevice.cpp:642
The QHash::const_iterator class provides an STL-style const iterator for QHash and QMultiHash...
Definition: qhash.h:395
#define it(className, varName)
QVector< uint > fonts
Definition: qpdf_p.h:170
void emitHeader(bool finished)
QIODevice * stream()
Definition: qpdf.cpp:225
QHash< QFontEngine::FaceId, QFontSubset * > fonts
Definition: qpdf_p.h:254
const T & at(int i) const
Returns the item at index position i in the vector.
Definition: qvector.h:350
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the hash.
Definition: qhash.h:466
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the hash...
Definition: qhash.h:469
void clear()
Definition: qpdf.cpp:232
static const int max_in_memory_size
bool contains(const T &t) const
Returns true if the vector contains an occurrence of value; otherwise returns false.
Definition: qvector.h:731
QPdfPage * currentPage
Definition: qpdf_p.h:239
int size() const
Returns the number of items in the vector.
Definition: qvector.h:137
static QByteArray number(int, int base=10)
Returns a byte array containing the string equivalent of the number n to base base (10 by default)...
void clear()
Clears the contents of the byte array and makes it empty.
QPdf::ByteStream buffer

Properties

◆ boundingBox

QRect QPSPrintEnginePrivate::boundingBox

Definition at line 126 of file qprintengine_ps_p.h.

Referenced by emitHeader().

◆ buffer

QPdf::ByteStream QPSPrintEnginePrivate::buffer

Definition at line 121 of file qprintengine_ps_p.h.

Referenced by compressHelper(), emitPages(), and flushPage().

◆ epsf

bool QPSPrintEnginePrivate::epsf

Definition at line 117 of file qprintengine_ps_p.h.

◆ firstPage

bool QPSPrintEnginePrivate::firstPage

Definition at line 124 of file qprintengine_ps_p.h.

Referenced by QPSPrintEnginePrivate().

◆ fontsUsed

QByteArray QPSPrintEnginePrivate::fontsUsed

Definition at line 118 of file qprintengine_ps_p.h.

◆ headerDone

bool QPSPrintEnginePrivate::headerDone

Definition at line 130 of file qprintengine_ps_p.h.

Referenced by emitHeader(), and flushPage().

◆ hugeDocument

bool QPSPrintEnginePrivate::hugeDocument

Definition at line 129 of file qprintengine_ps_p.h.

Referenced by emitPages(), and flushPage().

◆ pageCount

int QPSPrintEnginePrivate::pageCount

Definition at line 116 of file qprintengine_ps_p.h.

Referenced by emitHeader(), and flushPage().

◆ printerState

QPrinter::PrinterState QPSPrintEnginePrivate::printerState

Definition at line 128 of file qprintengine_ps_p.h.

◆ trailer

QByteArray QPSPrintEnginePrivate::trailer

Definition at line 122 of file qprintengine_ps_p.h.

Referenced by emitPages(), and flushPage().


The documentation for this class was generated from the following files: