KD Reports API Documentation
2.2
|
#include <KDReportsElement.h>
Public Member Functions | |
virtual | ~Element () |
QBrush | background () const |
virtual void | build (ReportBuilder &) const =0 |
virtual Element * | clone () const =0 |
void | setBackground (const QBrush &brush) |
Protected Member Functions | |
Element () | |
Element (const Element &other) | |
Element & | operator= (const Element &other) |
The KDReports::Element class is the base for all elements.
An element defines what is to be added to the report. Calling Report::addElement or Report::addInlineElement leads to new content in the report. The report doesn't store the element, though. For this reason, any changes to the element after insertion will have no effect on the report. Set all settings in the element before calling addElement.
Definition at line 34 of file KDReportsElement.h.
|
virtual |
Destroys this element.
Definition at line 38 of file KDReportsElement.cpp.
|
protected |
Constructor - used by subclasses.
Definition at line 20 of file KDReportsElement.cpp.
|
protected |
Copy constructor - used by subclasses.
Definition at line 25 of file KDReportsElement.cpp.
QBrush KDReports::Element::background | ( | ) | const |
Returns the background color for this element.
Definition at line 47 of file KDReportsElement.cpp.
|
pure virtual |
Implemented in KDReports::TextElement, KDReports::HtmlElement, KDReports::HLineElement, KDReports::Frame, KDReports::Cell, KDReports::TableElement, KDReports::ImageElement, KDReports::ChartElement, and KDReports::AutoTableElement.
Referenced by KDReports::ReportBuilder::addBlockElement(), and KDReports::ReportBuilder::addInlineElement().
|
pure virtual |
Implemented in KDReports::TextElement, KDReports::TableElement, KDReports::ImageElement, KDReports::HtmlElement, KDReports::HLineElement, KDReports::Frame, KDReports::ChartElement, KDReports::Cell, and KDReports::AutoTableElement.
Referenced by KDReports::Cell::addElement(), KDReports::Frame::addElement(), KDReports::Cell::addInlineElement(), KDReports::Frame::addInlineElement(), and KDReports::ElementData::operator=().
|
protected |
Assignment operator - used by subclasses.
Definition at line 30 of file KDReportsElement.cpp.
Referenced by KDReports::AbstractTableElement::operator=(), KDReports::Cell::operator=(), KDReports::ChartElement::operator=(), KDReports::Frame::operator=(), KDReports::HLineElement::operator=(), KDReports::HtmlElement::operator=(), KDReports::ImageElement::operator=(), and KDReports::TextElement::operator=().
void KDReports::Element::setBackground | ( | const QBrush & | brush | ) |
Sets the background color for this element.
Definition at line 42 of file KDReportsElement.cpp.