|
libhtmlpp 1.0.0
|
Leaf node representing plain text content of an HTML document. More...
#include <html.h>
Public Member Functions | |
| TextElement () | |
| TextElement (const std::string &txt) | |
| TextElement (const TextElement &texel) | |
| ~TextElement () | |
| TextElement & | operator= (const Element &hel) |
| TextElement & | operator= (const Element *hel) |
| const std::string | getText () |
| void | setText (const std::string &txt) |
| int | getType () const |
Public Member Functions inherited from libhtmlpp::Element | |
| virtual | ~Element () |
| Element (const Element &el) | |
| void | insertAfter (Element *el) |
| void | insertBefore (Element *el) |
| Element & | operator= (const Element &hel) |
| Element & | operator= (const Element *hel) |
| Element * | nextElement () const |
| Element * | prevElement () const |
| virtual void | remove (Element *el) |
Static Public Member Functions | |
| static size_t | parseElement (const std::vector< char > &in, std::unique_ptr< libhtmlpp::Element > &el, size_t start, bool &termination) |
Protected Attributes | |
| std::vector< char > | _Text |
Protected Attributes inherited from libhtmlpp::Element | |
| std::unique_ptr< Element > | _nextElement |
| Element * | _prevElement |
Friends | |
| class | HtmlString |
| void | print (const Element &element, HtmlString &output, bool formated) |
| Serializes an element (and its subtree) into an HtmlString. | |
| void | _copy (libhtmlpp::Element *dest, const libhtmlpp::Element *src) |
Additional Inherited Members | |
Protected Member Functions inherited from libhtmlpp::Element | |
| Element () | |
Leaf node representing plain text content of an HTML document.
| libhtmlpp::TextElement::TextElement | ( | const std::string & | txt | ) |
| libhtmlpp::TextElement::TextElement | ( | const TextElement & | texel | ) |
|
virtual |
Implements libhtmlpp::Element.
| libhtmlpp::TextElement & libhtmlpp::TextElement::operator= | ( | const Element & | hel | ) |
| libhtmlpp::TextElement & libhtmlpp::TextElement::operator= | ( | const Element * | hel | ) |
|
static |
| void libhtmlpp::TextElement::setText | ( | const std::string & | txt | ) |
|
friend |
|
friend |
|
friend |
Serializes an element (and its subtree) into an HtmlString.
| element | Root element to print. |
| output | Output buffer to append serialized HTML to. |
| formated | If true, pretty-prints the output with line breaks/indentation. |