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-2024 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 
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 
43 
50 
56  bool CanUndo() const;
57 
64 
71 
77  bool CanRedo() const;
78 
85 
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
DocSnapshot GetNextUndoSnapshot() const
UndoManager(const UndoManager &other)
ResultSnapshot TakeSnapshot()
DocSnapshot DiscardAllSnapshots()
UndoManager & operator=(const UndoManager &other)
ResultSnapshot Redo()
DocSnapshot GetNextRedoSnapshot() const
TRN_UndoManager m_impl
Definition: UndoManager.h:98
ResultSnapshot Undo()