|
libodsstream
Library for mass spectrometry
|
#include <contentxml.h>
Public Member Functions | |
| ContentXml (QuaZip *p_quaZip, SettingsXml *p_settings_xml) | |
| virtual | ~ContentXml () |
| void | writeSheet (const QString &sheetName) |
| void | writeCell (double value, const QString &annotation) |
| void | writeCell (std::size_t value, const QString &annotation) |
| void | writeCell (int value, const QString &annotation) |
| void | writeCell (const QString &value, const QString &annotation) |
| void | writeCell (const QDate &, const QString &annotation) |
| void | writeCell (const QDateTime &, const QString &annotation) |
| void | writeCell (const QUrl &, const QString &, const QString &annotation) |
| void | writeCell (bool value, const QString &annotation) |
| void | writeCellPercentage (double value, const QString &annotation) |
| void | writeEmptyCell (const QString &annotation) |
| void | writeLine () |
| void | close () |
| OdsTableCellStyleRef | getTableCellStyleRef (const OdsTableCellStyle &style) |
| void | setTableCellStyleRef (OdsTableCellStyleRef style_ref) |
| void | addColorScale (const OdsColorScale &ods_color_scale) |
| QString | getCellCoordinate () |
Private Member Functions | |
| void | writeCellFloat (const QString &value, const QString &representation, const QString &annotation) |
| void | writeSheet () |
| void | writeEndTable () |
| std::vector< OdsColorScale > | getOdsColorScaleListBySheetName (const QString &sheet_name) |
| void | WriteHeader () |
| void | writeFontFaceDecls () |
| void | writeAutomaticStyles () |
| void | startSpreadsheet () |
| void | writeAnnotation (const QString &annotation) |
Private Attributes | |
| QuaZipFile | _outFile |
| QuaZip * | _p_quaZip |
| QXmlStreamWriter * | _p_writer |
| bool | _tableStarted |
| bool | _tableRowStarted |
| bool | _automatic_styles_writed = false |
| bool | _spreadsheet_started = false |
| std::vector< OdsTableCellStyle > | _style2write |
| std::vector< OdsTableCellStyleRef > | _style_ref_list |
| OdsTableCellStyleRefInternal * | _current_style_ref = nullptr |
| std::vector< OdsColorScale > | _color_scale_list |
| QString | _current_sheet_name |
| unsigned int | _row_pos = 0 |
| unsigned int | _col_pos = 0 |
| SettingsXml * | _p_settings_xml |
Static Private Attributes | |
| static QString | _xsdNamespaceURI = "http://www.w3.org/2001/XMLSchema" |
| static QString | _xsiNamespaceURI |
Definition at line 34 of file contentxml.h.
| ContentXml::ContentXml | ( | QuaZip * | p_quaZip, |
| SettingsXml * | p_settings_xml | ||
| ) |
Definition at line 30 of file contentxml.cpp.
References _outFile, _p_settings_xml, _p_writer, and WriteHeader().
|
virtual |
Definition at line 41 of file contentxml.cpp.
| void ContentXml::addColorScale | ( | const OdsColorScale & | ods_color_scale | ) |
Definition at line 988 of file contentxml.cpp.
References _color_scale_list.
Referenced by OdsDocWriter::addColorScale().
| void ContentXml::close | ( | ) |
Definition at line 338 of file contentxml.cpp.
References _outFile, _p_writer, startSpreadsheet(), writeAutomaticStyles(), and writeEndTable().
Referenced by OdsDocWriter::close().
| QString ContentXml::getCellCoordinate | ( | ) |
Definition at line 995 of file contentxml.cpp.
References _col_pos, _current_sheet_name, and _row_pos.
Referenced by OdsDocWriter::getOdsCellCoordinate().
|
private |
Definition at line 353 of file contentxml.cpp.
References _color_scale_list.
Referenced by writeEndTable().
| OdsTableCellStyleRef ContentXml::getTableCellStyleRef | ( | const OdsTableCellStyle & | style | ) |
Definition at line 953 of file contentxml.cpp.
References _automatic_styles_writed, _style2write, and _style_ref_list.
Referenced by OdsDocWriter::getTableCellStyleRef().
| void ContentXml::setTableCellStyleRef | ( | OdsTableCellStyleRef | style_ref | ) |
Definition at line 971 of file contentxml.cpp.
References _current_style_ref, and _style_ref_list.
Referenced by OdsDocWriter::setTableCellStyleRef().
|
private |
Definition at line 142 of file contentxml.cpp.
References _p_writer, _spreadsheet_started, and MetaXml::getNamespaceURI().
Referenced by close(), writeCell(), writeCell(), writeCell(), writeCell(), writeCellFloat(), writeCellPercentage(), writeEmptyCell(), writeLine(), and writeSheet().
|
private |
Definition at line 668 of file contentxml.cpp.
References _p_writer, and MetaXml::getNamespaceURI().
Referenced by writeCell(), writeCell(), writeCell(), writeCell(), writeCellFloat(), writeCellPercentage(), and writeEmptyCell().
|
private |
Definition at line 157 of file contentxml.cpp.
References _automatic_styles_writed, _p_writer, _style2write, _style_ref_list, and MetaXml::getNamespaceURI().
Referenced by close(), writeCell(), writeCell(), writeCell(), writeCell(), writeCellFloat(), writeCellPercentage(), writeEmptyCell(), writeLine(), and writeSheet().
| void ContentXml::writeCell | ( | bool | value, |
| const QString & | annotation | ||
| ) |
Definition at line 795 of file contentxml.cpp.
References _col_pos, _current_style_ref, _p_writer, OdsTableCellStyleRefInternal::_ref_str, _tableRowStarted, MetaXml::getNamespaceURI(), startSpreadsheet(), writeAnnotation(), writeAutomaticStyles(), and writeLine().
| void ContentXml::writeCell | ( | const QDate & | date, |
| const QString & | annotation | ||
| ) |
Definition at line 788 of file contentxml.cpp.
References writeCell().
| void ContentXml::writeCell | ( | const QDateTime & | cal, |
| const QString & | annotation | ||
| ) |
Definition at line 732 of file contentxml.cpp.
References _col_pos, _current_style_ref, _p_writer, OdsTableCellStyleRefInternal::_ref_str, _tableRowStarted, MetaXml::getNamespaceURI(), startSpreadsheet(), writeAnnotation(), writeAutomaticStyles(), and writeLine().
| void ContentXml::writeCell | ( | const QString & | value, |
| const QString & | annotation | ||
| ) |
Definition at line 689 of file contentxml.cpp.
References _col_pos, _current_style_ref, _p_writer, OdsTableCellStyleRefInternal::_ref_str, _tableRowStarted, MetaXml::getNamespaceURI(), startSpreadsheet(), writeAnnotation(), writeAutomaticStyles(), and writeLine().
| void ContentXml::writeCell | ( | const QUrl & | theUri, |
| const QString & | description, | ||
| const QString & | annotation | ||
| ) |
Definition at line 884 of file contentxml.cpp.
References _col_pos, _current_style_ref, _p_writer, OdsTableCellStyleRefInternal::_ref_str, _tableRowStarted, MetaXml::getNamespaceURI(), startSpreadsheet(), writeAnnotation(), writeAutomaticStyles(), and writeLine().
| void ContentXml::writeCell | ( | double | value, |
| const QString & | annotation | ||
| ) |
Definition at line 498 of file contentxml.cpp.
References writeCellFloat().
Referenced by OdsDocWriter::writeCell(), OdsDocWriter::writeCell(), OdsDocWriter::writeCell(), writeCell(), OdsDocWriter::writeCell(), OdsDocWriter::writeCell(), OdsDocWriter::writeCell(), OdsDocWriter::writeCell(), OdsDocWriter::writeCell(), OdsDocWriter::writeCell(), and OdsDocWriter::writeCell().
| void ContentXml::writeCell | ( | int | value, |
| const QString & | annotation | ||
| ) |
Definition at line 513 of file contentxml.cpp.
References writeCellFloat().
| void ContentXml::writeCell | ( | std::size_t | value, |
| const QString & | annotation | ||
| ) |
Definition at line 506 of file contentxml.cpp.
References writeCellFloat().
|
private |
Definition at line 574 of file contentxml.cpp.
References _col_pos, _current_style_ref, _p_writer, OdsTableCellStyleRefInternal::_ref_str, _tableRowStarted, MetaXml::getNamespaceURI(), startSpreadsheet(), writeAnnotation(), writeAutomaticStyles(), and writeLine().
Referenced by writeCell(), writeCell(), and writeCell().
| void ContentXml::writeCellPercentage | ( | double | value, |
| const QString & | annotation | ||
| ) |
Definition at line 521 of file contentxml.cpp.
References _col_pos, _current_style_ref, _p_writer, OdsTableCellStyleRefInternal::_ref_str, _tableRowStarted, MetaXml::getNamespaceURI(), startSpreadsheet(), writeAnnotation(), writeAutomaticStyles(), and writeLine().
Referenced by OdsDocWriter::writeCellPercentage().
| void ContentXml::writeEmptyCell | ( | const QString & | annotation | ) |
Definition at line 626 of file contentxml.cpp.
References _col_pos, _current_style_ref, _p_writer, OdsTableCellStyleRefInternal::_ref_str, _tableRowStarted, MetaXml::getNamespaceURI(), startSpreadsheet(), writeAnnotation(), writeAutomaticStyles(), and writeLine().
Referenced by OdsDocWriter::writeEmptyCell().
|
private |
Definition at line 369 of file contentxml.cpp.
References _col_pos, _current_sheet_name, _p_writer, _row_pos, _tableRowStarted, _tableStarted, MetaXml::getNamespaceURI(), and getOdsColorScaleListBySheetName().
Referenced by close(), and writeSheet().
|
private |
<style:font-face style:font-family-generic="swiss" style:font-pitch="variable" style:name="Arial" svg:font-family="Arial"/>
Definition at line 118 of file contentxml.cpp.
References _p_writer, and MetaXml::getNamespaceURI().
Referenced by WriteHeader().
|
private |
Definition at line 46 of file contentxml.cpp.
References MetaXml::_hash_namespace_uri, _p_writer, _tableRowStarted, _tableStarted, _xsdNamespaceURI, _xsiNamespaceURI, MetaXml::getNamespaceURI(), and writeFontFaceDecls().
Referenced by ContentXml().
| void ContentXml::writeLine | ( | ) |
Definition at line 462 of file contentxml.cpp.
References _col_pos, _p_writer, _row_pos, _tableRowStarted, _tableStarted, MetaXml::getNamespaceURI(), startSpreadsheet(), writeAutomaticStyles(), and writeSheet().
Referenced by writeCell(), writeCell(), writeCell(), writeCell(), writeCellFloat(), writeCellPercentage(), writeEmptyCell(), and OdsDocWriter::writeLine().
|
private |
Definition at line 492 of file contentxml.cpp.
References _p_settings_xml, SettingsXml::getDefaultSheetName(), and writeSheet().
Referenced by writeLine(), and writeSheet().
| void ContentXml::writeSheet | ( | const QString & | sheetName | ) |
Definition at line 422 of file contentxml.cpp.
References _col_pos, _current_sheet_name, _p_settings_xml, _p_writer, _row_pos, _tableStarted, SettingsXml::addSheetName(), MetaXml::getNamespaceURI(), startSpreadsheet(), writeAutomaticStyles(), and writeEndTable().
Referenced by OdsDocWriter::writeSheet().
|
private |
Definition at line 85 of file contentxml.h.
Referenced by getTableCellStyleRef(), and writeAutomaticStyles().
|
private |
Definition at line 96 of file contentxml.h.
Referenced by getCellCoordinate(), writeCell(), writeCell(), writeCell(), writeCell(), writeCellFloat(), writeCellPercentage(), writeEmptyCell(), writeEndTable(), writeLine(), and writeSheet().
|
private |
Definition at line 91 of file contentxml.h.
Referenced by addColorScale(), and getOdsColorScaleListBySheetName().
|
private |
Definition at line 92 of file contentxml.h.
Referenced by getCellCoordinate(), writeEndTable(), and writeSheet().
|
private |
Definition at line 89 of file contentxml.h.
Referenced by setTableCellStyleRef(), writeCell(), writeCell(), writeCell(), writeCell(), writeCellFloat(), writeCellPercentage(), and writeEmptyCell().
|
private |
Definition at line 73 of file contentxml.h.
Referenced by ContentXml(), and close().
|
private |
Definition at line 79 of file contentxml.h.
|
private |
Definition at line 97 of file contentxml.h.
Referenced by ContentXml(), writeSheet(), and writeSheet().
|
private |
Definition at line 80 of file contentxml.h.
Referenced by ContentXml(), close(), startSpreadsheet(), writeAnnotation(), writeAutomaticStyles(), writeCell(), writeCell(), writeCell(), writeCell(), writeCellFloat(), writeCellPercentage(), writeEmptyCell(), writeEndTable(), writeFontFaceDecls(), WriteHeader(), writeLine(), and writeSheet().
|
private |
Definition at line 95 of file contentxml.h.
Referenced by getCellCoordinate(), writeEndTable(), writeLine(), and writeSheet().
|
private |
Definition at line 86 of file contentxml.h.
Referenced by startSpreadsheet().
|
private |
Definition at line 87 of file contentxml.h.
Referenced by getTableCellStyleRef(), and writeAutomaticStyles().
|
private |
Definition at line 88 of file contentxml.h.
Referenced by getTableCellStyleRef(), setTableCellStyleRef(), and writeAutomaticStyles().
|
private |
Definition at line 84 of file contentxml.h.
Referenced by writeCell(), writeCell(), writeCell(), writeCell(), writeCellFloat(), writeCellPercentage(), writeEmptyCell(), writeEndTable(), WriteHeader(), and writeLine().
|
private |
Definition at line 82 of file contentxml.h.
Referenced by writeEndTable(), WriteHeader(), writeLine(), and writeSheet().
|
staticprivate |
Definition at line 75 of file contentxml.h.
Referenced by WriteHeader().
|
staticprivate |
Definition at line 76 of file contentxml.h.
Referenced by WriteHeader().