17 #ifndef KDREPORTSREPORTBUILDER_H
18 #define KDREPORTSREPORTBUILDER_H
22 #include <QTextCursor>
32 class TextDocumentData;
34 #define REPORTBUILDER_CTOR_ARGDEFS KDReports::TextDocumentData &contentDocument, const QTextCursor &cursor, KDReports::Report *report
36 #define REPORTBUILDER_CTOR_ARGNAMES contentDocument, cursor, report
56 virtual void addPageBreakPublic();
57 virtual void addInlineElementPublic(
const Element &element);
58 virtual void addBlockElementPublic(
const Element &element, Qt::AlignmentFlag horizontalAlignment,
const QColor &backgroundColor = QColor());
60 virtual void addVerticalSpacingPublic(qreal space);
61 virtual void insertFragmentPublic(
const QTextDocumentFragment &fragment);
64 virtual void addInlineElement(
const Element &element);
65 virtual void addBlockElement(
const Element &element, Qt::AlignmentFlag horizontalAlignment,
const QColor &backgroundColor = QColor());
67 virtual void addVerticalSpacing(qreal space);
83 void setupBlockFormat(QTextBlockFormat &blockFormat);
87 void setParagraphMargins(qreal left, qreal top, qreal right, qreal bottom);
89 int currentPosition();
97 QTextCursor m_layoutDocCursor;
99 qreal m_leftMargin = 0;
100 qreal m_rightMargin = 0;
101 qreal m_topMargin = 0;
102 qreal m_bottomMargin = 0;
109 QDebug
operator<<(QDebug &dbg,
const QTextOption::Tab &tab);