Document export

The following interfaces handle exporting of document content. Support for exporting is still very limited in orcus. It is currently used only by orcus_xml to re-export the content of an XML-mapped cell range as an XML output.

class export_sheet

Interface for exporting sheet contents.

Public Functions

virtual ~export_sheet() = 0
virtual void write_string(std::ostream &os, orcus::spreadsheet::row_t row, orcus::spreadsheet::col_t col) const = 0

Write the content of a cell to an output stream.

Parameters:
  • os – output stream to write the cell content to.

  • row – 0-based row position of a cell.

  • col – 0-based column position of a cell.

class export_factory

Entry-point interface for exporting document contents.

Subclassed by orcus::spreadsheet::export_factory

Public Functions

virtual ~export_factory() = 0
virtual const export_sheet *get_sheet(std::string_view sheet_name) const = 0

Obtain an interface for exporting sheet content.

Parameters:

sheet_name – name of the sheet to export.

Returns:

pointer to an interface for exporting sheet content.