InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IAnnotationUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Sumit Pandey
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change $
14 // ___________________
15 //
16 // ADOBE CONFIDENTIAL
17 //
18 // Copyright 2020 Adobe
19 // All Rights Reserved.
20 //
21 // NOTICE: All information contained herein is, and remains
22 // the property of Adobe and its suppliers,
23 // if any. The intellectual and technical concepts contained
24 // herein are proprietary to Adobe and its
25 // suppliers and are protected by all applicable intellectual property
26 // laws, including trade secret and copyright laws.
27 // Dissemination of this information or reproduction of this material
28 // is strictly forbidden unless prior written permission is obtained
29 // from Adobe .
30 //
31 //========================================================================================
32 
33 
34 #ifndef __IAnnotationUtils__
35 #define __IAnnotationUtils__
36 
37 #include "PDFID.h"
38 
39 #include "UIDList.h"
40 
41 #include "AnnotationItem.h"
42 #include "itextRangeNode.h"
43 #include "ITextRangeList.h"
44 
45 #include "IDocument.h"
46 #include <list>
47 class ITextModel;
48 
50 {
51 public:
52  enum { kDefaultIID = IID_IANNOTATIONUTILS };
53 
61  virtual UIDList GetListOfImportPDFAnnotUIDOnPageOrPageItems(const UIDList &uidList, bool bIsSortByTimeStamp = false, bool includeTextRanges = true) = 0;
62 
70  virtual UIDList GetListOfShare4ReviewAnnotUIDOnPageOrPageItems(const UIDList &uidList, bool bIsSortByTimeStamp = false, bool includeTextRanges = true) = 0;
71 
79  virtual UIDList GetListOfAnnotUIDOnTextRange(ITextModel *model, TextIndex start, TextIndex end, bool bIsSortByTimeStamp = false) = 0;
80 
84  virtual UIDList GetListOfAnnotUIDMappedToDoc(const UIDRef &doc) = 0;
85 
91  virtual ErrorCode DeleteAnnotation(const UIDRef &annotUIDRef) = 0;
92 
96  virtual ErrorCode DeleteAnnotationList(const UIDList &annotList) = 0;
97 
105  virtual ErrorCode ChangeAnnotationStatus(const UIDRef &annotation, const AnnotationStatus &newStatus) = 0;
106 
112  virtual void ReadAnnotationData(const UIDRef &annotUIDRef, AnnotationItem &annotData) = 0;
113 };
114 
115 #endif // __IAnnotationUtils__