KReport

KReportView.h
1/* This file is part of the KDE project
2 Copyright (C) 2015 by Adam Pigg (adam@piggz.co.uk)
3 Copyright (C) 2017 Jarosław Staniek <staniek@kde.org>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20
21#ifndef KREPORTVIEW_H
22#define KREPORTVIEW_H
23
24#include <QWidget>
25
26#include "kreport_export.h"
27
28class ORODocument;
30
31/**
32 * @brief Provides a simple widget for viewing a rendered report on screen
33 */
34class KREPORT_EXPORT KReportView : public QWidget
35{
36 Q_OBJECT
37public:
38 explicit KReportView(QWidget *parent);
39
40 ~KReportView() override;
41
42 void moveToFirstPage();
43 void moveToLastPage();
44 void moveToNextPage();
45 void moveToPreviousPage();
46
47 //! Moves to page @a page (counted from 1)
48 //! @since 3.1
49 void moveToPage(int page);
50
51 //! @return number of current page (counted from 1)
52 int currentPage() const;
53
54 int pageCount() const;
55 void refreshCurrentPage();
56 void setDocument(ORODocument* doc);
57
58 QAbstractScrollArea* scrollArea();
59
60private:
61 Q_DISABLE_COPY(KReportView)
62 class Private;
63 Private * const d;
64};
65
66#endif
Provides a simple widget for viewing a rendered report on screen.
Definition KReportView.h:35
Represents a single document containing one or more OROPage elements.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:50:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.