18#ifndef QGSHTMLANNOTATION_H
19#define QGSHTMLANNOTATION_H
63 void setHtmlSource(
const QString &htmlSource );
virtual void renderAnnotation(QgsRenderContext &context, QSizeF size) const =0
Renders the annotation's contents to a target /a context at the specified /a size.
virtual void setAssociatedFeature(const QgsFeature &feature)
Sets the feature associated with the annotation.
virtual QSizeF minimumFrameSize() const
Returns the minimum frame size for the annotation.
virtual void readXml(const QDomElement &itemElem, const QgsReadWriteContext &context)=0
Restores the annotation's state from a DOM element.
QgsAnnotation(QObject *parent=nullptr)
Constructor for QgsAnnotation.
virtual QgsAnnotation * clone() const =0
Clones the annotation, returning a new copy of the annotation reflecting the annotation's current sta...
virtual void writeXml(QDomElement &elem, QDomDocument &doc, const QgsReadWriteContext &context) const =0
Writes the annotation state to a DOM element.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
static QgsHtmlAnnotation * create()
Returns a new QgsHtmlAnnotation object.
QString htmlSource() const
Returns html source text.
QgsHtmlAnnotation(QObject *parent=nullptr)
Constructor for QgsHtmlAnnotation.
void setSourceFile(const QString &htmlFile)
Sets the file path for the source HTML file.
QString sourceFile() const
Returns the file path for the source HTML file.
A container for the context for various read/write operations on objects.
Contains information about the context of a rendering operation.
QWebPage subclass which redirects JavaScript errors and console output to the QGIS message log.