00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef QGSPAPERITEM_H
00019 #define QGSPAPERITEM_H
00020
00021 #include "qgscomposeritem.h"
00022
00025 class CORE_EXPORT QgsPaperItem: public QgsComposerItem
00026 {
00027 public:
00028 QgsPaperItem( QgsComposition* c );
00029 QgsPaperItem( qreal x, qreal y, qreal width, qreal height, QgsComposition* composition );
00030 ~QgsPaperItem();
00031
00033 void paint( QPainter* painter, const QStyleOptionGraphicsItem* itemStyle, QWidget* pWidget );
00034
00039 bool writeXML( QDomElement& elem, QDomDocument & doc ) const;
00040
00045 bool readXML( const QDomElement& itemElem, const QDomDocument& doc );
00046
00047 private:
00048 QgsPaperItem();
00050 void initialize();
00051 };
00052
00053 #endif