import_global_settings
Defined in header: <orcus/spreadsheet/import_interface.hpp>
-
class import_global_settings
Interface for specifying global settings that may affect how the implementor should process certain values and properties.
Public Functions
-
virtual ~import_global_settings()
-
virtual void set_origin_date(int year, int month, int day) = 0
Set the date that is to be represented by a value of 0. All date values should be represented relative to this date. This may affect, for instance, values imported via import_sheet::set_date_time().
- Parameters:
year – 1-based value representing year
month – 1-based value representing month, varying from 1 through 12.
day – 1-based value representing day, varying from 1 through 31.
-
virtual void set_default_formula_grammar(formula_grammar_t grammar) = 0
Set the formula grammar to be used globally when parsing formulas if the grammar is not specified. This grammar should also be used when parsing range strings associated with shared formula ranges, array formula ranges, autofilter ranges etc.
Note that the import filter may specify what formula grammar to use locally when importing formula expressions for cells via import_formula::set_formula(), in which case the implementor should honor that one instead.
- Parameters:
grammar – default formula grammar to use globally unless otherwise specified.
-
virtual formula_grammar_t get_default_formula_grammar() const = 0
Get current global formula grammar. The import filter may use this method to query the current global formula grammar.
- Returns:
current default formula grammar.
-
virtual void set_character_set(character_set_t charset) = 0
Set the character set to use when parsing encoded string values.
- Parameters:
charset – character set to use when parsing encoded string values.
-
virtual ~import_global_settings()