Orcus
Loading...
Searching...
No Matches
orcus::spreadsheet::iface::import_number_format Class Referenceabstract

#include <import_interface_styles.hpp>

Public Member Functions

virtual void set_identifier (std::size_t id)=0
virtual void set_code (std::string_view s)=0
virtual size_t commit ()=0

Detailed Description

Interface for importing number format items.

Member Function Documentation

◆ commit()

virtual size_t orcus::spreadsheet::iface::import_number_format::commit ( )
pure virtual

Commit the number format item in the current buffer.

Returns
index of the committed number format item, to be passed on to the import_xf::set_number_format() method as its argument.
Todo
Look into returning the identifier set through the set_identifier() method.

◆ set_code()

virtual void orcus::spreadsheet::iface::import_number_format::set_code ( std::string_view s)
pure virtual

Set the number format code.

Parameters
snumber format code.

◆ set_identifier()

virtual void orcus::spreadsheet::iface::import_number_format::set_identifier ( std::size_t id)
pure virtual

Set the integral identifier of a number format.

Parameters
idintegral indentifier of a number format.
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.
Todo
Perhaps when this method is called, the commit() method of the corresponding item should return the value set in this method instead.