Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qplatformprintersupport.cpp
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
7
8#include <QtGui/qpagesize.h>
9#include <QtPrintSupport/qprinterinfo.h>
10
11#include <private/qprinterinfo_p.h>
12#include <private/qprintdevice_p.h>
13
14#ifndef QT_NO_PRINTER
15
17
18/*!
19 \class QPlatformPrinterSupport
20 \since 5.0
21 \internal
22 \preliminary
23 \ingroup qpa
24
25 \brief The QPlatformPrinterSupport class provides an abstraction for print support.
26 */
27
28QPlatformPrinterSupport::QPlatformPrinterSupport()
29{
30}
31
32QPlatformPrinterSupport::~QPlatformPrinterSupport()
33{
34}
35
36QPrintEngine *QPlatformPrinterSupport::createNativePrintEngine(QPrinter::PrinterMode, const QString &)
37{
38 return nullptr;
39}
40
41QPaintEngine *QPlatformPrinterSupport::createPaintEngine(QPrintEngine *, QPrinter::PrinterMode)
42{
43 return nullptr;
44}
45
46QPrintDevice QPlatformPrinterSupport::createPrintDevice(QPlatformPrintDevice *device)
47{
48 return QPrintDevice(device);
49}
50
51QPrintDevice QPlatformPrinterSupport::createPrintDevice(const QString &id)
52{
53 Q_UNUSED(id);
54 return QPrintDevice();
55}
56
57QStringList QPlatformPrinterSupport::availablePrintDeviceIds() const
58{
59 return QStringList();
60}
61
62QString QPlatformPrinterSupport::defaultPrintDeviceId() const
63{
64 return QString();
65}
66
67QPageSize QPlatformPrinterSupport::createPageSize(const QString &id, QSize size, const QString &localizedName)
68{
69 Q_UNUSED(id);
70 Q_UNUSED(size);
71 Q_UNUSED(localizedName);
72 return QPageSize();
73}
74
75QT_END_NAMESPACE
76
77#endif // QT_NO_PRINTER