KD Reports API Documentation
2.2
|
#include <KDReportsReportBuilder_p.h>
Public Member Functions | |
ReportBuilder (KDReports::TextDocumentData &contentDocument, const QTextCursor &cursor, Report *report) | |
virtual | ~ReportBuilder () |
virtual void | addBlockElement (const Element &element, Qt::AlignmentFlag horizontalAlignment, const QColor &backgroundColor=QColor()) |
virtual void | addBlockElementPublic (const Element &element, Qt::AlignmentFlag horizontalAlignment, const QColor &backgroundColor=QColor()) |
virtual void | addInlineElement (const Element &element) |
virtual void | addInlineElementPublic (const Element &element) |
virtual void | addPageBreakPublic () |
virtual void | addVariable (KDReports::VariableType variable) |
virtual void | addVariablePublic (KDReports::VariableType variable) |
virtual void | addVerticalSpacing (qreal space) |
virtual void | addVerticalSpacingPublic (qreal space) |
QTextCursor & | contentDocumentCursor () |
TextDocumentData & | contentDocumentData () |
void | copyStateFrom (const ReportBuilder &parentBuilder) |
QTextDocument & | currentDocument () |
TextDocumentData & | currentDocumentData () |
int | currentPosition () |
QTextCursor & | cursor () |
QFont | defaultFont () const |
virtual void | insertFragmentPublic (const QTextDocumentFragment &fragment) |
Report * | report () |
void | setDefaultFont (const QFont &font) |
void | setParagraphMargins (qreal left, qreal top, qreal right, qreal bottom) |
void | setTabPositions (const QList< QTextOption::Tab > &tabs) |
void | setupBlockFormat (QTextBlockFormat &blockFormat) const |
Static Public Member Functions | |
static QTextCharFormat::VerticalAlignment | toVerticalAlignment (Qt::Alignment alignment) |
Definition at line 35 of file KDReportsReportBuilder_p.h.
KDReports::ReportBuilder::ReportBuilder | ( | KDReports::TextDocumentData & | contentDocument, |
const QTextCursor & | cursor, | ||
Report * | report | ||
) |
|
inlinevirtual |
Definition at line 40 of file KDReportsReportBuilder_p.h.
|
virtual |
Reimplemented in KDReports::HeaderReportBuilder.
Definition at line 42 of file KDReportsReportBuilder.cpp.
References KDReports::Element::build().
Referenced by KDReports::HeaderReportBuilder::addBlockElement(), KDReports::Cell::build(), and KDReports::Frame::build().
|
virtual |
|
virtual |
Reimplemented in KDReports::HeaderReportBuilder.
Definition at line 28 of file KDReportsReportBuilder.cpp.
References KDReports::Element::build(), and cursor().
Referenced by KDReports::HeaderReportBuilder::addInlineElement(), KDReports::Cell::build(), and KDReports::Frame::build().
|
virtual |
|
virtual |
Definition at line 152 of file KDReportsReportBuilder.cpp.
|
virtual |
Definition at line 83 of file KDReportsReportBuilder.cpp.
References KDReports::TextElement::build(), KDReports::PageCount, KDReports::setVariableMarker(), and KDReports::variableValue().
Referenced by KDReports::Cell::build(), and KDReports::Frame::build().
|
virtual |
|
virtual |
Reimplemented in KDReports::HeaderReportBuilder.
Definition at line 108 of file KDReportsReportBuilder.cpp.
References KDReports::mmToPixels().
Referenced by KDReports::HeaderReportBuilder::addVerticalSpacing(), KDReports::Cell::build(), and KDReports::Frame::build().
|
virtual |
|
inline |
Definition at line 95 of file KDReportsReportBuilder_p.h.
|
inline |
Definition at line 91 of file KDReportsReportBuilder_p.h.
void KDReports::ReportBuilder::copyStateFrom | ( | const ReportBuilder & | parentBuilder | ) |
Definition at line 173 of file KDReportsReportBuilder.cpp.
Referenced by KDReports::Frame::build().
|
inline |
Definition at line 73 of file KDReportsReportBuilder_p.h.
Referenced by KDReports::AutoTableElement::build(), and KDReports::ImageElement::build().
|
inline |
Definition at line 68 of file KDReportsReportBuilder_p.h.
Referenced by KDReports::AutoTableElement::build(), KDReports::ImageElement::build(), KDReports::TableElement::build(), KDReports::Frame::build(), KDReports::HtmlElement::build(), and KDReports::TextElement::build().
int KDReports::ReportBuilder::currentPosition | ( | ) |
Definition at line 209 of file KDReportsReportBuilder.cpp.
|
inline |
Definition at line 44 of file KDReportsReportBuilder_p.h.
References KDReports::TextDocumentData::Append.
Referenced by addInlineElement(), KDReports::AutoTableElement::build(), KDReports::ChartElement::build(), KDReports::ImageElement::build(), KDReports::TableElement::build(), KDReports::Frame::build(), KDReports::HLineElement::build(), KDReports::HtmlElement::build(), and KDReports::TextElement::build().
|
inline |
Definition at line 85 of file KDReportsReportBuilder_p.h.
|
virtual |
Definition at line 159 of file KDReportsReportBuilder.cpp.
|
inline |
|
inline |
Definition at line 80 of file KDReportsReportBuilder_p.h.
void KDReports::ReportBuilder::setParagraphMargins | ( | qreal | left, |
qreal | top, | ||
qreal | right, | ||
qreal | bottom | ||
) |
void KDReports::ReportBuilder::setTabPositions | ( | const QList< QTextOption::Tab > & | tabs | ) |
Definition at line 164 of file KDReportsReportBuilder.cpp.
References KDReports::mmToPixels().
void KDReports::ReportBuilder::setupBlockFormat | ( | QTextBlockFormat & | blockFormat | ) | const |
Definition at line 200 of file KDReportsReportBuilder.cpp.
|
static |
Definition at line 214 of file KDReportsReportBuilder.cpp.