KD Reports  1.8
Public Member Functions | List of all members
KDReports::HtmlElement Class Reference

#include <KDReportsHtmlElement.h>

Inheritance diagram for KDReports::HtmlElement:
Inheritance graph
Collaboration diagram for KDReports::HtmlElement:
Collaboration graph

Public Member Functions

 HtmlElement (const QString &html=QString())
virtual ~HtmlElement ()
 HtmlElement (const HtmlElement &other)
HtmlElementoperator= (const HtmlElement &other)
void setHtml (const QString &html)
QString html () const
HtmlElementoperator<< (const QString &)
void setId (const QString &id)
QString id () const
- Public Member Functions inherited from KDReports::Element
virtual ~Element ()
void setBackground (const QBrush &brush)
QBrush background () const

Additional Inherited Members

- Protected Member Functions inherited from KDReports::Element
 Element ()
 Element (const Element &other)
Elementoperator= (const Element &other)

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())

Creates an HTML report element.

virtual KDReports::HtmlElement::~HtmlElement ( )

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::html ( ) const
the full HTML text in this element.
QString KDReports::HtmlElement::id ( ) const
the ID associated with this text element.
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.


The documentation for this class was generated from the following file:

Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"