Quantum GIS API Documentation
1.7.4
|
00001 /*************************************************************************** 00002 qgspaperitem.h 00003 ------------------- 00004 begin : September 2008 00005 copyright : (C) 2008 by Marco Hugentobler 00006 email : marco dot hugentobler at karto dot baug dot ethz dot ch 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 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 virtual int type() const { return ComposerPaper; } 00034 00036 void paint( QPainter* painter, const QStyleOptionGraphicsItem* itemStyle, QWidget* pWidget ); 00037 00042 bool writeXML( QDomElement& elem, QDomDocument & doc ) const; 00043 00048 bool readXML( const QDomElement& itemElem, const QDomDocument& doc ); 00049 00050 private: 00051 QgsPaperItem(); 00053 void initialize(); 00054 }; 00055 00056 #endif