16 #ifndef QGSCOMPOSERMULTIFRAME_H
17 #define QGSCOMPOSERMULTIFRAME_H
38 UseExistingFrames = 0,
46 virtual QSizeF totalSize()
const = 0;
47 virtual void render( QPainter* p,
const QRectF& renderExtent ) = 0;
49 virtual void addFrame(
QgsComposerFrame* frame,
bool recalcFrameSizes =
true ) = 0;
51 void removeFrame(
int i );
55 void setResizeMode( ResizeMode mode );
58 virtual bool writeXML( QDomElement& elem, QDomDocument & doc,
bool ignoreFrames =
false )
const = 0;
59 bool _writeXML( QDomElement& elem, QDomDocument& doc,
bool ignoreFrames =
false )
const;
61 virtual bool readXML(
const QDomElement& itemElem,
const QDomDocument& doc,
bool ignoreFrames =
false ) = 0;
62 bool _readXML(
const QDomElement& itemElem,
const QDomDocument& doc,
bool ignoreFrames =
false );
86 void recalculateFrameSizes();
90 void handlePageChange();
99 #endif // QGSCOMPOSERMULTIFRAME_H