| 1 | // Copyright (C) 2024 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> |
|---|---|
| 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 QPDFOUTPUTINTENT_H |
| 5 | #define QPDFOUTPUTINTENT_H |
| 6 | |
| 7 | #include <QtGui/qtguiglobal.h> |
| 8 | |
| 9 | #ifndef QT_NO_PDF |
| 10 | |
| 11 | #include <QtCore/qshareddata.h> |
| 12 | |
| 13 | QT_BEGIN_NAMESPACE |
| 14 | |
| 15 | class QString; |
| 16 | class QUrl; |
| 17 | class QColorSpace; |
| 18 | |
| 19 | class QPdfOutputIntentPrivate; |
| 20 | QT_DECLARE_QESDP_SPECIALIZATION_DTOR_WITH_EXPORT(QPdfOutputIntentPrivate, Q_GUI_EXPORT) |
| 21 | |
| 22 | class Q_GUI_EXPORT QPdfOutputIntent |
| 23 | { |
| 24 | public: |
| 25 | QPdfOutputIntent(); |
| 26 | QPdfOutputIntent(const QPdfOutputIntent &other); |
| 27 | QPdfOutputIntent(QPdfOutputIntent &&other) noexcept = default; |
| 28 | QPdfOutputIntent &operator=(const QPdfOutputIntent &other); |
| 29 | QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QPdfOutputIntent) |
| 30 | ~QPdfOutputIntent(); |
| 31 | |
| 32 | void swap(QPdfOutputIntent &other) noexcept { d.swap(other&: other.d); } |
| 33 | |
| 34 | QString outputConditionIdentifier() const; |
| 35 | void setOutputConditionIdentifier(const QString &identifier); |
| 36 | |
| 37 | QString outputCondition() const; |
| 38 | void setOutputCondition(const QString &condition); |
| 39 | |
| 40 | QUrl registryName() const; |
| 41 | void setRegistryName(const QUrl &name); |
| 42 | |
| 43 | QColorSpace outputProfile() const; |
| 44 | void setOutputProfile(const QColorSpace &profile); |
| 45 | |
| 46 | private: |
| 47 | QExplicitlySharedDataPointer<QPdfOutputIntentPrivate> d; |
| 48 | }; |
| 49 | |
| 50 | Q_DECLARE_SHARED(QPdfOutputIntent) |
| 51 | |
| 52 | QT_END_NAMESPACE |
| 53 | |
| 54 | #endif // QT_NO_PDF |
| 55 | |
| 56 | #endif // QPDFOUTPUTINTENT_H |
| 57 |
