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;
|
|
|
|
|
|
|
|
optional<alignment> alignment;
|
|
|
|
optional<border> border;
|
|
|
|
optional<fill> fill;
|
|
|
|
optional<font> font;
|
|
|
|
optional<number_format> number_format;
|
|
|
|
optional<protection> protection;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace detail
|
|
|
|
} // namespace xlnt
|