|
Eneboo - Documentación para desarrolladores
|
#include <mreportsection.h>
Kugar report section
| MReportSection::MReportSection | ( | const QString & | strIdSec = QString::null | ) |
Constructor
| MReportSection::MReportSection | ( | const MReportSection & | mReportSection | ) |
Copy constructor
| MReportSection::~MReportSection | ( | ) | [virtual] |
Destructor
| void MReportSection::addCalculatedField | ( | MCalcObject * | calc | ) |
Adds a new calculated field object to the section's calculated field collection
| void MReportSection::addField | ( | MFieldObject * | field | ) |
Adds a new field object to the section's field collection
| void MReportSection::addLabel | ( | MLabelObject * | label | ) |
Adds a new label object to the section's label collection
| void MReportSection::addLine | ( | MLineObject * | line | ) |
Adds a new line object to the section's line collection
| void MReportSection::addSpecialField | ( | MSpecialObject * | special | ) |
Adds a new special field object to the section's special field collection
| void MReportSection::calculateField | ( | MCalcObject * | field, |
| QMemArray< double > * | values, | ||
| QString | valueS = QString::null, |
||
| QDomNode * | record = 0, |
||
| bool | fillRecord = false |
||
| ) |
Calculates the value for a calculated field
| field,: | Field to calculate |
| *values,: | pointer to array of source values |
| valueS,: | current value of the field (used in the No Operation calculation) |
| *record,: | pointer to the current xml node of values (used in the Call Function calculation) |
Sets the data for the a calculated field
| void MReportSection::clear | ( | void | ) | [virtual] |
Frees all resources allocated by the report section
| QString MReportSection::csvData | ( | ) | const [inline] |
| void MReportSection::draw | ( | FLStylePainter * | p, |
| int | xoffset, | ||
| int | yoffset, | ||
| int & | newHeight | ||
| ) | [virtual] |
Draws the section to the specified painter & x/y-offsets
| bool MReportSection::drawAllPages | ( | ) | [inline] |
Gets if the detail is on all pages
| void MReportSection::drawHeaderObjects | ( | FLStylePainter * | p, |
| MPageCollection * | pages, | ||
| MReportSection * | header | ||
| ) |
Draws objects at the header
Draws the section base objects to the specified painter & x/y offsets
| void MReportSection::drawObjects | ( | FLStylePainter * | p, |
| int | xoffset, | ||
| int | yoffset, | ||
| int & | newHeight | ||
| ) | [protected] |
Draws the section base objects to the specified painter & x/y offsets
| MCalcObject * MReportSection::getCalcField | ( | int | idx | ) | [inline] |
Returns the calculatedfield object at the given index
| int MReportSection::getCalcFieldCount | ( | ) | const [inline] |
Returns the number of calculated fields in the section
Returns the index of the calculated field object for the given bound field
Returns the name of the bound field for the calculated field object at the given index
| QString MReportSection::getDrawIf | ( | ) | const [inline] |
Gets the condition for drawing the section
| MFieldObject * MReportSection::getField | ( | int | idx | ) | [inline] |
Returns the field object at the given index
| int MReportSection::getFieldCount | ( | ) | const [inline] |
Returns the number of fields in the section
Returns the number of fields in the detail section
Returns the index of the calculated field object for the given bound field
Returns the index of the field object for the given bound field
Returns the name of the bound field for field object at the given index
| int MReportSection::getHeight | ( | ) | const [inline] |
Gets the height of the section
| int MReportSection::getHeight | ( | FLStylePainter * | p | ) |
Calculates the height of se section according to its ChangeHeight Fields
| uint MReportSection::getLastPageIndex | ( | ) | const [inline] |
Returns the page index of the last section drawed
| int MReportSection::getLastXOffset | ( | ) | const [inline] |
Returns the horizontal offset of the last section drawed
| int MReportSection::getLastYOffset | ( | ) | const [inline] |
Returns the vertical offset of the last section drawed
| int MReportSection::getLevel | ( | ) | const [inline] |
Gets the level of the section
| int MReportSection::getWidth | ( | ) | const [inline] |
Gets the width of the section
| uint MReportSection::idSec | ( | ) | const [inline] |
Returns wether the Report Section must be drawed or not depending on the DrawIf attribute and the current record values
| bool MReportSection::newPage | ( | ) | [inline] |
Gets if there is new page at end of the section
| QPicture * MReportSection::onPage | ( | ) | [inline] |
| MReportSection MReportSection::operator= | ( | const MReportSection & | mReportSection | ) |
Assignment operator
| bool MReportSection::placeAtBottom | ( | ) | [inline] |
Gets if the footer must be drawed at the bottom of the page
| int MReportSection::printFrequency | ( | ) | [inline] |
Returns the print frequency of the section
| void MReportSection::resetIdSecGlob | ( | ) | [static] |
Sets the data for the specified calculated field
| void MReportSection::setCalcFieldData | ( | QPtrList< QMemArray< double > > * | values = 0, |
| QValueVector< QString > * | valueS = 0, |
||
| QDomNode * | record = 0, |
||
| bool | fillRecord = false |
||
| ) |
Sets the data for the all calculated fields - list size must match number of calculated fields
Sets the data for the all calculated fields - list size must number of calculated fields
| void MReportSection::setCalcFieldDataGT | ( | QPtrList< QMemArray< double > > * | values, |
| QDomNode * | record = 0, |
||
| bool | fillRecord = false |
||
| ) |
Sets the data for the calculated fields whose calculation source is the grand total
| void MReportSection::setDrawAllPages | ( | bool | b | ) | [inline] |
Sets if the detail is on all pages
| void MReportSection::setDrawIf | ( | const QString & | dI | ) | [inline] |
Sets the condition for drawing the section
| void MReportSection::setFieldData | ( | int | idx, |
| const QString & | data, | ||
| QDomNode * | record = 0, |
||
| bool | fillRecord = false |
||
| ) |
Sets the data for the field at the specified index
| void MReportSection::setHeight | ( | int | h | ) | [inline] |
Sets the height of the section
| void MReportSection::setIdSec | ( | uint | id | ) | [inline] |
| void MReportSection::setLastPageIndex | ( | uint | i | ) | [inline] |
Sets the page index of the last section drawed
| void MReportSection::setLevel | ( | int | l | ) | [inline] |
Sets the level of the section
| void MReportSection::setNewPage | ( | bool | b | ) | [inline] |
Sets new page at end of the section
| void MReportSection::setOnPage | ( | QPicture * | page | ) | [inline] |
| void MReportSection::setPageNumber | ( | int | page | ) | [inline] |
Set the current page number - used by special fields
| void MReportSection::setPlaceAtBottom | ( | bool | b | ) | [inline] |
Sets the current footer at de bottom of the page
Sets new page at end of the section
| void MReportSection::setPrintFrequency | ( | int | printFrequency | ) | [inline] |
Sets the print frequency of the section
| void MReportSection::setReportDate | ( | const QDate & | date | ) | [inline] |
Set the current date - used by special fields
| void MReportSection::setWidth | ( | const int | w | ) | [inline] |
Sets the width of the section
bool MReportSection::drawAllPages_ [protected] |
Draw details on all pages
QString MReportSection::drawIf [protected] |
Name of the fiels that conditios the drawing of the section
int MReportSection::frequency [protected] |
Section print frequency
int MReportSection::height [protected] |
Sections's height
int MReportSection::level [protected] |
Sections's level in hierarchy
bool MReportSection::newPage_ [protected] |
New page at end of the section
int MReportSection::pageNumber [protected] |
Page number - used by special fields
bool MReportSection::placeAtBottom_ [protected] |
Current footer at bottom of the page
QDate MReportSection::reportDate [protected] |
Report date - used by special fields
int MReportSection::width [protected] |
Sections's width
1.7.4