Пример #1
0
std::size_t number_format::id() const
{
    if (!has_id())
    {
        throw invalid_attribute();
    }

    return id_.get();
}
Пример #2
0
page_setup worksheet::page_setup() const
{
    if (!has_page_setup())
    {
        throw invalid_attribute();
    }

    return d_->page_setup_.get();
}
Пример #3
0
const style format::style() const
{
    if (!has_style())
    {
        throw invalid_attribute();
    }

    return d_->parent->style(d_->style.get());
}
Пример #4
0
std::size_t number_format::id() const
{
    if (!id_set_)
    {
        throw invalid_attribute();
    }

    return id_;
}
Пример #5
0
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;
}