BPS C++ API  2.24.4
bpsreportpage.h
Go to the documentation of this file.
1 
4 #ifndef BPSREPORTPAGE_H
5 #define BPSREPORTPAGE_H
6 
7 #include "bpsreportelement.h"
8 
9 class BpsReport;
10 class BpsReportSection;
11 class QGraphicsScene;
12 
18 {
19  Q_OBJECT
21 
22 public:
28 
29  virtual ~BpsReportPage();
30 
31 public slots:
32 
37  int sectionCount() const;
38 
45 
53  void insertSection(int aPosition, BpsReportSection* aSection);
54 
61  BpsReportSection* sectionAt(int aPosition) const;
62 
68  qreal printHeight() const;
69 
75  void draw(QGraphicsScene* aScene, int aResolution);
76 };
77 
78 Q_DECLARE_METATYPE(BpsReportPage*)
79 
80 #endif // BPSREPORTPAGE_H
#define BPSCORE_EXPORT
Declare class to be an import from the shared library.
Definition: bpscore_global.h:22
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
Public include file for BpsReportElement class.
This class represents a BPS report element.
Definition: bpsreportelement.h:79
BPS Report Object.
Definition: bpsreport.h:29
A report page will typically be created by calling BpsReport::addPage() from within the report script...
Definition: bpsreportpage.h:18
void insertSection(int aPosition, BpsReportSection *aSection)
Inserts a new section at an arbitrary position of the page.
BpsReportPage(BpsReport *aParent)
The constructor.
BpsReportSection * sectionAt(int aPosition) const
Get a section from a certain position.
void draw(QGraphicsScene *aScene, int aResolution)
Draws the page on the provided graphics scene.
int sectionCount() const
Get the number of sections in the page.
qreal printHeight() const
Get the sum of all section print heights.
void appendSection(BpsReportSection *aSection)
Appends a new section to the end of the page.
A report section will typically be created by calling BpsReport::createSection() from within the repo...
Definition: bpsreportsection.h:15