QGIS API Documentation  2.2.0-Valmiera
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
QgsComposerHtml Class Reference

#include <qgscomposerhtml.h>

Inheritance diagram for QgsComposerHtml:
Inheritance graph
[legend]
Collaboration diagram for QgsComposerHtml:
Collaboration graph
[legend]

Public Member Functions

 QgsComposerHtml (QgsComposition *c, bool createUndoCommands)
 QgsComposerHtml ()
 ~QgsComposerHtml ()
void setUrl (const QUrl &url)
const QUrl & url () const
QSizeF totalSize () const
void render (QPainter *p, const QRectF &renderExtent)
bool writeXML (QDomElement &elem, QDomDocument &doc, bool ignoreFrames=false) const
bool readXML (const QDomElement &itemElem, const QDomDocument &doc, bool ignoreFrames=false)
void addFrame (QgsComposerFrame *frame, bool recalcFrameSizes=true)
- Public Member Functions inherited from QgsComposerMultiFrame
 QgsComposerMultiFrame (QgsComposition *c, bool createUndoCommands)
virtual ~QgsComposerMultiFrame ()
void removeFrame (int i)
void update ()
void setResizeMode (ResizeMode mode)
ResizeMode resizeMode () const
bool _writeXML (QDomElement &elem, QDomDocument &doc, bool ignoreFrames=false) const
bool _readXML (const QDomElement &itemElem, const QDomDocument &doc, bool ignoreFrames=false)
QgsCompositioncomposition ()
bool createUndoCommands () const
void setCreateUndoCommands (bool enabled)
void deleteFrames ()
 Removes and deletes all frames from mComposition.
int frameCount () const
 Return the number of frames associated with this multiframeset.
QgsComposerFrameframe (int i) const

Private Slots

void frameLoaded (bool ok)

Private Member Functions

double htmlUnitsToMM ()

Private Attributes

QUrl mUrl
QWebPage * mWebPage
bool mLoaded
QSizeF mSize
double mHtmlUnitsToMM

Additional Inherited Members

- Public Types inherited from QgsComposerMultiFrame
enum  ResizeMode { UseExistingFrames = 0, ExtendToNextPage, RepeatOnEveryPage, RepeatUntilFinished }
- Signals inherited from QgsComposerMultiFrame
void changed ()
- Protected Slots inherited from QgsComposerMultiFrame
void recalculateFrameSizes ()
void handleFrameRemoval (QgsComposerItem *item)
 Called before a frame is going to be removed (update frame list)
void handlePageChange ()
 Adapts to changed number of pages if resize type is RepeatOnEveryPage.
- Protected Attributes inherited from QgsComposerMultiFrame
QgsCompositionmComposition
QList< QgsComposerFrame * > mFrameItems
ResizeMode mResizeMode
bool mCreateUndoCommands
 True: creates QgsMultiFrameCommands on internal changes (e.g.

Detailed Description

Definition at line 24 of file qgscomposerhtml.h.

Constructor & Destructor Documentation

QgsComposerHtml::QgsComposerHtml ( QgsComposition c,
bool  createUndoCommands 
)
QgsComposerHtml::QgsComposerHtml ( )

Definition at line 37 of file qgscomposerhtml.cpp.

QgsComposerHtml::~QgsComposerHtml ( )

Definition at line 41 of file qgscomposerhtml.cpp.

References mWebPage.

Member Function Documentation

void QgsComposerHtml::addFrame ( QgsComposerFrame frame,
bool  recalcFrameSizes = true 
)
virtual
void QgsComposerHtml::frameLoaded ( bool  ok)
privateslot

Definition at line 74 of file qgscomposerhtml.cpp.

References mLoaded.

Referenced by QgsComposerHtml().

double QgsComposerHtml::htmlUnitsToMM ( )
private
bool QgsComposerHtml::readXML ( const QDomElement &  itemElem,
const QDomDocument &  doc,
bool  ignoreFrames = false 
)
virtual
void QgsComposerHtml::render ( QPainter *  p,
const QRectF &  renderExtent 
)
virtual

Implements QgsComposerMultiFrame.

Definition at line 85 of file qgscomposerhtml.cpp.

References mHtmlUnitsToMM, and mWebPage.

void QgsComposerHtml::setUrl ( const QUrl &  url)
QSizeF QgsComposerHtml::totalSize ( ) const
virtual

Implements QgsComposerMultiFrame.

Definition at line 80 of file qgscomposerhtml.cpp.

References mSize.

const QUrl& QgsComposerHtml::url ( ) const
inline

Definition at line 33 of file qgscomposerhtml.h.

Referenced by setUrl().

bool QgsComposerHtml::writeXML ( QDomElement &  elem,
QDomDocument &  doc,
bool  ignoreFrames = false 
) const
virtual

Implements QgsComposerMultiFrame.

Definition at line 124 of file qgscomposerhtml.cpp.

References QgsComposerMultiFrame::_writeXML(), and mUrl.

Member Data Documentation

double QgsComposerHtml::mHtmlUnitsToMM
private

Definition at line 51 of file qgscomposerhtml.h.

Referenced by QgsComposerHtml(), render(), and setUrl().

bool QgsComposerHtml::mLoaded
private

Definition at line 49 of file qgscomposerhtml.h.

Referenced by frameLoaded(), and setUrl().

QSizeF QgsComposerHtml::mSize
private

Definition at line 50 of file qgscomposerhtml.h.

Referenced by setUrl(), and totalSize().

QUrl QgsComposerHtml::mUrl
private

Definition at line 47 of file qgscomposerhtml.h.

Referenced by setUrl(), and writeXML().

QWebPage* QgsComposerHtml::mWebPage
private

Definition at line 48 of file qgscomposerhtml.h.

Referenced by QgsComposerHtml(), render(), setUrl(), and ~QgsComposerHtml().


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