Interface for importing named expressions or ranges.
This interface has two different methods for defining named expressions:
Generally speaking, set_named_expression() can be used to define both named expression and named range. However, the implementor may choose to apply a different syntax rule to parse an expression passed to set_named_range(), depending on the formula grammar defined via import_global_settings::set_default_formula_grammar(). For instance, the OpenDocument Spreadsheet format is known to use different syntax rules between named expressions and named ranges.
A named range is a special case of a named expression where the expression consists of only one single cell range token.
Here is a code example of how a named expression is defined:
iface->set_base_position(origin);
iface->set_named_expression("MyExpression", "SUM(A1:B10)+SUM(D1:D4)");
iface->commit();
Definition import_interface.hpp:305
Replace the above set_named_expression() call with set_named_range() if you wish to define a named range instead.