16 #ifndef QGSCOMPOSERMULTIFRAME_H
17 #define QGSCOMPOSERMULTIFRAME_H
49 UseExistingFrames = 0,
67 virtual QSizeF totalSize()
const = 0;
79 virtual QSizeF
fixedFrameSize(
const int frameIndex = -1 )
const { Q_UNUSED( frameIndex );
return QSizeF( 0, 0 ); }
91 virtual QSizeF
minFrameSize(
const int frameIndex = -1 )
const { Q_UNUSED( frameIndex );
return QSizeF( 0, 0 ); }
98 Q_DECL_DEPRECATED
virtual void render( QPainter* p,
const QRectF& renderExtent );
106 virtual void render( QPainter* painter,
const QRectF& renderExtent,
const int frameIndex );
113 virtual void addFrame(
QgsComposerFrame* frame,
bool recalcFrameSizes =
true ) = 0;
130 void removeFrame(
int i,
const bool removeEmptyPages =
false );
141 void setResizeMode( ResizeMode mode );
156 virtual bool writeXML( QDomElement& elem, QDomDocument & doc,
bool ignoreFrames =
false )
const = 0;
165 bool _writeXML( QDomElement& elem, QDomDocument& doc,
bool ignoreFrames =
false )
const;
174 virtual bool readXML(
const QDomElement& itemElem,
const QDomDocument& doc,
bool ignoreFrames =
false ) = 0;
183 bool _readXML(
const QDomElement& itemElem,
const QDomDocument& doc,
bool ignoreFrames =
false );
236 virtual QString displayName()
const;
250 virtual void recalculateFrameSizes();
260 void recalculateFrameRects();
272 void contentsChanged();
292 void handlePageChange();
297 bool mIsRecalculatingSize;
300 #endif // QGSCOMPOSERMULTIFRAME_H