Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qplatformprintersupport.h
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
4#ifndef QPLATFORMPRINTERSUPPORT_H
5#define QPLATFORMPRINTERSUPPORT_H
6//
7// W A R N I N G
8// -------------
9//
10// This file is part of the QPA API and is not meant to be used
11// in applications. Usage of this API may make your code
12// source and binary incompatible with future versions of Qt.
13//
14
15#include <QtPrintSupport/qtprintsupportglobal.h>
16#include <QtPrintSupport/qprinter.h>
17
18#include <QtCore/qstringlist.h>
19#include <QtCore/qlist.h>
20#include <QtCore/qhash.h>
21
23
24#ifndef QT_NO_PRINTER
25
26typedef QHash<QString, QString> PrinterOptions;
27
28class QPageSize;
30class QPrintDevice;
31class QPrintEngine;
32
33class Q_PRINTSUPPORT_EXPORT QPlatformPrinterSupport
34{
35public:
38
39 virtual QPrintEngine *createNativePrintEngine(QPrinter::PrinterMode printerMode, const QString &deviceId = QString());
40 virtual QPaintEngine *createPaintEngine(QPrintEngine *, QPrinter::PrinterMode printerMode);
41
42 virtual QPrintDevice createPrintDevice(const QString &id);
43 virtual QStringList availablePrintDeviceIds() const;
44 virtual QString defaultPrintDeviceId() const;
45
46protected:
47 static QPrintDevice createPrintDevice(QPlatformPrintDevice *device);
48 static QPageSize createPageSize(const QString &id, QSize size, const QString &localizedName);
49};
50
51#endif // QT_NO_PRINTER
52
54
55#endif // QPLATFORMPRINTERSUPPORT_H
IOBluetoothDevice * device
\inmodule QtGui
Definition qpagesize.h:22
\inmodule QtGui
The QPlatformPrinterSupport class provides an abstraction for print support.
\reentrant
PrinterMode
This enum describes the mode the printer should work in.
Definition qprinter.h:31
\inmodule QtCore
Definition qsize.h:25
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
QT_BEGIN_NAMESPACE typedef QHash< QString, QString > PrinterOptions