| 1 | // Copyright (C) 2016 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QPAGESETUPDIALOG_H |
| 5 | #define QPAGESETUPDIALOG_H |
| 6 | |
| 7 | #include <QtPrintSupport/qtprintsupportglobal.h> |
| 8 | |
| 9 | #include <QtWidgets/qdialog.h> |
| 10 | |
| 11 | QT_REQUIRE_CONFIG(printdialog); |
| 12 | |
| 13 | QT_BEGIN_NAMESPACE |
| 14 | |
| 15 | class QPrinter; |
| 16 | class QPageSetupDialogPrivate; |
| 17 | |
| 18 | class Q_PRINTSUPPORT_EXPORT QPageSetupDialog : public QDialog |
| 19 | { |
| 20 | Q_OBJECT |
| 21 | Q_DECLARE_PRIVATE(QPageSetupDialog) |
| 22 | |
| 23 | public: |
| 24 | explicit QPageSetupDialog(QPrinter *printer, QWidget *parent = nullptr); |
| 25 | explicit QPageSetupDialog(QWidget *parent = nullptr); |
| 26 | ~QPageSetupDialog(); |
| 27 | |
| 28 | #if defined(Q_OS_MACOS) || defined(Q_OS_WIN) || defined(Q_QDOC) |
| 29 | void setVisible(bool visible) override; |
| 30 | #endif |
| 31 | int exec() override; |
| 32 | |
| 33 | using QDialog::open; |
| 34 | void open(QObject *receiver, const char *member); |
| 35 | |
| 36 | void done(int result) override; |
| 37 | |
| 38 | QPrinter *printer(); |
| 39 | }; |
| 40 | |
| 41 | QT_END_NAMESPACE |
| 42 | |
| 43 | #endif // QPAGESETUPDIALOG_H |
| 44 | |