Rev 193 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 193 | Rev 259 | ||
---|---|---|---|
1 | //======================================================================================== |
1 | //======================================================================================== |
2 | // |
2 | // |
3 | // $File: //ai/ai13/devtech/sdk/public/samplecode/pipl/PiPL.r $ |
3 | // $File: //ai/ai13/devtech/sdk/public/samplecode/pipl/PiPL.r $ |
4 | // |
4 | // |
5 | // $Revision: #3 $ |
5 | // $Revision: #3 $ |
6 | // |
6 | // |
7 | // Copyright 1987-2007 Adobe Systems Incorporated. All rights reserved. |
7 | // Copyright 1987-2007 Adobe Systems Incorporated. All rights reserved. |
8 | // |
8 | // |
9 | // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance |
9 | // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance |
10 | // with the terms of the Adobe license agreement accompanying it. If you have received |
10 | // with the terms of the Adobe license agreement accompanying it. If you have received |
11 | // this file from a source other than Adobe, then your use, modification, or |
11 | // this file from a source other than Adobe, then your use, modification, or |
12 | // distribution of it requires the prior written permission of Adobe. |
12 | // distribution of it requires the prior written permission of Adobe. |
13 | // |
13 | // |
14 | //======================================================================================== |
14 | //======================================================================================== |
15 | 15 | ||
16 | #ifndef __PIPL_r__ // Only include this once. |
16 | #ifndef __PIPL_r__ // Only include this once. |
17 | #define __PIPL_r__ |
17 | #define __PIPL_r__ |
18 | 18 | ||
19 | 19 | ||
20 | //------------------------------------------------------------------------------- |
20 | //------------------------------------------------------------------------------- |
21 | // Definitions -- Version and include information |
21 | // Definitions -- Version and include information |
22 | //------------------------------------------------------------------------------- |
22 | //------------------------------------------------------------------------------- |
23 | 23 | ||
24 | // Version of Plug In Properties Template described in this file: |
24 | // Version of Plug In Properties Template described in this file: |
25 | #ifndef kPIPropertiesVersion |
25 | #ifndef kPIPropertiesVersion |
26 | #define kPIPropertiesVersion 0 |
26 | #define kPIPropertiesVersion 0 |
27 | #endif |
27 | #endif |
28 | 28 | ||
29 | //------------------------------------------------------------------------------- |
29 | //------------------------------------------------------------------------------- |
30 | // PiPL resource template |
30 | // PiPL resource template |
31 | //------------------------------------------------------------------------------- |
31 | //------------------------------------------------------------------------------- |
32 | 32 | ||
33 | type 'PiPL' |
33 | type 'PiPL' |
34 | { |
34 | { |
35 | longint = kPIPropertiesVersion; |
35 | longint = kPIPropertiesVersion; |
36 | longint = $$CountOf(properties); |
36 | longint = $$CountOf(properties); |
37 | array properties |
37 | array properties |
38 | { |
38 | { |
39 | switch |
39 | switch |
40 | { |
40 | { |
41 | //------------------------------------------------------------------- |
41 | //------------------------------------------------------------------- |
42 | // Illustrator/SweetPea PiPL properties |
42 | // Illustrator/SweetPea PiPL properties |
43 | //------------------------------------------------------------------- |
43 | //------------------------------------------------------------------- |
44 | 44 | ||
45 | case ADBEKind: |
45 | case ADBEKind: |
46 | longint = 'ADBE'; // SweetPea/Illustrator host. |
46 | longint = 'ADBE'; // SweetPea/Illustrator host. |
47 | key longint = 'kind'; |
47 | key longint = 'kind'; |
48 | longint = 0; // Index. |
48 | longint = 0; // Index. |
49 | longint = 4; // Length. |
49 | longint = 4; // Length. |
50 | literal longint PIPiPLTypes; // Version. |
50 | literal longint PIPiPLTypes; // Version. |
51 | 51 | ||
52 | case InterfaceVersion: |
52 | case InterfaceVersion: |
53 | longint = 'ADBE'; // SweetPea/Illustrator host. |
53 | longint = 'ADBE'; // SweetPea/Illustrator host. |
54 | key longint = 'ivrs'; |
54 | key longint = 'ivrs'; |
55 | longint = 0; // Index. |
55 | longint = 0; // Index. |
56 | longint = 4; // Length. |
56 | longint = 4; // Length. |
57 | longint; // Version. |
57 | longint; // Version. |
58 | 58 | ||
59 | case ADBECodeCarbon: |
59 | case ADBECodeCarbon: |
60 | longint = 'ADBE'; |
60 | longint = 'ADBE'; |
61 | key longint = 'ppcb'; |
61 | key longint = 'ppcb'; |
62 | longint = 0; |
62 | longint = 0; |
63 | #if DeRez |
63 | #if DeRez |
64 | fill long; |
64 | fill long; |
65 | #else |
65 | #else |
66 | longint = (ADBEppcbEnd[$$ArrayIndex(properties)] - ADBEppcbStart[$$ArrayIndex(properties)]) / 8; |
66 | longint = (ADBEppcbEnd[$$ArrayIndex(properties)] - ADBEppcbStart[$$ArrayIndex(properties)]) / 8; |
67 | #endif |
67 | #endif |
68 | ADBEppcbStart: |
68 | ADBEppcbStart: |
69 | longint; |
69 | longint; |
70 | longint; |
70 | longint; |
71 | pstring; |
71 | pstring; |
72 | ADBEppcbEnd: |
72 | ADBEppcbEnd: |
73 | align long; |
73 | align long; |
74 | 74 | ||
75 | case ADBECodeMachO: |
75 | case ADBECodeMachO: |
76 | longint = 'ADBE'; |
76 | longint = 'ADBE'; |
77 | key longint = 'mach'; |
77 | key longint = 'mach'; |
78 | longint = 0; |
78 | longint = 0; |
79 | #if DeRez |
79 | #if DeRez |
80 | fill long; |
80 | fill long; |
81 | #else |
81 | #else |
82 | longint = (ADBEmachEnd[$$ArrayIndex(properties)] - ADBEmachStart[$$ArrayIndex(properties)]) / 8; |
82 | longint = (ADBEmachEnd[$$ArrayIndex(properties)] - ADBEmachStart[$$ArrayIndex(properties)]) / 8; |
83 | #endif |
83 | #endif |
84 | ADBEmachStart: |
84 | ADBEmachStart: |
85 | pstring; |
85 | pstring; |
86 | ADBEmachEnd: |
86 | ADBEmachEnd: |
87 | align long; |
87 | align long; |
88 | 88 | ||
89 | case ADBECodeMacIntel32: |
89 | case ADBECodeMacIntel32: |
90 | longint = 'ADBE'; |
90 | longint = 'ADBE'; |
91 | key longint = 'mi32'; |
91 | key longint = 'mi32'; |
92 | longint = 0; |
92 | longint = 0; |
93 | #if DeRez |
93 | #if DeRez |
94 | fill long; |
94 | fill long; |
95 | #else |
95 | #else |
96 | longint = (ADBEmi32End[$$ArrayIndex(properties)] - ADBEmi32Start[$$ArrayIndex(properties)]) / 8; |
96 | longint = (ADBEmi32End[$$ArrayIndex(properties)] - ADBEmi32Start[$$ArrayIndex(properties)]) / 8; |
97 | #endif |
97 | #endif |
98 | ADBEmi32Start: |
98 | ADBEmi32Start: |
99 | pstring; |
99 | pstring; |
100 | ADBEmi32End: |
100 | ADBEmi32End: |
101 | align long; |
101 | align long; |
102 | 102 | ||
103 | case SP_STSP: |
103 | case SP_STSP: |
104 | longint = 'ADBE'; // SweetPea/Illustrator host. |
104 | longint = 'ADBE'; // SweetPea/Illustrator host. |
105 | key longint = 'StsP'; |
105 | key longint = 'StsP'; |
106 | longint = 0; // Index. |
106 | longint = 0; // Index. |
107 | longint = 4; // Length. |
107 | longint = 4; // Length. |
108 | longint; |
108 | longint; |
109 | 109 | ||
110 | case InternalName: |
110 | case InternalName: |
111 | longint = 'ADBE'; // SweetPea/Illustrator host. |
111 | longint = 'ADBE'; // SweetPea/Illustrator host. |
112 | key longint = 'pinm'; |
112 | key longint = 'pinm'; |
113 | longint = 0; // Index. |
113 | longint = 0; // Index. |
114 | #if DeRez |
114 | #if DeRez |
115 | fill long; |
115 | fill long; |
116 | #else |
116 | #else |
117 | longint = (plugInNameEnd[$$ArrayIndex(properties)] - |
117 | longint = (plugInNameEnd[$$ArrayIndex(properties)] - |
118 | plugInNameStart[$$ArrayIndex(properties)]) / 8; |
118 | plugInNameStart[$$ArrayIndex(properties)]) / 8; |
119 | #endif |
119 | #endif |
120 | plugInNameStart: |
120 | plugInNameStart: |
121 | cstring; |
121 | cstring; |
122 | plugInNameEnd: |
122 | plugInNameEnd: |
123 | align long; |
123 | align long; |
124 | 124 | ||
125 | case BuildVersion: |
125 | case BuildVersion: |
126 | longint = 'ADBE'; // SweetPea/Illustrator host. |
126 | longint = 'ADBE'; // SweetPea/Illustrator host. |
127 | key longint = 'bvrs'; |
127 | key longint = 'bvrs'; |
128 | longint = 0; // Index. |
128 | longint = 0; // Index. |
129 | longint = 4; // Length. |
129 | longint = 4; // Length. |
130 | longint; // Version. |
130 | longint; // Version. |
131 | 131 | ||
132 | case ADBEVersion: |
132 | case ADBEVersion: |
133 | longint = 'ADBE'; |
133 | longint = 'ADBE'; |
134 | key longint = 'vers'; |
134 | key longint = 'vers'; |
135 | longint = 0; |
135 | longint = 0; |
136 | longint = 4; |
136 | longint = 4; |
137 | longint; |
137 | longint; |
138 | 138 | ||
139 | case ADBECategory: |
139 | case ADBECategory: |
140 | longint = 'ADBE'; |
140 | longint = 'ADBE'; |
141 | key longint = 'catg'; |
141 | key longint = 'catg'; |
142 | longint = 0; |
142 | longint = 0; |
143 | #if DeRez |
143 | #if DeRez |
144 | fill long; |
144 | fill long; |
145 | #else |
145 | #else |
146 | longint = (ADBEcatgEnd[$$ArrayIndex(properties)] - ADBEcatgStart[$$ArrayIndex(properties)]) / 8; |
146 | longint = (ADBEcatgEnd[$$ArrayIndex(properties)] - ADBEcatgStart[$$ArrayIndex(properties)]) / 8; |
147 | #endif |
147 | #endif |
148 | ADBEcatgStart: |
148 | ADBEcatgStart: |
149 | pstring |
149 | pstring |
150 | // Use Help category to put automation plug-ins in the "Help" menu: |
150 | // Use Help category to put automation plug-ins in the "Help" menu: |
151 | PSHelpMenu = "**Help**", |
151 | PSHelpMenu = "**Help**", |
152 | 152 | ||
153 | // Use Hidden category to keep plug-ins out of menus. |
153 | // Use Hidden category to keep plug-ins out of menus. |
154 | // WARNING: The only way to access a hidden plug-in is |
154 | // WARNING: The only way to access a hidden plug-in is |
155 | // by calling it by its event ID from the Play callback! |
155 | // by calling it by its event ID from the Play callback! |
156 | PSHidden = "**Hidden**", |
156 | PSHidden = "**Hidden**", |
157 | 157 | ||
158 | // Use Copyright-Checker category to detect copyrights on first-opened files: |
158 | // Use Copyright-Checker category to detect copyrights on first-opened files: |
159 | PSCopyrightChecker = "**Copyright-Checker**"; |
159 | PSCopyrightChecker = "**Copyright-Checker**"; |
160 | 160 | ||
161 | ADBEcatgEnd: |
161 | ADBEcatgEnd: |
162 | align long; |
162 | align long; |
163 | 163 | ||
164 | case ADBEName: |
164 | case ADBEName: |
165 | longint = 'ADBE'; |
165 | longint = 'ADBE'; |
166 | key longint = 'name'; |
166 | key longint = 'name'; |
167 | longint = 0; |
167 | longint = 0; |
168 | #if DeRez |
168 | #if DeRez |
169 | fill long; |
169 | fill long; |
170 | #else |
170 | #else |
171 | longint = (ADBEnameEnd[$$ArrayIndex(properties)] - ADBEnameStart[$$ArrayIndex(properties)]) / 8; |
171 | longint = (ADBEnameEnd[$$ArrayIndex(properties)] - ADBEnameStart[$$ArrayIndex(properties)]) / 8; |
172 | #endif |
172 | #endif |
173 | ADBEnameStart: |
173 | ADBEnameStart: |
174 | pstring; |
174 | pstring; |
175 | ADBEnameEnd: |
175 | ADBEnameEnd: |
176 | align long; |
176 | align long; |
177 | 177 | ||
178 | case AdapterVersion: |
178 | case AdapterVersion: |
179 | longint = 'ADBE'; // SweetPea/Illustrator host. |
179 | longint = 'ADBE'; // SweetPea/Illustrator host. |
180 | key longint = 'adpt'; |
180 | key longint = 'adpt'; |
181 | longint = 0; // Index. |
181 | longint = 0; // Index. |
182 | longint = 4; // Length. |
182 | longint = 4; // Length. |
183 | longint; // Version. |
183 | longint; // Version. |
184 | 184 | ||
185 | case Imports: |
185 | case Imports: |
186 | longint = 'ADBE'; // SweetPea/Illustrator host. |
186 | longint = 'ADBE'; // SweetPea/Illustrator host. |
187 | key longint = 'impt'; |
187 | key longint = 'impt'; |
188 | longint = 0; // Index. |
188 | longint = 0; // Index. |
189 | #if DeRez |
189 | #if DeRez |
190 | fill long; |
190 | fill long; |
191 | #else |
191 | #else |
192 | longint = (importsEnd[$$ArrayIndex(properties)] - |
192 | longint = (importsEnd[$$ArrayIndex(properties)] - |
193 | importsStart[$$ArrayIndex(properties)]) / 8; |
193 | importsStart[$$ArrayIndex(properties)]) / 8; |
194 | #endif |
194 | #endif |
195 | importsStart: |
195 | importsStart: |
196 | longint = $$CountOf(ImportSuites); |
196 | longint = $$CountOf(ImportSuites); |
197 | wide array ImportSuites |
197 | wide array ImportSuites |
198 | { |
198 | { |
199 | isuitesStart: |
199 | isuitesStart: |
200 | // Length (including this long): |
200 | // Length (including this long): |
201 | #if DeRez |
201 | #if DeRez |
202 | fill long; |
202 | fill long; |
203 | #else |
203 | #else |
204 | longint = ((isuitesEnd[$$ArrayIndex(properties), $$ArrayIndex(ImportSuites)] - |
204 | longint = ((isuitesEnd[$$ArrayIndex(properties), $$ArrayIndex(ImportSuites)] - |
205 | isuitesStart[$$ArrayIndex(properties), $$ArrayIndex(ImportSuites)]) / 8); |
205 | isuitesStart[$$ArrayIndex(properties), $$ArrayIndex(ImportSuites)]) / 8); |
206 | #endif |
206 | #endif |
207 | 207 | ||
208 | cstring; |
208 | cstring; |
209 | align long; |
209 | align long; |
210 | longint; // Suite version. |
210 | longint; // Suite version. |
211 | isuitesEnd: |
211 | isuitesEnd: |
212 | }; |
212 | }; |
213 | importsEnd: |
213 | importsEnd: |
214 | 214 | ||
215 | case Exports: |
215 | case Exports: |
216 | longint = 'ADBE'; // SweetPea/Illustrator host. |
216 | longint = 'ADBE'; // SweetPea/Illustrator host. |
217 | key longint = 'expt'; |
217 | key longint = 'expt'; |
218 | longint = 0; // Index. |
218 | longint = 0; // Index. |
219 | #if DeRez |
219 | #if DeRez |
220 | fill long; |
220 | fill long; |
221 | #else |
221 | #else |
222 | longint = (exportsEnd[$$ArrayIndex(properties)] - |
222 | longint = (exportsEnd[$$ArrayIndex(properties)] - |
223 | exportsStart[$$ArrayIndex(properties)]) / 8; |
223 | exportsStart[$$ArrayIndex(properties)]) / 8; |
224 | #endif |
224 | #endif |
225 | exportsStart: |
225 | exportsStart: |
226 | longint = $$CountOf(ExportSuites); |
226 | longint = $$CountOf(ExportSuites); |
227 | wide array ExportSuites |
227 | wide array ExportSuites |
228 | { |
228 | { |
229 | esuitesStart: |
229 | esuitesStart: |
230 | // Length (including this long): |
230 | // Length (including this long): |
231 | #if DeRez |
231 | #if DeRez |
232 | fill long; |
232 | fill long; |
233 | #else |
233 | #else |
234 | longint = ((esuitesEnd[$$ArrayIndex(properties), $$ArrayIndex(ExportSuites)] - |
234 | longint = ((esuitesEnd[$$ArrayIndex(properties), $$ArrayIndex(ExportSuites)] - |
235 | esuitesStart[$$ArrayIndex(properties), $$ArrayIndex(ExportSuites)]) / 8); |
235 | esuitesStart[$$ArrayIndex(properties), $$ArrayIndex(ExportSuites)]) / 8); |
236 | #endif |
236 | #endif |
237 | 237 | ||
238 | cstring; |
238 | cstring; |
239 | align long; |
239 | align long; |
240 | longint; // Suite version. |
240 | longint; // Suite version. |
241 | esuitesEnd: |
241 | esuitesEnd: |
242 | }; |
242 | }; |
243 | exportsEnd: |
243 | exportsEnd: |
244 | 244 | ||
245 | 245 | ||
246 | case Messages: |
246 | case Messages: |
247 | longint = 'ADBE'; // SweetPea/Illustrator host |
247 | longint = 'ADBE'; // SweetPea/Illustrator host |
248 | key longint = 'AcpM'; |
248 | key longint = 'AcpM'; |
249 | longint = 0; // Index. |
249 | longint = 0; // Index. |
250 | longint = 4; // Length. |
250 | longint = 4; // Length. |
251 | fill bit[28]; // Reserved. |
251 | fill bit[28]; // Reserved. |
252 | 252 | ||
253 | boolean startupRequired, noStartupRequired; |
253 | boolean startupRequired, noStartupRequired; |
254 | boolean doesNotPurgeCache, purgeCache; |
254 | boolean doesNotPurgeCache, purgeCache; |
255 | boolean shutdownRequired, noShutdownRequired; // Default is to give shutdown msg. |
255 | boolean shutdownRequired, noShutdownRequired; // Default is to give shutdown msg. |
256 | boolean doNotAcceptProperty, acceptProperty; |
256 | boolean doNotAcceptProperty, acceptProperty; |
257 | 257 | ||
258 | }; |
258 | }; |
259 | }; |
259 | }; |
260 | }; |
260 | }; |
261 | 261 | ||
262 | #undef PIPiPLTypes |
262 | #undef PIPiPLTypes |
263 | 263 | ||
264 | //------------------------------------------------------------------------------- |
264 | //------------------------------------------------------------------------------- |
265 | 265 | ||
266 | #endif // PIPL.r |
266 | #endif // PIPL.r |