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
13QT_BEGIN_NAMESPACE
14
15class QString;
16class QUrl;
17class QColorSpace;
18
19class QPdfOutputIntentPrivate;
20QT_DECLARE_QESDP_SPECIALIZATION_DTOR_WITH_EXPORT(QPdfOutputIntentPrivate, Q_GUI_EXPORT)
21
22class Q_GUI_EXPORT QPdfOutputIntent
23{
24public:
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
46private:
47 QExplicitlySharedDataPointer<QPdfOutputIntentPrivate> d;
48};
49
50Q_DECLARE_SHARED(QPdfOutputIntent)
51
52QT_END_NAMESPACE
53
54#endif // QT_NO_PDF
55
56#endif // QPDFOUTPUTINTENT_H
57

Provided by KDAB

Privacy Policy
Learn to use CMake with our Intro Training
Find out more

source code of qtbase/src/gui/painting/qpdfoutputintent.h