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
qpdflink.h
Go to the documentation of this file.
1
// Copyright (C) 2022 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
QPDFLINK_H
5
#
define
QPDFLINK_H
6
7
#
include
<
QtPdf
/
qtpdfglobal
.
h
>
8
#
include
<
QtCore
/
qlist
.
h
>
9
#
include
<
QtCore
/
qobject
.
h
>
10
#
include
<
QtCore
/
qpoint
.
h
>
11
#
include
<
QtCore
/
qrect
.
h
>
12
#
include
<
QtCore
/
qshareddata
.
h
>
13
#
include
<
QtGui
/
qclipboard
.
h
>
14
15
QT_BEGIN_NAMESPACE
16
17
class
QDebug;
18
class
QPdfLinkPrivate;
19
20
class
QPdfLink
21
{
22
Q_GADGET_EXPORT(Q_PDF_EXPORT)
23
Q_PROPERTY
(
bool
valid
READ
isValid
)
24
Q_PROPERTY
(
int
page
READ
page
)
25
Q_PROPERTY
(
QPointF
location
READ
location
)
26
Q_PROPERTY
(
qreal
zoom
READ
zoom
)
27
Q_PROPERTY
(
QUrl
url
READ
url
)
28
Q_PROPERTY
(
QString
contextBefore
READ
contextBefore
)
29
Q_PROPERTY
(
QString
contextAfter
READ
contextAfter
)
30
Q_PROPERTY
(
QList
<
QRectF
>
rectangles
READ
rectangles
)
31
32
public
:
33
Q_PDF_EXPORT
QPdfLink
();
34
Q_PDF_EXPORT
~
QPdfLink
();
35
Q_PDF_EXPORT
QPdfLink
&
operator
=(
const
QPdfLink
&
other
);
36
37
Q_PDF_EXPORT
QPdfLink
(
const
QPdfLink
&
other
)
noexcept
;
38
Q_PDF_EXPORT
QPdfLink
(
QPdfLink
&&
other
)
noexcept
;
39
QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_MOVE_AND_SWAP
(
QPdfLink
)
40
41
void
swap
(
QPdfLink
&
other
)
noexcept
{
d
.
swap
(
other
.
d
); }
42
43
Q_PDF_EXPORT
bool
isValid
()
const
;
44
Q_PDF_EXPORT
int
page
()
const
;
45
Q_PDF_EXPORT QPointF
location
()
const
;
46
Q_PDF_EXPORT qreal
zoom
()
const
;
47
Q_PDF_EXPORT QUrl
url
()
const
;
48
Q_PDF_EXPORT QString
contextBefore
()
const
;
49
Q_PDF_EXPORT
QString
contextAfter
()
const
;
50
Q_PDF_EXPORT
QList
<
QRectF
>
rectangles
()
const
;
51
Q_PDF_EXPORT Q_INVOKABLE
QString
toString
()
const
;
52
Q_PDF_EXPORT
Q_INVOKABLE
void
copyToClipboard
(
QClipboard
::
Mode
mode
=
QClipboard
::
Clipboard
)
const
;
53
54
private
:
// methods
55
QPdfLink(
int
page, QPointF location, qreal zoom);
56
QPdfLink(
int
page, QList<QRectF> rects, QString contextBefore, QString contextAfter);
57
QPdfLink(QPdfLinkPrivate *d);
58
friend
class
QPdfDocument;
59
friend
class
QPdfLinkModelPrivate
;
60
friend
class
QPdfSearchModelPrivate
;
61
friend
class
QPdfPageNavigator;
62
friend
class
QQuickPdfPageNavigator;
63
64
private
:
// storage
65
QExplicitlySharedDataPointer<QPdfLinkPrivate> d;
66
67
};
68
Q_DECLARE_SHARED(QPdfLink)
69
70
#
ifndef
QT_NO_DEBUG_STREAM
71
Q_PDF_EXPORT QDebug operator<<(QDebug,
const
QPdfLink &);
72
#
endif
73
74
QT_END_NAMESPACE
75
76
Q_DECLARE_METATYPE(QPdfLink)
77
78
#
endif
// QPDFLINK_H
QPdfLinkModelPrivate
Definition
qpdflinkmodel_p.h:24
QPdfLink
The QPdfLink class defines a link between a region on a page (such as a hyperlink or a search result)...
Definition
qpdflink.h:21
QPdfLink::~QPdfLink
Q_PDF_EXPORT ~QPdfLink()
QPdfLink::page
Q_PDF_EXPORT int page() const
Definition
qpdflink.cpp:67
QPdfSearchModelPrivate
Definition
qpdfsearchmodel_p.h:26
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
qtwebengine
src
pdf
qpdflink.h
Generated on Mon Mar 10 2025 01:10:08 for Qt by
1.13.2