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