2016-08-16 12:23:49 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstddef>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include <xlnt/utils/optional.hpp>
|
|
|
|
|
|
|
|
namespace xlnt {
|
|
|
|
|
|
|
|
class alignment;
|
|
|
|
class border;
|
|
|
|
class fill;
|
|
|
|
class font;
|
|
|
|
class number_format;
|
|
|
|
class protection;
|
|
|
|
|
|
|
|
namespace detail {
|
|
|
|
|
|
|
|
struct stylesheet;
|
|
|
|
|
|
|
|
struct style_impl
|
|
|
|
{
|
|
|
|
stylesheet *parent;
|
|
|
|
|
|
|
|
std::string name;
|
|
|
|
std::size_t formatting_record_id;
|
|
|
|
|
2016-08-18 19:34:18 +08:00
|
|
|
optional<bool> custom_builtin;
|
2016-08-16 12:23:49 +08:00
|
|
|
bool hidden_style;
|
|
|
|
|
2016-08-18 19:34:18 +08:00
|
|
|
optional<std::size_t> builtin_id;
|
2016-08-16 12:23:49 +08:00
|
|
|
optional<std::size_t> outline_style;
|
|
|
|
|
2016-11-08 10:11:30 +08:00
|
|
|
optional<std::size_t> alignment_id;
|
|
|
|
bool alignment_applied = false;
|
|
|
|
|
|
|
|
optional<std::size_t> border_id;
|
|
|
|
bool border_applied = false;
|
|
|
|
|
|
|
|
optional<std::size_t> fill_id;
|
|
|
|
bool fill_applied = false;
|
|
|
|
|
|
|
|
optional<std::size_t> font_id;
|
|
|
|
bool font_applied = false;
|
|
|
|
|
|
|
|
optional<std::size_t> number_format_id;
|
|
|
|
bool number_format_applied = false;
|
|
|
|
|
|
|
|
optional<std::size_t> protection_id;
|
|
|
|
bool protection_applied = false;
|
2017-02-15 05:02:51 +08:00
|
|
|
|
2017-02-19 10:33:59 +08:00
|
|
|
bool pivot_button_ = false;
|
|
|
|
bool quote_prefix_ = false;
|
2016-08-16 12:23:49 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace detail
|
|
|
|
} // namespace xlnt
|