23 QUndoCommand( text, parent ), mMultiFrame( multiFrame ), mFirstRun( true )
bool mergeWith(const QUndoCommand *command) override
void setDirty(bool b=true)
Flag the project as dirty (modified).
bool containsChange() const
Returns true if previous state and after state are valid and different.
QDomNode appendChild(const QDomNode &newChild)
~QgsComposerMultiFrameCommand()
QgsComposerMultiFrameCommand()
QString toString(int indent) const
QDomElement documentElement() const
const QgsComposerMultiFrame * multiFrame() const
QDomElement toElement() const
void restoreState(QDomDocument &stateDoc)
void saveState(QDomDocument &stateDoc)
QDomDocument afterState() const
Abstract base class for composer items with the ability to distribute the content to several frames (...
QDomDocument mPreviousState
virtual bool writeXML(QDomElement &elem, QDomDocument &doc, bool ignoreFrames=false) const =0
Stores state information about multiframe in DOM element.
QDomNode firstChild() const
~QgsComposerMultiFrameMergeCommand()
static QgsProject * instance()
Returns the QgsProject singleton instance.
QgsComposerMultiFrame * mMultiFrame
QgsComposerMultiFrameMergeCommand(Context c, QgsComposerMultiFrame *multiFrame, const QString &text)
virtual bool readXML(const QDomElement &itemElem, const QDomDocument &doc, bool ignoreFrames=false)=0
Reads multiframe state information from a DOM element.
QDomElement createElement(const QString &tagName)