This class' purpose is to take (or generate) a GdaDataModel and turn it into an AbiWord table. More...
Public Member Functions | |
IE_Imp_GDA (PD_Document *pDocument, GdaDataModel *model=0) | |
virtual | ~IE_Imp_GDA () |
UT_Error | importDataModel () |
Protected Member Functions | |
virtual UT_Error | _loadFile (GsfInput *input) |
Private Member Functions | |
IE_Imp_GDA () | |
IE_Imp_GDA (const IE_Imp_GDA &) | |
IE_Imp_GDA & | operator= (const IE_Imp_GDA &) |
UT_Error | _importDataModel () |
void | openTable () |
void | closeTable () |
void | openRow () |
void | closeRow () |
void | addCell (const GdaValue *value) |
void | addCell (const char *value, bool header=false) |
Private Attributes | |
GdaDataModel * | m_model |
int | m_row |
int | m_col |
bool | m_generatedModel |
This class' purpose is to take (or generate) a GdaDataModel and turn it into an AbiWord table.
If we generate a DataModel from a .connection file (i.e. we're importing a new document), we'll open up a new window. If not, we'll act like the data set got pasted in place
IE_Imp_GDA::IE_Imp_GDA | ( | PD_Document * | pDocument, | |
GdaDataModel * | model = 0 | |||
) | [inline] |
References m_generatedModel, and m_model.
virtual IE_Imp_GDA::~IE_Imp_GDA | ( | ) | [inline, virtual] |
References m_model.
IE_Imp_GDA::IE_Imp_GDA | ( | ) | [private] |
IE_Imp_GDA::IE_Imp_GDA | ( | const IE_Imp_GDA & | ) | [private] |
UT_Error IE_Imp_GDA::_importDataModel | ( | ) | [inline, private] |
References addCell(), IE_Imp::appendStrux(), closeRow(), closeTable(), XAP_App::getApp(), XAP_Frame::getCurrentView(), FV_View::getInsPoint(), XAP_App::getLastFocussedFrame(), m_generatedModel, m_model, openRow(), openTable(), PTX_Block, PTX_Section, IE_Imp::setClipboard(), and X_ReturnNoMemIfError.
Referenced by importDataModel().
virtual UT_Error IE_Imp_GDA::_loadFile | ( | GsfInput * | input | ) | [inline, protected, virtual] |
void IE_Imp_GDA::addCell | ( | const GdaValue * | value | ) | [inline, private] |
References gchar.
Referenced by _importDataModel().
void IE_Imp_GDA::addCell | ( | const char * | value, | |
bool | header = false | |||
) | [inline, private] |
void IE_Imp_GDA::closeRow | ( | ) | [inline, private] |
Referenced by _importDataModel().
void IE_Imp_GDA::closeTable | ( | ) | [inline, private] |
References IE_Imp::appendStrux(), m_col, m_row, PTX_EndTable, and X_CheckError.
Referenced by _importDataModel().
UT_Error IE_Imp_GDA::importDataModel | ( | ) | [inline] |
References _importDataModel().
Referenced by handle_recordset().
void IE_Imp_GDA::openRow | ( | ) | [inline, private] |
References m_col.
Referenced by _importDataModel().
void IE_Imp_GDA::openTable | ( | ) | [inline, private] |
References IE_Imp::appendStrux(), m_col, m_row, PTX_SectionTable, and X_CheckError.
Referenced by _importDataModel().
IE_Imp_GDA& IE_Imp_GDA::operator= | ( | const IE_Imp_GDA & | ) | [private] |
int IE_Imp_GDA::m_col [private] |
Referenced by addCell(), closeRow(), closeTable(), openRow(), and openTable().
bool IE_Imp_GDA::m_generatedModel [private] |
Referenced by _importDataModel(), and IE_Imp_GDA().
GdaDataModel* IE_Imp_GDA::m_model [private] |
Referenced by _importDataModel(), IE_Imp_GDA(), and ~IE_Imp_GDA().
int IE_Imp_GDA::m_row [private] |
Referenced by addCell(), closeRow(), closeTable(), and openTable().