QGIS API Documentation
2.0.1-Dufour
|
#include <qgscomposerhtml.h>
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) |
QgsComposition * | composition () |
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. | |
QgsComposerFrame * | frame (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 | |
QgsComposition * | mComposition |
QList< QgsComposerFrame * > | mFrameItems |
ResizeMode | mResizeMode |
bool | mCreateUndoCommands |
True: creates QgsMultiFrameCommands on internal changes (e.g. |
Definition at line 24 of file qgscomposerhtml.h.
QgsComposerHtml::QgsComposerHtml | ( | QgsComposition * | c, |
bool | createUndoCommands | ||
) |
Definition at line 25 of file qgscomposerhtml.cpp.
References frameLoaded(), QgsComposerMultiFrame::handleFrameRemoval(), htmlUnitsToMM(), QgsComposerMultiFrame::mComposition, mHtmlUnitsToMM, and mWebPage.
QgsComposerHtml::QgsComposerHtml | ( | ) |
Definition at line 37 of file qgscomposerhtml.cpp.
QgsComposerHtml::~QgsComposerHtml | ( | ) |
Definition at line 41 of file qgscomposerhtml.cpp.
References mWebPage.
|
virtual |
Implements QgsComposerMultiFrame.
Definition at line 109 of file qgscomposerhtml.cpp.
References QgsComposition::addComposerHtmlFrame(), QgsComposerMultiFrame::mComposition, QgsComposerMultiFrame::mFrameItems, and QgsComposerMultiFrame::recalculateFrameSizes().
Referenced by QgsComposerView::mouseReleaseEvent().
|
privateslot |
Definition at line 74 of file qgscomposerhtml.cpp.
References mLoaded.
Referenced by QgsComposerHtml().
|
private |
Definition at line 99 of file qgscomposerhtml.cpp.
References QgsComposerMultiFrame::mComposition, and QgsComposition::printResolution().
Referenced by QgsComposerHtml().
|
virtual |
Implements QgsComposerMultiFrame.
Definition at line 133 of file qgscomposerhtml.cpp.
References QgsComposerMultiFrame::_readXML(), QgsComposerMultiFrame::deleteFrames(), and setUrl().
Referenced by QgsComposition::addItemsFromXML().
|
virtual |
Implements QgsComposerMultiFrame.
Definition at line 85 of file qgscomposerhtml.cpp.
References mHtmlUnitsToMM, and mWebPage.
void QgsComposerHtml::setUrl | ( | const QUrl & | url | ) |
Definition at line 46 of file qgscomposerhtml.cpp.
References QgsComposerMultiFrame::changed(), QgsComposerMultiFrame::frameCount(), QgsComposerMultiFrame::mFrameItems, mHtmlUnitsToMM, mLoaded, mSize, mUrl, mWebPage, QgsComposerMultiFrame::recalculateFrameSizes(), and url().
Referenced by readXML().
|
virtual |
Implements QgsComposerMultiFrame.
Definition at line 80 of file qgscomposerhtml.cpp.
References mSize.
|
inline |
Definition at line 33 of file qgscomposerhtml.h.
Referenced by setUrl().
|
virtual |
Implements QgsComposerMultiFrame.
Definition at line 124 of file qgscomposerhtml.cpp.
References QgsComposerMultiFrame::_writeXML(), and mUrl.
|
private |
Definition at line 51 of file qgscomposerhtml.h.
Referenced by QgsComposerHtml(), render(), and setUrl().
|
private |
Definition at line 49 of file qgscomposerhtml.h.
Referenced by frameLoaded(), and setUrl().
|
private |
Definition at line 50 of file qgscomposerhtml.h.
Referenced by setUrl(), and totalSize().
|
private |
Definition at line 47 of file qgscomposerhtml.h.
Referenced by setUrl(), and writeXML().
|
private |
Definition at line 48 of file qgscomposerhtml.h.
Referenced by QgsComposerHtml(), render(), setUrl(), and ~QgsComposerHtml().