Orcus
Loading...
Searching...
No Matches
orcus::spreadsheet::cell_format_t Struct Reference

#include <styles.hpp>

Public Member Functions

void reset ()

Public Attributes

std::size_t font
std::size_t fill
std::size_t border
std::size_t protection
std::size_t number_format
std::size_t style_xf
hor_alignment_t hor_align
ver_alignment_t ver_align
std::optional< bool > wrap_text
std::optional< bool > shrink_to_fit
bool apply_num_format:1
bool apply_font:1
bool apply_fill:1
bool apply_border:1
bool apply_alignment:1
bool apply_protection:1

Detailed Description

Format attributes for a single cell. It references the format entries via integer indices, with some exceptions.

Member Data Documentation

◆ border

std::size_t orcus::spreadsheet::cell_format_t::border

ID of a border style record.

◆ fill

std::size_t orcus::spreadsheet::cell_format_t::fill

ID of a fill style record.

◆ font

std::size_t orcus::spreadsheet::cell_format_t::font

ID of a font style record.

◆ hor_align

hor_alignment_t orcus::spreadsheet::cell_format_t::hor_align

Horizontal alignment of a cell.

◆ number_format

std::size_t orcus::spreadsheet::cell_format_t::number_format

ID for a number format record.

◆ protection

std::size_t orcus::spreadsheet::cell_format_t::protection

ID for a cell protection record.

◆ shrink_to_fit

std::optional<bool> orcus::spreadsheet::cell_format_t::shrink_to_fit

Flag on whether or not shrink to fit is enabled.

◆ style_xf

std::size_t orcus::spreadsheet::cell_format_t::style_xf

ID for a parent named style.

◆ ver_align

ver_alignment_t orcus::spreadsheet::cell_format_t::ver_align

Vertical alignment of a cell.

◆ wrap_text

std::optional<bool> orcus::spreadsheet::cell_format_t::wrap_text

Flag on whether or not wrap text is enabled.