Logo Search packages:      
Sourcecode: facturalux version File versions  Download package

FLReportEngine Class Reference

#include <FLReportEngine.h>

Inheritance diagram for FLReportEngine:

MReportEngine

List of all members.


Detailed Description

Motor de generación de informes. Hereda de MReportEngine.

Extiende la funcionalidad de MReportEngine, para crear el origen de datos (una estructura XML) de Kugar a partir de una tabla o una consulta. El origen de una tabla o una consulta son objetos del tipo FLSqlCursor para tablas y FLSqlQuery para consultas. El formato de los informes se sigue tomando de un fichero XML según el formato prefijado por Kugar.

Author:
Federico Albujer Zornoza
Version:
0.4

Definition at line 44 of file FLReportEngine.h.


Public Types

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, NPageSize
}

Public Slots

void slotCancelRendering ()

Signals

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

Public Member Functions

 FLReportEngine ()
int getRenderSteps ()
MPageCollectionrenderReport ()
bool setFLReportTemplate (const QString &t)
bool setReportData (QIODevice *)
bool setReportData (const QString &)
bool setReportData (FLSqlCursor *t)
bool setReportData (FLSqlQuery *q)
bool setReportTemplate (QIODevice *)
bool setReportTemplate (const QString &)
 ~FLReportEngine ()

Protected Member Functions

void clearFormatting ()
void copy (const MReportEngine *mReportEngine)
void drawDetail (MPageCollection *pages, int level, uint &currRecord)
void drawDetailFooter (MPageCollection *pages, int level, QPtrList< QMemArray< double > > *gDT=0)
void drawDetailHeader (MPageCollection *pages, int level)
void drawPageFooter (MPageCollection *pages)
void drawPageHeader (MPageCollection *pages)
void drawReportFooter (MPageCollection *pages)
void drawReportHeader (MPageCollection *pages)
void endPage (MPageCollection *pages)
MReportDetailfindDetail (int level)
MReportSectionfindDetailFooter (int level)
MReportSectionfindDetailHeader (int level)
QSize getPageMetrics (int size, int orientation)
void initData ()
void initTemplate ()
void newPage (MPageCollection *pages)
void setCalculatedFieldAttributes (MCalcObject *field, QDomNamedNodeMap *attr)
void setDetailAttributes (QDomNode *report)
void setDetMiscAttributes (MReportSection *section, QDomNode *report)
void setFieldAttributes (MFieldObject *field, QDomNamedNodeMap *attr)
void setLabelAttributes (MLabelObject *label, QDomNamedNodeMap *attr)
void setLineAttributes (MLineObject *line, QDomNamedNodeMap *attr)
void setReportAttributes (QDomNode *report)
void setSectionAttributes (MReportSection *section, QDomNode *report)
void setSpecialAttributes (MSpecialObject *field, QDomNamedNodeMap *attr)
void startPage (MPageCollection *pages)

Protected Attributes

int bottomMargin
bool cancelRender
QDate currDate
int currHeight
int currPage
int currY
QPtrList< MReportDetaildetails
QPtrList< MReportSectiondFooters
QPtrList< MReportSectiondHeaders
QPtrList< QMemArray< double > > grandTotal
int leftMargin
QPainter p
int pageHeight
int pageOrientation
int pageSize
int pageWidth
MReportSection pFooter
MReportSection pHeader
QDomDocument rd
QDomNodeList records
MReportSection rFooter
MReportSection rHeader
int rightMargin
QDomDocument rt
int topMargin

Private Member Functions

void addRowToReportData (FLSqlQuery *q, const int l)
void groupBy (int level, int levelMax, FLSqlQuery *q, QString vA)

Private Attributes

QDomElement root_

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index