8 #ifndef INCLUDED_ORCUS_SPREADSHEET_STYLES_HPP
9 #define INCLUDED_ORCUS_SPREADSHEET_STYLES_HPP
11 #include "orcus/pstring.hpp"
12 #include "orcus/env.hpp"
13 #include "orcus/measurement.hpp"
14 #include "orcus/spreadsheet/types.hpp"
18 namespace orcus {
namespace spreadsheet {
28 color_t(color_elem_t _alpha, color_elem_t _red, color_elem_t _green, color_elem_t _blue);
32 bool operator==(
const color_t& other)
const;
33 bool operator!=(
const color_t& other)
const;
42 underline_t underline_style;
43 underline_width_t underline_width;
44 underline_mode_t underline_mode;
45 underline_type_t underline_type;
48 strikethrough_style_t strikethrough_style;
49 strikethrough_width_t strikethrough_width;
50 strikethrough_type_t strikethrough_type;
51 strikethrough_text_t strikethrough_text;
59 fill_pattern_t pattern_type;
124 ver_alignment_t ver_align;
125 bool apply_num_format:1;
129 bool apply_alignment:1;
130 bool apply_protection:1;
147 ORCUS_SPM_DLLPUBLIC std::ostream& operator<< (std::ostream& os,
const color_t& c);
152 std::unique_ptr<impl> mp_impl;
158 void reserve_font_store(
size_t n);
159 size_t append_font(
const font_t& font);
161 void reserve_fill_store(
size_t n);
162 size_t append_fill(
const fill_t& fill);
164 void reserve_border_store(
size_t n);
165 size_t append_border(
const border_t& border);
167 size_t append_protection(
const protection_t& protection);
169 void reserve_number_format_store(
size_t n);
172 void reserve_cell_style_format_store(
size_t n);
175 void reserve_cell_format_store(
size_t n);
178 void reserve_diff_cell_format_store(
size_t n);
181 void reserve_cell_style_store(
size_t n);
184 const font_t* get_font(
size_t index)
const;
185 const fill_t* get_fill(
size_t index)
const;
186 const border_t* get_border(
size_t index)
const;
190 const cell_format_t* get_cell_style_format(
size_t index)
const;
194 size_t get_font_count()
const;
195 size_t get_fill_count()
const;
196 size_t get_border_count()
const;
197 size_t get_protection_count()
const;
198 size_t get_number_format_count()
const;
199 size_t get_cell_formats_count()
const;
200 size_t get_cell_style_formats_count()
const;
201 size_t get_dxf_count()
const;
202 size_t get_cell_styles_count()
const;
Definition: pstring.hpp:28
Definition: styles.hpp:150
Definition: types.hpp:435
Definition: styles.hpp:68
Definition: styles.hpp:78
Definition: styles.hpp:137
Definition: styles.hpp:21
Definition: styles.hpp:58
Definition: styles.hpp:37
Definition: styles.hpp:92