11#ifndef KDREPORTSREPORTBUILDER_H
12#define KDREPORTSREPORTBUILDER_H
26class TextDocumentData;
28#define REPORTBUILDER_CTOR_ARGDEFS KDReports::TextDocumentData &contentDocument, const QTextCursor &cursor, KDReports::Report *report
30#define REPORTBUILDER_CTOR_ARGNAMES contentDocument, cursor, report
46 m_contentDocument.aboutToModifyContents(TextDocumentData::Append);
55 virtual void addPageBreakPublic();
63 virtual void addInlineElement(
const Element &element);
66 virtual void addVerticalSpacing(qreal space);
70 return m_contentDocument;
75 return currentDocumentData().document();
93 return m_contentDocument;
106 int currentPosition();
118 qreal m_leftMargin = 0;
119 qreal m_rightMargin = 0;
120 qreal m_topMargin = 0;
121 qreal m_bottomMargin = 0;
QDebug operator<<(QDebug &dbg, const QTextOption::Tab &tab)
TextDocumentData & currentDocumentData()
ReportBuilder(KDReports::TextDocumentData &contentDocument, const QTextCursor &cursor, Report *report)
void setDefaultFont(const QFont &font)
QTextCursor & contentDocumentCursor()
QTextDocument & currentDocument()
virtual void addVerticalSpacingPublic(qreal space)
virtual void addBlockElementPublic(const Element &element, Qt::AlignmentFlag horizontalAlignment, const QColor &backgroundColor=QColor())
virtual void addVariablePublic(KDReports::VariableType variable)
virtual void addInlineElementPublic(const Element &element)
void setParagraphMargins(qreal left, qreal top, qreal right, qreal bottom)
TextDocumentData & contentDocumentData()
QFont defaultFont() const