18 #ifndef QGSCOMPOSERMULTIFRAMECOMMAND_H 19 #define QGSCOMPOSERMULTIFRAMECOMMAND_H 21 #include <QUndoCommand> 22 #include <QDomDocument> 35 void savePreviousState();
36 void saveAfterState();
38 QDomDocument
previousState()
const {
return mPreviousState.cloneNode().toDocument(); }
39 QDomDocument
afterState()
const {
return mAfterState.cloneNode().toDocument(); }
42 bool containsChange()
const;
55 void saveState( QDomDocument& stateDoc );
56 void restoreState( QDomDocument& stateDoc );
82 bool mergeWith(
const QUndoCommand * command )
override;
83 int id()
const override {
return (
int )mContext; }
89 #endif // QGSCOMPOSERMULTIFRAMECOMMAND_H
QDomDocument previousState() const
QDomDocument afterState() const
Abstract base class for composer items with the ability to distribute the content to several frames (...
const QgsComposerMultiFrame * multiFrame() const
A composer command that merges together with other commands having the same context (=id) for multi f...
QDomDocument mPreviousState
QgsComposerMultiFrame * mMultiFrame