- MODELAPI_EXPORT virtual void close() = 0;
-
- //! Starts a new operation (opens a tansaction)
- MODELAPI_EXPORT virtual void startOperation() = 0;
- //! Finishes the previously started operation (closes the transaction)
- MODELAPI_EXPORT virtual void finishOperation() = 0;
- //! Aborts the operation
- MODELAPI_EXPORT virtual void abortOperation() = 0;
- //! Returns true if operation has been started, but not yet finished or aborted
- MODELAPI_EXPORT virtual bool isOperation() = 0;
- //! Returns true if document was modified (since creation/opening)
- MODELAPI_EXPORT virtual bool isModified() = 0;
-
- //! Returns True if there are available Undos
- MODELAPI_EXPORT virtual bool canUndo() = 0;
- //! Undoes last operation
- MODELAPI_EXPORT virtual void undo() = 0;
- //! Returns True if there are available Redos
- MODELAPI_EXPORT virtual bool canRedo() = 0;
- //! Redoes last operation
- MODELAPI_EXPORT virtual void redo() = 0;
+ //! \param theForever if it is false, document is just hiden (to keep possibility make it back on Undo/Redo)
+ virtual void close(const bool theForever = false) = 0;