InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AnnotationCollection.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Souvik Sinha Deb
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE CONFIDENTIAL
16 //
17 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
18 //
19 // NOTICE: All information contained herein is, and remains
20 // the property of Adobe Systems Incorporated and its suppliers,
21 // if any. The intellectual and technical concepts contained
22 // herein are proprietary to Adobe Systems Incorporated and its
23 // suppliers and may be covered by U.S. and Foreign Patents,
24 // patents in process, and are protected by trade secret or copyright law.
25 // Dissemination of this information or reproduction of this material
26 // is strictly forbidden unless prior written permission is obtained
27 // from Adobe Systems Incorporated.
28 //
29 //========================================================================================
30 
31 #ifndef __AnnotationCollection__
32 #define __AnnotationCollection__
33 
34 // Annotation Collection Class -- implements a collection of all annotations belonging to a particular document.
35 
36 #include "AnnotationItem.h"
37 #include "AnnotationPage.h"
38 #include "boost/uuid/uuid.hpp"
39 #include "boost/uuid/uuid_generators.hpp"
40 #include "boost/uuid/uuid_io.hpp"
41 
42 typedef std::string AnnotationCollectionID;
43 
45 {
46 public:
50 
54  //virtual void SetAnnotationCollectionDocumentUID(const UID& docID);
55 
59  //virtual void GetAnnotationCollectionDocumentUID(UID& docID);
60 
64  virtual void GetAnnotationCollectionID(AnnotationCollectionID& annotCollectionid) const;
65 
69  //virtual void SetNumberOfAnnotationsInDocument(const int& totalNumberOfAnnotationsPresent);
70 
74  //virtual void GetNumberOfAnnotationsInDocument(int& totalNumberOfAnnotationsPresent);
75 
79  virtual void SetListOfPagesInCollection(const std::vector<std::shared_ptr<AnnotationPage>>& pages);
80 
84  virtual void GetListOfPagesInCollection(std::vector<std::shared_ptr<AnnotationPage>>& pages) const;
85 
89  virtual void AppendListOfPagesToCollection(const std::vector<std::shared_ptr<AnnotationPage>>& pages);
90 
91 private:
94  std::vector<std::shared_ptr<AnnotationPage>> fPages;
95  //int fTotalNumberOfAnnotations;
96  //UID fDocID;
99  AnnotationCollectionID fAnnotCollectionID;//-Required
100 };
101 
102 #endif //__AnnotationCollection__