8 #ifndef ORCUS_SPREADSHEET_TYPES_HPP
9 #define ORCUS_SPREADSHEET_TYPES_HPP
11 #include "orcus/env.hpp"
18 namespace orcus {
namespace spreadsheet {
20 typedef int32_t row_t;
21 typedef int32_t col_t;
22 typedef int32_t sheet_t;
23 typedef uint8_t color_elem_t;
24 typedef uint16_t col_width_t;
25 typedef uint16_t row_height_t;
27 typedef uint32_t pivot_cache_id_t;
29 ORCUS_DLLPUBLIC col_width_t get_default_column_width();
30 ORCUS_DLLPUBLIC row_height_t get_default_row_height();
32 enum class error_value_t
44 enum class border_direction_t
56 enum class border_style_t
78 enum class strikethrough_style_t
90 enum class strikethrough_type_t
98 enum class strikethrough_width_t
108 enum class strikethrough_text_t
115 enum class formula_grammar_t
133 enum class underline_t
148 enum class underline_width_t
161 enum class underline_mode_t
167 enum class underline_type_t
176 underline_t underline_style;
177 underline_width_t underline_width;
178 underline_mode_t underline_mode;
179 underline_type_t underline_type;
182 enum class hor_alignment_t
193 enum class ver_alignment_t
208 enum class data_table_type_t
218 enum class totals_row_function_t
232 enum class conditional_format_t
243 enum class condition_operator_t
272 enum class condition_type_t
284 enum class condition_date_t
302 enum class databar_axis_t
309 enum class pivot_cache_group_by_t
343 ORCUS_DLLPUBLIC
bool operator== (
const range_t& left,
const range_t& right);
344 ORCUS_DLLPUBLIC
bool operator!= (
const range_t& left,
const range_t& right);
346 ORCUS_DLLPUBLIC std::ostream& operator<< (std::ostream& os,
const address_t& v);
347 ORCUS_DLLPUBLIC std::ostream& operator<< (std::ostream& os,
const range_t& v);
371 ORCUS_DLLPUBLIC totals_row_function_t to_totals_row_function_enum(
const char* p,
size_t n);
382 ORCUS_DLLPUBLIC pivot_cache_group_by_t to_pivot_cache_group_by_enum(
const char* p,
size_t n);
393 ORCUS_DLLPUBLIC error_value_t to_error_value_enum(
const char* p,
size_t n);
406 ORCUS_DLLPUBLIC
color_rgb_t to_color_rgb(
const char* p,
size_t n);
408 ORCUS_DLLPUBLIC std::ostream& operator<< (std::ostream& os, error_value_t ev);
409 ORCUS_DLLPUBLIC std::ostream& operator<< (std::ostream& os,
const color_rgb_t& color);