16 #ifndef QGSCOMPOSERFRAME_H 17 #define QGSCOMPOSERFRAME_H 81 void setHidePageIfEmpty(
const bool hidePageIfEmpty );
95 void setHideBackgroundIfEmpty(
const bool hideBackgroundIfEmpty );
102 bool isEmpty()
const;
112 bool mHidePageIfEmpty;
114 bool mHideBackgroundIfEmpty;
118 #endif // QGSCOMPOSERFRAME_H
virtual QString displayName() const
Get item display name.
virtual void beginItemCommand(const QString &text)
A item that forms part of a map composition.
virtual bool writeXML(QDomElement &elem, QDomDocument &doc) const
Stores item state in DOM element.
virtual QgsExpressionContext * createExpressionContext() const override
Creates an expression context relating to the item's current state.
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
QRectF extent() const
Returns the visible portion of the multi frame's content which is shown in this frame.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Abstract base class for composer items with the ability to distribute the content to several frames (...
int type() const override
Return correct graphics item type.
Graphics scene for map printing.
Frame item for a composer multiframe item.
bool hidePageIfEmpty() const
Returns whether the page should be hidden (ie, not included in composer exports) if this frame is emp...
virtual void endItemCommand()
bool hideBackgroundIfEmpty() const
Returns whether the background and frame border should be hidden if this frame is empty...
virtual bool readXML(const QDomElement &itemElem, const QDomDocument &doc)
Sets item state from DOM element.
QgsComposerMultiFrame * multiFrame() const
Returns the parent multiframe for the frame.
virtual void setSceneRect(const QRectF &rectangle)
Sets this items bound in scene coordinates such that 1 item size units corresponds to 1 scene size un...
void setContentSection(const QRectF §ion)
Sets the visible part of the multiframe's content which is visible within this frame (relative to the...