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 fill_pattern_t
101 enum class strikethrough_style_t
113 enum class strikethrough_type_t
121 enum class strikethrough_width_t
131 enum class strikethrough_text_t
138 enum class formula_grammar_t
157 enum class underline_t
172 enum class underline_width_t
185 enum class underline_mode_t
191 enum class underline_type_t
200 underline_t underline_style;
201 underline_width_t underline_width;
202 underline_mode_t underline_mode;
203 underline_type_t underline_type;
206 enum class hor_alignment_t
217 enum class ver_alignment_t
232 enum class data_table_type_t
242 enum class totals_row_function_t
256 enum class conditional_format_t
267 enum class condition_operator_t
296 enum class condition_type_t
308 enum class condition_date_t
326 enum class databar_axis_t
333 enum class pivot_cache_group_by_t
367 ORCUS_DLLPUBLIC
bool operator== (
const range_t& left,
const range_t& right);
368 ORCUS_DLLPUBLIC
bool operator!= (
const range_t& left,
const range_t& right);
369 ORCUS_DLLPUBLIC
bool operator< (
const range_t& left,
const range_t& right);
370 ORCUS_DLLPUBLIC
bool operator> (
const range_t& left,
const range_t& right);
375 ORCUS_DLLPUBLIC std::ostream& operator<< (std::ostream& os,
const address_t& v);
376 ORCUS_DLLPUBLIC std::ostream& operator<< (std::ostream& os,
const range_t& v);
400 ORCUS_DLLPUBLIC totals_row_function_t to_totals_row_function_enum(
const char* p,
size_t n);
411 ORCUS_DLLPUBLIC pivot_cache_group_by_t to_pivot_cache_group_by_enum(
const char* p,
size_t n);
422 ORCUS_DLLPUBLIC error_value_t to_error_value_enum(
const char* p,
size_t n);
435 ORCUS_DLLPUBLIC
color_rgb_t to_color_rgb(
const char* p,
size_t n);
437 ORCUS_DLLPUBLIC std::ostream& operator<< (std::ostream& os, error_value_t ev);
438 ORCUS_DLLPUBLIC std::ostream& operator<< (std::ostream& os,
const color_rgb_t& color);