#include <UndoManager.h>
The class UndoManager. Undo-redo interface; one-to-one mapped to document
Definition at line 25 of file UndoManager.h.
pdftron::SDF::UndoManager::UndoManager |
( |
const UndoManager & |
other | ) |
|
pdftron::SDF::UndoManager::UndoManager |
( |
TRN_UndoManager |
impl | ) |
|
pdftron::SDF::UndoManager::~UndoManager |
( |
| ) |
|
bool pdftron::SDF::UndoManager::CanRedo |
( |
| ) |
const |
Returns a boolean indicating whether it is possible to redo from the current snapshot.
- Returns
- A boolean indicating whether it is possible to redo from the current snapshot.
bool pdftron::SDF::UndoManager::CanUndo |
( |
| ) |
const |
Returns whether it is possible to undo from the current snapshot.
- Returns
- Whether it is possible to undo from the current snapshot.
void pdftron::SDF::UndoManager::Destroy |
( |
| ) |
|
DocSnapshot pdftron::SDF::UndoManager::DiscardAllSnapshots |
( |
| ) |
|
Forget all changes in this manager (without changing the document).
- Returns
- An invalid DocSnapshot.
DocSnapshot pdftron::SDF::UndoManager::GetNextRedoSnapshot |
( |
| ) |
const |
Gets the next state of the document. This state may be invalid if it is impossible to redo.
- Returns
- The next state of the document. This state may be invalid if it is impossible to redo.
DocSnapshot pdftron::SDF::UndoManager::GetNextUndoSnapshot |
( |
| ) |
const |
Gets the previous state of the document. This state may be invalid if it is impossible to undo.
- Returns
- The previous state of the document. This state may be invalid if it is impossible to undo.
Restores to the next snapshot, if there is one.
- Returns
- A representation of the transition to the next snapshot, if there is one.
Creates a snapshot of document state, transitions to the new snapshot.
- Returns
- A representation of the transition.
Restores to the previous snapshot point, if there is one.
- Returns
- The resulting snapshot id.
TRN_UndoManager pdftron::SDF::UndoManager::m_impl |
The documentation for this class was generated from the following file: