Orcus
|
#include <import_interface.hpp>
Public Member Functions | |
virtual void | set_position (row_t row, col_t col)=0 |
virtual void | set_formula (formula_grammar_t grammar, std::string_view formula)=0 |
virtual void | set_shared_formula_index (size_t index)=0 |
virtual void | set_result_string (std::string_view value)=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 |
Interface for importing the properties of a single formula cell. A formula cell contains a formula expression that can be computed, and optionally a cached result of the last computation performed on the expression.
|
pure virtual |
Commit all the formula data to the specified cell.
|
pure virtual |
Set formula string to a cell.
grammar | grammar to use to compile the formula string into tokens. |
formula | formula expression to store. |
|
pure virtual |
Set the position of a cell.
row | row position. |
col | column position. |
|
pure virtual |
Set cached result of boolean type.
value | boolean value to set as a cached result. |
|
pure virtual |
Set empty value as a cached result.
|
pure virtual |
Set cached result of string type.
value | string result value. |
|
pure virtual |
Set cached result of numeric type.
value | numeric value to set as a cached result. |
|
pure virtual |
Register the formula stored in a cell as a shared formula to be shared with other cells, if the cell contains a formula string.
If a cell references a shared formula stored in another cell, only specify the index of that shared formula without specifying a formula string of its own. In that case, it is expected that another formula cell registers its formula string for that index.
index | shared string index to register the formula with. |