7#include <QtPrintSupport/qtprintsupportglobal.h>
8#include <QtCore/qstring.h>
9#include <QtCore/qscopedpointer.h>
10#include <QtGui/qpagedpaintdevice.h>
31 enum PrinterMode { ScreenResolution, PrinterResolution, HighResolution };
60 LastPaperSource = CustomSource,
91 void setOutputFormat(OutputFormat
format);
92 OutputFormat outputFormat()
const;
94 void setPdfVersion(PdfVersion version);
95 PdfVersion pdfVersion()
const;
97 void setPrinterName(
const QString &);
100 bool isValid()
const;
102 void setOutputFileName(
const QString &);
105 void setPrintProgram(
const QString &);
108 void setDocName(
const QString &);
111 void setCreator(
const QString &);
114 void setPageOrder(PageOrder);
115 PageOrder pageOrder()
const;
117 void setResolution(
int);
118 int resolution()
const;
120 void setColorMode(ColorMode);
121 ColorMode colorMode()
const;
123 void setCollateCopies(
bool collate);
124 bool collateCopies()
const;
126 void setFullPage(
bool);
127 bool fullPage()
const;
129 void setCopyCount(
int);
130 int copyCount()
const;
131 bool supportsMultipleCopies()
const;
133 void setPaperSource(PaperSource);
134 PaperSource paperSource()
const;
136 void setDuplex(DuplexMode duplex);
137 DuplexMode duplex()
const;
141#if defined(Q_OS_WIN) || defined(Q_QDOC)
145 void setFontEmbeddingEnabled(
bool enable);
146 bool fontEmbeddingEnabled()
const;
148 QRectF paperRect(Unit)
const;
149 QRectF pageRect(Unit)
const;
151 QString printerSelectionOption()
const;
152 void setPrinterSelectionOption(
const QString &);
157 PrinterState printerState()
const;
162 void setFromTo(
int fromPage,
int toPage);
163 int fromPage()
const;
166 void setPrintRange(PrintRange
range);
167 PrintRange printRange()
const;
170 int metric(PaintDeviceMetric)
const override;
The QAbstractPrintDialog class provides a base implementation for print dialogs used to configure pri...
virtual bool newPage()=0
Starts a new page.
virtual int devType() const
virtual int metric(PaintDeviceMetric metric) const
virtual QPaintEngine * paintEngine() const =0
The QPrinterInfo class gives access to information about existing printers.
PaperSource
This enum type specifies what paper source QPrinter is to use.
OutputFormat
The OutputFormat enum is used to describe the format QPrinter should use for printing.
ColorMode
This enum type is used to indicate whether QPrinter should print in color or not.
PrinterMode
This enum describes the mode the printer should work in.
PrinterState
\value Idle \value Active \value Aborted \value Error
PageOrder
This enum type is used by QPrinter to tell the application program how to print.
PrintRange
Used to specify the print range selection option.
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
\reentrant \inmodule QtGui
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum format
QItemEditorCreatorBase * creator