gSAFE  1.3.8
Public Slots | Public Member Functions | List of all members
HXmloTable Class Reference

#include <xmlolib.h>

Inherits QDialog.

Public Slots

int cf (void)
 
int closeButton (void)
 
int saveButton (void)
 

Public Member Functions

 HXmloTable (QWidget *parent, HBase *d)
 
 ~HXmloTable (void)
 

Detailed Description

HXmloTable class can generate a Microsoft Excel 2003 XML table format output from HTable/HList/HPlainDataMatrix objects. If you create this class a dialog will appear which ask the file name to save. If the process is success the file can be opened with excel.
This class will generate the document according the meta data class (HTable/HList/HPlainDataMatrix) and the data will came from these class too.

HTable *mytable=...
...
HXmloTable *d = new HXmloTable(this,mytable);
d->exec();
delete d;
...

or you can print a result of a query

HPlainDataMatrix *pdm = h.submitNResultQuery(3,"SELECT name,age,address FROM peoples;","Error occured");
HXmloTable *d = new HXmloTable(this,pdm);
d->exec();
delete d;
delete pdm;

It uses the HExcelXmlGenerator class to generate the output

See Also
HExcelXmlGenerator
HTable
HList
HPlainDataMatrix

Definition at line 81 of file xmlolib.h.

Constructor & Destructor Documentation

HXmloTable::HXmloTable ( QWidget *  parent,
HBase d 
)

Creates a HXmloTable object

Parameters
parentthe QWidget descendant parent
dthe meta-data class

Definition at line 385 of file xmlolib.cpp.

HXmloTable::~HXmloTable ( void  )

Destructor

Definition at line 440 of file xmlolib.cpp.


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