Eneboo - Documentación para desarrolladores
|
#include <mreportengine.h>
Kugar report engine
MReportEngine::MReportEngine | ( | QObject * | parent = 0 | ) |
Constructor
MReportEngine::MReportEngine | ( | const MReportEngine & | mReportEngine, |
QObject * | parent = 0 |
||
) |
Copy constructor
MReportEngine::~MReportEngine | ( | ) | [virtual] |
Destructor
Decides whether the current detail fits in the current page or not
Decides whether the current detail header fits in the current page or not
void MReportEngine::clear | ( | void | ) | [protected] |
Clears report destroying all resources
void MReportEngine::clearFormatting | ( | ) | [protected] |
Clears report formatting
void MReportEngine::clearGrantTotals | ( | ) | [protected] |
Clears report grand totals
void MReportEngine::copy | ( | const MReportEngine * | mReportEngine | ) | [protected] |
Copies member data from one object to another.
Used by the copy constructor and assignment operator
QString MReportEngine::csvData | ( | ) | const [inline, slot] |
void MReportEngine::drawAddOnFooter | ( | MPageCollection * | pages, |
int | level, | ||
QPtrList< QMemArray< double > > * | gDT, | ||
QValueVector< QString > * | gDTS | ||
) | [protected] |
Draws the detail add-on footer to the level
void MReportEngine::drawAddOnHeader | ( | MPageCollection * | pages, |
int | level, | ||
QPtrList< QMemArray< double > > * | gDT, | ||
QValueVector< QString > * | gDTS = 0 |
||
) | [protected] |
Draws the detail add-on header to the level
void MReportEngine::drawDetail | ( | MPageCollection * | pages, |
int | level, | ||
uint & | currRecord, | ||
const int | initRow = 0 , |
||
const int | initCol = 0 |
||
) | [protected] |
Draws the detail to the level
void MReportEngine::drawDetailFooter | ( | MPageCollection * | pages, |
int | level, | ||
QPtrList< QMemArray< double > > * | gDT = 0 , |
||
QValueVector< QString > * | gDTS = 0 |
||
) | [protected] |
Draws the detail footer to the level
void MReportEngine::drawDetailHeader | ( | MPageCollection * | pages, |
int | level | ||
) | [protected] |
Draws the detail header to the level
void MReportEngine::drawPageFooter | ( | MPageCollection * | pages | ) | [protected] |
Draws the page footer to the current page
void MReportEngine::drawPageHeader | ( | MPageCollection * | pages | ) | [protected] |
Draws the page header to the current page
void MReportEngine::drawReportFooter | ( | MPageCollection * | pages | ) | [protected] |
Draws the report footer to the current page
void MReportEngine::drawReportHeader | ( | MPageCollection * | pages | ) | [protected] |
Draws the report header object to the current page
void MReportEngine::endPage | ( | MPageCollection * | pages | ) | [protected] |
Finishes the current page of the report
MReportSection * MReportEngine::findAddOnFooter | ( | int | level | ) | [protected] |
Finds the detail add-on footer object, which is apropriate for the given level. If no footer is found, trys to find a general add-on footer level -1)
level: Level of the footer's detail |
Finds the detail add-on footer object, which is apropriate for the given level. If no footer is found, trys to find a general add-on footer level -1)
MReportSection * MReportEngine::findAddOnHeader | ( | int | level | ) | [protected] |
Finds the add-on detail header object, which is apropriate for the given level
MReportSection * MReportEngine::findDetail | ( | int | level | ) | [protected] |
Finds the detail object, which is apropriate for the given level
MReportSection * MReportEngine::findDetailFooter | ( | int | level | ) | [protected] |
Finds the detail footer object, which is apropriate for the given level
MReportSection * MReportEngine::findDetailHeader | ( | int | level | ) | [protected] |
Finds the detail header object, which is apropriate for the given level
Gets the metrics for the selected page size
Gets the metrics for the selected page size & orientation
int MReportEngine::getRenderSteps | ( | ) | [inline, slot] |
void MReportEngine::initData | ( | ) | [protected] |
Inits
void MReportEngine::initTemplate | ( | ) | [protected] |
Walks the document tree, setting the report layout
void MReportEngine::newPage | ( | MPageCollection * | pages, |
int | levelAddOn = -1 |
||
) | [protected] |
Finishes the current page and adds a new page
MReportEngine MReportEngine::operator= | ( | const MReportEngine & | mReportEngine | ) |
Assignment operator
void MReportEngine::preferedTemplate | ( | const QString & | ) | [signal] |
float MReportEngine::relCalcDpi | ( | ) | const [inline, slot] |
float MReportEngine::relDpi | ( | ) | const [inline, slot] |
MPageCollection * MReportEngine::renderReport | ( | int | initRow = 0 , |
int | initCol = 0 , |
||
MPageCollection * | pages = 0 , |
||
uint | flags = MReportEngine::Display |
||
) |
Renders the report as a page collection - the caller is responsible for de-allocating the returned collection
copyright : (C) 2002-2008 InfoSiAL S.L. email : mail@infosial.com
void MReportEngine::reserveSizeForCalcFields | ( | QDomNamedNodeMap * | fields, |
int | level | ||
) | [protected] |
Reserves size in the footers' total arrays to store the items used to calculate calculated field values in the previous levels footers
void MReportEngine::setCalculatedFieldAttributes | ( | MCalcObject * | field, |
QDomNamedNodeMap * | attr | ||
) | [protected] |
Sets a calculated field's layout attributes
void MReportEngine::setDetailAttributes | ( | MReportSection * | section, |
QDomNode * | report | ||
) | [protected] |
Sets the layout attributes for the detail section
void MReportEngine::setDetMiscAttributes | ( | MReportSection * | section, |
QDomNode * | report | ||
) | [protected] |
Sets the layout attributes for the detail headers and footers
void MReportEngine::setFieldAttributes | ( | MFieldObject * | field, |
QDomNamedNodeMap * | attr | ||
) | [protected] |
Sets a field's layout attributes
void MReportEngine::setFieldValues | ( | QDomNamedNodeMap * | fields, |
int | level, | ||
MReportSection * | detail, | ||
QDomNode * | ptrRecord, | ||
bool | noTotal = false |
||
) | [protected] |
Puts the field values into the detail section and sets the values of the total arrays items used to calculate calculated field values in the previous levels footers
noTotal,: | Only set Field Values, do not calculate aggregations |
void MReportEngine::setLabelAttributes | ( | MLabelObject * | label, |
QDomNamedNodeMap * | attr | ||
) | [protected] |
Sets a label's layout attributes
void MReportEngine::setLineAttributes | ( | MLineObject * | line, |
QDomNamedNodeMap * | attr | ||
) | [protected] |
Sets a line's layout attributes
void MReportEngine::setRelDpi | ( | float | relDpi | ) | [slot] |
void MReportEngine::setReportAttributes | ( | QDomNode * | report | ) | [protected] |
Sets the main layout attributes for the report
Reimplementado en FLReportEngine.
void MReportEngine::setSectionAttributes | ( | MReportSection * | section, |
QDomNode * | report | ||
) | [protected] |
Sets the layout attributes for the given report section
void MReportEngine::setSpecialAttributes | ( | MSpecialObject * | field, |
QDomNamedNodeMap * | attr | ||
) | [protected] |
Sets a special field's layout attributes
void MReportEngine::setStyleName | ( | const QString & | style | ) | [inline, slot] |
void MReportEngine::signalRenderStatus | ( | int | ) | [signal] |
void MReportEngine::slotCancelRendering | ( | ) | [slot] |
Cancels rendering of a report
void MReportEngine::startPage | ( | MPageCollection * | pages, |
int | levelAddOn = -1 |
||
) | [protected] |
Starts a new page of the report
QPtrList<MReportSection>* MReportEngine::addOnFooters [protected] |
Detail add-on footers
QPtrList<MReportSection>* MReportEngine::addOnHeaders [protected] |
Detail add-on headers
int MReportEngine::bottomMargin [protected] |
Report top margin
bool MReportEngine::cancelRender [protected] |
Cancel rendering flag
QString MReportEngine::csvData_ [protected] |
Contains a csv version of the data
QDate MReportEngine::currDate [protected] |
Current report date
int MReportEngine::currHeight [protected] |
Current height of page excluding margins
int MReportEngine::currPage [protected] |
Current page number
int MReportEngine::currRecord_ [protected] |
Current record being treated
int MReportEngine::currX [protected] |
Current x position on page
int MReportEngine::currY [protected] |
Current y position on page
int MReportEngine::customHeightMM [protected] |
Page height in mm for PageSize = Custom
int MReportEngine::customWidthMM [protected] |
Page width in mm for PageSize = Custom
QPtrList<MReportSection>* MReportEngine::details [protected] |
Detail sections
QPtrList<MReportSection>* MReportEngine::dFooters [protected] |
Detail footers
QPtrList< MReportSection>* MReportEngine::dHeaders [protected] |
Detail headers
bool MReportEngine::fillRecords_ [protected] |
QPtrList<QMemArray<double> >* MReportEngine::gDTFooters[10] [protected] |
Footer's total array
QValueVector<QString>* MReportEngine::gDTSFooters[10] [protected] |
QPtrList<QMemArray<double> >* MReportEngine::grandTotal [protected] |
Grand total array
int MReportEngine::leftMargin [protected] |
Report top margin
FLStylePainter* MReportEngine::p [protected] |
Report painter
int MReportEngine::pageHeight [protected] |
Report page height
int MReportEngine::pageOrientation [protected] |
Report page orientation
int MReportEngine::pageSize [protected] |
Report page size
int MReportEngine::pageWidth [protected] |
Report page width
MReportSection* MReportEngine::pFooter [protected] |
Page footer
MReportSection* MReportEngine::pHeader [protected] |
Page header
bool MReportEngine::printToPos [protected] |
Print to POS printer
QDomDocument* MReportEngine::rd [protected] |
Report data document
QDomNodeList MReportEngine::records [protected] |
The set of records being rendered.
float MReportEngine::relCalcDpi_ [protected] |
float MReportEngine::relDpi_ [protected] |
MReportSection* MReportEngine::rFooter [protected] |
Report footer
MReportSection* MReportEngine::rHeader [protected] |
Report header
int MReportEngine::rightMargin [protected] |
Report top margin
QDomDocument* MReportEngine::rt [protected] |
Report template document
QString MReportEngine::styleName_ [protected] |
int MReportEngine::topMargin [protected] |
Report top margin