Loading...
Searching...
No Matches
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
18namespace pdftron { namespace SDF {
19
20
26{
27public:
28 UndoManager(const UndoManager& other);
29 UndoManager(TRN_UndoManager impl);
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
95#endif
96
97#ifndef SWIGHIDDEN
98 TRN_UndoManager m_impl;
99#endif
100
101private:
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
UndoManager(const UndoManager &other)
ResultSnapshot TakeSnapshot()
ResultSnapshot Undo()
UndoManager(TRN_UndoManager impl)
DocSnapshot GetNextUndoSnapshot() const
UndoManager & operator=(const UndoManager &other)
DocSnapshot GetNextRedoSnapshot() const
TRN_UndoManager m_impl
Definition UndoManager.h:98
ResultSnapshot Redo()
DocSnapshot DiscardAllSnapshots()