Quantum GIS API Documentation  1.8
Public Member Functions | Private Member Functions
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 ()
virtual int type () const
 return correct graphics item type.
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

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().

Definition at line 36 of file qgspaperitem.cpp.

Definition at line 31 of file qgspaperitem.cpp.

References initialize().

Member Function Documentation

void QgsPaperItem::initialize ( ) [private]

Set flags and z-value.

Definition at line 127 of file qgspaperitem.cpp.

Referenced by QgsPaperItem().

void QgsPaperItem::paint ( QPainter *  painter,
const QStyleOptionGraphicsItem *  itemStyle,
QWidget *  pWidget 
bool QgsPaperItem::readXML ( const QDomElement &  itemElem,
const QDomDocument &  doc 
) [virtual]

sets state from Dom document

itemElemis Dom node corresponding to item tag
docis the Dom document

Implements QgsComposerItem.

Definition at line 120 of file qgspaperitem.cpp.

virtual int QgsPaperItem::type ( ) const [inline, virtual]

return correct graphics item type.

Added in v1.7

Reimplemented from QgsComposerItem.

Definition at line 33 of file qgspaperitem.h.

References QgsComposerItem::ComposerPaper.

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

stores state in Dom element

elemis Dom element corresponding to 'Composer' tag
docDom document

Implements QgsComposerItem.

Definition at line 113 of file qgspaperitem.cpp.

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines