Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qprintdevice_p.h
Go to the documentation of this file.
1
// Copyright (C) 2014 John Layt <jlayt@kde.org>
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 QPRINTDEVICE_H
5
#define QPRINTDEVICE_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists for the convenience
12
// of internal files. This header file may change from version to version
13
// without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#include <QtPrintSupport/private/qtprintsupportglobal_p.h>
19
#include "private/qprint_p.h"
20
21
#include <QtCore/qsharedpointer.h>
22
#include <QtGui/qpagelayout.h>
23
24
QT_BEGIN_NAMESPACE
25
26
#ifndef QT_NO_PRINTER
27
28
class
QPlatformPrintDevice
;
29
class
QMarginsF
;
30
class
QMimeType
;
31
class
QDebug
;
32
33
class
Q_PRINTSUPPORT_EXPORT
QPrintDevice
34
{
35
public
:
36
37
QPrintDevice
();
38
QPrintDevice
(
const
QString
&
id
);
39
QPrintDevice
(
const
QPrintDevice
&
other
);
40
~QPrintDevice
();
41
42
QPrintDevice
&operator=(
const
QPrintDevice
&
other
);
43
QPrintDevice
&
operator=
(
QPrintDevice
&&
other
) {
swap
(
other
);
return
*
this
; }
44
45
void
swap
(
QPrintDevice
&
other
) {
d
.swap(
other
.d); }
46
47
bool
operator==
(
const
QPrintDevice
&
other
)
const
;
48
49
QString
id
()
const
;
50
QString
name
()
const
;
51
QString
location
()
const
;
52
QString
makeAndModel()
const
;
53
54
bool
isValid()
const
;
55
bool
isDefault()
const
;
56
bool
isRemote()
const
;
57
58
QPrint::DeviceState
state
()
const
;
59
60
bool
isValidPageLayout(
const
QPageLayout
&
layout
,
int
resolution)
const
;
61
62
bool
supportsMultipleCopies()
const
;
63
bool
supportsCollateCopies()
const
;
64
65
QPageSize
defaultPageSize()
const
;
66
QList<QPageSize>
supportedPageSizes()
const
;
67
68
QPageSize
supportedPageSize(
const
QPageSize
&pageSize)
const
;
69
QPageSize
supportedPageSize(
QPageSize::PageSizeId
pageSizeId)
const
;
70
QPageSize
supportedPageSize(
const
QString
&pageName)
const
;
71
QPageSize
supportedPageSize(
const
QSize
&pointSize)
const
;
72
QPageSize
supportedPageSize(
const
QSizeF
&
size
,
QPageSize::Unit
units
=
QPageSize::Point
)
const
;
73
74
bool
supportsCustomPageSizes()
const
;
75
76
QSize
minimumPhysicalPageSize()
const
;
77
QSize
maximumPhysicalPageSize()
const
;
78
79
QMarginsF
printableMargins(
const
QPageSize
&pageSize,
QPageLayout::Orientation
orientation,
int
resolution)
const
;
80
81
int
defaultResolution()
const
;
82
QList<int>
supportedResolutions()
const
;
83
84
QPrint::InputSlot
defaultInputSlot()
const
;
85
QList<QPrint::InputSlot>
supportedInputSlots()
const
;
86
87
QPrint::OutputBin
defaultOutputBin()
const
;
88
QList<QPrint::OutputBin>
supportedOutputBins()
const
;
89
90
QPrint::DuplexMode
defaultDuplexMode()
const
;
91
QList<QPrint::DuplexMode>
supportedDuplexModes()
const
;
92
93
QPrint::ColorMode
defaultColorMode()
const
;
94
QList<QPrint::ColorMode>
supportedColorModes()
const
;
95
96
enum
PrintDevicePropertyKey
{
97
PDPK_CustomBase = 0xff00
98
};
99
100
QVariant
property
(PrintDevicePropertyKey
key
)
const
;
101
bool
setProperty
(PrintDevicePropertyKey
key
,
const
QVariant
&
value
);
102
bool
isFeatureAvailable(PrintDevicePropertyKey
key
,
const
QVariant
&
params
)
const
;
103
104
#if QT_CONFIG(mimetype)
105
QList<QMimeType>
supportedMimeTypes()
const
;
106
#endif
107
108
# ifndef QT_NO_DEBUG_STREAM
109
void
format
(
QDebug
debug
)
const
;
110
# endif
111
112
private
:
113
friend
class
QPlatformPrinterSupport
;
114
friend
class
QPlatformPrintDevice
;
115
QPrintDevice
(
QPlatformPrintDevice
*dd);
116
QSharedPointer<QPlatformPrintDevice>
d
;
117
};
118
119
Q_DECLARE_SHARED(
QPrintDevice
)
120
121
# ifndef QT_NO_DEBUG_STREAM
122
Q_PRINTSUPPORT_EXPORT
QDebug
operator<<
(
QDebug
debug
,
const
QPrintDevice
&);
123
# endif
124
#endif
// QT_NO_PRINTER
125
126
QT_END_NAMESPACE
127
128
#endif
// QPLATFORMPRINTDEVICE_H
QDebug
\inmodule QtCore
QList
Definition
qlist.h:74
QMarginsF
\inmodule QtCore
Definition
qmargins.h:274
QMimeType
\inmodule QtCore
Definition
qmimetype.h:25
QPageLayout
\inmodule QtGui
Definition
qpagelayout.h:20
QPageLayout::Orientation
Orientation
This enum type defines the page orientation.
Definition
qpagelayout.h:33
QPageSize
\inmodule QtGui
Definition
qpagesize.h:22
QPageSize::Unit
Unit
This enum type is used to specify the measurement unit for page sizes.
Definition
qpagesize.h:175
QPageSize::Point
@ Point
Definition
qpagesize.h:177
QPageSize::PageSizeId
PageSizeId
This enum type lists the available page sizes as defined in the Postscript PPD standard.
Definition
qpagesize.h:25
QPlatformPrintDevice
Definition
qplatformprintdevice.h:36
QPlatformPrinterSupport
The QPlatformPrinterSupport class provides an abstraction for print support.
Definition
qplatformprintersupport.h:34
QPrintDevice
Definition
qprintdevice_p.h:34
QPrintDevice::swap
void swap(QPrintDevice &other)
Definition
qprintdevice_p.h:45
QPrintDevice::operator=
QPrintDevice & operator=(QPrintDevice &&other)
Definition
qprintdevice_p.h:43
QPrintDevice::PrintDevicePropertyKey
PrintDevicePropertyKey
Definition
qprintdevice_p.h:96
QSharedPointer
\inmodule QtCore
Definition
qsharedpointer_impl.h:256
QSizeF
\inmodule QtCore
Definition
qsize.h:207
QSize
\inmodule QtCore
Definition
qsize.h:25
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:127
QVariant
\inmodule QtCore
Definition
qvariant.h:64
setProperty
object setProperty("down", true)
state
else opt state
[0]
Definition
doc_src_styles.cpp:11
QPrint::ColorMode
ColorMode
Definition
qprint_p.h:71
QPrint::DuplexMode
DuplexMode
Definition
qprint_p.h:64
QPrint::DeviceState
DeviceState
Definition
qprint_p.h:56
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
value
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
Definition
qeglstreamconvenience_p.h:46
debug
@ debug
Definition
qibusplatforminputcontext.cpp:48
location
GLint location
Definition
qopengles2ext.h:207
key
GLuint64 key
Definition
qopengles2ext.h:2268
size
GLenum GLuint GLintptr GLsizeiptr size
[1]
Definition
qopengles2ext.h:660
id
GLenum GLuint id
[7]
Definition
qopengles2ext.h:151
units
GLfloat units
Definition
qopengles2ext.h:1649
name
GLuint name
Definition
qopengles2ext.h:156
format
GLint GLsizei GLsizei GLenum format
Definition
qopengles2ext.h:206
params
void ** params
Definition
qopengles2ext.h:160
operator<<
Q_PRINTSUPPORT_EXPORT QDebug operator<<(QDebug debug, const QPrintDevice &)
Definition
qprintdevice.cpp:277
operator==
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
Definition
qrandom.cpp:1219
property
const char property[13]
Definition
qwizard.cpp:101
layout
QVBoxLayout * layout
Definition
src_corelib_kernel_qobject.cpp:38
d
double d
Definition
src_corelib_text_qlocale.cpp:9
other
QSharedPointer< T > other(t)
[5]
swap
this swap(other)
QPrint::InputSlot
Definition
qprint_p.h:98
QPrint::OutputBin
Definition
qprint_p.h:114
qtbase
src
printsupport
kernel
qprintdevice_p.h
Generated by
1.9.7