00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef KDREPORTSTEXTELEMENT_H
00024 #define KDREPORTSTEXTELEMENT_H
00025
00026 #include "KDReportsElement.h"
00027 #include <QtCore/QString>
00028
00029 class QColor;
00030 class QFont;
00031
00032 namespace KDReports {
00033
00038 class KDREPORTS_EXPORT TextElement : public Element
00039 {
00040 public:
00044 explicit TextElement( const QString& string = QString() );
00048 virtual ~TextElement();
00049
00054 TextElement(const TextElement &other);
00058 TextElement &operator=(const TextElement &other);
00059
00063 void setText( const QString& text );
00064
00068 TextElement& operator<<( const QString& );
00069
00071 void setFontFamily( const QString& family );
00073 void setBold( bool bold );
00075 void setItalic( bool italic );
00077 void setUnderline( bool underline );
00079 void setStrikeOut( bool strikeout );
00081 void setPointSize( qreal size );
00082
00084 void setFont( const QFont& );
00085
00090 void setTextColor( const QColor& color );
00091
00096 void setId( const QString& id );
00097
00102 QString id() const;
00103
00108 void build( ReportBuilder& builder ) const;
00113 Element* clone() const;
00114
00115 private:
00116 class Private;
00117 Private* const d;
00118 };
00119
00120 }
00121
00122 #endif
00123