QgsPaperItem Class Reference

Item representing the paper. More...

#include <qgspaperitem.h>

Inheritance diagram for QgsPaperItem:

Inheritance graph
Collaboration diagram for QgsPaperItem:

Collaboration graph

List of all members.

Public Member Functions

 QgsPaperItem (QgsComposition *c)
 QgsPaperItem (qreal x, qreal y, qreal width, qreal height, QgsComposition *composition)
 ~QgsPaperItem ()
void paint (QPainter *painter, const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget)
 Reimplementation of QCanvasItem::paint.
bool writeXML (QDomElement &elem, QDomDocument &doc) const
 stores state in Dom element
bool readXML (const QDomElement &itemElem, const QDomDocument &doc)
 sets state from Dom document

Private Member Functions

 QgsPaperItem ()
void initialize ()
 Set flags and z-value.

Detailed Description

Item representing the paper.

May draw the snapping grid lines if composition is in preview mode

Definition at line 25 of file qgspaperitem.h.

Constructor & Destructor Documentation

QgsPaperItem::QgsPaperItem ( QgsComposition c  ) 

Definition at line 21 of file qgspaperitem.cpp.

References initialize().

QgsPaperItem::QgsPaperItem ( qreal  x,
qreal  y,
qreal  width,
qreal  height,
QgsComposition composition 

Definition at line 26 of file qgspaperitem.cpp.

References initialize().

QgsPaperItem::~QgsPaperItem (  ) 

Definition at line 36 of file qgspaperitem.cpp.

QgsPaperItem::QgsPaperItem (  )  [private]

Definition at line 31 of file qgspaperitem.cpp.

References initialize().

Member Function Documentation

void QgsPaperItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  itemStyle,
QWidget *  pWidget 

bool QgsPaperItem::writeXML ( QDomElement &  elem,
QDomDocument &  doc 
) const [virtual]

stores state in Dom element

elem is Dom element corresponding to 'Composer' tag
doc Dom document

Implements QgsComposerItem.

Definition at line 111 of file qgspaperitem.cpp.

bool QgsPaperItem::readXML ( const QDomElement &  itemElem,
const QDomDocument &  doc 
) [virtual]

sets state from Dom document

itemElem is Dom node corresponding to item tag
doc is the Dom document

Implements QgsComposerItem.

Definition at line 116 of file qgspaperitem.cpp.

void QgsPaperItem::initialize (  )  [private]

Set flags and z-value.

Definition at line 121 of file qgspaperitem.cpp.

Referenced by QgsPaperItem().

The documentation for this class was generated from the following files:

Generated on Sat Feb 4 19:17:43 2012 for Quantum GIS API Documentation by  doxygen 1.5.6