16 #ifndef QGSCOMPOSERMULTIFRAME_H
17 #define QGSCOMPOSERMULTIFRAME_H
39 UseExistingFrames = 0,
47 virtual QSizeF totalSize()
const = 0;
48 virtual void render( QPainter* p,
const QRectF& renderExtent ) = 0;
50 virtual void addFrame(
QgsComposerFrame* frame,
bool recalcFrameSizes =
true ) = 0;
59 void removeFrame(
int i );
63 void setResizeMode( ResizeMode mode );
66 virtual bool writeXML( QDomElement& elem, QDomDocument & doc,
bool ignoreFrames =
false )
const = 0;
67 bool _writeXML( QDomElement& elem, QDomDocument& doc,
bool ignoreFrames =
false )
const;
69 virtual bool readXML(
const QDomElement& itemElem,
const QDomDocument& doc,
bool ignoreFrames =
false ) = 0;
70 bool _readXML(
const QDomElement& itemElem,
const QDomDocument& doc,
bool ignoreFrames =
false );
103 void recalculateFrameSizes();
116 void handlePageChange();
127 #endif // QGSCOMPOSERMULTIFRAME_H
bool mIsRecalculatingSize
virtual double findNearbyPageBreak(double yPos)
Finds the optimal position to break a frame at.
A item that forms part of a map composition.
ResizeMode resizeMode() const
QgsComposition * mComposition
void setCreateUndoCommands(bool enabled)
Abstract base class for composer entries with the ability to distribute the content to several frames...
QList< QgsComposerFrame * > mFrameItems
bool mCreateUndoCommands
True: creates QgsMultiFrameCommands on internal changes (e.g.
int frameCount() const
Return the number of frames associated with this multiframeset.
Graphics scene for map printing.
Frame for html, table, text which can be divided onto several frames.
QgsComposition * composition()
bool createUndoCommands() const