- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ExternalAnnotManager.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_CPPPDFExternalAnnotManager
9 #define PDFTRON_H_CPPPDFExternalAnnotManager
10 #include <C/PDF/TRN_ExternalAnnotManager.h>
11 #include <Common/BasicTypes.h>
12 #include <Common/UString.h>
13 #include <PDF/PDFDoc.h>
14
15 namespace pdftron { namespace PDF {
16
17
25 class ExternalAnnotManager
26 {
27 public:
28 enum Mode // Important: all collaborators need to use the same Mode
29 {
30 e_user_only, // each user can only edit the annotations they created
31 e_admin_undo_others, // all the annotations can be edited, can undo yours and other's changes
32 e_admin_undo_own // all the annotations can be edited, can undo only your changes. Incremental save is not supported in this mode
33 };
34
35 ExternalAnnotManager();
36 ExternalAnnotManager(const ExternalAnnotManager& other);
37 ExternalAnnotManager(TRN_ExternalAnnotManager impl);
38 ExternalAnnotManager& operator= (const ExternalAnnotManager& other);
39 ~ExternalAnnotManager();
40
41 void Destroy();
42
43 //methods:
44
50 void MergeXFDF(UString xfdf_content);
51
57 UString Undo();
58
64 UString GetLastXFDF() const;
65
71 UString GetLastJSON() const;
72
78 UString Redo();
79
85 UString GetNextRedoInfo();
86
92 UString GetNextUndoInfo();
93
100 UString TakeSnapshot(UString payload);
101
102 #ifndef SWIGHIDDEN
103 TRN_ExternalAnnotManager m_impl;
104 #endif
105
106 private:
107
108 #ifndef SWIGHIDDEN
109 mutable bool m_owner;
110 #endif
111 };
112
113 #include <Impl/ExternalAnnotManager.inl>
114 } //end pdftron
115 } //end PDF
116
117
118 #endif //PDFTRON_H_CPPPDFExternalAnnotManager
pdftron::PDF::ExternalAnnotManager::GetNextRedoInfo
UString GetNextRedoInfo()
pdftron::PDF::ExternalAnnotManager::Destroy
void Destroy()
pdftron::PDF::ExternalAnnotManager::Redo
UString Redo()
pdftron::PDF::ExternalAnnotManager::TakeSnapshot
UString TakeSnapshot(UString payload)
pdftron::PDF::ExternalAnnotManager::~ExternalAnnotManager
~ExternalAnnotManager()
pdftron::PDF::ExternalAnnotManager::operator=
ExternalAnnotManager & operator=(const ExternalAnnotManager &other)
UString.h
pdftron::PDF::ExternalAnnotManager::GetLastXFDF
UString GetLastXFDF() const
pdftron::PDF::ExternalAnnotManager::ExternalAnnotManager
ExternalAnnotManager()
pdftron::PDF::ExternalAnnotManager
Definition: ExternalAnnotManager.h:25
pdftron::PDF::ExternalAnnotManager::Undo
UString Undo()
PDFDoc.h
pdftron::PDF::ExternalAnnotManager::e_admin_undo_own
Definition: ExternalAnnotManager.h:32
pdftron::PDF::ExternalAnnotManager::GetNextUndoInfo
UString GetNextUndoInfo()
pdftron::PDF::ExternalAnnotManager::Mode
Mode
Definition: ExternalAnnotManager.h:28
BasicTypes.h
pdftron::PDF::ExternalAnnotManager::e_user_only
Definition: ExternalAnnotManager.h:30
pdftron::PDF::ExternalAnnotManager::m_impl
TRN_ExternalAnnotManager m_impl
Definition: ExternalAnnotManager.h:103
pdftron::PDF::ExternalAnnotManager::MergeXFDF
void MergeXFDF(UString xfdf_content)
pdftron::PDF::ExternalAnnotManager::e_admin_undo_others
Definition: ExternalAnnotManager.h:31
pdftron::PDF::ExternalAnnotManager::GetLastJSON
UString GetLastJSON() const
pdftron::UString
Definition: UString.h:27