Orcus
Public Member Functions | List of all members
orcus::spreadsheet::iface::import_formula Class Referenceabstract

Public Member Functions

virtual void set_position (row_t row, col_t col)=0
 
virtual void set_formula (formula_grammar_t grammar, const char *p, size_t n)=0
 
virtual void set_shared_formula_index (size_t index)=0
 
virtual void set_result_string (size_t sindex)=0
 
virtual void set_result_value (double value)=0
 
virtual void set_result_bool (bool value)=0
 
virtual void set_result_empty ()=0
 
virtual void commit ()=0
 

Member Function Documentation

◆ commit()

virtual void orcus::spreadsheet::iface::import_formula::commit ( )
pure virtual

Commit all the formula data to the specified cell.

◆ set_formula()

virtual void orcus::spreadsheet::iface::import_formula::set_formula ( formula_grammar_t  grammar,
const char *  p,
size_t  n 
)
pure virtual

Set formula string to the specified cell.

Parameters
grammargrammar to use to compile the formula string into tokens.
ppointer to the buffer where the formula string is stored.
nsize of the buffer where the formula string is stored.

◆ set_position()

virtual void orcus::spreadsheet::iface::import_formula::set_position ( row_t  row,
col_t  col 
)
pure virtual

Set the position of the cell.

Parameters
rowrow position.
colcolumn position.

◆ set_result_bool()

virtual void orcus::spreadsheet::iface::import_formula::set_result_bool ( bool  value)
pure virtual

Set cached result of boolean type.

Parameters
valueboolean value to set as a cached result.

◆ set_result_empty()

virtual void orcus::spreadsheet::iface::import_formula::set_result_empty ( )
pure virtual

Set empty value as a cached result.

◆ set_result_string()

virtual void orcus::spreadsheet::iface::import_formula::set_result_string ( size_t  sindex)
pure virtual

Set cached result of string type.

Parameters
sindexindex of the string value into the shared string pool.

◆ set_result_value()

virtual void orcus::spreadsheet::iface::import_formula::set_result_value ( double  value)
pure virtual

Set cached result of numeric type.

Parameters
valuenumeric value to set as a cached result.

◆ set_shared_formula_index()

virtual void orcus::spreadsheet::iface::import_formula::set_shared_formula_index ( size_t  index)
pure virtual

Register the formula as a shared string, to be shared with other cells.

Parameters
indexshared string index to register the formula with.