Subversion Repositories filter_foundry

Rev

Rev 193 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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