|
odsstream
|
Public Member Functions | |
| TsvDirectoryWriter (const QDir &directory) | |
| virtual void | close () override |
| virtual void | writeSheet (const QString &sheetName) override |
| open a new sheet More... | |
| void | writeLine () override |
| open a new line More... | |
| void | writeCell (const char *) override |
| write a text cell More... | |
| void | writeCell (const QString &) override |
| write a text cell More... | |
| void | writeEmptyCell () override |
| write an empty cell More... | |
| void | writeCell (std::size_t) override |
| write an unsigned integer in a cell More... | |
| void | writeCell (int) override |
| write an integer in a cell More... | |
| void | writeCell (float) override |
| write a float in a cell More... | |
| void | writeCell (double) override |
| write a double in a cell More... | |
| void | writeCellPercentage (double value) override |
| write a double as a percentage More... | |
| void | writeCell (bool) override |
| write a boolean in a cell More... | |
| void | writeCell (const QDate &) override |
| write a date in a cell More... | |
| void | writeCell (const QDateTime &) override |
| write a timestamp in a cell More... | |
| void | writeCell (const QUrl &, const QString &) override |
| write a text cell with an URL link More... | |
| void | setCellAnnotation (const QString &annotation) override |
| set annotation to write in the next cell More... | |
| void | setSeparator (TsvSeparator separator) |
| sets the separator to use between values (cells) More... | |
| TsvSeparator | getSeparator () const |
| get the separator used between values (cells) More... | |
| bool | setQuoteStrings (bool quote_strings) |
| set a flag to quote strings More... | |
| bool | isQuoteStrings () const |
| tells if the quote string flag is enabled | |
| bool | setFlushLines (bool flushOk) |
| enable a physical flush on device at each new line enables this if you want to ensure that each line is written. This costs a little overhead More... | |
| bool | isFlushLines () const |
| tells if the flush lines flag is enabled | |
Public Member Functions inherited from CalcWriterInterface | |
| virtual void | close ()=0 |
| virtual void | writeSheet (const QString &sheetName)=0 |
| open a new sheet More... | |
| virtual void | writeLine ()=0 |
| open a new line More... | |
| virtual void | writeCell (const char *cell_text)=0 |
| write a text cell More... | |
| virtual void | writeCell (const QString &cell_text)=0 |
| write a text cell More... | |
| virtual void | writeEmptyCell ()=0 |
| write an empty cell More... | |
| virtual void | writeCell (std::size_t number)=0 |
| write an unsigned integer in a cell More... | |
| virtual void | writeCell (int number)=0 |
| write an integer in a cell More... | |
| virtual void | writeCell (float number)=0 |
| write a float in a cell More... | |
| virtual void | writeCell (double number)=0 |
| write a double in a cell More... | |
| virtual void | writeCellPercentage (double value)=0 |
| write a double as a percentage More... | |
| virtual void | writeCell (bool true_or_false)=0 |
| write a boolean in a cell More... | |
| virtual void | writeCell (const QDate &date)=0 |
| write a date in a cell More... | |
| virtual void | writeCell (const QDateTime &datetime)=0 |
| write a timestamp in a cell More... | |
| virtual void | writeCell (const QUrl &url_link, const QString &text)=0 |
| write a text cell with an URL link More... | |
| virtual OdsTableCellStyleRef | getTableCellStyleRef (const OdsTableCellStyle &style) |
| virtual void | setTableCellStyleRef (OdsTableCellStyleRef style_ref) |
| void | clearTableCellStyleRef () |
| virtual void | setCellAnnotation (const QString &annotation)=0 |
| set annotation to write in the next cell More... | |
| virtual void | addColorScale (const OdsColorScale &ods_color_scale) |
| apply solor scale conditional format on a cell range More... | |
| virtual QString | getOdsCellCoordinate () |
| get the last written cell coordinate in ODS coordinate format get the coordinate of the last written cell or an empty string if the writer is not an OdsDocWriter More... | |
| virtual void | setCurrentOdsTableSettings (const OdsTableSettings &settings) |
| set ODS table settings of the current sheet (table) More... | |
| virtual void | writeCellVariant (const QVariant &var) |
| write a cell for a given QVariant More... | |
Protected Member Functions | |
| void | writeRawCell (const QString &text) |
| void | initializeSheet () |
Protected Attributes | |
| QString | m_separator = "\t" |
| QString | _end_of_line = "\n" |
| QTextStream * | mpa_otxtstream = nullptr |
| unsigned int | numFloatPrecision = 12 |
|
overridevirtual |
Implements CalcWriterInterface.
| TsvSeparator TsvDirectoryWriter::getSeparator | ( | ) | const |
get the separator used between values (cells)
|
inlineoverridevirtual |
set annotation to write in the next cell
| annotation | any comment on this cell |
Implements CalcWriterInterface.
| bool TsvDirectoryWriter::setFlushLines | ( | bool | flushOk | ) |
enable a physical flush on device at each new line enables this if you want to ensure that each line is written. This costs a little overhead
| bool | if true, lines will be flushed, choose false otherwise |
| bool TsvDirectoryWriter::setQuoteStrings | ( | bool | quote_strings | ) |
set a flag to quote strings
| bool | if true, strings will be quoted, choose false otherwise |
| void TsvDirectoryWriter::setSeparator | ( | TsvSeparator | separator | ) |
sets the separator to use between values (cells)
| TsvSeparator | enumeration to choose between possible choices |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
write a text cell with an URL link
| url_link | URL link |
| text | text to write |
Implements CalcWriterInterface.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
write an unsigned integer in a cell
| number | integer to write |
Implements CalcWriterInterface.
|
overridevirtual |
write a double as a percentage
| number | double to write must be a ratio (0.5 == 50%) |
Implements CalcWriterInterface.
|
overridevirtual |
write an empty cell
Implements CalcWriterInterface.
|
overridevirtual |
open a new line
Implements CalcWriterInterface.
|
overridevirtual |
open a new sheet
| sheetName | the sheet name |
Implements CalcWriterInterface.
Reimplemented in TsvOutputStream, and ZipTsvOutputStream.