std::size_t number_format::id() const { if (!has_id()) { throw invalid_attribute(); } return id_.get(); }
page_setup worksheet::page_setup() const { if (!has_page_setup()) { throw invalid_attribute(); } return d_->page_setup_.get(); }
const style format::style() const { if (!has_style()) { throw invalid_attribute(); } return d_->parent->style(d_->style.get()); }
std::size_t number_format::id() const { if (!id_set_) { throw invalid_attribute(); } return id_; }
xlnt::number_format style::number_format() const { auto match = find_number_format(d_->parent->number_formats, d_->number_format_id.get()); if (match == d_->parent->number_formats.end()) { throw invalid_attribute(); } return *match; }