|
libodsstream
Library for mass spectrometry
|
#include <odsdocreader.h>
Public Member Functions | |
| OdsDocReader (OdsDocHandlerInterface &handler) | |
| virtual | ~OdsDocReader () |
| void | parse (QFile &odsFile) |
| void | parse (QIODevice *p_inputstream) |
Private Member Functions | |
| void | setInsideCell (const OdsCell &cell) |
| void | startInsideLine () |
| void | startSheet (const QString &sheet_name) |
| void | endSheet () |
| void | startLine () |
| void | endLine () |
| void | setCell (const OdsCell &cell) |
| void | endDocument () |
Private Attributes | |
| friend | QXmlStreamReaderContentXml |
| QuaZip * | _p_quaZip = nullptr |
| uint | _column_number |
| OdsDocHandlerInterface & | _handler |
Definition at line 29 of file odsdocreader.h.
| OdsDocReader::OdsDocReader | ( | OdsDocHandlerInterface & | handler | ) |
creates an ODS reader with a reader handler
@Param OdsDocHandlerInterface & the interface to implement to read ODS files
Definition at line 28 of file odsdocreader.cpp.
|
virtual |
Definition at line 32 of file odsdocreader.cpp.
References _p_quaZip.
|
private |
Definition at line 182 of file odsdocreader.cpp.
References _handler, and OdsDocHandlerInterface::endDocument().
Referenced by parse().
|
private |
Definition at line 171 of file odsdocreader.cpp.
References _handler, and OdsDocHandlerInterface::endLine().
Referenced by QXmlStreamReaderContentXml::readTableRow().
|
private |
Definition at line 159 of file odsdocreader.cpp.
References _handler, and OdsDocHandlerInterface::endSheet().
| void OdsDocReader::parse | ( | QFile & | odsFile | ) |
Definition at line 49 of file odsdocreader.cpp.
References parse().
Referenced by parse().
| void OdsDocReader::parse | ( | QIODevice * | p_inputstream | ) |
Definition at line 74 of file odsdocreader.cpp.
References _p_quaZip, endDocument(), and QXmlStreamReaderContentXml::read().
|
private |
Definition at line 177 of file odsdocreader.cpp.
References _handler, and OdsDocHandlerInterface::setCell().
Referenced by setInsideCell().
|
private |
Definition at line 130 of file odsdocreader.cpp.
References _column_number, OdsCell::getDateTimeValue(), OdsCell::getDoubleValue(), OdsCell::getOfficeValueType(), OdsCell::getStringValue(), OdsCell::isDate(), OdsCell::isDouble(), OdsCell::isString(), setCell(), and OdsCell::toString().
Referenced by QXmlStreamReaderContentXml::readTableLine().
|
private |
Definition at line 123 of file odsdocreader.cpp.
References _column_number, and startLine().
|
private |
Definition at line 165 of file odsdocreader.cpp.
References _handler, and OdsDocHandlerInterface::startLine().
Referenced by QXmlStreamReaderContentXml::readTableRow(), and startInsideLine().
|
private |
Definition at line 153 of file odsdocreader.cpp.
References _handler, and OdsDocHandlerInterface::startSheet().
Referenced by QXmlStreamReaderContentXml::readTable().
|
private |
Definition at line 67 of file odsdocreader.h.
Referenced by setInsideCell(), and startInsideLine().
|
private |
Definition at line 69 of file odsdocreader.h.
Referenced by endDocument(), endLine(), endSheet(), setCell(), startLine(), and startSheet().
|
private |
Definition at line 65 of file odsdocreader.h.
Referenced by ~OdsDocReader(), and parse().
|
private |
Definition at line 31 of file odsdocreader.h.