mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
font change for charset, outline shadow
This commit is contained in:
parent
85a3f2d60a
commit
26eacce248
@ -97,6 +97,26 @@ public:
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
bool strikethrough() const;
|
bool strikethrough() const;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
font &outlinethrough(bool outlinethrough);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
bool outlinethrough() const;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
font &shadowthrough(bool shadowthrough);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
bool shadowthrough() const;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -172,6 +192,21 @@ public:
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
std::size_t family() const;
|
std::size_t family() const;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
bool has_charset() const;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
font &charset(std::size_t charset);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
std::size_t charset() const;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -238,6 +273,16 @@ private:
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
bool strikethrough_ = false;
|
bool strikethrough_ = false;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
bool outlinethrough_ = false;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
bool shadowthrough_ = false;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -253,6 +298,12 @@ private:
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
optional<std::size_t> family_;
|
optional<std::size_t> family_;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
optional<std::size_t> charset_;
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -36,6 +36,8 @@ font::font()
|
|||||||
superscript_(false),
|
superscript_(false),
|
||||||
subscript_(false),
|
subscript_(false),
|
||||||
strikethrough_(false),
|
strikethrough_(false),
|
||||||
|
outlinethrough_(false),
|
||||||
|
shadowthrough_(false),
|
||||||
underline_(underline_style::none)
|
underline_(underline_style::none)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -84,6 +86,28 @@ bool font::strikethrough() const
|
|||||||
return strikethrough_;
|
return strikethrough_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
font &font::outlinethrough(bool outlinethrough)
|
||||||
|
{
|
||||||
|
outlinethrough_ = outlinethrough;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool font::outlinethrough() const
|
||||||
|
{
|
||||||
|
return outlinethrough_;
|
||||||
|
}
|
||||||
|
|
||||||
|
font &font::shadowthrough(bool shadowthrough)
|
||||||
|
{
|
||||||
|
shadowthrough_ = shadowthrough;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool font::shadowthrough() const
|
||||||
|
{
|
||||||
|
return shadowthrough_;
|
||||||
|
}
|
||||||
|
|
||||||
font &font::underline(underline_style new_underline)
|
font &font::underline(underline_style new_underline)
|
||||||
{
|
{
|
||||||
underline_ = new_underline;
|
underline_ = new_underline;
|
||||||
@ -154,6 +178,17 @@ font &font::family(std::size_t family)
|
|||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool font::has_charset() const
|
||||||
|
{
|
||||||
|
return charset_.is_set();
|
||||||
|
}
|
||||||
|
|
||||||
|
font &font::charset(std::size_t charset)
|
||||||
|
{
|
||||||
|
charset_ = charset;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
bool font::has_scheme() const
|
bool font::has_scheme() const
|
||||||
{
|
{
|
||||||
return scheme_.is_set();
|
return scheme_.is_set();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user