InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
PDFID.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael Jordan
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __PDFID__
25 #define __PDFID__
26 
27 // ----- Includes -----
28 
29 #include "CrossPlatformTypes.h"
30 #include "IDFactory.h"
31 
32 #define kPDFPrefix RezLong( 0x2500 )
33 
34 // Here is another set of prefix IDs for PDF code.
35 #define kPDFExtraPrefix RezLong( 0x11C00 )
36 
37 //----------------------------------------------------------------------------------------
38 //
39 // PluginID
40 //
41 
42 #define kPDFPluginName "PDF"
43 
44 #define kPDFUIPluginName "PDF UI"
45 
46 
47 // <Start IDC>
48 // <Class ID>
49 //----------------------------------------------------------------------------------------
50 //
51 // Boss ids
52 //
53 
54 
55 
56 // big gap
57 
58 //gap
59 //gap
60 //gap
61 //gap
62 //gap
63 #ifdef DEBUG
64 #endif
65 #ifdef DEBUG
66 #endif
67 
68 
69 
70 #ifdef DEBUG
71 #endif
72 //
73 //InCopy
74 //
75 //
76 
77 
78 
79 
80 
81 #ifdef DEBUG
82 // Test menus moved to PDFUI
83  // Keep this debug boss at the end
84 #endif // DEBUG
85 //gap
86 
87 
88 
89 
90 //annotation reply bosses
91 
92 //annotation cmd bosses
93 
94 //New annotation types supported. Addition after kTextCalloutAnnotationBoss
95 
96 
97 
98 
99 // <Interface ID>
100 //----------------------------------------------------------------------------------------
101 //
102 // Interface ids
103 //
104 
105 //gap
106 //gap
107 
108 
109 // InCopy
110 
111 
112 
113 
114 // DEBUG ONLY
115 
116 
117 
118 //gap
119 // <Implementation ID>
120 //----------------------------------------------------------------------------------------
121 //
122 // Implementation ids
123 //
124 
125 
126 #ifdef DEBUG
127 #endif
128 
129 #ifdef DEBUG
130 #endif
131 #ifdef DEBUG
132 #endif
133 
134 //
135 //InCopy
136 
137 
138 //
139 //
140 //#define kPDFExportDialogData kPDFPrefix + 142
141 //gap
142 //gap
143 
144 
145 
146 
147 #ifdef DEBUG
148 #endif
149 #ifdef DEBUG
150 #endif
151 
152 
153 
154 
155 
156 
157 #ifdef DEBUG
158 #endif // DEBUG
159 
160 // switch over to using kPDFExtraPrefix for kImplementationIDSpace here!!!
161 
162 //gap
163 
164 
165 
166 //gap
167 //gap
168 
169 
170 
171 // Some work related to the PDF export retain file name
172 
173 
174 
175 
176 
177 
178 
179 
180 
181 
182 
183 //gap
184 
185 //----------------------------------------------------------------------------------------
186 //
187 // Widget ids
188 //
189 //gap
190 //gap
191 //gap
192 //gap
193 // We have room for 255 more widgets!
194 
195 
196 
197 
198 
199 
200 //gap
201 //gap
202 
203 
204 
205 
206 
207 
208 
209 
210 
211 // For DontShowAgain warning alerts
212 
213 
214 
215 // Widget IDs for Edit PDF Feedback Dialog
216 
217 //----------------------------------------------------------------------------------------
218 //
219 // Service IDs
220 
221 
222 //InCopy
223 
224 
225 
226 
227 
228 // <Error ID>
229 //----------------------------------------------------------------------------------------
230 //
231 // Error Codes
232 
233 //Import PDF comments specific error
234 
235 // Action ID
236 // ids between kFirstPDFStyleActionID and kLastPDFStyleActionID are reserved
237 
238 // ViewPortAttr ID
239 
240 //
241 //Script Element IDs
242 //
243 
244 //Suites
245 
246 //Objects
247 
248 //Events
249 
250 //Properties
251 
252 //Enums
253 
254 
255 
256 
257 // Tagged PDF structure order
258 //
259 
260 // Display title
261 
262 //Default Document Language...
263 
264 //Import PDF Comments
265 
266 //GUIDS
267 // {496F0BE0-7834-11d2-AAF0-00C04FA37726}
268 #define kExportPdfPref_CLSID { 0x496f0be0, 0x7834, 0x11d2, { 0xaa, 0xf0, 0x0, 0xc0, 0x4f, 0xa3, 0x77, 0x26 } }
269 // {A3736549-4F5C-11d2-AB07-00C04FA349C7}
270 #define kExportPdfStyle_CLSID { 0xa3736549, 0x4f5c, 0x11d2, { 0xab, 0x7, 0x0, 0xc0, 0x4f, 0xa3, 0x49, 0xc7 } }
271 // {A373654A-4F5C-11d2-AB07-00C04FA349C7}
272 #define kExportPdfStyles_CLSID { 0xa373654a, 0x4f5c, 0x11d2, { 0xab, 0x7, 0x0, 0xc0, 0x4f, 0xa3, 0x49, 0xc7 } }
273 // {A373654B-4F5C-11d2-AB07-00C04FA349C7}
274 #define kPDFPlacePref_CLSID { 0xa373654b, 0x4f5c, 0x11d2, { 0xab, 0x7, 0x0, 0xc0, 0x4f, 0xa3, 0x49, 0xc7 } }
275 // {5D94D6F9-13F3-4cf5-A1E7-B67F7102F69D}
276 #define kPDFAttribute_CLSID { 0x5d94d6f9, 0x13f3, 0x4cf5, { 0xa1, 0xe7, 0xb6, 0x7f, 0x71, 0x2, 0xf6, 0x9d } }
277 // {F4D7E523-5ED7-42b4-A601-C8B93C54EFFC}
278 #define kGalleyPDFExportPref_CLSID { 0xf4d7e523, 0x5ed7, 0x42b4, { 0xa6, 0x1, 0xc8, 0xb9, 0x3c, 0x54, 0xef, 0xfc } }
279 // {92E3E965-465F-4d84-9810-838658D5895A}
280 #define kLayoutPDFExportPref_CLSID { 0x92e3e965, 0x465f, 0x4d84, { 0x98, 0x10, 0x83, 0x86, 0x58, 0xd5, 0x89, 0x5a } }
281 // {E6E07CAE-624C-4367-9746-6431E949631A}
282 #define kInteractivePDFExportPref_CLSID { 0xe6e07cae, 0x624c, 0x4367, { 0x97, 0x46, 0x64, 0x31, 0xe9, 0x49, 0x63, 0x1a } }
283 // {BDF91FB2-51D9-475a-B71A-A2C570A2B07E}
284 #define kTaggedPDFPref_CLSID { 0xbdf91fb2, 0x51d9, 0x475a, { 0xb7, 0x1a, 0xa2, 0xc5, 0x70, 0xa2, 0xb0, 0x7e } }
285 
286 // {2E896C89-288F-4635-A4F9-208E90B38CDC}
287 #define kAnnotation_CLSID { 0x2e896c89, 0x288f, 0x4635, { 0xa4, 0xf9, 0x20, 0x8e, 0x90, 0xb3, 0x8c, 0xdc } }
288 // {12DBB49A-1C97-46B9-8EDD-EE80F7486215}
289 #define kAnnotations_CLSID { 0x12dbb49a, 0x1c97, 0x46b9, { 0x8e, 0xdd, 0xee, 0x80, 0xf7, 0x48, 0x62, 0x15 } }
290 // {CE717876-9EC6-4374-8D0D-73ECA2060629}
291 #define kReply_CLSID { 0xce717876, 0x9ec6, 0x4374, { 0x8d, 0x0d, 0x73, 0xec, 0xa2, 0x06, 0x06, 0x29 } }
292 // {6F7C2BDF-236B-463B-98B1-AF3428827D27}
293 #define kReplies_CLSID {0x6f7c2bdf, 0x236b, 0x463b, { 0x98, 0xb1, 0xaf, 0x34, 0x28, 0x82, 0x7d, 0x27 } }
294 // {15BAA68B-72E2-49DF-9C49-51A3BACCF503}
295 #define kAnnotationPageDestination_CLSID {0x15baa68b, 0x72e2, 0x49df, { 0x9c, 0x49, 0x51, 0xa3, 0xba, 0xcc, 0xf5, 0x03 } }
296 // {A61D0A17-51EF-40C3-858C-EF0A9A1B9B40}
297 #define kAnnotationPageDestinations_CLSID {0xa61d0a17, 0x51ef, 0x40c3, { 0x85, 0x8c, 0xef, 0x0a, 0x9a, 0x1b, 0x9b, 0x40 } }
298 // {330F023A-2814-4198-8BC5-8CA1FBEEED79}
299 #define kAnnotationPageItemDestination_CLSID {0x330f023a, 0x2814, 0x4198, { 0x8b, 0xcf, 0x8c, 0xa1, 0xfb, 0xee, 0xed, 0x79 } }
300 // {30EE1B4E-7FB5-443E-9E37-8D36005BD5D9}
301 #define kAnnotationPageItemDestinations_CLSID {0x30ee1b4e, 0x7fb5, 0x443e, { 0x9e, 0x37, 0x8d, 0x36, 0x00, 0x5b, 0xd5, 0xd9 } }
302 // {3DF8B9A8-38FD-4BFF-B193-90CE602E3466}
303 #define kAnnotationTextDestination_CLSID {0x3df8b9a8, 0x38fd, 0x4bff, { 0xb1, 0x93, 0x90, 0xce, 0x60, 0x2e, 0x34, 0x66 } }
304 // {43EEFC76-2FCC-48B0-B37E-B5B21A238C20}
305 #define kAnnotationTextDestinations_CLSID {0x43eefc76, 0x2fcc, 0x48b0, { 0xb3, 0x7e, 0xb5, 0xb2, 0x1a, 0x23, 0x8c, 0x20 } }
306 
307 //ScriptIDs
308 enum PDFScriptIDs
309 {
310  c_PDF = 'PDF ',
311  c_PDFs = 'PDFs',
312  en_PDF = c_PDF,
313 };
314 
315 //Misc
316 #define kPDFSelDialogNodeID kPDFPrefix + 1
317 
318 #define kMaxFlipPagesSpeed 32767
319 #define kDefaultFlipPagesSpeed 5
320 #define kMinFlipPagesSpeed 0
321 #define kMaxInteractivePDFResolution 300
322 #define kDefaultInteractivePDFResolution 72
323 #define kMinInteractivePDFResolution 72
324 #define kPageTransitionFromDocument kPageTransitionFromDocumentClassID
325 
326 // for Interactive PDF, used in setting
327 // the extension level for the PDF produced
328 #define kBaseVersion_1_7 "1.7"
329 #define kExtension_Version_3 3
330 
331 // Values from Rich Media Content Spec page 10/11
332 #define kDefaultPDFAnnotWindowWidth 288
333 #define kMaxPDFAnnotWindowWidth 576
334 #define kMinPDFAnnotWindowWidth 72
335 #define kDefaultPDFAnnotWindowHeight 216
336 #define kMaxPDFAnnotWindowHeight 432
337 #define kMinPDFAnnotWindowHeight 72
338 #define kDefaultPDFAnnotWindowOffset 18
339 
340 
341 #endif // __PDFID__
342 
343 
344