KItinerary

pdflink.h
1/*
2 SPDX-FileCopyrightText: 2022 Volker Krause <vkrause@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#ifndef KITINERARY_PDFLINK_H
7#define KITINERARY_PDFLINK_H
8
9#include "kitinerary_export.h"
10
11#include <QExplicitlySharedDataPointer>
12#include <QMetaType>
13#include <QRectF>
14
15class PDFRectangle;
16
17namespace KItinerary {
18
19class PdfExtractorOutputDevice;
20class PdfLinkPrivate;
21class PdfPagePrivate;
22
23/** An external link in a PDF file. */
24class KITINERARY_EXPORT PdfLink
25{
26 Q_GADGET
27 Q_PROPERTY(QString url READ url)
28 Q_PROPERTY(QRectF area READ area)
29
30public:
31 PdfLink();
32 ~PdfLink();
33 PdfLink(const PdfLink&);
34 PdfLink& operator=(const PdfLink&);
35
36 QString url() const;
37 QRectF area() const;
38
39private:
40 friend class PdfExtractorOutputDevice;
41 friend class PdfPagePrivate;
42
43 explicit PdfLink(const QString &url, const QRectF &area);
44 void convertToPageRect(const PDFRectangle *pageRect);
45
47};
48
49}
50
51#endif // KITINERARY_PDFLINK_H
Classes for reservation/travel data models, data extraction and data augmentation.
Definition berelement.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:00:34 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.