QtGui/qabstractprintdialog.h Source File
Go to the documentation of this file.
42 #ifndef QABSTRACTPRINTDIALOG_H
43 #define QABSTRACTPRINTDIALOG_H
55 class QAbstractPrintDialogPrivate;
75 PrintSelection = 0x0002,
76 PrintPageRange = 0x0004,
77 PrintShowPageSize = 0x0008,
78 PrintCollateCopies = 0x0010,
79 DontUseSheet = 0x0020,
80 PrintCurrentPage = 0x0040
83 Q_DECLARE_FLAGS(PrintDialogOptions, PrintDialogOption)
85 #ifndef QT_NO_PRINTDIALOG
89 virtual int exec() = 0;
92 void addEnabledOption(PrintDialogOption option);
93 void setEnabledOptions(PrintDialogOptions options);
94 PrintDialogOptions enabledOptions()
const;
95 bool isOptionEnabled(PrintDialogOption option)
const;
99 void setPrintRange(PrintRange
range);
100 PrintRange printRange()
const;
102 void setMinMax(
int min,
int max);
106 void setFromTo(
int fromPage,
int toPage);
107 int fromPage()
const;
118 #endif // QT_NO_PRINTDIALOG
121 Q_DECLARE_OPERATORS_FOR_FLAGS(QAbstractPrintDialog::PrintDialogOptions)
123 #endif // QT_NO_PRINTER
129 #endif // QABSTRACTPRINTDIALOG_H
#define QT_BEGIN_NAMESPACE