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
5
#
include
"qplatformprintersupport.h"
6
#
include
"qplatformprintdevice.h"
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
16
QT_BEGIN_NAMESPACE
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
28
QPlatformPrinterSupport::QPlatformPrinterSupport()
29
{
30
}
31
32
QPlatformPrinterSupport::~QPlatformPrinterSupport()
33
{
34
}
35
36
QPrintEngine *QPlatformPrinterSupport::createNativePrintEngine(QPrinter::PrinterMode,
const
QString &)
37
{
38
return
nullptr
;
39
}
40
41
QPaintEngine *QPlatformPrinterSupport::createPaintEngine(QPrintEngine *, QPrinter::PrinterMode)
42
{
43
return
nullptr
;
44
}
45
46
QPrintDevice QPlatformPrinterSupport::createPrintDevice(QPlatformPrintDevice *device)
47
{
48
return
QPrintDevice(device);
49
}
50
51
QPrintDevice QPlatformPrinterSupport::createPrintDevice(
const
QString &id)
52
{
53
Q_UNUSED(id);
54
return
QPrintDevice();
55
}
56
57
QStringList QPlatformPrinterSupport::availablePrintDeviceIds()
const
58
{
59
return
QStringList();
60
}
61
62
QString QPlatformPrinterSupport::defaultPrintDeviceId()
const
63
{
64
return
QString();
65
}
66
67
QPageSize 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
75
QT_END_NAMESPACE
76
77
#
endif
// QT_NO_PRINTER
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
printsupport
kernel
qplatformprintersupport.cpp
Generated on
for Qt by
1.14.0