mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
unimplemented functions under styles/
This commit is contained in:
parent
947037b9d2
commit
39801d4350
|
@ -57,6 +57,11 @@ std::size_t indexed_color::index() const
|
||||||
return index_;
|
return index_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void indexed_color::index(std::size_t index)
|
||||||
|
{
|
||||||
|
index_ = index;
|
||||||
|
}
|
||||||
|
|
||||||
// theme_color implementation
|
// theme_color implementation
|
||||||
|
|
||||||
theme_color::theme_color(std::size_t index) : index_(index)
|
theme_color::theme_color(std::size_t index) : index_(index)
|
||||||
|
@ -68,6 +73,11 @@ std::size_t theme_color::index() const
|
||||||
return index_;
|
return index_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void theme_color::index(std::size_t index)
|
||||||
|
{
|
||||||
|
index_ = index;
|
||||||
|
}
|
||||||
|
|
||||||
// rgb_color implementation
|
// rgb_color implementation
|
||||||
|
|
||||||
std::string rgb_color::hex_string() const
|
std::string rgb_color::hex_string() const
|
||||||
|
|
|
@ -81,6 +81,11 @@ bool conditional_format::operator!=(const conditional_format &other) const
|
||||||
return !(*this == other);
|
return !(*this == other);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool conditional_format::has_border() const
|
||||||
|
{
|
||||||
|
return d_->border_id.is_set();
|
||||||
|
}
|
||||||
|
|
||||||
xlnt::border conditional_format::border() const
|
xlnt::border conditional_format::border() const
|
||||||
{
|
{
|
||||||
return d_->parent->borders.at(d_->border_id.get());
|
return d_->parent->borders.at(d_->border_id.get());
|
||||||
|
@ -92,6 +97,11 @@ conditional_format conditional_format::border(const xlnt::border &new_border)
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool conditional_format::has_fill() const
|
||||||
|
{
|
||||||
|
return d_->fill_id.is_set();
|
||||||
|
}
|
||||||
|
|
||||||
xlnt::fill conditional_format::fill() const
|
xlnt::fill conditional_format::fill() const
|
||||||
{
|
{
|
||||||
return d_->parent->fills.at(d_->fill_id.get());
|
return d_->parent->fills.at(d_->fill_id.get());
|
||||||
|
@ -103,6 +113,11 @@ conditional_format conditional_format::fill(const xlnt::fill &new_fill)
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool conditional_format::has_font() const
|
||||||
|
{
|
||||||
|
return d_->font_id.is_set();
|
||||||
|
}
|
||||||
|
|
||||||
xlnt::font conditional_format::font() const
|
xlnt::font conditional_format::font() const
|
||||||
{
|
{
|
||||||
return d_->parent->fonts.at(d_->font_id.get());
|
return d_->parent->fonts.at(d_->font_id.get());
|
||||||
|
|
|
@ -26,6 +26,26 @@
|
||||||
|
|
||||||
namespace xlnt {
|
namespace xlnt {
|
||||||
|
|
||||||
|
protection protection::unlocked_and_visible()
|
||||||
|
{
|
||||||
|
return protection();
|
||||||
|
}
|
||||||
|
|
||||||
|
protection protection::locked_and_visible()
|
||||||
|
{
|
||||||
|
return protection().locked(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
protection protection::unlocked_and_hidden()
|
||||||
|
{
|
||||||
|
return protection().hidden(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
protection protection::locked_and_hidden()
|
||||||
|
{
|
||||||
|
return protection().locked(true).hidden(true);
|
||||||
|
}
|
||||||
|
|
||||||
protection::protection()
|
protection::protection()
|
||||||
: locked_(false), hidden_(false)
|
: locked_(false), hidden_(false)
|
||||||
{
|
{
|
||||||
|
|
|
@ -66,6 +66,11 @@ std::size_t style::builtin_id() const
|
||||||
return d_->builtin_id.get();
|
return d_->builtin_id.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool style::builtin() const
|
||||||
|
{
|
||||||
|
d_->builtin_id.is_set();
|
||||||
|
}
|
||||||
|
|
||||||
std::string style::name() const
|
std::string style::name() const
|
||||||
{
|
{
|
||||||
return d_->name;
|
return d_->name;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user