23 #ifndef KDREPORTSTEXTELEMENT_H
24 #define KDREPORTSTEXTELEMENT_H
26 #include "KDReportsElement.h"
27 #include <QtCore/QString>
28 #include <QTextCharFormat>
45 explicit TextElement(
const QString&
string = QString() );
64 void setText(
const QString& text );
72 void setFontFamily(
const QString& family );
74 void setBold(
bool bold );
76 void setItalic(
bool italic );
78 void setUnderline(
bool underline );
80 void setStrikeOut(
bool strikeout );
82 void setPointSize( qreal size );
91 void setFont(
const QFont& );
103 void setTextColor(
const QColor& color );
109 QColor textColor()
const;
115 void setId(
const QString&
id );
127 QString text()
const;
133 void build( ReportBuilder& builder )
const;
142 friend class ReportBuilder;
143 void setCharFormat(
const QTextCharFormat& format );