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 | This file is part of a common library for Adobe(R) plugins |
2 | This file is part of a common library for Adobe(R) plugins |
3 | Copyright (C) 2002-9 Toby Thain, toby@telegraphics.com.au |
3 | Copyright (C) 2002-9 Toby Thain, toby@telegraphics.com.au |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify |
5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by |
6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or |
7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. |
8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, |
10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. |
13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License |
15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software |
16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
18 | */ |
18 | */ |
19 | 19 | ||
20 | #if 0 |
20 | #if 0 |
21 | //// from SPPiPL.h |
21 | //// from SPPiPL.h |
22 | 22 | ||
23 | #define PIAdobeVendorID 'ADBE' |
23 | #define PIAdobeVendorID 'ADBE' |
24 | #define PIKindProperty 'kind' /* 4-byte value, eg. PIAdobeVendorID */ |
24 | #define PIKindProperty 'kind' /* 4-byte value, eg. PIAdobeVendorID */ |
25 | #define PISPVersionProperty 'ivrs' /* long */ |
25 | #define PISPVersionProperty 'ivrs' /* long */ |
26 | 26 | ||
27 | #define PIExportsProperty 'expt' |
27 | #define PIExportsProperty 'expt' |
28 | #define PI68KCodeProperty 'm68k' |
28 | #define PI68KCodeProperty 'm68k' |
29 | #define PIPowerPCCodeProperty 'pwpc' |
29 | #define PIPowerPCCodeProperty 'pwpc' |
30 | #define PIPowerPCCodeResProperty 'ppcR' |
30 | #define PIPowerPCCodeResProperty 'ppcR' |
31 | #define PIWin32X86CodeProperty 'wx86' |
31 | #define PIWin32X86CodeProperty 'wx86' |
32 | #define PIWin16X86CodeProperty 'fx86' |
32 | #define PIWin16X86CodeProperty 'fx86' |
33 | 33 | ||
34 | #define PIDestinationHeapProperty 'heap' /* Mac PPC only. If non-existent, loads in */ |
34 | #define PIDestinationHeapProperty 'heap' /* Mac PPC only. If non-existent, loads in */ |
35 | #define PILoadInAppHeap (1L<<0) /* host default heap. If 0, loads in sys heap. */ |
35 | #define PILoadInAppHeap (1L<<0) /* host default heap. If 0, loads in sys heap. */ |
36 | 36 | ||
37 | #define PIPluginNameProperty 'pinm' |
37 | #define PIPluginNameProperty 'pinm' |
38 | 38 | ||
39 | #define PIConditionalMessages 'AcpM' /* and other flags */ |
39 | #define PIConditionalMessages 'AcpM' /* and other flags */ |
40 | #define PIAcceptsPropertyMessage (1L<<0) |
40 | #define PIAcceptsPropertyMessage (1L<<0) |
41 | #define PISkipShutDownMessage (1L<<1) |
41 | #define PISkipShutDownMessage (1L<<1) |
42 | #define PIAcceptsPurgeCachesMessage (1L<<2) |
42 | #define PIAcceptsPurgeCachesMessage (1L<<2) |
43 | 43 | ||
44 | #define kCurrentPiPLVersion 0 |
44 | #define kCurrentPiPLVersion 0 |
45 | 45 | ||
46 | //// |
46 | //// |
47 | #endif |
47 | #endif |
48 | 48 | ||
49 | #define NULL_ID 0 |
49 | #define NULL_ID 0 |
50 | 50 | ||
51 | type 'PiPL' { |
51 | type 'PiPL' { |
52 | longint; // version |
52 | longint; // version |
53 | longint = $$countof(PIPropertyList); |
53 | longint = $$countof(PIPropertyList); |
54 | array PIPropertyList{ |
54 | array PIPropertyList{ |
55 | literal longint PIAdobeVendorID = 'ADBE'; // vendorID |
55 | literal longint PIAdobeVendorID = 'ADBE'; // vendorID |
56 | switch{ // propertyKey |
56 | switch{ // propertyKey |
57 | case PIKindProperty: |
57 | case PIKindProperty: |
58 | key literal longint = 'kind'; |
58 | key literal longint = 'kind'; |
59 | longint = NULL_ID; // propertyID |
59 | longint = NULL_ID; // propertyID |
60 | longint = 4; // propertyLength |
60 | longint = 4; // propertyLength |
61 | literal longint; |
61 | literal longint; |
62 | 62 | ||
63 | case PISPVersionProperty: |
63 | case PISPVersionProperty: |
64 | key literal longint = 'ivrs'; |
64 | key literal longint = 'ivrs'; |
65 | longint = NULL_ID; // propertyID |
65 | longint = NULL_ID; // propertyID |
66 | longint = 4; // propertyLength |
66 | longint = 4; // propertyLength |
67 | longint; |
67 | longint; |
68 | 68 | ||
69 | case PI68KCodeProperty: |
69 | case PI68KCodeProperty: |
70 | key literal longint = 'm68k'; |
70 | key literal longint = 'm68k'; |
71 | longint = NULL_ID; // propertyID |
71 | longint = NULL_ID; // propertyID |
72 | longint = 6; // propertyLength |
72 | longint = 6; // propertyLength |
73 | literal longint; |
73 | literal longint; |
74 | integer; |
74 | integer; |
75 | align long; |
75 | align long; |
76 | 76 | ||
77 | case PIPowerPCCodeProperty: |
77 | case PIPowerPCCodeProperty: |
78 | key literal longint = 'pwpc'; |
78 | key literal longint = 'pwpc'; |
79 | longint = NULL_ID; // propertyID |
79 | longint = NULL_ID; // propertyID |
80 | longint = (pwpcend[$$ArrayIndex(PIPropertyList)] - pwpcstart[$$ArrayIndex(PIPropertyList)]) / 8; |
80 | longint = (pwpcend[$$ArrayIndex(PIPropertyList)] - pwpcstart[$$ArrayIndex(PIPropertyList)]) / 8; |
81 | pwpcstart: |
81 | pwpcstart: |
82 | longint; |
82 | longint; |
83 | longint; |
83 | longint; |
84 | pstring; |
84 | pstring; |
85 | pwpcend: |
85 | pwpcend: |
86 | align long; |
86 | align long; |
87 | 87 | ||
88 | // see SDK/IllustratorAPI/PICA_SP/SPPiPL.h |
88 | // see SDK/IllustratorAPI/PICA_SP/SPPiPL.h |
89 | // for the rest of this definition |
89 | // for the rest of this definition |
90 | 90 | ||
91 | // since CS3 at least, a complete PiPL.r is at: |
91 | // since CS3 at least, a complete PiPL.r is at: |
92 | // SDK/samplecode/pipl/PiPL.r |
92 | // SDK/samplecode/pipl/PiPL.r |
93 | /* |
93 | /* |
94 | case AIImportList: |
94 | case AIImportList: |
95 | key literal longint = 'impt'; |
95 | key literal longint = 'impt'; |
96 | longint; |
96 | longint; |
97 | longint = $$countof(propertyData); |
97 | longint = $$countof(propertyData); |
98 | array propertyData{ |
98 | array propertyData{ |
99 | longint = $$countof(fImpExp); |
99 | longint = $$countof(fImpExp); |
100 | array fImpExp{ |
100 | array fImpExp{ |
101 | longint; |
101 | longint; |
102 | cstring; |
102 | cstring; |
103 | align long; |
103 | align long; |
104 | longint; |
104 | longint; |
105 | }; |
105 | }; |
106 | }; |
106 | }; |
107 | case AIExportList: |
107 | case AIExportList: |
108 | key literal longint = 'expt'; |
108 | key literal longint = 'expt'; |
109 | longint; |
109 | longint; |
110 | longint = $$countof(propertyData); |
110 | longint = $$countof(propertyData); |
111 | array propertyData{ |
111 | array propertyData{ |
112 | longint = $$countof(fImpExp); |
112 | longint = $$countof(fImpExp); |
113 | array fImpExp{ |
113 | array fImpExp{ |
114 | longint; |
114 | longint; |
115 | cstring; |
115 | cstring; |
116 | align long; |
116 | align long; |
117 | longint; |
117 | longint; |
118 | }; |
118 | }; |
119 | }; |
119 | }; |
120 | */ |
120 | */ |
121 | }; |
121 | }; |
122 | }; |
122 | }; |
123 | }; |
123 | }; |