KReport

KReportView.h
1 /* This file is part of the KDE project
2  Copyright (C) 2015 by Adam Pigg ([email protected])
3  Copyright (C) 2017 JarosÅ‚aw Staniek <[email protected]>
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 
28 class ORODocument;
30 
31 /**
32  * @brief Provides a simple widget for viewing a rendered report on screen
33  */
34 class KREPORT_EXPORT KReportView : public QWidget
35 {
36  Q_OBJECT
37 public:
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 
60 private:
62  class Private;
63  Private * const d;
64 };
65 
66 #endif
Represents a single document containing one or more OROPage elements.
Provides a simple widget for viewing a rendered report on screen.
Definition: KReportView.h:34
Q_DISABLE_COPY(Class)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:17:37 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.