~ubuntu-branches/ubuntu/lucid/fpc/lucid-proposed

« back to all changes in this revision

Viewing changes to fpcsrc/packages/extra/univint/OSAGeneric.pas

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-10-09 23:29:00 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20081009232900-553f61m37jkp6upv
Tags: 2.2.2-4
[ Torsten Werner ]
* Update ABI version in fpc-depends automatically.
* Remove empty directories from binary package fpc-source.

[ Mazen Neifer ]
* Removed leading path when calling update-alternatives to remove a Linitian
  error.
* Fixed clean target.
* Improved description of packages. (Closes: #498882)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{
2
 
     File:       OSAGeneric.p
3
 
 
4
 
     Contains:   AppleScript Generic Component Interfaces.
5
 
 
6
 
     Version:    Technology: AppleScript 1.1
7
 
                 Release:    Universal Interfaces 3.4.2
8
 
 
9
 
     Copyright:  � 1992-2002 by Apple Computer, Inc., all rights reserved
10
 
 
11
 
     Bugs?:      For bug reports, consult the following page on
12
 
                 the World Wide Web:
13
 
 
14
 
                     http://www.freepascal.org/bugs.html
15
 
 
16
 
}
17
 
 
18
 
 
19
 
{
20
 
    Modified for use with Free Pascal
21
 
    Version 200
22
 
    Please report any bugs to <gpc@microbizz.nl>
23
 
}
24
 
 
25
 
{$mode macpas}
26
 
{$packenum 1}
27
 
{$macro on}
28
 
{$inline on}
29
 
{$CALLING MWPASCAL}
30
 
 
31
 
unit OSAGeneric;
32
 
interface
33
 
{$setc UNIVERSAL_INTERFACES_VERSION := $0342}
34
 
{$setc GAP_INTERFACES_VERSION := $0200}
35
 
 
36
 
{$ifc not defined USE_CFSTR_CONSTANT_MACROS}
37
 
    {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
38
 
{$endc}
39
 
 
40
 
{$ifc defined CPUPOWERPC and defined CPUI386}
41
 
        {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
42
 
{$endc}
43
 
{$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
44
 
        {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
45
 
{$endc}
46
 
 
47
 
{$ifc not defined __ppc__ and defined CPUPOWERPC}
48
 
        {$setc __ppc__ := 1}
49
 
{$elsec}
50
 
        {$setc __ppc__ := 0}
51
 
{$endc}
52
 
{$ifc not defined __i386__ and defined CPUI386}
53
 
        {$setc __i386__ := 1}
54
 
{$elsec}
55
 
        {$setc __i386__ := 0}
56
 
{$endc}
57
 
 
58
 
{$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
59
 
        {$error Conflicting definitions for __ppc__ and __i386__}
60
 
{$endc}
61
 
 
62
 
{$ifc defined __ppc__ and __ppc__}
63
 
        {$setc TARGET_CPU_PPC := TRUE}
64
 
        {$setc TARGET_CPU_X86 := FALSE}
65
 
{$elifc defined __i386__ and __i386__}
66
 
        {$setc TARGET_CPU_PPC := FALSE}
67
 
        {$setc TARGET_CPU_X86 := TRUE}
68
 
{$elsec}
69
 
        {$error Neither __ppc__ nor __i386__ is defined.}
70
 
{$endc}
71
 
{$setc TARGET_CPU_PPC_64 := FALSE}
72
 
 
73
 
{$ifc defined FPC_BIG_ENDIAN}
74
 
        {$setc TARGET_RT_BIG_ENDIAN := TRUE}
75
 
        {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
76
 
{$elifc defined FPC_LITTLE_ENDIAN}
77
 
        {$setc TARGET_RT_BIG_ENDIAN := FALSE}
78
 
        {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
79
 
{$elsec}
80
 
        {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
81
 
{$endc}
82
 
{$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
83
 
{$setc CALL_NOT_IN_CARBON := FALSE}
84
 
{$setc OLDROUTINENAMES := FALSE}
85
 
{$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
86
 
{$setc OPAQUE_UPP_TYPES := TRUE}
87
 
{$setc OTCARBONAPPLICATION := TRUE}
88
 
{$setc OTKERNEL := FALSE}
89
 
{$setc PM_USE_SESSION_APIS := TRUE}
90
 
{$setc TARGET_API_MAC_CARBON := TRUE}
91
 
{$setc TARGET_API_MAC_OS8 := FALSE}
92
 
{$setc TARGET_API_MAC_OSX := TRUE}
93
 
{$setc TARGET_CARBON := TRUE}
94
 
{$setc TARGET_CPU_68K := FALSE}
95
 
{$setc TARGET_CPU_MIPS := FALSE}
96
 
{$setc TARGET_CPU_SPARC := FALSE}
97
 
{$setc TARGET_OS_MAC := TRUE}
98
 
{$setc TARGET_OS_UNIX := FALSE}
99
 
{$setc TARGET_OS_WIN32 := FALSE}
100
 
{$setc TARGET_RT_MAC_68881 := FALSE}
101
 
{$setc TARGET_RT_MAC_CFM := FALSE}
102
 
{$setc TARGET_RT_MAC_MACHO := TRUE}
103
 
{$setc TYPED_FUNCTION_POINTERS := TRUE}
104
 
{$setc TYPE_BOOL := FALSE}
105
 
{$setc TYPE_EXTENDED := FALSE}
106
 
{$setc TYPE_LONGLONG := TRUE}
107
 
uses MacTypes,AEDataModel,Components,MacErrors,AppleEvents,OSA;
108
 
 
109
 
 
110
 
{$ALIGN MAC68K}
111
 
 
112
 
{    NOTE:   This interface defines a "generic scripting component."
113
 
            The Generic Scripting Component allows automatic dispatch to a
114
 
            specific scripting component that conforms to the OSA interface.
115
 
            This component supports OSA, by calling AppleScript or some other 
116
 
            scripting component.  Additionally it provides access to the default
117
 
            and the user-prefered scripting component.
118
 
}
119
 
 
120
 
 
121
 
const
122
 
                                                                                                                                {  Component version this header file describes  }
123
 
        kGenericComponentVersion        = $0100;
124
 
 
125
 
        kGSSSelectGetDefaultScriptingComponent = $1001;
126
 
        kGSSSelectSetDefaultScriptingComponent = $1002;
127
 
        kGSSSelectGetScriptingComponent = $1003;
128
 
        kGSSSelectGetScriptingComponentFromStored = $1004;
129
 
        kGSSSelectGenericToRealID       = $1005;
130
 
        kGSSSelectRealToGenericID       = $1006;
131
 
        kGSSSelectOutOfRange            = $1007;
132
 
 
133
 
 
134
 
type
135
 
        ScriptingComponentSelector                      = OSType;
136
 
        GenericID                                                       = OSAID;
137
 
        {        get and set the default scripting component    }
138
 
        {
139
 
         *  OSAGetDefaultScriptingComponent()
140
 
         *  
141
 
         *  Availability:
142
 
         *    Non-Carbon CFM:   in AppleScriptLib 1.1 and later
143
 
         *    CarbonLib:        in CarbonLib 1.0 and later
144
 
         *    Mac OS X:         in version 10.0 and later
145
 
                }
146
 
function OSAGetDefaultScriptingComponent(genericScriptingComponent: ComponentInstance; var scriptingSubType: ScriptingComponentSelector): OSAError; external name '_OSAGetDefaultScriptingComponent';
147
 
{
148
 
 *  OSASetDefaultScriptingComponent()
149
 
 *  
150
 
 *  Availability:
151
 
 *    Non-Carbon CFM:   in AppleScriptLib 1.1 and later
152
 
 *    CarbonLib:        in CarbonLib 1.0 and later
153
 
 *    Mac OS X:         in version 10.0 and later
154
 
 }
155
 
function OSASetDefaultScriptingComponent(genericScriptingComponent: ComponentInstance; scriptingSubType: ScriptingComponentSelector): OSAError; external name '_OSASetDefaultScriptingComponent';
156
 
{ get a scripting component instance from its subtype code }
157
 
{
158
 
 *  OSAGetScriptingComponent()
159
 
 *  
160
 
 *  Availability:
161
 
 *    Non-Carbon CFM:   in AppleScriptLib 1.1 and later
162
 
 *    CarbonLib:        in CarbonLib 1.0 and later
163
 
 *    Mac OS X:         in version 10.0 and later
164
 
 }
165
 
function OSAGetScriptingComponent(genericScriptingComponent: ComponentInstance; scriptingSubType: ScriptingComponentSelector; var scriptingInstance: ComponentInstance): OSAError; external name '_OSAGetScriptingComponent';
166
 
{ get a scripting component selector (subType) from a stored script }
167
 
{
168
 
 *  OSAGetScriptingComponentFromStored()
169
 
 *  
170
 
 *  Availability:
171
 
 *    Non-Carbon CFM:   in AppleScriptLib 1.1 and later
172
 
 *    CarbonLib:        in CarbonLib 1.0 and later
173
 
 *    Mac OS X:         in version 10.0 and later
174
 
 }
175
 
function OSAGetScriptingComponentFromStored(genericScriptingComponent: ComponentInstance; const (*var*) scriptData: AEDesc; var scriptingSubType: ScriptingComponentSelector): OSAError; external name '_OSAGetScriptingComponentFromStored';
176
 
{ get a real component instance and script id from a generic id }
177
 
{
178
 
 *  OSAGenericToRealID()
179
 
 *  
180
 
 *  Availability:
181
 
 *    Non-Carbon CFM:   in AppleScriptLib 1.1 and later
182
 
 *    CarbonLib:        in CarbonLib 1.0 and later
183
 
 *    Mac OS X:         in version 10.0 and later
184
 
 }
185
 
function OSAGenericToRealID(genericScriptingComponent: ComponentInstance; var theScriptID: OSAID; var theExactComponent: ComponentInstance): OSAError; external name '_OSAGenericToRealID';
186
 
{ get a generic id from a real component instance and script id }
187
 
{
188
 
 *  OSARealToGenericID()
189
 
 *  
190
 
 *  Availability:
191
 
 *    Non-Carbon CFM:   in AppleScriptLib 1.1 and later
192
 
 *    CarbonLib:        in CarbonLib 1.0 and later
193
 
 *    Mac OS X:         in version 10.0 and later
194
 
 }
195
 
function OSARealToGenericID(genericScriptingComponent: ComponentInstance; var theScriptID: OSAID; theExactComponent: ComponentInstance): OSAError; external name '_OSARealToGenericID';
196
 
{$ALIGN MAC68K}
197
 
 
198
 
 
199
 
end.