Orcus
Loading...
Searching...
No Matches
Public Member Functions | List of all members
orcus::spreadsheet::import_styles Class Reference

#include <factory.hpp>

Inheritance diagram for orcus::spreadsheet::import_styles:
orcus::spreadsheet::iface::import_styles

Public Member Functions

 import_styles (styles &styles_store, string_pool &sp)
 
 import_styles (std::shared_ptr< import_factory_config > config, styles &styles_store, string_pool &sp)
 
virtual iface::import_font_stylestart_font_style () override
 
virtual iface::import_fill_stylestart_fill_style () override
 
virtual iface::import_border_stylestart_border_style () override
 
virtual iface::import_cell_protectionstart_cell_protection () override
 
virtual iface::import_number_formatstart_number_format () override
 
virtual iface::import_xfstart_xf (xf_category_t cat) override
 
virtual iface::import_cell_stylestart_cell_style () override
 
virtual void set_font_count (size_t n) override
 
virtual void set_fill_count (size_t n) override
 
virtual void set_border_count (size_t n) override
 
virtual void set_number_format_count (size_t n) override
 
virtual void set_xf_count (xf_category_t cat, size_t n) override
 
virtual void set_cell_style_count (size_t n) override
 
virtual import_font_stylestart_font_style ()=0
 
virtual import_fill_stylestart_fill_style ()=0
 
virtual import_border_stylestart_border_style ()=0
 
virtual import_cell_protectionstart_cell_protection ()=0
 
virtual import_number_formatstart_number_format ()=0
 
virtual import_xfstart_xf (xf_category_t cat)=0
 
virtual import_cell_stylestart_cell_style ()=0
 
virtual void set_font_count (size_t n)=0
 
virtual void set_fill_count (size_t n)=0
 
virtual void set_border_count (size_t n)=0
 
virtual void set_number_format_count (size_t n)=0
 
virtual void set_xf_count (xf_category_t cat, size_t n)=0
 
virtual void set_cell_style_count (size_t n)=0
 

Detailed Description

Wraps styles store. This is to be used by an import styles parser to populate the styles store.

Constructor & Destructor Documentation

◆ ~import_styles()

virtual orcus::spreadsheet::import_styles::~import_styles ( )
overridevirtual

Member Function Documentation

◆ set_border_count()

virtual void orcus::spreadsheet::import_styles::set_border_count ( size_t  n)
overridevirtual

Set the total number of border styles. This may be called before importing any of the border styles. This will give the implementer a chance to allocate storage. Note that it may not always be called.

Parameters
nnumber of border styles.

Implements orcus::spreadsheet::iface::import_styles.

◆ set_cell_style_count()

virtual void orcus::spreadsheet::import_styles::set_cell_style_count ( size_t  n)
overridevirtual

Set the total number of named cell styles. This may be called before importing any cell styles to give the implementer a chance to allocate storage. Note that it may not always be called.

Parameters
nnumber of named cell styles.

Implements orcus::spreadsheet::iface::import_styles.

◆ set_fill_count()

virtual void orcus::spreadsheet::import_styles::set_fill_count ( size_t  n)
overridevirtual

Set the total number of fill styles. This may be called before importing any of the fill styles. This will give the implementer a chance to allocate storage. Note that it may not always be called.

Parameters
nnumber of fill styles.

Implements orcus::spreadsheet::iface::import_styles.

◆ set_font_count()

virtual void orcus::spreadsheet::import_styles::set_font_count ( size_t  n)
overridevirtual

Set the total number of font styles. This may be called before importing any of the font styles. This will give the implementer a chance to allocate storage. Note that it may not always be called.

Parameters
nnumber of font styles.

Implements orcus::spreadsheet::iface::import_styles.

◆ set_number_format_count()

virtual void orcus::spreadsheet::import_styles::set_number_format_count ( size_t  n)
overridevirtual

Set the total number of number format styles. This may be called before importing any of the number format styles. This will give the implementer a chance to allocate storage. Note that it may not always be called.

Parameters
nnumber of number format styles.

Implements orcus::spreadsheet::iface::import_styles.

◆ set_xf_count()

virtual void orcus::spreadsheet::import_styles::set_xf_count ( xf_category_t  cat,
size_t  n 
)
overridevirtual

Set the total number of cell format styles for a specified cell format category. This may be called before importing any of the cell format styles for the specified category. This will give the implementer a chance to allocate storage. Note that it may not always be called.

Parameters
catcell format category.
nnumber of cell formats styles for the specified cell format category.

Implements orcus::spreadsheet::iface::import_styles.

◆ start_border_style()

virtual iface::import_border_style * orcus::spreadsheet::import_styles::start_border_style ( )
overridevirtual

Signal the start of the import of border style attributes, and return a pointer to the interface instance for importing the attributes.

Note
Note that the import_styles implementer must return a non-null pointer.
Returns
pointer to the interface instance for importing border style attributes.

Implements orcus::spreadsheet::iface::import_styles.

◆ start_cell_protection()

virtual iface::import_cell_protection * orcus::spreadsheet::import_styles::start_cell_protection ( )
overridevirtual

Signal the start of the import of cell protection attributes, and return a pointer to the interface instance for importing the attributes.

Note
Note that the import_styles implementer must return a non-null pointer.
Returns
pointer to the interface instance for importing cell protection attributes.

Implements orcus::spreadsheet::iface::import_styles.

◆ start_cell_style()

virtual iface::import_cell_style * orcus::spreadsheet::import_styles::start_cell_style ( )
overridevirtual

Signal the start of the import of named cell style information, and return a pointer to the interface instance for importing the information.

Note
Note that the import_styles implementer must return a non-null pointer.
Returns
pointer to the interface instance for importing named cell style information.

Implements orcus::spreadsheet::iface::import_styles.

◆ start_fill_style()

virtual iface::import_fill_style * orcus::spreadsheet::import_styles::start_fill_style ( )
overridevirtual

Signal the start of the import of fill style attributes, and return a pointer to the interface instance for importing the attributes.

Note
Note that the import_styles implementer must return a non-null pointer.
Returns
pointer to the interface instance for importing fill style attributes.

Implements orcus::spreadsheet::iface::import_styles.

◆ start_font_style()

virtual iface::import_font_style * orcus::spreadsheet::import_styles::start_font_style ( )
overridevirtual

Signal the start of the import of font style attributes, and return a pointer to the interface instance for importing the attributes.

Note
Note that the import_styles implementer must return a non-null pointer.
Returns
pointer to the interface instance for importing font style attributes.

Implements orcus::spreadsheet::iface::import_styles.

◆ start_number_format()

virtual iface::import_number_format * orcus::spreadsheet::import_styles::start_number_format ( )
overridevirtual

Signal the start of the import of number format attributes and return a pointer to the interface instance for importing the attributes.

Note
Note that the import_styles implementer must return a non-null pointer.
Returns
pointer to the interface instance for importing number format attributes.

Implements orcus::spreadsheet::iface::import_styles.

◆ start_xf()

virtual iface::import_xf * orcus::spreadsheet::import_styles::start_xf ( xf_category_t  cat)
overridevirtual

Signal the start of the import of cell format (xf) indices that each reference different format attributes in their respective pools, and return a pointer to the interface instance for importing the indices.

Note
Note that the import_styles implementer must return a non-null pointer.
Returns
pointer to the interface instance for importing cell format (xf) indices.

Implements orcus::spreadsheet::iface::import_styles.