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-2023 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 
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 
37  ExternalAnnotManager(TRN_ExternalAnnotManager impl);
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 
86 
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
UString TakeSnapshot(UString payload)
ExternalAnnotManager & operator=(const ExternalAnnotManager &other)
void MergeXFDF(UString xfdf_content)