16 #ifndef QGSCOMPOSERMULTIFRAME_H 17 #define QGSCOMPOSERMULTIFRAME_H 49 UseExistingFrames = 0,
67 virtual QSizeF totalSize()
const = 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 );
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 ResizeMode
Specifies the behaviour for creating new frames to fit the multiframe's content.
A base class for objects which belong to a map composition.
virtual double findNearbyPageBreak(double yPos)
Finds the optimal position to break a frame at.
A item that forms part of a map composition.
void setCreateUndoCommands(bool enabled)
Sets whether undo commands should be created for interactions with the multiframe.
virtual bool writeXML(QDomElement &elem, QDomDocument &doc) const
Stores item state in DOM element.
bool createUndoCommands() const
Returns whether undo commands should be created for interactions with the multiframe.
Abstract base class for composer items with the ability to distribute the content to several frames (...
QList< QgsComposerFrame * > mFrameItems
bool mCreateUndoCommands
True: creates QgsMultiFrameCommands on internal changes (e.g.
Graphics scene for map printing.
Frame item for a composer multiframe item.
QgsComposition * mComposition
virtual QSizeF minFrameSize(const int frameIndex=-1) const
Returns the minimum size for a frames, if desired.
int frameCount() const
Returns the number of frames associated with this multiframe.
virtual bool readXML(const QDomElement &itemElem, const QDomDocument &doc)
Sets item state from DOM element.
QgsComposition * composition()
Returns the parent composition for the multiframe.
virtual QSizeF fixedFrameSize(const int frameIndex=-1) const
Returns the fixed size for a frame, if desired.
ResizeMode resizeMode() const
Returns the resize mode for the multiframe.