QtiPlot 0.9.7.3
|
#include <OdsFileHandler.h>
Classes | |
struct | cell_data |
Public Member Functions | |
bool | characters (const QString &str) |
bool | endElement (const QString &namespaceURI, const QString &localName, const QString &qName) |
QString | errorString () const |
bool | fatalError (const QXmlParseException &) |
OdsFileHandler (ApplicationWindow *app, const QString &odsFileName) | |
Table * | sheet (int index) |
int | sheetsCount () |
bool | startElement (const QString &namespaceURI, const QString &localName, const QString &qName, const QXmlAttributes &attributes) |
Private Types | |
enum | CellType { EmptyCell = 0, Float, String, Date, Time, Boolean, Currency, Percent } |
Private Attributes | |
std::vector< cell_data > | cells |
QString | currentText |
ApplicationWindow * | d_app |
int | d_col |
int | d_last_column |
QString | d_ods_file_name |
int | d_rows |
QStringList | d_sheet_names |
QList< Table * > | d_tables |
QString | errorStr |
enum OdsFileHandler::CellType [private] |
OdsFileHandler::OdsFileHandler | ( | ApplicationWindow * | app, |
const QString & | odsFileName | ||
) |
References d_col, d_last_column, and d_rows.
bool OdsFileHandler::characters | ( | const QString & | str | ) |
References currentText.
bool OdsFileHandler::endElement | ( | const QString & | namespaceURI, |
const QString & | localName, | ||
const QString & | qName | ||
) |
References cells, OdsFileHandler::cell_data::col, currentText, OdsFileHandler::cell_data::d, d_app, d_col, d_last_column, d_ods_file_name, d_rows, d_sheet_names, d_tables, Date, Float, ApplicationWindow::newTable(), OdsFileHandler::cell_data::row, Table::setCell(), Table::setDateFormat(), Table::setText(), Table::setTextFormat(), Table::setTimeFormat(), OdsFileHandler::cell_data::str, String, Time, and OdsFileHandler::cell_data::type.
QString OdsFileHandler::errorString | ( | ) | const |
References errorStr.
bool OdsFileHandler::fatalError | ( | const QXmlParseException & | ) | [inline] |
Table * OdsFileHandler::sheet | ( | int | index | ) |
References d_tables.
Referenced by ApplicationWindow::importOdfSpreadsheet().
int OdsFileHandler::sheetsCount | ( | ) | [inline] |
References d_tables.
Referenced by ApplicationWindow::importOdfSpreadsheet().
bool OdsFileHandler::startElement | ( | const QString & | namespaceURI, |
const QString & | localName, | ||
const QString & | qName, | ||
const QXmlAttributes & | attributes | ||
) |
References Boolean, cells, OdsFileHandler::cell_data::col, Currency, currentText, OdsFileHandler::cell_data::d, d_col, d_rows, d_sheet_names, Date, EmptyCell, Float, Percent, String, Time, and OdsFileHandler::cell_data::type.
std::vector<cell_data> OdsFileHandler::cells [private] |
Referenced by endElement(), and startElement().
QString OdsFileHandler::currentText [private] |
Referenced by characters(), endElement(), and startElement().
ApplicationWindow* OdsFileHandler::d_app [private] |
Referenced by endElement().
int OdsFileHandler::d_col [private] |
Referenced by endElement(), OdsFileHandler(), and startElement().
int OdsFileHandler::d_last_column [private] |
Referenced by endElement(), and OdsFileHandler().
QString OdsFileHandler::d_ods_file_name [private] |
Referenced by endElement().
int OdsFileHandler::d_rows [private] |
Referenced by endElement(), OdsFileHandler(), and startElement().
QStringList OdsFileHandler::d_sheet_names [private] |
Referenced by endElement(), and startElement().
QList<Table *> OdsFileHandler::d_tables [private] |
Referenced by endElement(), sheet(), and sheetsCount().
QString OdsFileHandler::errorStr [private] |
Referenced by errorString().