1 #ifndef __SIMPLE_XLSX_DEF_H__
2 #define __SIMPLE_XLSX_DEF_H__
19 typedef std::wofstream _tofstream;
20 typedef std::wstring _tstring;
21 typedef std::wostringstream _tstringstream;
22 typedef std::wostream _tstream;
24 typedef std::ofstream _tofstream;
25 typedef std::string _tstring;
26 typedef std::ostringstream _tstringstream;
27 typedef std::ostream _tstream;
30 #define SIMPLE_XLSX_VERSION _T("0.19")
32 namespace SimpleXlsx {
54 BORDER_MEDIUM_DASH_DOT,
56 BORDER_MEDIUM_DASH_DOT_DOT,
91 PATTERN_LIGHT_TRELLIS,
114 NUMSTYLE_GENERAL = 0,
117 NUMSTYLE_EXPONENTIAL,
127 NUMSTYLE_COLOR_DEFAULT = 0,
128 NUMSTYLE_COLOR_BLACK,
129 NUMSTYLE_COLOR_GREEN,
130 NUMSTYLE_COLOR_WHITE,
132 NUMSTYLE_COLOR_MAGENTA,
133 NUMSTYLE_COLOR_YELLOW,
155 name = _T(
"Calibri");
161 bool operator==(
const Font& _font)
const {
162 return (
size == _font.size &&
name == _font.name &&
theme == _font.theme &&
187 bool operator==(
const Fill& _fill)
const {
210 bool operator==(
const BorderItem& _borderItem)
const {
211 return (
color == _borderItem.color &&
style == _borderItem.style);
239 bool operator==(
const Border& _border)
const {
241 left == _border.left &&
right == _border.right &&
242 bottom == _border.bottom &&
top == _border.top);
277 bool operator==(
const NumFormat& _num)
const {
349 CellDataStr(
const TCHAR *pStr) : value(pStr), style_id(0) {}
350 CellDataStr(
const _tstring &_str) : value(_str), style_id(0) {}
354 style_id = obj.style_id;
379 style_id = obj.style_id;
395 CellDataInt(int32_t _val) : value(_val), style_id(0) {}
399 style_id = obj.style_id;
415 CellDataUInt(uint32_t _val) : value(_val), style_id(0) {}
419 style_id = obj.style_id;
435 CellDataDbl(
double _val) : value(_val), style_id(0) {}
439 style_id = obj.style_id;
455 CellDataFlt(
float _val) : value(_val), style_id(0) {}
459 style_id = obj.style_id;
494 bool operator < (
const Comment& _comm)
const {
501 #endif // __SIMPLE_XLSX_DEF_H__