|
OpenXLSX 1.9.1
|
An encapsulation of a font item. More...
#include <XLStyles.hpp>
Public Member Functions | |
| XLFont () | |
| XLFont (const XMLNode &node) | |
| Constructor. New items should only be created through an XLStyles object. | |
| XLFont (const XLFont &other) | |
| Copy Constructor. | |
| XLFont (XLFont &&other) noexcept=default | |
| Move Constructor. | |
| ~XLFont () | |
| XLFont & | operator= (const XLFont &other) |
| Copy assignment operator. | |
| XLFont & | operator= (XLFont &&other) noexcept=default |
| Move assignment operator. | |
| std::string | fontName () const |
| Get the font name. | |
| size_t | fontCharset () const |
| Get the font charset. | |
| size_t | fontFamily () const |
| Get the font family. | |
| size_t | fontSize () const |
| Get the font size. | |
| XLColor | fontColor () const |
| Get the font color. | |
| bool | bold () const |
| Get the font bold status. | |
| bool | italic () const |
| Get the font italic (cursive) status. | |
| bool | strikethrough () const |
| Get the font strikethrough status. | |
| XLUnderlineStyle | underline () const |
| Get the font underline status. | |
| XLFontSchemeStyle | scheme () const |
| get the font scheme: none, major or minor | |
| XLVerticalAlignRunStyle | vertAlign () const |
| get the font vertical alignment run style: baseline, subscript or superscript | |
| bool | outline () const |
| Get the outline status. | |
| bool | shadow () const |
| Get the shadow status. | |
| bool | condense () const |
| Get the condense status. | |
| bool | extend () const |
| Get the extend status. | |
| XLFont & | setFontName (std::string_view newName) |
| Setter functions for style parameters. | |
| XLFont & | setFontCharset (size_t newCharset) |
| XLFont & | setFontFamily (size_t newFamily) |
| XLFont & | setFontSize (size_t newSize) |
| XLFont & | setFontColor (XLColor newColor) |
| XLFont & | setBold (bool set=true) |
| XLFont & | setItalic (bool set=true) |
| XLFont & | setStrikethrough (bool set=true) |
| XLFont & | setUnderline (XLUnderlineStyle style=XLUnderlineSingle) |
| XLFont & | setScheme (XLFontSchemeStyle newScheme) |
| XLFont & | setVertAlign (XLVerticalAlignRunStyle newVertAlign) |
| XLFont & | setOutline (bool set=true) |
| XLFont & | setShadow (bool set=true) |
| XLFont & | setCondense (bool set=true) |
| XLFont & | setExtend (bool set=true) |
| std::string | summary () const |
| Return a string summary of the font properties. | |
Friends | |
| class | XLFonts |
An encapsulation of a font item.
| XLFont::XLFont | ( | ) |
|
explicit |
Constructor. New items should only be created through an XLStyles object.
| node | An XMLNode object with the fonts XMLNode. If no input is provided, a null node is used. |
| XLFont::XLFont | ( | const XLFont & | other | ) |
Copy Constructor.
| other | Object to be copied. |
|
defaultnoexcept |
Move Constructor.
| other | Object to be moved. |
|
default |
| bool XLFont::bold | ( | ) | const |
Get the font bold status.
| bool XLFont::condense | ( | ) | const |
Get the condense status.
| bool XLFont::extend | ( | ) | const |
Get the extend status.
| size_t XLFont::fontCharset | ( | ) | const |
Get the font charset.
| XLColor XLFont::fontColor | ( | ) | const |
Get the font color.
| size_t XLFont::fontFamily | ( | ) | const |
Get the font family.
| std::string XLFont::fontName | ( | ) | const |
Get the font name.
| size_t XLFont::fontSize | ( | ) | const |
Get the font size.
| bool XLFont::italic | ( | ) | const |
Get the font italic (cursive) status.
Copy assignment operator.
| other | Right hand side of assignment operation. |
Move assignment operator.
| other | Right hand side of assignment operation. |
| bool XLFont::outline | ( | ) | const |
Get the outline status.
| XLFontSchemeStyle XLFont::scheme | ( | ) | const |
get the font scheme: none, major or minor
| XLFont & XLFont::setBold | ( | bool | set = true | ) |
| XLFont & XLFont::setCondense | ( | bool | set = true | ) |
| XLFont & XLFont::setExtend | ( | bool | set = true | ) |
| XLFont & XLFont::setFontCharset | ( | size_t | newCharset | ) |
| XLFont & XLFont::setFontFamily | ( | size_t | newFamily | ) |
| XLFont & XLFont::setFontName | ( | std::string_view | newName | ) |
Setter functions for style parameters.
| value | that shall be set |
| XLFont & XLFont::setFontSize | ( | size_t | newSize | ) |
| XLFont & XLFont::setItalic | ( | bool | set = true | ) |
| XLFont & XLFont::setOutline | ( | bool | set = true | ) |
| XLFont & XLFont::setScheme | ( | XLFontSchemeStyle | newScheme | ) |
| XLFont & XLFont::setShadow | ( | bool | set = true | ) |
| XLFont & XLFont::setStrikethrough | ( | bool | set = true | ) |
| XLFont & XLFont::setUnderline | ( | XLUnderlineStyle | style = XLUnderlineSingle | ) |
| XLFont & XLFont::setVertAlign | ( | XLVerticalAlignRunStyle | newVertAlign | ) |
| bool XLFont::shadow | ( | ) | const |
Get the shadow status.
| bool XLFont::strikethrough | ( | ) | const |
Get the font strikethrough status.
| std::string XLFont::summary | ( | ) | const |
Return a string summary of the font properties.
| XLUnderlineStyle XLFont::underline | ( | ) | const |
Get the font underline status.
| XLVerticalAlignRunStyle XLFont::vertAlign | ( | ) | const |
get the font vertical alignment run style: baseline, subscript or superscript
|
friend |