Orcus
Public Member Functions | Friends | List of all members
orcus::spreadsheet::document Class Reference

#include <document.hpp>

Inheritance diagram for orcus::spreadsheet::document:
orcus::iface::document_dumper

Public Member Functions

import_shared_stringsget_shared_strings ()
 
const import_shared_stringsget_shared_strings () const
 
import_stylesget_styles ()
 
const import_stylesget_styles () const
 
sheetappend_sheet (const pstring &sheet_name, row_t row_size, col_t col_size)
 
sheetget_sheet (const pstring &sheet_name)
 
sheetget_sheet (sheet_t sheet_pos)
 
const sheetget_sheet (sheet_t sheet_pos) const
 
void calc_formulas ()
 
void swap (document &other)
 
void clear ()
 
virtual void dump_flat (const std::string &outdir) const
 
virtual void dump_html (const ::std::string &outdir) const
 
virtual void dump_check (std::ostream &os) const
 
sheet_t get_sheet_index (const pstring &name) const
 
pstring get_sheet_name (sheet_t sheet_pos) const
 
size_t sheet_size () const
 
void set_origin_date (int year, int month, int day)
 
void set_formula_grammar (formula_grammar_t grammar)
 
formula_grammar_t get_formula_grammar () const
 
const ixion::formula_name_resolver * get_formula_name_resolver () const
 
ixion::model_context & get_model_context ()
 
const ixion::model_context & get_model_context () const
 
string_poolget_string_pool ()
 
void insert_table (table_t *p)
 
const table_tget_table (const pstring &name) const
 
void finalize ()
 
- Public Member Functions inherited from orcus::iface::document_dumper
virtual void dump_html (const std::string &outdir) const =0
 

Friends

class sheet
 

Detailed Description

Internal document representation used only for testing the filters. It uses ixion's model_context implementation to store raw cell values.

Member Function Documentation

void orcus::spreadsheet::document::clear ( )

Clear document content, to make it empty.

virtual void orcus::spreadsheet::document::dump_check ( std::ostream &  os) const
virtual

Dump document content to stdout in the special format used for content verification during unit test.

Implements orcus::iface::document_dumper.

virtual void orcus::spreadsheet::document::dump_flat ( const std::string &  outdir) const
virtual

Dump document content to specified output directory.

Implements orcus::iface::document_dumper.

virtual void orcus::spreadsheet::document::dump_html ( const ::std::string &  outdir) const
virtual

File name should not contain an extension. The final name will be [filename] + _ + [sheet name] + .html.

Parameters
filenamebase file name
void orcus::spreadsheet::document::insert_table ( table_t p)

Insert a new table object into the document. The document will take ownership of the inserted object after the call. The object will get inserted only when there is no pre-existing table object of the same name. The object not being inserted will be deleted.

Parameters
ptable object to insert.