|
xlnt - community edition
|
A comment can be applied to a cell to provide extra information about its contents. More...
#include <comment.hpp>
Public Member Functions | |
| comment () | |
| Constructs a new blank comment. More... | |
| comment (const rich_text &text, const std::string &author) | |
| Constructs a new comment with the given text and author. More... | |
| comment (const std::string &text, const std::string &author) | |
| Constructs a new comment with the given unformatted text and author. More... | |
| rich_text | text () const |
| Returns the text that will be displayed for this comment. More... | |
| std::string | plain_text () const |
| Returns the plain text that will be displayed for this comment without formatting information. More... | |
| std::string | author () const |
| Returns the author of this comment. More... | |
| void | hide () |
| Makes this comment only visible when the associated cell is hovered. More... | |
| void | show () |
| Makes this comment always visible. More... | |
| bool | visible () const |
| Returns true if this comment is not hidden. More... | |
| void | position (int left, int top) |
| Sets the absolute position of this cell to the given coordinates. More... | |
| int | left () const |
| Returns the distance from the left side of the sheet to the left side of the comment. More... | |
| int | top () const |
| Returns the distance from the top of the sheet to the top of the comment. More... | |
| void | size (int width, int height) |
| Sets the size of the comment. More... | |
| int | width () const |
| Returns the width of this comment. More... | |
| int | height () const |
| Returns the height of this comment. More... | |
| bool | operator== (const comment &other) const |
| Return true if this comment is equivalent to other. More... | |
| bool | operator!= (const comment &other) const |
| Returns true if this comment is not equivalent to other. More... | |
A comment can be applied to a cell to provide extra information about its contents.
| xlnt::comment::comment | ( | ) |
Constructs a new blank comment.
| xlnt::comment::comment | ( | const rich_text & | text, |
| const std::string & | author | ||
| ) |
Constructs a new comment with the given text and author.
| xlnt::comment::comment | ( | const std::string & | text, |
| const std::string & | author | ||
| ) |
Constructs a new comment with the given unformatted text and author.
| std::string xlnt::comment::author | ( | ) | const |
Returns the author of this comment.
| int xlnt::comment::height | ( | ) | const |
Returns the height of this comment.
| void xlnt::comment::hide | ( | ) |
Makes this comment only visible when the associated cell is hovered.
| int xlnt::comment::left | ( | ) | const |
Returns the distance from the left side of the sheet to the left side of the comment.
| bool xlnt::comment::operator!= | ( | const comment & | other | ) | const |
Returns true if this comment is not equivalent to other.
| bool xlnt::comment::operator== | ( | const comment & | other | ) | const |
Return true if this comment is equivalent to other.
| std::string xlnt::comment::plain_text | ( | ) | const |
Returns the plain text that will be displayed for this comment without formatting information.
| void xlnt::comment::position | ( | int | left, |
| int | top | ||
| ) |
Sets the absolute position of this cell to the given coordinates.
| void xlnt::comment::show | ( | ) |
Makes this comment always visible.
| void xlnt::comment::size | ( | int | width, |
| int | height | ||
| ) |
Sets the size of the comment.
| rich_text xlnt::comment::text | ( | ) | const |
Returns the text that will be displayed for this comment.
| int xlnt::comment::top | ( | ) | const |
Returns the distance from the top of the sheet to the top of the comment.
| bool xlnt::comment::visible | ( | ) | const |
Returns true if this comment is not hidden.
| int xlnt::comment::width | ( | ) | const |
Returns the width of this comment.
1.8.13