|
OpenXLSX 1.9.1
|
An encapsulation of an alignment item. More...
#include <XLStyles.hpp>
Public Member Functions | |
| XLAlignment () | |
| XLAlignment (const XMLNode &node) | |
| Constructor. New items should only be created through an XLBorder object. | |
| XLAlignment (const XLAlignment &other) | |
| Copy Constructor. | |
| XLAlignment (XLAlignment &&other) noexcept=default | |
| Move Constructor. | |
| ~XLAlignment () | |
| XLAlignment & | operator= (const XLAlignment &other) |
| Copy assignment operator. | |
| XLAlignment & | operator= (XLAlignment &&other) noexcept=default |
| Move assignment operator. | |
| XLAlignmentStyle | horizontal () const |
| Get the horizontal alignment. | |
| XLAlignmentStyle | vertical () const |
| Get the vertical alignment. | |
| uint16_t | textRotation () const |
| Get text rotation. | |
| bool | wrapText () const |
| Check whether text wrapping is enabled. | |
| uint32_t | indent () const |
| Get the indent setting. | |
| int32_t | relativeIndent () const |
| Get the relative indent setting. | |
| bool | justifyLastLine () const |
| Check whether justification of last line is enabled. | |
| bool | shrinkToFit () const |
| Check whether shrink to fit is enabled. | |
| uint32_t | readingOrder () const |
| Get the reading order setting. | |
| bool | setHorizontal (XLAlignmentStyle newStyle) |
| Setter functions for style parameters. | |
| bool | setVertical (XLAlignmentStyle newStyle) |
| bool | setTextRotation (uint16_t newRotation) |
| bool | setWrapText (bool set=true) |
| bool | setIndent (uint32_t newIndent) |
| bool | setRelativeIndent (int32_t newIndent) |
| bool | setJustifyLastLine (bool set=true) |
| bool | setShrinkToFit (bool set=true) |
| bool | setReadingOrder (uint32_t newReadingOrder) |
| std::string | summary () const |
| Return a string summary of the alignment properties. | |
An encapsulation of an alignment item.
| XLAlignment::XLAlignment | ( | ) |
|
explicit |
Constructor. New items should only be created through an XLBorder object.
| node | An XMLNode object with the alignment XMLNode. If no input is provided, a null node is used. |
| XLAlignment::XLAlignment | ( | const XLAlignment & | other | ) |
Copy Constructor.
| other | Object to be copied. |
|
defaultnoexcept |
Move Constructor.
| other | Object to be moved. |
|
default |
| XLAlignmentStyle XLAlignment::horizontal | ( | ) | const |
Get the horizontal alignment.
| uint32_t XLAlignment::indent | ( | ) | const |
Get the indent setting.
| bool XLAlignment::justifyLastLine | ( | ) | const |
Check whether justification of last line is enabled.
| XLAlignment & XLAlignment::operator= | ( | const XLAlignment & | other | ) |
Copy assignment operator.
| other | Right hand side of assignment operation. |
|
defaultnoexcept |
Move assignment operator.
| other | Right hand side of assignment operation. |
| uint32_t XLAlignment::readingOrder | ( | ) | const |
Get the reading order setting.
| int32_t XLAlignment::relativeIndent | ( | ) | const |
Get the relative indent setting.
| bool XLAlignment::setHorizontal | ( | XLAlignmentStyle | newStyle | ) |
Setter functions for style parameters.
| value | that shall be set |
| bool XLAlignment::setIndent | ( | uint32_t | newIndent | ) |
| bool XLAlignment::setJustifyLastLine | ( | bool | set = true | ) |
| bool XLAlignment::setReadingOrder | ( | uint32_t | newReadingOrder | ) |
| bool XLAlignment::setRelativeIndent | ( | int32_t | newIndent | ) |
| bool XLAlignment::setShrinkToFit | ( | bool | set = true | ) |
| bool XLAlignment::setTextRotation | ( | uint16_t | newRotation | ) |
on setTextRotation from XLSX specification: Text rotation in cells. Expressed in degrees. Values range from 0 to 180. The first letter of the text is considered the center-point of the arc. For 0 - 90, the value represents degrees above horizon. For 91-180 the degrees below the horizon is calculated as: [degrees below horizon] = 90 - [newRotation]. Examples: setTextRotation( 45): / (text is formatted along a line from lower left to upper right) setTextRotation(135): \ (text is formatted along a line from upper left to lower right)
| bool XLAlignment::setVertical | ( | XLAlignmentStyle | newStyle | ) |
| bool XLAlignment::setWrapText | ( | bool | set = true | ) |
| bool XLAlignment::shrinkToFit | ( | ) | const |
Check whether shrink to fit is enabled.
| std::string XLAlignment::summary | ( | ) | const |
Return a string summary of the alignment properties.
| uint16_t XLAlignment::textRotation | ( | ) | const |
Get text rotation.
| XLAlignmentStyle XLAlignment::vertical | ( | ) | const |
Get the vertical alignment.
| bool XLAlignment::wrapText | ( | ) | const |
Check whether text wrapping is enabled.