Eneboo - Documentación para desarrolladores
Tipos públicos | Slots públicos | Señales | Métodos públicos | Métodos protegidos | Atributos protegidos
Referencia de la Clase MReportEngine

#include <mreportengine.h>

Diagrama de herencias de MReportEngine
QObject Qt Qt FLReportEngine AQReportEngine

Lista de todos los miembros.

Tipos públicos

enum  PageOrientation { Portrait, Landscape }
enum  PageSize {
  A4, B5, Letter, Legal,
  Executive, A0, A1, A2,
  A3, A5, A6, A7,
  A8, A9, B0, B1,
  B10, B2, B3, B4,
  B6, B7, B8, B9,
  C5E, Comm10E, DLE, Folio,
  Ledger, Tabloid, Custom, NPageSize = Custom
}
enum  RenderReportFlags { Append = 0x00000001, Display = 0x00000002, PageBreak = 0x00000004, FillRecords = 0x00000008 }

Slots públicos

int getRenderSteps ()
QString csvData () const
float relDpi () const
float relCalcDpi () const
void setStyleName (const QString &style)
void slotCancelRendering ()
void setRelDpi (float relDpi)

Señales

void signalRenderStatus (int)
void preferedTemplate (const QString &)

Métodos públicos

 MReportEngine (QObject *parent=0)
 MReportEngine (const MReportEngine &mReportEngine, QObject *parent=0)
MReportEngine operator= (const MReportEngine &mReportEngine)
virtual ~MReportEngine ()
bool setReportData (const QString &)
bool setReportData (QIODevice *)
bool setReportData (QDomNode &)
bool setReportTemplate (const QString &)
bool setReportTemplate (QIODevice *)
bool setReportTemplate (QDomNode &)
MPageCollectionrenderReport (int initRow=0, int initCol=0, MPageCollection *pages=0, uint flags=MReportEngine::Display)

Métodos protegidos

void clear ()
void clearGrantTotals ()
void clearFormatting ()
void startPage (MPageCollection *pages, int levelAddOn=-1)
void endPage (MPageCollection *pages)
void newPage (MPageCollection *pages, int levelAddOn=-1)
void drawReportHeader (MPageCollection *pages)
void drawPageHeader (MPageCollection *pages)
void drawPageFooter (MPageCollection *pages)
void drawReportFooter (MPageCollection *pages)
void drawDetailFooter (MPageCollection *pages, int level, QPtrList< QMemArray< double > > *gDT=0, QValueVector< QString > *gDTS=0)
void drawAddOnHeader (MPageCollection *pages, int level, QPtrList< QMemArray< double > > *gDT, QValueVector< QString > *gDTS=0)
void drawAddOnFooter (MPageCollection *pages, int level, QPtrList< QMemArray< double > > *gDT, QValueVector< QString > *gDTS)
void drawDetailHeader (MPageCollection *pages, int level)
void drawDetail (MPageCollection *pages, int level, uint &currRecord, const int initRow=0, const int initCol=0)
QSize getPageMetrics (int size, int orientation)
void initData ()
void initTemplate ()
void setReportAttributes (QDomNode *report)
void setSectionAttributes (MReportSection *section, QDomNode *report)
void setDetMiscAttributes (MReportSection *section, QDomNode *report)
void setDetailAttributes (MReportSection *section, QDomNode *report)
void setLineAttributes (MLineObject *line, QDomNamedNodeMap *attr)
void setLabelAttributes (MLabelObject *label, QDomNamedNodeMap *attr)
void setSpecialAttributes (MSpecialObject *field, QDomNamedNodeMap *attr)
void setFieldAttributes (MFieldObject *field, QDomNamedNodeMap *attr)
void setCalculatedFieldAttributes (MCalcObject *field, QDomNamedNodeMap *attr)
void copy (const MReportEngine *mReportEngine)
bool canDrawDetailHeader (uint level, uint currRecord, uint yPos)
bool canDrawDetail (uint level, uint currRecord, uint yPos)
MReportSectionfindDetailHeader (int level)
MReportSectionfindAddOnHeader (int level)
MReportSectionfindDetail (int level)
MReportSectionfindDetailFooter (int level)
MReportSectionfindAddOnFooter (int level)
void reserveSizeForCalcFields (QDomNamedNodeMap *fields, int level)
void setFieldValues (QDomNamedNodeMap *fields, int level, MReportSection *detail, QDomNode *ptrRecord, bool noTotal=false)

Atributos protegidos

QDomDocumentrd
QDomDocumentrt
FLStylePainterp
int pageSize
int pageOrientation
int topMargin
int bottomMargin
int leftMargin
int rightMargin
int customWidthMM
int customHeightMM
int pageWidth
int pageHeight
MReportSectionrHeader
MReportSectionpHeader
QPtrList< MReportSection > * addOnHeaders
QPtrList< MReportSection > * addOnFooters
QPtrList< MReportSection > * dHeaders
QPtrList< MReportSection > * details
QPtrList< MReportSection > * dFooters
MReportSectionpFooter
MReportSectionrFooter
int currY
int currX
int currHeight
int currPage
QDate currDate
int currRecord_
QPtrList< QMemArray< double > > * grandTotal
QPtrList< QMemArray< double > > * gDTFooters [10]
QValueVector< QString > * gDTSFooters [10]
bool printToPos
bool cancelRender
QString csvData_
QDomNodeList records
float relDpi_
float relCalcDpi_
QString styleName_
bool fillRecords_

Descripción detallada

Kugar report engine

Autor:
Mutiny Bay Software

Documentación de las enumeraciones miembro de la clase

Valores de enumeraciones:
Portrait 
Landscape 
Valores de enumeraciones:
A4 
B5 
Letter 
Legal 
Executive 
A0 
A1 
A2 
A3 
A5 
A6 
A7 
A8 
A9 
B0 
B1 
B10 
B2 
B3 
B4 
B6 
B7 
B8 
B9 
C5E 
Comm10E 
DLE 
Folio 
Ledger 
Tabloid 
Custom 
NPageSize 
Valores de enumeraciones:
Append 
Display 
PageBreak 
FillRecords 

Documentación del constructor y destructor

MReportEngine::MReportEngine ( QObject parent = 0)

Constructor

MReportEngine::MReportEngine ( const MReportEngine mReportEngine,
QObject parent = 0 
)

Copy constructor

MReportEngine::~MReportEngine ( ) [virtual]

Destructor


Documentación de las funciones miembro

bool MReportEngine::canDrawDetail ( uint  level,
uint  currRecord,
uint  yPos 
) [protected]

Decides whether the current detail fits in the current page or not

bool MReportEngine::canDrawDetailHeader ( uint  level,
uint  currRecord,
uint  yPos 
) [protected]

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)

Parámetros:
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

QSize MReportEngine::getPageMetrics ( int  size,
int  orientation 
) [protected]

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

Parámetros:
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

bool MReportEngine::setReportData ( QIODevice dev)
bool MReportEngine::setReportData ( const QString data)
bool MReportEngine::setReportData ( QDomNode d)
bool MReportEngine::setReportTemplate ( QDomNode d)
bool MReportEngine::setReportTemplate ( const QString tpl)

Reimplementado en FLReportEngine.

bool MReportEngine::setReportTemplate ( QIODevice dev)
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


Documentación de los datos miembro

Detail add-on footers

Detail add-on headers

Report top margin

Cancel rendering flag

Contains a csv version of the data

Current report date

Current height of page excluding margins

Current page number

Current record being treated

Current x position on page

Current y position on page

Page height in mm for PageSize = Custom

Page width in mm for PageSize = Custom

Detail sections

Detail footers

Detail headers

QPtrList<QMemArray<double> >* MReportEngine::gDTFooters[10] [protected]

Footer's total array

Grand total array

Report top margin

Report painter

Report page height

Report page orientation

Report page size

Report page width

Page footer

Page header

Print to POS printer

Report data document

The set of records being rendered.

float MReportEngine::relCalcDpi_ [protected]
float MReportEngine::relDpi_ [protected]

Report footer

Report header

Report top margin

Report template document

Report top margin


La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'