16 #ifndef QGSCOMPOSERHTML_H
17 #define QGSCOMPOSERHTML_H
33 void setUrl(
const QUrl& url );
34 const QUrl&
url()
const {
return mUrl; }
37 void render( QPainter* p,
const QRectF& renderExtent );
39 bool writeXML( QDomElement& elem, QDomDocument & doc,
bool ignoreFrames =
false )
const;
40 bool readXML(
const QDomElement& itemElem,
const QDomDocument& doc,
bool ignoreFrames =
false );
60 void setUseSmartBreaks(
bool useSmartBreaks );
74 void setMaxBreakDistance(
double maxBreakDistance );
96 void frameLoaded(
bool ok );
108 double htmlUnitsToMM();
111 void renderCachedImage();
114 #endif // QGSCOMPOSERHTML_H
virtual void render(QPainter *p, const QRectF &renderExtent)=0
virtual double findNearbyPageBreak(double yPos)
Finds the optimal position to break a frame at.
virtual QSizeF totalSize() const =0
bool useSmartBreaks() const
Returns whether html item is using smart breaks.
virtual void addFrame(QgsComposerFrame *frame, bool recalcFrameSizes=true)=0
Abstract base class for composer entries with the ability to distribute the content to several frames...
Graphics scene for map printing.
Frame for html, table, text which can be divided onto several frames.
virtual bool writeXML(QDomElement &elem, QDomDocument &doc, bool ignoreFrames=false) const =0
double maxBreakDistance() const
Returns the maximum distance allowed when calculating where to place page breaks in the html...
virtual bool readXML(const QDomElement &itemElem, const QDomDocument &doc, bool ignoreFrames=false)=0