18 #ifndef QGSCOMPOSERITEMCOMMAND_H 19 #define QGSCOMPOSERITEMCOMMAND_H 21 #include <QUndoCommand> 22 #include <QDomDocument> 42 void savePreviousState();
44 void saveAfterState();
50 bool containsChange()
const;
145 int id()
const override {
return static_cast< int >( mContext ); }
151 #endif // QGSCOMPOSERITEMCOMMAND_H
QDomDocument afterState() const
A item that forms part of a map composition.
A composer command that merges together with other commands having the same context (=id)...
virtual bool mergeWith(const QUndoCommand *command)
QDomDocument previousState() const
Abstract base class for composer items with the ability to distribute the content to several frames (...
bool mFirstRun
Flag to prevent the first redo() if the command is pushed to the undo stack.
Undo command to undo/redo all composer item related changes.
QDomDocument mAfterState
XML containing the state after executing the command.
QDomNode cloneNode(bool deep) const
QgsComposerItem * mItem
Target item of the command.
QgsComposerMultiFrame * mMultiFrame
Parameters for frame items.
QDomDocument toDocument() const
QDomDocument mPreviousState
XML that saves the state before executing the command.