import_number_format¶
Defined in header: <orcus/spreadsheet/import_interface_styles.hpp>
-
class import_number_format¶
Interface for importing number format items.
Public Functions
-
virtual ~import_number_format()¶
-
virtual void set_identifier(std::size_t id) = 0¶
Set the integral identifier of a number format.
- Todo:
Perhaps when this method is called, the commit() method of the corresponding item should return the value set in this method instead.
Note
This is specific to xlsx format. In xlsx, this identifier gets used to reference number formats instead of the identifier returned by the commit() method.
- Parameters:
id – integral indentifier of a number format.
-
virtual void set_code(std::string_view s) = 0¶
Set the number format code.
- Parameters:
s – number format code.
-
virtual size_t commit() = 0¶
Commit the number format item in the current buffer.
- Todo:
Look into returning the identifier set through the set_identifier() method.
- Returns:
index of the committed number format item, to be passed on to the import_xf::set_number_format() method as its argument.
-
virtual ~import_number_format()¶