00001 #ifndef KDREPORTSCHARTELEMENT_H
00002 #define KDREPORTSCHARTELEMENT_H
00003
00004 #include "KDReportsElement.h"
00005 #include "KDReportsUnit.h"
00006 #include <QtCore/QtGlobal>
00007 class QAbstractItemModel;
00008
00009 namespace KDReports {
00010
00015 class KDREPORTS_EXPORT ChartElement : public Element
00016 {
00017 public:
00021 explicit ChartElement( QAbstractItemModel* tableModel );
00022
00028 explicit ChartElement( const QString& modelKey );
00029
00033 virtual ~ChartElement();
00034
00038 ChartElement(const ChartElement &other);
00042 ChartElement &operator=(const ChartElement &other);
00043
00054 void setSize( qreal width, qreal height, Unit unit = Millimeters );
00055
00060 void build( ReportBuilder& ) const;
00065 Element* clone() const;
00066
00067 private:
00068 class Private;
00069 Private* const d;
00070 };
00071
00072 }
00073
00074 #endif