Eneboo - Documentación para desarrolladores
Tipos públicos | Métodos públicos | Métodos públicos estáticos | Métodos protegidos | Atributos protegidos
Referencia de la Clase MReportSection

#include <mreportsection.h>

Diagrama de herencias de MReportSection
QObject Qt Qt MReportDetail

Lista de todos los miembros.

Tipos públicos

enum  PrintFrequency { FirstPage = 0, EveryPage, LastPage }

Métodos públicos

 MReportSection (const QString &strIdSec=QString::null)
 MReportSection (const MReportSection &mReportSection)
MReportSection operator= (const MReportSection &mReportSection)
virtual ~MReportSection ()
void addField (MFieldObject *field)
void addLine (MLineObject *line)
void addLabel (MLabelObject *label)
void addSpecialField (MSpecialObject *special)
void addCalculatedField (MCalcObject *calc)
void setHeight (int h)
void setWidth (const int w)
int getHeight () const
int getHeight (FLStylePainter *p)
int getWidth () const
void setLevel (int l)
int getLevel () const
void setDrawIf (const QString &dI)
QString getDrawIf () const
void setNewPage (bool b)
void setPlaceAtBottom (bool b)
void setDrawAllPages (bool b)
bool newPage ()
bool placeAtBottom ()
bool drawAllPages ()
void setPageNumber (int page)
void setReportDate (const QDate &date)
void setPrintFrequency (int printFrequency)
int printFrequency ()
QString getCalcFieldName (int idx)
int getCalcFieldIndex (const QString &field)
int getFieldIndex (const QString &field)
void setCalcFieldData (int idx, const QString &data)
void setFieldData (int idx, const QString &data, QDomNode *record=0, bool fillRecord=false)
void setCalcFieldData (QPtrList< QMemArray< double > > *values=0, QValueVector< QString > *valueS=0, QDomNode *record=0, bool fillRecord=false)
void setCalcFieldDataGT (QPtrList< QMemArray< double > > *values, QDomNode *record=0, bool fillRecord=false)
void calculateField (MCalcObject *field, QMemArray< double > *values, QString valueS=QString::null, QDomNode *record=0, bool fillRecord=false)
int getFieldCount () const
QString getFieldName (int idx)
int getCalcFieldCount () const
virtual void draw (FLStylePainter *p, int xoffset, int yoffset, int &newHeight)
void drawHeaderObjects (FLStylePainter *p, MPageCollection *pages, MReportSection *header)
virtual void clear ()
bool mustBeDrawed (QDomNode *record)
int getLastXOffset () const
int getLastYOffset () const
uint getLastPageIndex () const
void setLastPageIndex (uint i)
MFieldObjectgetField (int idx)
MCalcObjectgetCalcField (int idx)
QPictureonPage ()
void setOnPage (QPicture *page)
QString csvData () const
void setIdSec (uint id)
uint idSec () const

Métodos públicos estáticos

static void resetIdSecGlob ()

Métodos protegidos

void drawObjects (FLStylePainter *p, int xoffset, int yoffset, int &newHeight)

Atributos protegidos

int height
int width
int level
bool newPage_
bool placeAtBottom_
bool drawAllPages_
int frequency
int pageNumber
QString drawIf
QDate reportDate

Descripción detallada

Kugar report section

Autor:
Mutiny Bay Software

Documentación de las enumeraciones miembro de la clase

Section print frequency constants

Valores de enumeraciones:
FirstPage 
EveryPage 
LastPage 

Documentación del constructor y destructor

MReportSection::MReportSection ( const QString strIdSec = QString::null)

Constructor

MReportSection::MReportSection ( const MReportSection mReportSection)

Copy constructor

MReportSection::~MReportSection ( ) [virtual]

Destructor


Documentación de las funciones miembro

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

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

int MReportSection::getCalcFieldIndex ( const QString field)

Returns the index of the calculated field object for the given bound field

QString MReportSection::getCalcFieldName ( int  idx) [inline]

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

int MReportSection::getFieldIndex ( const QString field)

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

QString MReportSection::getFieldName ( int  idx) [inline]

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]
bool MReportSection::mustBeDrawed ( QDomNode record)

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]
void MReportSection::setCalcFieldData ( int  idx,
const QString data 
) [inline]

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


Documentación de los datos miembro

Draw details on all pages

Name of the fiels that conditios the drawing of the section

Section print frequency

Sections's height

Sections's level in hierarchy

New page at end of the section

Page number - used by special fields

Current footer at bottom of the page

Report date - used by special fields

Sections's width


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'