libodsstream
Public Member Functions | List of all members
TsvOutputStream Class Reference
Inheritance diagram for TsvOutputStream:
TsvDirectoryWriter CalcWriterInterface

Public Member Functions

 TsvOutputStream (QTextStream &otxtstream)
 
void close () override
 
virtual void writeSheet (const QString &sheetName) override
 open a new sheet More...
 
void setNoSheetName (bool no_sheet_name)
 toggle writing sheet name in text stream to off usefull if you only need one sheet the wrisheet function can also be overloaded in a derived class
 
- Public Member Functions inherited from TsvDirectoryWriter
 TsvDirectoryWriter (const QDir &directory)
 
void writeLine () override
 open a new line
 
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
 
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...
 
- Public Member Functions inherited from CalcWriterInterface
virtual void writeCell (unsigned int posInteger)
 write a positive integer in a cell More...
 
virtual OdsTableCellStyleRef getTableCellStyleRef (const OdsTableCellStyle &style)
 
virtual void setTableCellStyleRef (OdsTableCellStyleRef style_ref)
 
void clearTableCellStyleRef ()
 

Additional Inherited Members

- Protected Attributes inherited from TsvDirectoryWriter
QString _separator = "\t"
 
QString _end_of_line = "\n"
 
QTextStream * _p_otxtstream = nullptr
 
unsigned int numFloatPrecision = 12
 

Member Function Documentation

◆ writeSheet()

void TsvOutputStream::writeSheet ( const QString &  sheetName)
overridevirtual

open a new sheet

Parameters
sheetNamethe sheet name

Reimplemented from TsvDirectoryWriter.


The documentation for this class was generated from the following files: