18 #ifndef QGSLAYOUTMULTIFRAMEUNDOCOMMAND_H 19 #define QGSLAYOUTMULTIFRAMEUNDOCOMMAND_H 22 #include "qgis_core.h" 55 bool mergeWith(
const QUndoCommand *command )
override;
66 QString multiFrameUuid()
const;
70 void saveState( QDomDocument &stateDoc )
const override;
93 class CORE_EXPORT QgsLayoutMultiFrameDeleteUndoCommand:
public QgsLayoutMultiFrameUndoCommand
105 bool mergeWith(
const QUndoCommand *command )
override;
106 void redo()
override;
121 class CORE_EXPORT QgsLayoutMultiFrameAddItemCommand:
public QgsLayoutMultiFrameUndoCommand
133 bool containsChange()
const override;
134 bool mergeWith(
const QUndoCommand *command )
override;
135 void undo()
override;
141 #endif //QGSLAYOUTMULTIFRAMEUNDOCOMMAND_H
virtual void restoreState(QDomDocument &stateDoc)=0
Restores the state of the object from the specified stateDoc.
Base class for commands to undo/redo layout and layout object changes.
Abstract base class for layout items with the ability to distribute the content to several frames (Qg...
virtual void saveState(QDomDocument &stateDoc) const =0
Saves the state of the object to the specified stateDoc.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.