20#include <QtPrintSupport/private/qtprintsupportglobal_p.h>
24#include "QtPrintSupport/qprinter.h"
25#include "QtPrintSupport/qprinterinfo.h"
26#include "QtPrintSupport/qprintengine.h"
27#include "QtCore/qpointer.h"
28#include "QtCore/qset.h"
40 Q_DECLARE_PUBLIC(QPrinter)
42 QPrinterPrivate(QPrinter *printer)
43 : pdfVersion(QPrinter::PdfVersion_1_4),
46 realPrintEngine(
nullptr),
47 realPaintEngine(
nullptr),
48#if QT_CONFIG(printpreviewwidget)
49 previewEngine(
nullptr),
52 printRange(QPrinter::AllPages),
53 use_default_engine(
true),
62 static QPrinterPrivate *get(QPrinter *printer) {
63 return printer->d_ptr.get();
66 void init(
const QPrinterInfo &printer, QPrinter::PrinterMode mode);
69 void initEngines(QPrinter::OutputFormat format,
const QPrinterInfo &printer);
70 void changeEngines(QPrinter::OutputFormat format,
const QPrinterInfo &printer);
71#if QT_CONFIG(printpreviewwidget)
72 QList<
const QPicture *> previewPages()
const;
73 void setPreviewMode(
bool);
74 bool previewMode()
const;
77 void setProperty(QPrintEngine::PrintEnginePropertyKey key,
const QVariant &value);
87#if QT_CONFIG(printpreviewwidget)
88 QPreviewPaintEngine *previewEngine;
QWin32PrintEngine * engine
QWin32PrintEnginePrivate * ep
QPrinterInfo findValidPrinter(const QPrinterInfo &printer=QPrinterInfo())
QPrinter::PdfVersion pdfVersion
void initEngines(QPrinter::OutputFormat format, const QPrinterInfo &printer)
QPrinter::OutputFormat outputFormat
QPrinter::PrinterMode printerMode
QSet< QPrintEngine::PrintEnginePropertyKey > m_properties
QPrintEngine * printEngine
QPaintEngine * realPaintEngine
void changeEngines(QPrinter::OutputFormat format, const QPrinterInfo &printer)
QPrintEngine * realPrintEngine
void setProperty(QPrintEngine::PrintEnginePropertyKey key, const QVariant &value)
uint hasCustomPageMargins
QPrinter::PrintRange printRange
Combined button and popup list for selecting options.
static bool warnIfNotNative(QPrinter *printer)
#define START_PAGE_GENERAL
static void qt_win_setup_PRINTDLGEX(PRINTDLGEX *pd, QWindow *parentWindow, QPrintDialog *pdlg, QPrintDialogPrivate *d, HGLOBAL *tempDevNames)
static void qt_win_read_back_PRINTDLGEX(PRINTDLGEX *pd, QPrintDialog *pdlg, QPrintDialogPrivate *d)
QPaintEngine * paintEngine