Public Member Functions

KDReports::HtmlElement Class Reference

#include <KDReportsHtmlElement.h>

Inheritance diagram for KDReports::HtmlElement:
Inheritance graph
[legend]
Collaboration diagram for KDReports::HtmlElement:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 HtmlElement (const QString &html=QString())
virtual ~HtmlElement ()
 HtmlElement (const HtmlElement &other)
HtmlElementoperator= (const HtmlElement &other)
void setHtml (const QString &html)
HtmlElementoperator<< (const QString &)
void setId (const QString &id)
QString id () const

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

QString KDReports::HtmlElement::id (  ) const
Returns:
the ID associated with this text element.
Since:
1.2
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.

Since:
1.2

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Enumerations Enumerator

Klarälvdalens Datakonsult AB (KDAB)
Qt-related services and products
http://www.kdab.com/
http://www.kdab.com/products/kd-reports/