Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qpdfpagenavigator.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
QPDFPAGENAVIGATOR_H
5
#
define
QPDFPAGENAVIGATOR_H
6
7
#
include
<
QtPdf
/
qtpdfglobal
.
h
>
8
#
include
<
QtPdf
/
qpdflink
.
h
>
9
#
include
<
QtCore
/
qobject
.
h
>
10
11
QT_BEGIN_NAMESPACE
12
13
struct
QPdfPageNavigatorPrivate;
14
15
class
Q_PDF_EXPORT
QPdfPageNavigator
:
public
QObject
16
{
17
Q_OBJECT
18
19
Q_PROPERTY(
int
currentPage READ currentPage NOTIFY currentPageChanged)
20
Q_PROPERTY(QPointF currentLocation READ currentLocation NOTIFY currentLocationChanged)
21
Q_PROPERTY(qreal currentZoom READ currentZoom NOTIFY currentZoomChanged)
22
Q_PROPERTY(
bool
backAvailable READ backAvailable NOTIFY backAvailableChanged)
23
Q_PROPERTY(
bool
forwardAvailable READ forwardAvailable NOTIFY forwardAvailableChanged)
24
25
public
:
26
QPdfPageNavigator() : QPdfPageNavigator(
nullptr
) {}
27
explicit
QPdfPageNavigator(QObject *parent);
28
~QPdfPageNavigator() override;
29
30
int
currentPage()
const
;
31
QPointF currentLocation()
const
;
32
qreal currentZoom()
const
;
33
34
bool
backAvailable()
const
;
35
bool
forwardAvailable()
const
;
36
37
public
Q_SLOTS:
38
void
clear();
39
void
jump(QPdfLink destination);
40
void
jump(
int
page,
const
QPointF &location, qreal zoom = 0);
41
void
update(
int
page,
const
QPointF &location, qreal zoom);
42
void
forward();
43
void
back();
44
45
Q_SIGNALS:
46
void
currentPageChanged(
int
page);
47
void
currentLocationChanged(QPointF location);
48
void
currentZoomChanged(qreal zoom);
49
void
backAvailableChanged(
bool
available);
50
void
forwardAvailableChanged(
bool
available);
51
void
jumped(QPdfLink current);
52
53
protected
:
54
QPdfLink currentLink()
const
;
55
56
private
:
57
QScopedPointer<QPdfPageNavigatorPrivate> d;
58
};
59
60
QT_END_NAMESPACE
61
62
#
endif
// QPDFPAGENAVIGATOR_H
QPdfPageNavigator
Navigation history within a PDF document.
Definition
qpdfpagenavigator.h:16
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
Q_PDF_LOGGING_CATEGORY
#define Q_PDF_LOGGING_CATEGORY(name,...)
Definition
qtpdfglobal_p.h:29
qtwebengine
src
pdf
qpdfpagenavigator.h
Generated on
for Qt by
1.18.0