InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPDFDPartMetadataUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Sameer Manuja
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // ADOBE SYSTEMS INCORPORATED
16 // Copyright 2010 Adobe Systems Incorporated. All Rights Reserved.
17 //
18 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
19 // with the terms of the Adobe license agreement accompanying it. If you have received
20 // this file from a source other than Adobe, then your use, modification, or
21 // distribution of it requires the prior written permission of Adobe.
22 //
23 //========================================================================================
24 
25 #ifndef __IPDFDPartMetadataUtils__
26 #define __IPDFDPartMetadataUtils__
27 
28 #include "PDFID.h"
29 
30 typedef uint32 CosObjID;
31 #define kInvalidCosObjID (0)
32 
33 // opaque types
34 typedef struct OPAQUE_64_BITS CosObj;
35 
36 typedef ConstCString NameType; /* utf-8 encoded name */
37 
39 {
40  public:
41  enum { kDefaultIID = IID_IPDFDPARTMETADATAUTILS };
42 
49  virtual CosObjID CreateNewDict(int32 initialSize) = 0;
50 
57  virtual void PutBool(CosObjID dict, NameType key, bool16 value) = 0;
58 
65  virtual void PutInt(CosObjID dict, NameType key, int32 value) = 0;
66 
73  virtual void PutFloat(CosObjID dict, NameType key, float value) = 0;
74 
81  virtual void PutName(CosObjID dict, NameType key, NameType value) = 0;
82 
89  virtual void PutString(CosObjID dict, NameType key, const PMString& value) = 0;
90 
97  virtual void PutDict(CosObjID dict, NameType key, CosObjID value) = 0;
98 
105  virtual void PutArray(CosObjID dict, NameType key, CosObjID value) = 0;
106 
113  virtual CosObjID CreateNewArray(int32 initialSize) = 0;
114 
120  virtual int32 GetArraySize(CosObjID arry) const = 0;
121 
128  virtual void PutBool(CosObjID arry, int32 index, bool16 value) = 0;
129 
136  virtual void PutInt(CosObjID arry, int32 index, int32 value) = 0;
137 
144  virtual void PutFloat(CosObjID arry, int32 index, float value) = 0;
145 
152  virtual void PutName(CosObjID arry, int32 index, NameType value) = 0;
153 
160  virtual void PutString(CosObjID arry, int32 index, const PMString& value) = 0;
161 
168  virtual void PutDict(CosObjID arry, int32 index, CosObjID value) = 0;
169 
176  virtual void PutArray(CosObjID arry, int32 index, CosObjID value) = 0;
177 
179  virtual CosObj GetCosObjFromID(CosObjID objID) const = 0;
180 };
181 
182 #endif