00001 #ifndef KDREPORTSTEXTELEMENT_H
00002 #define KDREPORTSTEXTELEMENT_H
00003
00004 #include "KDReportsElement.h"
00005 #include <QtCore/QString>
00006
00007 class QColor;
00008 class QFont;
00009
00010 namespace KDReports {
00011
00016 class KDREPORTS_EXPORT TextElement : public Element
00017 {
00018 public:
00022 explicit TextElement( const QString& string = QString() );
00026 virtual ~TextElement();
00027
00032 TextElement(const TextElement &other);
00036 TextElement &operator=(const TextElement &other);
00037
00041 void setText( const QString& text );
00042
00046 TextElement& operator<<( const QString& );
00047
00049 void setFontFamily( const QString& family );
00051 void setBold( bool bold );
00053 void setItalic( bool italic );
00055 void setUnderline( bool underline );
00057 void setStrikeOut( bool strikeout );
00059 void setPointSize( qreal size );
00060
00062 void setFont( const QFont& );
00063
00068 void setTextColor( const QColor& color );
00069
00074 void setId( const QString& id );
00075
00080 QString id() const;
00081
00086 void build( ReportBuilder& builder ) const;
00091 Element* clone() const;
00092
00093 private:
00094 class Private;
00095 Private* const d;
00096 };
00097
00098 }
00099
00100 #endif
00101