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 | #include "qplatformprintersupport.h" |
5 | #include "qplatformprintdevice.h" |
6 | |
7 | #include <QtGui/qpagesize.h> |
8 | #include <QtPrintSupport/qprinterinfo.h> |
9 | |
10 | #include <private/qprinterinfo_p.h> |
11 | #include <private/qprintdevice_p.h> |
12 | |
13 | #ifndef QT_NO_PRINTER |
14 | |
15 | QT_BEGIN_NAMESPACE |
16 | |
17 | /*! |
18 | \class QPlatformPrinterSupport |
19 | \since 5.0 |
20 | \internal |
21 | \preliminary |
22 | \ingroup qpa |
23 | |
24 | \brief The QPlatformPrinterSupport class provides an abstraction for print support. |
25 | */ |
26 | |
27 | QPlatformPrinterSupport::QPlatformPrinterSupport() |
28 | { |
29 | } |
30 | |
31 | QPlatformPrinterSupport::~QPlatformPrinterSupport() |
32 | { |
33 | } |
34 | |
35 | QPrintEngine *QPlatformPrinterSupport::createNativePrintEngine(QPrinter::PrinterMode, const QString &) |
36 | { |
37 | return nullptr; |
38 | } |
39 | |
40 | QPaintEngine *QPlatformPrinterSupport::createPaintEngine(QPrintEngine *, QPrinter::PrinterMode) |
41 | { |
42 | return nullptr; |
43 | } |
44 | |
45 | QPrintDevice QPlatformPrinterSupport::createPrintDevice(QPlatformPrintDevice *device) |
46 | { |
47 | return QPrintDevice(device); |
48 | } |
49 | |
50 | QPrintDevice QPlatformPrinterSupport::createPrintDevice(const QString &id) |
51 | { |
52 | Q_UNUSED(id); |
53 | return QPrintDevice(); |
54 | } |
55 | |
56 | QStringList QPlatformPrinterSupport::availablePrintDeviceIds() const |
57 | { |
58 | return QStringList(); |
59 | } |
60 | |
61 | QString QPlatformPrinterSupport::defaultPrintDeviceId() const |
62 | { |
63 | return QString(); |
64 | } |
65 | |
66 | QPageSize QPlatformPrinterSupport::createPageSize(const QString &id, QSize size, const QString &localizedName) |
67 | { |
68 | Q_UNUSED(id); |
69 | Q_UNUSED(size); |
70 | Q_UNUSED(localizedName); |
71 | return QPageSize(); |
72 | } |
73 | |
74 | QT_END_NAMESPACE |
75 | |
76 | #endif // QT_NO_PRINTER |
77 |