KD Reports API Documentation  2.2
Public Member Functions | Static Public Member Functions | List of all members
KDReports::ReportBuilder Class Reference

#include <KDReportsReportBuilder_p.h>

Inheritance diagram for KDReports::ReportBuilder:
KDReports::HeaderReportBuilder

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 ()
 
TextDocumentDatacontentDocumentData ()
 
void copyStateFrom (const ReportBuilder &parentBuilder)
 
QTextDocument & currentDocument ()
 
TextDocumentDatacurrentDocumentData ()
 
int currentPosition ()
 
QTextCursor & cursor ()
 
QFont defaultFont () const
 
virtual void insertFragmentPublic (const QTextDocumentFragment &fragment)
 
Reportreport ()
 
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)
 

Detailed Description

Definition at line 35 of file KDReportsReportBuilder_p.h.

Constructor & Destructor Documentation

◆ ReportBuilder()

KDReports::ReportBuilder::ReportBuilder ( KDReports::TextDocumentData contentDocument,
const QTextCursor &  cursor,
Report report 
)

◆ ~ReportBuilder()

virtual KDReports::ReportBuilder::~ReportBuilder ( )
inlinevirtual

Definition at line 40 of file KDReportsReportBuilder_p.h.

Member Function Documentation

◆ addBlockElement()

void KDReports::ReportBuilder::addBlockElement ( const Element element,
Qt::AlignmentFlag  horizontalAlignment,
const QColor &  backgroundColor = QColor() 
)
virtual

◆ addBlockElementPublic()

virtual void KDReports::ReportBuilder::addBlockElementPublic ( const Element element,
Qt::AlignmentFlag  horizontalAlignment,
const QColor &  backgroundColor = QColor() 
)
virtual

◆ addInlineElement()

void KDReports::ReportBuilder::addInlineElement ( const Element element)
virtual

◆ addInlineElementPublic()

virtual void KDReports::ReportBuilder::addInlineElementPublic ( const Element element)
virtual

◆ addPageBreakPublic()

void KDReports::ReportBuilder::addPageBreakPublic ( )
virtual

Definition at line 152 of file KDReportsReportBuilder.cpp.

◆ addVariable()

void KDReports::ReportBuilder::addVariable ( KDReports::VariableType  variable)
virtual

◆ addVariablePublic()

virtual void KDReports::ReportBuilder::addVariablePublic ( KDReports::VariableType  variable)
virtual

◆ addVerticalSpacing()

void KDReports::ReportBuilder::addVerticalSpacing ( qreal  space)
virtual

◆ addVerticalSpacingPublic()

virtual void KDReports::ReportBuilder::addVerticalSpacingPublic ( qreal  space)
virtual

◆ contentDocumentCursor()

QTextCursor& KDReports::ReportBuilder::contentDocumentCursor ( )
inline

Definition at line 95 of file KDReportsReportBuilder_p.h.

◆ contentDocumentData()

TextDocumentData& KDReports::ReportBuilder::contentDocumentData ( )
inline

Definition at line 91 of file KDReportsReportBuilder_p.h.

◆ copyStateFrom()

void KDReports::ReportBuilder::copyStateFrom ( const ReportBuilder parentBuilder)

Definition at line 173 of file KDReportsReportBuilder.cpp.

Referenced by KDReports::Frame::build().

◆ currentDocument()

QTextDocument& KDReports::ReportBuilder::currentDocument ( )
inline

◆ currentDocumentData()

TextDocumentData& KDReports::ReportBuilder::currentDocumentData ( )
inline

◆ currentPosition()

int KDReports::ReportBuilder::currentPosition ( )

Definition at line 209 of file KDReportsReportBuilder.cpp.

◆ cursor()

QTextCursor& KDReports::ReportBuilder::cursor ( )
inline

◆ defaultFont()

QFont KDReports::ReportBuilder::defaultFont ( ) const
inline

Definition at line 85 of file KDReportsReportBuilder_p.h.

◆ insertFragmentPublic()

void KDReports::ReportBuilder::insertFragmentPublic ( const QTextDocumentFragment &  fragment)
virtual

Definition at line 159 of file KDReportsReportBuilder.cpp.

◆ report()

Report* KDReports::ReportBuilder::report ( )
inline

◆ setDefaultFont()

void KDReports::ReportBuilder::setDefaultFont ( const QFont &  font)
inline

Definition at line 80 of file KDReportsReportBuilder_p.h.

◆ setParagraphMargins()

void KDReports::ReportBuilder::setParagraphMargins ( qreal  left,
qreal  top,
qreal  right,
qreal  bottom 
)

◆ setTabPositions()

void KDReports::ReportBuilder::setTabPositions ( const QList< QTextOption::Tab > &  tabs)

Definition at line 164 of file KDReportsReportBuilder.cpp.

References KDReports::mmToPixels().

◆ setupBlockFormat()

void KDReports::ReportBuilder::setupBlockFormat ( QTextBlockFormat &  blockFormat) const

Definition at line 200 of file KDReportsReportBuilder.cpp.

◆ toVerticalAlignment()

QTextCharFormat::VerticalAlignment KDReports::ReportBuilder::toVerticalAlignment ( Qt::Alignment  alignment)
static

Definition at line 214 of file KDReportsReportBuilder.cpp.


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

© Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/
https://www.kdab.com/development-resources/qt-tools/kd-reports/
Generated by doxygen 1.9.1