#pragma once #include #include #include #include namespace xlnt { class border; class fill; class font; namespace detail { struct stylesheet; struct worksheet_impl; struct conditional_format_impl { stylesheet *parent; worksheet_impl *target_sheet; bool operator==(const conditional_format_impl& rhs) const { // not comparing parent or target sheet return target_range == rhs.target_range && priority == rhs.priority && differential_format_id == rhs.differential_format_id && when == rhs.when && border_id == rhs.border_id && fill_id == rhs.fill_id && font_id == rhs.font_id; } range_reference target_range; std::size_t priority; std::size_t differential_format_id; condition when; optional border_id; optional fill_id; optional font_id; }; } // namespace detail } // namespace xlnt