- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UndoManager.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3 // Consult legal.txt regarding legal and license information.
4 //---------------------------------------------------------------------------------------
5 // !Warning! This file is autogenerated, modify the .codegen file, not this one
6 // (any changes here will be wiped out during the autogen process)
7
8 #ifndef PDFTRON_H_CPPSDFUndoManager
9 #define PDFTRON_H_CPPSDFUndoManager
10 #include <C/SDF/TRN_UndoManager.h>
11 #include <SDF/DocSnapshot.h>
12 #include <SDF/ResultSnapshot.h>
13
14 #include <Common/BasicTypes.h>
15 #include <Common/UString.h>
16 #include <PDF/PDFDoc.h>
17
18 namespace pdftron { namespace SDF {
19
20
25 class UndoManager
26 {
27 public:
28 UndoManager(const UndoManager& other);
29 UndoManager(TRN_UndoManager impl);
30 UndoManager& operator= (const UndoManager& other);
31 ~UndoManager();
32
33 void Destroy();
34
35 //methods:
36
42 DocSnapshot DiscardAllSnapshots();
43
49 ResultSnapshot Undo();
50
56 bool CanUndo() const;
57
63 DocSnapshot GetNextUndoSnapshot() const;
64
70 ResultSnapshot Redo();
71
77 bool CanRedo() const;
78
84 DocSnapshot GetNextRedoSnapshot() const;
85
91 ResultSnapshot TakeSnapshot();
92
93 #ifdef SWIG
94 UndoManager();
95 #endif
96
97 #ifndef SWIGHIDDEN
98 TRN_UndoManager m_impl;
99 #endif
100
101 private:
102
103 #ifndef SWIGHIDDEN
104 mutable bool m_owner;
105 #endif
106 };
107
108 #include <Impl/UndoManager.inl>
109 } //end pdftron
110 } //end SDF
111
112
113 #endif //PDFTRON_H_CPPSDFUndoManager
pdftron::SDF::DocSnapshot
Definition: DocSnapshot.h:23
UString.h
pdftron::SDF::UndoManager::GetNextUndoSnapshot
DocSnapshot GetNextUndoSnapshot() const
pdftron::SDF::UndoManager
Definition: UndoManager.h:25
pdftron::SDF::UndoManager::Destroy
void Destroy()
pdftron::SDF::ResultSnapshot
Definition: ResultSnapshot.h:23
pdftron::SDF::UndoManager::UndoManager
UndoManager(const UndoManager &other)
PDFDoc.h
ResultSnapshot.h
DocSnapshot.h
pdftron::SDF::UndoManager::CanUndo
bool CanUndo() const
BasicTypes.h
pdftron::SDF::UndoManager::~UndoManager
~UndoManager()
pdftron::SDF::UndoManager::TakeSnapshot
ResultSnapshot TakeSnapshot()
pdftron::SDF::UndoManager::DiscardAllSnapshots
DocSnapshot DiscardAllSnapshots()
pdftron::SDF::UndoManager::operator=
UndoManager & operator=(const UndoManager &other)
pdftron::SDF::UndoManager::Redo
ResultSnapshot Redo()
pdftron::SDF::UndoManager::GetNextRedoSnapshot
DocSnapshot GetNextRedoSnapshot() const
pdftron::SDF::UndoManager::m_impl
TRN_UndoManager m_impl
Definition: UndoManager.h:98
pdftron::SDF::UndoManager::CanRedo
bool CanRedo() const
pdftron::SDF::UndoManager::Undo
ResultSnapshot Undo()