151 int printedPages(QPrinter* aPrinter,
int& aFirstPage = *
new int,
int& aLastPage = *
new int)
const;
#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.
BPS datastore class.
Definition: bpsdatastore.h:61
This class represents a BPS report element.
Definition: bpsreportelement.h:79
BPS Report Object.
Definition: bpsreport.h:29
void beginPrint(int aCount)
This signal is emitted when printing begins.
void setPrinterDefaults(QPrinter *aPrinter)
Setup the defaults for the printer.
void load(const QString &aPath)
Loads a report from file.
void pagesPrinted(int aCount)
This signal is emitted when a page is completed while printing the report.
BpsScriptEngine * engine()
Get the engine used to process the report script.
BpsReportPage * pageAt(int aIndex) const
Get the page at a certain index position.
void execute()
Execute the report script.
BpsReport(QObject *aParent=nullptr)
Default constructor.
qreal printHeight() const
Returns the height in millimeters available for printing.
BpsReportPage * addPage()
Adds a new page to the report.
void scriptPerror(const QString &aLine) const
Write the script perror() output.
BpsReportSection * createSection(const QString &aName)
Creates a new section with the properties of a named section element.
void load(BpsDatastore *aDatastore, const QString &aPath)
Loads a report from database when the path name is known.
void setLoadedItems(int aCount)
The script should set the number of loaded items after every item that got processed,...
void print(QPrinter *aPrinter)
Print the report.
void itemsLoaded(int aCount)
This signal is emitted after calling setLoadedItems(int).
void percentLoaded(int aPercent)
This signal is emitted after calling setLoadedItems(int).
void setItemsCount(int aCount)
The script should set the number of items that need to be processed at begin of script execution,...
void endLoad(int aCount)
This signal is emitted when loading has completed.
void beginLoad(int aCount)
This signal is emitted after calling setItemsCount(int).
void pagesAdded(int aCount)
This signal is emitted after a new page is added while loading the report.
BpsReport(const BpsReportElement &aReportElement, QObject *aParent=nullptr)
Constructor using the properties of an existing report element.
int printedPages(QPrinter *aPrinter, int &aFirstPage= *new int, int &aLastPage= *new int) const
Get the number and range of printed pages.
void endPrint(int aCount)
This signal is emitted when printing has completed.
void scriptPrint(const QString &aLine) const
Write the script print() output.
void load(BpsDatastore *aDatastore, const QVariant &aKey)
Loads a report from database when the key t_reports.c_key is known This method is used with objects c...
void scriptDebug(const QString &aLine) const
Write the script debug() output.
int pageCount() const
Get the number of pages in the report.
A report page will typically be created by calling BpsReport::addPage() from within the report script...
Definition: bpsreportpage.h:18
A report section will typically be created by calling BpsReport::createSection() from within the repo...
Definition: bpsreportsection.h:15
The BPS scripting engine.
Definition: bpsscriptengine.h:17