00001 #ifndef KDREPORTSIMAGEELEMENT_H
00002 #define KDREPORTSIMAGEELEMENT_H
00003
00004 #include "KDReportsElement.h"
00005 #include "KDReportsUnit.h"
00006 #include <QtCore/QtGlobal>
00007 class QPixmap;
00008
00009 namespace KDReports {
00010
00014 class KDREPORTS_EXPORT ImageElement : public Element
00015 {
00016 public:
00020 explicit ImageElement( const QPixmap& pixmap );
00024 virtual ~ImageElement();
00025
00030 void setPixmap( const QPixmap& pixmap );
00031
00035 ImageElement(const ImageElement &other);
00039 ImageElement &operator=(const ImageElement &other);
00040
00057 void setWidth( qreal width, Unit unit = Millimeters );
00058
00065 void setHeight( qreal height, Unit unit = Millimeters );
00066
00073 void setFitToPage();
00074
00079 void build( ReportBuilder& ) const;
00084 Element* clone() const;
00085
00086 private:
00087 class Private;
00088 Private* const d;
00089 };
00090
00091 }
00092
00093 #endif
00094