#include <KDReportsHtmlElement.h>
Public Member Functions | |
HtmlElement (const QString &html=QString()) | |
virtual | ~HtmlElement () |
HtmlElement (const HtmlElement &other) | |
HtmlElement & | operator= (const HtmlElement &other) |
void | setHtml (const QString &html) |
HtmlElement & | operator<< (const QString &) |
void | setId (const QString &id) |
QString | id () const |
The KDReports::HtmlElement class represents any part of the report that can be expressed in HTML. This is one way to insert rich text into the report (the other way is with TextElement). This can be used to create bullet-point lists and numbered lists.
KDReports::HtmlElement::HtmlElement | ( | const QString & | html = QString() ) |
[explicit] |
Creates an HTML report element.
virtual KDReports::HtmlElement::~HtmlElement | ( | ) | [virtual] |
Destroys this element.
KDReports::HtmlElement::HtmlElement | ( | const HtmlElement & | other ) |
Copies an HTML element. The HTML and settings are copied over.
QString KDReports::HtmlElement::id | ( | ) | const |
HtmlElement& KDReports::HtmlElement::operator<< | ( | const QString & | ) |
Adds more text to the HTML in this element.
HtmlElement& KDReports::HtmlElement::operator= | ( | const HtmlElement & | other ) |
Copies the HTML and settings from another HTML element.
void KDReports::HtmlElement::setHtml | ( | const QString & | html ) |
Sets the full HTML text in this element.
void KDReports::HtmlElement::setId | ( | const QString & | id ) |
Set the ID associated with this text element.