Styles
-
class styles
Stores various styles records such that they can be referenced via integer indices.
Public Functions
-
styles()
-
~styles()
-
void reserve_font_store(size_t n)
-
void reserve_fill_store(size_t n)
-
void reserve_border_store(size_t n)
-
std::size_t append_protection(const protection_t &protection)
-
void reserve_number_format_store(size_t n)
-
std::size_t append_number_format(const number_format_t &nf)
-
void reserve_cell_style_format_store(size_t n)
-
size_t append_cell_style_format(const cell_format_t &cf)
-
void reserve_cell_format_store(size_t n)
-
size_t append_cell_format(const cell_format_t &cf)
-
void reserve_diff_cell_format_store(size_t n)
-
size_t append_diff_cell_format(const cell_format_t &cf)
-
void reserve_cell_style_store(size_t n)
-
void append_cell_style(const cell_style_t &cs)
-
const protection_t *get_protection(size_t index) const
-
const number_format_t *get_number_format(size_t index) const
-
const cell_format_t *get_cell_format(size_t index) const
-
const cell_format_t *get_cell_style_format(size_t index) const
-
const cell_format_t *get_dxf_format(size_t index) const
-
const cell_style_t *get_cell_style(size_t index) const
-
const cell_style_t *get_cell_style_by_xf(size_t xfid) const
-
size_t get_font_count() const
-
size_t get_fill_count() const
-
size_t get_border_count() const
-
size_t get_protection_count() const
-
size_t get_number_format_count() const
-
size_t get_cell_formats_count() const
-
size_t get_cell_style_formats_count() const
-
size_t get_dxf_count() const
-
size_t get_cell_styles_count() const
-
void clear()
-
styles()
-
struct font_t
Font style record.
Public Members
-
std::optional<std::string_view> name
-
std::optional<std::string_view> name_asian
-
std::optional<std::string_view> name_complex
-
std::optional<double> size
-
std::optional<double> size_asian
-
std::optional<double> size_complex
-
std::optional<bool> bold
-
std::optional<bool> bold_asian
-
std::optional<bool> bold_complex
-
std::optional<bool> italic
-
std::optional<bool> italic_asian
-
std::optional<bool> italic_complex
-
std::optional<underline_t> underline_style
-
std::optional<underline_width_t> underline_width
-
std::optional<underline_mode_t> underline_mode
-
std::optional<underline_type_t> underline_type
-
std::optional<strikethrough_style_t> strikethrough_style
-
std::optional<strikethrough_width_t> strikethrough_width
-
std::optional<strikethrough_type_t> strikethrough_type
-
std::optional<strikethrough_text_t> strikethrough_text
-
struct hash
-
std::optional<std::string_view> name
-
struct fill_t
Fill style record.
-
struct border_attrs_t
Attributes for a single border.
-
struct border_t
Style record for the borders of a single cell.
Public Members
-
border_attrs_t top
-
border_attrs_t bottom
-
border_attrs_t left
-
border_attrs_t right
-
border_attrs_t diagonal
-
border_attrs_t diagonal_bl_tr
-
border_attrs_t diagonal_tl_br
-
border_attrs_t top
-
struct protection_t
Style record for cell protection attributes.
-
struct number_format_t
Style record for a number format.
Public Functions
-
number_format_t()
-
void reset()
-
bool operator==(const number_format_t &other) const noexcept
-
bool operator!=(const number_format_t &other) const noexcept
-
number_format_t()
-
struct cell_format_t
Format attributes for a single cell. It references the format entries via integer indices, with some exceptions.
Public Members
-
std::size_t font
ID of a font style record.
-
std::size_t fill
ID of a fill style record.
-
std::size_t border
ID of a border style record.
-
std::size_t protection
ID for a cell protection record.
-
std::size_t number_format
ID for a number format record.
-
std::size_t style_xf
ID for a parent named style.
-
hor_alignment_t hor_align
Horizontal alignment of a cell.
-
ver_alignment_t ver_align
Vertical alignment of a cell.
-
std::optional<bool> wrap_text
Flag on whether or not wrap text is enabled.
-
std::optional<bool> shrink_to_fit
Flag on whether or not shrink to fit is enabled.
-
bool apply_num_format
-
bool apply_font
-
bool apply_fill
-
bool apply_border
-
bool apply_alignment
-
bool apply_protection
-
std::size_t font
-
struct cell_style_t
Attributes of a named cell style.
Refer to orcus::spreadsheet::iface::import_cell_style for how the data members of this struct are used in practice.