|
libhtmlpp 1.0.0
|
Abstract base class for all nodes in the HTML tree. More...
#include <html.h>
Public Member Functions | |
| 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) |
| virtual int | getType () const =0 |
Protected Member Functions | |
| Element () | |
Protected Attributes | |
| std::unique_ptr< Element > | _nextElement |
| Element * | _prevElement |
Friends | |
| class | HtmlElement |
| class | TextElement |
| 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) |
Abstract base class for all nodes in the HTML tree.
Provides linkage and common operations.
|
pure virtual |
| void libhtmlpp::Element::insertAfter | ( | libhtmlpp::Element * | el | ) |
| void libhtmlpp::Element::insertBefore | ( | libhtmlpp::Element * | el | ) |
| libhtmlpp::Element * libhtmlpp::Element::nextElement | ( | ) | const |
| libhtmlpp::Element & libhtmlpp::Element::operator= | ( | const Element & | hel | ) |
| libhtmlpp::Element & libhtmlpp::Element::operator= | ( | const Element * | hel | ) |
| libhtmlpp::Element * libhtmlpp::Element::prevElement | ( | ) | const |
|
virtual |
Reimplemented in libhtmlpp::HtmlElement.
|
friend |
|
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. |
|
friend |
|
protected |