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

#include <import_interface.hpp>

Public Member Functions

virtual void set_range (const range_t &range)=0
 
virtual void set_formula (formula_grammar_t grammar, std::string_view formula)=0
 
virtual void set_result_string (row_t row, col_t col, std::string_view value)=0
 
virtual void set_result_value (row_t row, col_t col, double value)=0
 
virtual void set_result_bool (row_t row, col_t col, bool value)=0
 
virtual void set_result_empty (row_t row, col_t col)=0
 
virtual void commit ()=0
 

Detailed Description

Interface for importing the properties of an array formula which occupies a range of cells. Cells that are part of an array formula share the same formula expression but may have different calculation results.

Member Function Documentation

◆ commit()

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

Push the properties of an array formula currently stored in the buffer to the sheet store.

◆ set_formula()

virtual void orcus::spreadsheet::iface::import_array_formula::set_formula ( formula_grammar_t  grammar,
std::string_view  formula 
)
pure virtual

Set the formula expression of an array formula.

Parameters
grammargrammar to use to compile the formula string into tokens.
formulaformula expression of an array formula.

◆ set_range()

virtual void orcus::spreadsheet::iface::import_array_formula::set_range ( const range_t range)
pure virtual

Set the range of an array formula.

Parameters
rangerange of an array formula.

◆ set_result_bool()

virtual void orcus::spreadsheet::iface::import_array_formula::set_result_bool ( row_t  row,
col_t  col,
bool  value 
)
pure virtual

Set a cached boolean result of a cell within the array formula range.

Parameters
row0-based row position of a cell.
col0-based column position of a cell.
valuecached boolean value to set.

◆ set_result_empty()

virtual void orcus::spreadsheet::iface::import_array_formula::set_result_empty ( row_t  row,
col_t  col 
)
pure virtual

Set an empty value as a cached result to a cell within the array formula range.

Parameters
row0-based row position of a cell.
col0-based column position of a cell.

◆ set_result_string()

virtual void orcus::spreadsheet::iface::import_array_formula::set_result_string ( row_t  row,
col_t  col,
std::string_view  value 
)
pure virtual

Set a cached string result of a cell within the array formula range.

Parameters
row0-based row position of a cell.
col0-based column position of a cell.
valuecached string value to set.

◆ set_result_value()

virtual void orcus::spreadsheet::iface::import_array_formula::set_result_value ( row_t  row,
col_t  col,
double  value 
)
pure virtual

Set a cached numeric result of a cell within the array formula range.

Parameters
row0-based row position of a cell.
col0-based column position of a cell.
valuecached numeric value to set.