-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyLCL_SaveDialog.inc
386 lines (341 loc) · 9.47 KB
/
MyLCL_SaveDialog.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
//----------------------------------------
// The code is automatically generated by the GenlibLcl tool.
// Copyright © ying32. All Rights Reserved.
//
// Licensed under Lazarus.modifiedLGPL
//
//----------------------------------------
function SaveDialog_Create(AOwner: TComponent): TSaveDialog; extdecl;
begin
{$ifdef UsehandleException}Result := nil;{$endif}
handleExceptionBegin
Result := TSaveDialog.Create(AOwner);
handleExceptionEnd
end;
procedure SaveDialog_Free(AObj: TSaveDialog); extdecl;
begin
handleExceptionBegin
AObj.Free;
handleExceptionEnd
end;
//CLASSMETHOD:
function SaveDialog_Execute(AObj: TSaveDialog): LongBool; extdecl;
begin
{$ifdef UsehandleException}Result := False;{$endif}
handleExceptionBegin
Result := AObj.Execute;
handleExceptionEnd
end;
//CLASSMETHOD:
function SaveDialog_FindComponent(AObj: TSaveDialog; AName: PChar): TComponent; extdecl;
begin
{$ifdef UsehandleException}Result := nil;{$endif}
handleExceptionBegin
Result := AObj.FindComponent(AName);
handleExceptionEnd
end;
//CLASSMETHOD:
function SaveDialog_GetNamePath(AObj: TSaveDialog): PChar; extdecl;
begin
{$ifdef UsehandleException}Result := PChar(nil);{$endif}
handleExceptionBegin
Result := PChar(AObj.GetNamePath);
handleExceptionEnd
end;
//CLASSMETHOD:
function SaveDialog_HasParent(AObj: TSaveDialog): LongBool; extdecl;
begin
{$ifdef UsehandleException}Result := False;{$endif}
handleExceptionBegin
Result := AObj.HasParent;
handleExceptionEnd
end;
//CLASSMETHOD:
procedure SaveDialog_Assign(AObj: TSaveDialog; Source: TPersistent); extdecl;
begin
handleExceptionBegin
AObj.Assign(Source);
handleExceptionEnd
end;
//CLASSMETHOD:
function SaveDialog_ClassType(AObj: TSaveDialog): TClass; extdecl;
begin
{$ifdef UsehandleException}Result := TClass(nil);{$endif}
handleExceptionBegin
Result := AObj.ClassType;
handleExceptionEnd
end;
//CLASSMETHOD:
function SaveDialog_ClassName(AObj: TSaveDialog): PChar; extdecl;
begin
{$ifdef UsehandleException}Result := nil;{$endif}
handleExceptionBegin
Result := ToPChar(AObj.ClassName);
handleExceptionEnd
end;
//CLASSMETHOD:
function SaveDialog_InstanceSize(AObj: TSaveDialog): Integer; extdecl;
begin
{$ifdef UsehandleException}Result := Integer(0);{$endif}
handleExceptionBegin
Result := AObj.InstanceSize;
handleExceptionEnd
end;
//CLASSMETHOD:
function SaveDialog_InheritsFrom(AObj: TSaveDialog; AClass: TClass): LongBool; extdecl;
begin
{$ifdef UsehandleException}Result := False;{$endif}
handleExceptionBegin
Result := AObj.InheritsFrom(AClass);
handleExceptionEnd
end;
//CLASSMETHOD:
function SaveDialog_Equals(AObj: TSaveDialog; Obj: TObject): LongBool; extdecl;
begin
{$ifdef UsehandleException}Result := False;{$endif}
handleExceptionBegin
Result := AObj.Equals(Obj);
handleExceptionEnd
end;
//CLASSMETHOD:
function SaveDialog_GetHashCode(AObj: TSaveDialog): Integer; extdecl;
begin
{$ifdef UsehandleException}Result := Integer(0);{$endif}
handleExceptionBegin
Result := AObj.GetHashCode;
handleExceptionEnd
end;
//CLASSMETHOD:
function SaveDialog_ToString(AObj: TSaveDialog): PChar; extdecl;
begin
{$ifdef UsehandleException}Result := PChar(nil);{$endif}
handleExceptionBegin
Result := PChar(AObj.ToString);
handleExceptionEnd
end;
function SaveDialog_GetFiles(AObj: TSaveDialog): TStrings; extdecl;
begin
{$ifdef UsehandleException}Result := nil;{$endif}
handleExceptionBegin
Result := AObj.Files;
handleExceptionEnd
end;
function SaveDialog_GetDefaultExt(AObj: TSaveDialog): PChar; extdecl;
begin
{$ifdef UsehandleException}Result := PChar(nil);{$endif}
handleExceptionBegin
Result := PChar(AObj.DefaultExt);
handleExceptionEnd
end;
procedure SaveDialog_SetDefaultExt(AObj: TSaveDialog; AValue: PChar); extdecl;
begin
handleExceptionBegin
AObj.DefaultExt := AValue;
handleExceptionEnd
end;
function SaveDialog_GetFileName(AObj: TSaveDialog): PChar; extdecl;
begin
{$ifdef UsehandleException}Result := PChar(nil);{$endif}
handleExceptionBegin
Result := PChar(AObj.FileName);
handleExceptionEnd
end;
procedure SaveDialog_SetFileName(AObj: TSaveDialog; AValue: PChar); extdecl;
begin
handleExceptionBegin
AObj.FileName := AValue;
handleExceptionEnd
end;
function SaveDialog_GetFilter(AObj: TSaveDialog): PChar; extdecl;
begin
{$ifdef UsehandleException}Result := PChar(nil);{$endif}
handleExceptionBegin
Result := PChar(AObj.Filter);
handleExceptionEnd
end;
procedure SaveDialog_SetFilter(AObj: TSaveDialog; AValue: PChar); extdecl;
begin
handleExceptionBegin
AObj.Filter := AValue;
handleExceptionEnd
end;
function SaveDialog_GetFilterIndex(AObj: TSaveDialog): Integer; extdecl;
begin
{$ifdef UsehandleException}Result := Integer(0);{$endif}
handleExceptionBegin
Result := AObj.FilterIndex;
handleExceptionEnd
end;
procedure SaveDialog_SetFilterIndex(AObj: TSaveDialog; AValue: Integer); extdecl;
begin
handleExceptionBegin
AObj.FilterIndex := AValue;
handleExceptionEnd
end;
function SaveDialog_GetInitialDir(AObj: TSaveDialog): PChar; extdecl;
begin
{$ifdef UsehandleException}Result := PChar(nil);{$endif}
handleExceptionBegin
Result := PChar(AObj.InitialDir);
handleExceptionEnd
end;
procedure SaveDialog_SetInitialDir(AObj: TSaveDialog; AValue: PChar); extdecl;
begin
handleExceptionBegin
AObj.InitialDir := AValue;
handleExceptionEnd
end;
function SaveDialog_GetOptions(AObj: TSaveDialog): TOpenOptions; extdecl;
begin
{$ifdef UsehandleException}Result := [];{$endif}
handleExceptionBegin
Result := AObj.Options;
handleExceptionEnd
end;
procedure SaveDialog_SetOptions(AObj: TSaveDialog; AValue: TOpenOptions); extdecl;
begin
handleExceptionBegin
AObj.Options := AValue;
handleExceptionEnd
end;
function SaveDialog_GetTitle(AObj: TSaveDialog): PChar; extdecl;
begin
{$ifdef UsehandleException}Result := PChar(nil);{$endif}
handleExceptionBegin
Result := PChar(AObj.Title);
handleExceptionEnd
end;
procedure SaveDialog_SetTitle(AObj: TSaveDialog; AValue: PChar); extdecl;
begin
handleExceptionBegin
AObj.Title := AValue;
handleExceptionEnd
end;
function SaveDialog_GetHandle(AObj: TSaveDialog): HWND; extdecl;
begin
{$ifdef UsehandleException}Result := HWND(0);{$endif}
handleExceptionBegin
Result := AObj.Handle;
handleExceptionEnd
end;
//EVENT_TYPE:TNotifyEvent
procedure SaveDialog_SetOnClose(AObj: TSaveDialog; AEventData: Pointer); extdecl;
begin
{$DEFINE EventMethodName := OnTNotifyEvent}
{$DEFINE EventName := OnClose}
EventMethodCode
end;
//EVENT_TYPE:TNotifyEvent
procedure SaveDialog_SetOnShow(AObj: TSaveDialog; AEventData: Pointer); extdecl;
begin
{$DEFINE EventMethodName := OnTNotifyEvent}
{$DEFINE EventName := OnShow}
EventMethodCode
end;
function SaveDialog_GetComponentCount(AObj: TSaveDialog): Integer; extdecl;
begin
{$ifdef UsehandleException}Result := Integer(0);{$endif}
handleExceptionBegin
Result := AObj.ComponentCount;
handleExceptionEnd
end;
function SaveDialog_GetComponentIndex(AObj: TSaveDialog): Integer; extdecl;
begin
{$ifdef UsehandleException}Result := Integer(0);{$endif}
handleExceptionBegin
Result := AObj.ComponentIndex;
handleExceptionEnd
end;
procedure SaveDialog_SetComponentIndex(AObj: TSaveDialog; AValue: Integer); extdecl;
begin
handleExceptionBegin
AObj.ComponentIndex := AValue;
handleExceptionEnd
end;
function SaveDialog_GetOwner(AObj: TSaveDialog): TComponent; extdecl;
begin
{$ifdef UsehandleException}Result := nil;{$endif}
handleExceptionBegin
Result := AObj.Owner;
handleExceptionEnd
end;
function SaveDialog_GetName(AObj: TSaveDialog): PChar; extdecl;
begin
{$ifdef UsehandleException}Result := PChar(nil);{$endif}
handleExceptionBegin
Result := PChar(AObj.Name);
handleExceptionEnd
end;
procedure SaveDialog_SetName(AObj: TSaveDialog; AValue: PChar); extdecl;
begin
handleExceptionBegin
AObj.Name := AValue;
handleExceptionEnd
end;
function SaveDialog_GetTag(AObj: TSaveDialog): NativeInt; extdecl;
begin
{$ifdef UsehandleException}Result := NativeInt(0);{$endif}
handleExceptionBegin
Result := AObj.Tag;
handleExceptionEnd
end;
procedure SaveDialog_SetTag(AObj: TSaveDialog; AValue: NativeInt); extdecl;
begin
handleExceptionBegin
AObj.Tag := AValue;
handleExceptionEnd
end;
function SaveDialog_GetComponents(AObj: TSaveDialog; AIndex: Integer): TComponent; extdecl;
begin
{$ifdef UsehandleException}Result := nil;{$endif}
handleExceptionBegin
Result := AObj.Components[AIndex];
handleExceptionEnd
end;
function SaveDialog_StaticClassType: TClass; extdecl;
begin
Result := TSaveDialog;
end;
exports
SaveDialog_Create,
SaveDialog_Free,
SaveDialog_Execute,
SaveDialog_FindComponent,
SaveDialog_GetNamePath,
SaveDialog_HasParent,
SaveDialog_Assign,
SaveDialog_ClassType,
SaveDialog_ClassName,
SaveDialog_InstanceSize,
SaveDialog_InheritsFrom,
SaveDialog_Equals,
SaveDialog_GetHashCode,
SaveDialog_ToString,
SaveDialog_GetFiles,
SaveDialog_GetDefaultExt,
SaveDialog_SetDefaultExt,
SaveDialog_GetFileName,
SaveDialog_SetFileName,
SaveDialog_GetFilter,
SaveDialog_SetFilter,
SaveDialog_GetFilterIndex,
SaveDialog_SetFilterIndex,
SaveDialog_GetInitialDir,
SaveDialog_SetInitialDir,
SaveDialog_GetOptions,
SaveDialog_SetOptions,
SaveDialog_GetTitle,
SaveDialog_SetTitle,
SaveDialog_GetHandle,
SaveDialog_SetOnClose,
SaveDialog_SetOnShow,
SaveDialog_GetComponentCount,
SaveDialog_GetComponentIndex,
SaveDialog_SetComponentIndex,
SaveDialog_GetOwner,
SaveDialog_GetName,
SaveDialog_SetName,
SaveDialog_GetTag,
SaveDialog_SetTag,
SaveDialog_GetComponents,
SaveDialog_StaticClassType;