42 #ifndef QABSTRACTPRINTDIALOG_H 43 #define QABSTRACTPRINTDIALOG_H 45 #include <QtGui/qdialog.h> 75 PrintSelection = 0x0002,
76 PrintPageRange = 0x0004,
77 PrintShowPageSize = 0x0008,
78 PrintCollateCopies = 0x0010,
79 DontUseSheet = 0x0020,
80 PrintCurrentPage = 0x0040
85 #ifndef QT_NO_PRINTDIALOG 89 virtual int exec() = 0;
93 void setEnabledOptions(PrintDialogOptions options);
94 PrintDialogOptions enabledOptions()
const;
102 void setMinMax(
int min,
int max);
106 void setFromTo(
int fromPage,
int toPage);
107 int fromPage()
const;
118 #endif // QT_NO_PRINTDIALOG 123 #endif // QT_NO_PRINTER 129 #endif // QABSTRACTPRINTDIALOG_H #define QT_END_NAMESPACE
This macro expands to.
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
The QDialog class is the base class of dialog windows.
int exec()
Shows the dialog as a modal dialog, blocking until the user closes it.
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
PrintRange
Used to specify the print range selection option.
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
PrintDialogOption
Used to specify which parts of the print dialog should be visible.
The QPrinter class is a paint device that paints on a printer.
const T * ptr(const T &t)
The QAbstractPrintDialog class provides a base implementation for print dialogs used to configure pri...
#define Q_DECLARE_PRIVATE(Class)