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
qpdfselection.h
Go to the documentation of this file.
1
// Copyright (C) 2020 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
QPDFSELECTION_H
5
#
define
QPDFSELECTION_H
6
7
#
include
<
QtPdf
/
qtpdfglobal
.
h
>
8
9
#
include
<
QtCore
/
qobject
.
h
>
10
#
include
<
QtCore
/
qshareddata
.
h
>
11
#
include
<
QtGui
/
qclipboard
.
h
>
12
#
include
<
QtGui
/
qpolygon
.
h
>
13
14
QT_BEGIN_NAMESPACE
15
16
class
QPdfSelectionPrivate;
17
18
class
QPdfSelection
19
{
20
Q_GADGET_EXPORT(Q_PDF_EXPORT)
21
Q_PROPERTY
(
bool
valid
READ
isValid
)
22
Q_PROPERTY
(
QList
<
QPolygonF
>
bounds
READ
bounds
)
23
Q_PROPERTY
(
QRectF
boundingRectangle
READ
boundingRectangle
)
24
Q_PROPERTY
(
QString
text
READ
text
)
25
Q_PROPERTY
(
int
startIndex
READ
startIndex
)
26
Q_PROPERTY
(
int
endIndex
READ
endIndex
)
27
28
public
:
29
Q_PDF_EXPORT
~
QPdfSelection
();
30
Q_PDF_EXPORT
QPdfSelection
(
const
QPdfSelection
&
other
);
31
Q_PDF_EXPORT
QPdfSelection
&
operator
=(
const
QPdfSelection
&
other
);
32
33
Q_PDF_EXPORT
QPdfSelection
(
QPdfSelection
&&
other
)
noexcept
;
34
QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP
(
QPdfSelection
)
35
36
void
swap
(
QPdfSelection
&
other
)
noexcept
{
d
.
swap
(
other
.
d
); }
37
38
Q_PDF_EXPORT
bool
isValid
()
const
;
39
Q_PDF_EXPORT
QList
<
QPolygonF
>
bounds
()
const
;
40
Q_PDF_EXPORT QString
text
()
const
;
41
Q_PDF_EXPORT QRectF
boundingRectangle
()
const
;
42
Q_PDF_EXPORT
int
startIndex
()
const
;
43
Q_PDF_EXPORT
int
endIndex
()
const
;
44
#
if
QT_CONFIG
(
clipboard
)
45
Q_PDF_EXPORT
void
copyToClipboard
(
QClipboard
::
Mode
mode
=
QClipboard
::
Clipboard
)
const
;
46
#
endif
47
48
private
:
49
QPdfSelection();
50
QPdfSelection(
const
QString &text, QList<QPolygonF> bounds, QRectF boundingRect,
int
startIndex,
int
endIndex);
51
QPdfSelection(QPdfSelectionPrivate *d);
52
friend
class
QPdfDocument;
53
friend
class
QQuickPdfSelection;
54
55
private
:
56
QExplicitlySharedDataPointer<QPdfSelectionPrivate> d;
57
};
58
Q_DECLARE_SHARED(QPdfSelection)
59
60
QT_END_NAMESPACE
61
62
#
endif
// QPDFSELECTION_H
QPdfSelection
The QPdfSelection class defines a range of text that has been selected on one page in a PDF document,...
Definition
qpdfselection.h:19
QPdfSelection::startIndex
Q_PDF_EXPORT int startIndex() const
Definition
qpdfselection.cpp:104
QPdfSelection::endIndex
Q_PDF_EXPORT int endIndex() const
Definition
qpdfselection.cpp:114
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
qtwebengine
src
pdf
qpdfselection.h
Generated on Thu Nov 14 2024 01:09:23 for Qt by
1.12.0