This repository has been archived by the owner on Sep 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HtmlTxt.hpp
executable file
·699 lines (582 loc) · 25.9 KB
/
HtmlTxt.hpp
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
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
// Borland C++ Builder
// Copyright (c) 1995, 1998 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'HtmlTxt.pas' rev: 3.00
#ifndef HtmlTxtHPP
#define HtmlTxtHPP
#include <WVarDict.hpp>
#include <WapActns.hpp>
#include <AppSSI.hpp>
#include <Graphics.hpp>
#include <SysUtils.hpp>
#include <Classes.hpp>
#include <SysInit.hpp>
#include <System.hpp>
//-- user supplied -----------------------------------------------------------
namespace Htmltxt
{
//-- type declarations -------------------------------------------------------
typedef Graphics::TColor THtmlColor;
class DELPHICLASS TWapControl;
class PASCALIMPLEMENTATION TWapControl : public Wapactns::TWapCustomAction
{
typedef Wapactns::TWapCustomAction inherited;
private:
System::AnsiString __fastcall GetAsHtml();
protected:
virtual void __fastcall SubmitValue(const System::AnsiString Value);
virtual void __fastcall Execute(Appssi::THttpRequest* Request, Appssi::THttpResponse* Response, const
System::AnsiString Verb, const System::AnsiString Value, Wvardict::TVariantList* Params, bool &Handled
);
virtual void __fastcall DoDefault(Appssi::THttpRequest* Request, Appssi::THttpResponse* Response, const
System::AnsiString Value, Wvardict::TVariantList* Params, bool &Handled);
virtual void __fastcall ExecuteSubmit(Appssi::THttpRequest* Request, Appssi::THttpResponse* Response
, const System::AnsiString Value, Wvardict::TVariantList* Params, bool &Handled);
virtual void __fastcall ExecuteWriteHtml(Appssi::THttpRequest* Request, Appssi::THttpResponse* Response
, const System::AnsiString Value, Wvardict::TVariantList* Params, bool &Handled);
virtual void __fastcall ProduceHtml(Classes::TStrings* Dest) = 0;
public:
__fastcall virtual TWapControl(Classes::TComponent* AOwner);
__fastcall virtual ~TWapControl(void);
virtual void __fastcall WriteToStrings(Classes::TStrings* Strings);
virtual void __fastcall WriteToStream(Classes::TStream* Stream);
virtual void __fastcall WriteToFile(const System::AnsiString Filename);
__property System::AnsiString AsHTML = {read=GetAsHtml};
__published:
__property OnBeforeExecute ;
__property OnAfterExecute ;
};
class DELPHICLASS TCustomHtmlChunk;
class PASCALIMPLEMENTATION TCustomHtmlChunk : public Htmltxt::TWapControl
{
typedef Htmltxt::TWapControl inherited;
private:
Classes::TNotifyEvent FOnChange;
Classes::TStrings* FLines;
bool FEscape;
void __fastcall SetLines(Classes::TStrings* Value);
protected:
virtual void __fastcall Change(void);
virtual void __fastcall ProduceHtml(Classes::TStrings* Dest);
__property Classes::TStrings* Lines = {read=FLines, write=SetLines};
__property bool Escape = {read=FEscape, write=FEscape, nodefault};
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
public:
__fastcall virtual TCustomHtmlChunk(Classes::TComponent* AOwner);
__fastcall virtual ~TCustomHtmlChunk(void);
};
class DELPHICLASS THtmlChunk;
class PASCALIMPLEMENTATION THtmlChunk : public Htmltxt::TCustomHtmlChunk
{
typedef Htmltxt::TCustomHtmlChunk inherited;
__published:
__property Lines ;
__property Escape ;
public:
/* TCustomHtmlChunk.Create */ __fastcall virtual THtmlChunk(Classes::TComponent* AOwner) : Htmltxt::
TCustomHtmlChunk(AOwner) { }
/* TCustomHtmlChunk.Destroy */ __fastcall virtual ~THtmlChunk(void) { }
};
class DELPHICLASS THtmlFormControl;
class DELPHICLASS TCustomHtmlForm;
typedef void __fastcall (__closure *THtmlFormBeforeSubmitEvent)(System::TObject* Sender, Appssi::THttpRequest*
Request, Appssi::THttpResponse* Response, const System::AnsiString Value, Wvardict::TVariantList* Params
);
typedef void __fastcall (__closure *THtmlFormAfterSubmitEvent)(System::TObject* Sender, Appssi::THttpRequest*
Request, Appssi::THttpResponse* Response, const System::AnsiString Value, Wvardict::TVariantList* Params
);
class PASCALIMPLEMENTATION TCustomHtmlForm : public Wapactns::TWapCustomAction
{
typedef Wapactns::TWapCustomAction inherited;
private:
Classes::TList* FControls;
THtmlFormBeforeSubmitEvent FOnBeforeSubmit;
THtmlFormAfterSubmitEvent FOnAfterSubmit;
void __fastcall AddControl(THtmlFormControl* Control);
void __fastcall RemoveControl(THtmlFormControl* Control);
int __fastcall GetControlCount(void);
THtmlFormControl* __fastcall GetControl(int Index);
protected:
virtual void __fastcall Execute(Appssi::THttpRequest* Request, Appssi::THttpResponse* Response, const
System::AnsiString Verb, const System::AnsiString Value, Wvardict::TVariantList* Params, bool &Handled
);
void __fastcall BeforeSubmit(Appssi::THttpRequest* Request, Appssi::THttpResponse* Response, const
System::AnsiString Value, Wvardict::TVariantList* Params);
void __fastcall AfterSubmit(Appssi::THttpRequest* Request, Appssi::THttpResponse* Response, const System::AnsiString
Value, Wvardict::TVariantList* Params);
virtual void __fastcall ExecuteWriteFormBegin(Appssi::THttpRequest* Request, Appssi::THttpResponse*
Response, const System::AnsiString Value, Wvardict::TVariantList* Params, bool &Handled);
virtual void __fastcall ExecuteWriteControlHtml(Appssi::THttpRequest* Request, Appssi::THttpResponse*
Response, const System::AnsiString Value, Wvardict::TVariantList* Params, bool &Handled);
virtual void __fastcall ExecuteWriteFormEnd(Appssi::THttpRequest* Request, Appssi::THttpResponse* Response
, const System::AnsiString Value, Wvardict::TVariantList* Params, bool &Handled);
virtual void __fastcall ExecuteSubmit(Appssi::THttpRequest* Request, Appssi::THttpResponse* Response
, const System::AnsiString Value, Wvardict::TVariantList* Params, bool &Handled);
__property THtmlFormBeforeSubmitEvent OnBeforeSubmit = {read=FOnBeforeSubmit, write=FOnBeforeSubmit
};
__property THtmlFormAfterSubmitEvent OnAfterSubmit = {read=FOnAfterSubmit, write=FOnAfterSubmit};
public:
__fastcall virtual TCustomHtmlForm(Classes::TComponent* AOwner);
__fastcall virtual ~TCustomHtmlForm(void);
__property int ControlCount = {read=GetControlCount, nodefault};
__property THtmlFormControl* Controls[int Index] = {read=GetControl};
THtmlFormControl* __fastcall ControlByName(const System::AnsiString Name);
};
class PASCALIMPLEMENTATION THtmlFormControl : public Htmltxt::TWapControl
{
typedef Htmltxt::TWapControl inherited;
private:
Classes::TNotifyEvent FOnChange;
TCustomHtmlForm* FHtmlForm;
void __fastcall SetHtmlForm(TCustomHtmlForm* Value);
protected:
virtual void __fastcall DoDefault(Appssi::THttpRequest* Request, Appssi::THttpResponse* Response, const
System::AnsiString Value, Wvardict::TVariantList* Params, bool &Handled);
virtual void __fastcall Change(void);
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
__published:
__property TCustomHtmlForm* HtmlForm = {read=FHtmlForm, write=SetHtmlForm};
public:
/* TWapControl.Create */ __fastcall virtual THtmlFormControl(Classes::TComponent* AOwner) : Htmltxt::
TWapControl(AOwner) { }
/* TWapControl.Destroy */ __fastcall virtual ~THtmlFormControl(void) { }
};
class DELPHICLASS TCustomHtmlSelect;
class PASCALIMPLEMENTATION TCustomHtmlSelect : public Htmltxt::THtmlFormControl
{
typedef Htmltxt::THtmlFormControl inherited;
private:
int FSize;
Classes::TStrings* FItems;
int FItemIndex;
bool FMultiSelect;
void __fastcall SetItems(Classes::TStrings* Strings);
int __fastcall FindValueIndex(const System::AnsiString Value);
System::AnsiString __fastcall GetValueAt(int Index);
void __fastcall OnItemsChange(System::TObject* Sender);
void __fastcall SetItemIndex(int Value);
protected:
virtual void __fastcall ProduceHtml(Classes::TStrings* Dest);
virtual void __fastcall SubmitValue(const System::AnsiString Value);
public:
__fastcall virtual TCustomHtmlSelect(Classes::TComponent* AOwner);
__fastcall virtual ~TCustomHtmlSelect(void);
__property int Size = {read=FSize, write=FSize, nodefault};
__property Classes::TStrings* Items = {read=FItems, write=SetItems};
__property int ItemIndex = {read=FItemIndex, write=SetItemIndex, nodefault};
__property bool MultiSelect = {read=FMultiSelect, write=FMultiSelect, nodefault};
};
class DELPHICLASS THtmlSelect;
class PASCALIMPLEMENTATION THtmlSelect : public Htmltxt::TCustomHtmlSelect
{
typedef Htmltxt::TCustomHtmlSelect inherited;
public:
__fastcall virtual THtmlSelect(Classes::TComponent* AOwner);
__published:
__property Size ;
__property Items ;
__property ItemIndex ;
__property MultiSelect ;
__property OnChange ;
public:
/* TCustomHtmlSelect.Destroy */ __fastcall virtual ~THtmlSelect(void) { }
};
class DELPHICLASS TCustomHtmlText;
class PASCALIMPLEMENTATION TCustomHtmlText : public Htmltxt::THtmlFormControl
{
typedef Htmltxt::THtmlFormControl inherited;
private:
int FSize;
bool FPassword;
System::AnsiString FText;
int FMaxLength;
void __fastcall SetText(const System::AnsiString Value);
protected:
virtual void __fastcall ProduceHtml(Classes::TStrings* Dest);
virtual void __fastcall SubmitValue(const System::AnsiString Value);
__property int MaxLength = {read=FMaxLength, write=FMaxLength, nodefault};
__property int Size = {read=FSize, write=FSize, nodefault};
__property bool Password = {read=FPassword, write=FPassword, nodefault};
public:
__property System::AnsiString Text = {read=FText, write=SetText};
public:
/* TWapControl.Create */ __fastcall virtual TCustomHtmlText(Classes::TComponent* AOwner) : Htmltxt::
THtmlFormControl(AOwner) { }
/* TWapControl.Destroy */ __fastcall virtual ~TCustomHtmlText(void) { }
};
class DELPHICLASS THtmlText;
class PASCALIMPLEMENTATION THtmlText : public Htmltxt::TCustomHtmlText
{
typedef Htmltxt::TCustomHtmlText inherited;
public:
__fastcall virtual THtmlText(Classes::TComponent* AOwner);
__published:
__property Text ;
__property MaxLength ;
__property Size ;
__property Password ;
__property OnChange ;
public:
/* TWapControl.Destroy */ __fastcall virtual ~THtmlText(void) { }
};
class DELPHICLASS TCustomHtmlTextArea;
class PASCALIMPLEMENTATION TCustomHtmlTextArea : public Htmltxt::THtmlFormControl
{
typedef Htmltxt::THtmlFormControl inherited;
private:
int FRows;
int FCols;
Classes::TStrings* FLines;
int FMaxLength;
void __fastcall SetLines(Classes::TStrings* Value);
void __fastcall HandleLinesChange(System::TObject* Sender);
protected:
virtual void __fastcall ProduceHtml(Classes::TStrings* Dest);
virtual void __fastcall SubmitValue(const System::AnsiString Value);
public:
__fastcall virtual TCustomHtmlTextArea(Classes::TComponent* AOwner);
__fastcall virtual ~TCustomHtmlTextArea(void);
__property int MaxLength = {read=FMaxLength, write=FMaxLength, nodefault};
__property int Rows = {read=FRows, write=FRows, nodefault};
__property int Cols = {read=FCols, write=FCols, nodefault};
__property Classes::TStrings* Lines = {read=FLines, write=SetLines};
};
class DELPHICLASS THtmlTextArea;
class PASCALIMPLEMENTATION THtmlTextArea : public Htmltxt::TCustomHtmlTextArea
{
typedef Htmltxt::TCustomHtmlTextArea inherited;
public:
__fastcall virtual THtmlTextArea(Classes::TComponent* AOwner);
__published:
__property MaxLength ;
__property Rows ;
__property Cols ;
__property Lines ;
__property OnChange ;
public:
/* TCustomHtmlTextArea.Destroy */ __fastcall virtual ~THtmlTextArea(void) { }
};
class DELPHICLASS TCustomHtmlHidden;
class PASCALIMPLEMENTATION TCustomHtmlHidden : public Htmltxt::THtmlFormControl
{
typedef Htmltxt::THtmlFormControl inherited;
private:
System::AnsiString FValue;
protected:
virtual void __fastcall ProduceHtml(Classes::TStrings* Dest);
void __fastcall SetValue(const System::AnsiString Value);
virtual void __fastcall SubmitValue(const System::AnsiString Value);
public:
__property System::AnsiString Value = {read=FValue, write=SetValue};
public:
/* TWapControl.Create */ __fastcall virtual TCustomHtmlHidden(Classes::TComponent* AOwner) : Htmltxt::
THtmlFormControl(AOwner) { }
/* TWapControl.Destroy */ __fastcall virtual ~TCustomHtmlHidden(void) { }
};
class DELPHICLASS THtmlHidden;
class PASCALIMPLEMENTATION THtmlHidden : public Htmltxt::TCustomHtmlHidden
{
typedef Htmltxt::TCustomHtmlHidden inherited;
public:
__fastcall virtual THtmlHidden(Classes::TComponent* AOwner);
__published:
__property Value ;
__property OnChange ;
public:
/* TWapControl.Destroy */ __fastcall virtual ~THtmlHidden(void) { }
};
class DELPHICLASS TCustomHtmlRadio;
class PASCALIMPLEMENTATION TCustomHtmlRadio : public Htmltxt::THtmlFormControl
{
typedef Htmltxt::THtmlFormControl inherited;
private:
bool FChecked;
System::AnsiString FValue;
System::AnsiString FCaption;
void __fastcall SetChecked(bool Value);
protected:
virtual void __fastcall ProduceHtml(Classes::TStrings* Dest);
virtual void __fastcall SubmitValue(const System::AnsiString Value);
__property bool Checked = {read=FChecked, write=SetChecked, nodefault};
__property System::AnsiString Value = {read=FValue, write=FValue};
__property System::AnsiString Caption = {read=FCaption, write=FCaption};
public:
__fastcall virtual TCustomHtmlRadio(Classes::TComponent* AOwner);
public:
/* TWapControl.Destroy */ __fastcall virtual ~TCustomHtmlRadio(void) { }
};
class DELPHICLASS THtmlRadio;
class PASCALIMPLEMENTATION THtmlRadio : public Htmltxt::TCustomHtmlRadio
{
typedef Htmltxt::TCustomHtmlRadio inherited;
public:
__fastcall virtual THtmlRadio(Classes::TComponent* AOwner);
__published:
__property Checked ;
__property Value ;
__property OnChange ;
__property Caption ;
public:
/* TWapControl.Destroy */ __fastcall virtual ~THtmlRadio(void) { }
};
class DELPHICLASS TCustomHtmlCheckbox;
class PASCALIMPLEMENTATION TCustomHtmlCheckbox : public Htmltxt::THtmlFormControl
{
typedef Htmltxt::THtmlFormControl inherited;
private:
bool FChecked;
System::AnsiString FValue;
System::AnsiString FCaption;
void __fastcall SetChecked(bool Value);
protected:
virtual void __fastcall ProduceHtml(Classes::TStrings* Dest);
virtual void __fastcall SubmitValue(const System::AnsiString Value);
__property bool Checked = {read=FChecked, write=SetChecked, nodefault};
__property System::AnsiString Value = {read=FValue, write=FValue};
__property System::AnsiString Caption = {read=FCaption, write=FCaption};
public:
__fastcall virtual TCustomHtmlCheckbox(Classes::TComponent* AOwner);
public:
/* TWapControl.Destroy */ __fastcall virtual ~TCustomHtmlCheckbox(void) { }
};
class DELPHICLASS THtmlCheckbox;
class PASCALIMPLEMENTATION THtmlCheckbox : public Htmltxt::TCustomHtmlCheckbox
{
typedef Htmltxt::TCustomHtmlCheckbox inherited;
public:
__fastcall virtual THtmlCheckbox(Classes::TComponent* AOwner);
__published:
__property Checked ;
__property Value ;
__property OnChange ;
__property Caption ;
public:
/* TWapControl.Destroy */ __fastcall virtual ~THtmlCheckbox(void) { }
};
enum THtmlButtonType { btNormal, btSubmit, btReset };
class DELPHICLASS TCustomHtmlButton;
class PASCALIMPLEMENTATION TCustomHtmlButton : public Htmltxt::THtmlFormControl
{
typedef Htmltxt::THtmlFormControl inherited;
private:
THtmlButtonType FButtonType;
System::AnsiString FValue;
void __fastcall SetValue(const System::AnsiString Value);
protected:
virtual void __fastcall ProduceHtml(Classes::TStrings* Dest);
virtual void __fastcall SubmitValue(const System::AnsiString Value);
__property System::AnsiString Value = {read=FValue, write=SetValue};
__property THtmlButtonType ButtonType = {read=FButtonType, write=FButtonType, nodefault};
__property System::AnsiString Caption = {read=FValue, write=SetValue};
public:
__fastcall virtual TCustomHtmlButton(Classes::TComponent* AOwner);
public:
/* TWapControl.Destroy */ __fastcall virtual ~TCustomHtmlButton(void) { }
};
class DELPHICLASS THtmlButton;
class PASCALIMPLEMENTATION THtmlButton : public Htmltxt::TCustomHtmlButton
{
typedef Htmltxt::TCustomHtmlButton inherited;
public:
__fastcall virtual THtmlButton(Classes::TComponent* AOwner);
__published:
__property Value ;
__property ButtonType ;
__property Caption ;
__property OnChange ;
public:
/* TWapControl.Destroy */ __fastcall virtual ~THtmlButton(void) { }
};
class DELPHICLASS TCustomHtmlRadioGroup;
class PASCALIMPLEMENTATION TCustomHtmlRadioGroup : public Htmltxt::THtmlFormControl
{
typedef Htmltxt::THtmlFormControl inherited;
private:
Classes::TStrings* FItems;
int FItemIndex;
System::AnsiString FBetweenItems;
void __fastcall SetItems(Classes::TStrings* Value);
int __fastcall FindValueIndex(const System::AnsiString Value);
System::AnsiString __fastcall GetValueAt(int Index);
void __fastcall SetItemIndex(int Value);
void __fastcall OnItemsChange(System::TObject* Sender);
protected:
virtual void __fastcall ProduceHtml(Classes::TStrings* Dest);
virtual void __fastcall SubmitValue(const System::AnsiString Value);
__property System::AnsiString BetweenItems = {read=FBetweenItems, write=FBetweenItems};
__property Classes::TStrings* Items = {read=FItems, write=SetItems};
__property int ItemIndex = {read=FItemIndex, write=SetItemIndex, nodefault};
public:
__fastcall virtual TCustomHtmlRadioGroup(Classes::TComponent* AOwner);
__fastcall virtual ~TCustomHtmlRadioGroup(void);
};
class DELPHICLASS THtmlRadioGroup;
class PASCALIMPLEMENTATION THtmlRadioGroup : public Htmltxt::TCustomHtmlRadioGroup
{
typedef Htmltxt::TCustomHtmlRadioGroup inherited;
public:
__fastcall virtual THtmlRadioGroup(Classes::TComponent* AOwner);
__published:
__property BetweenItems ;
__property ItemIndex ;
__property Items ;
__property OnChange ;
public:
/* TCustomHtmlRadioGroup.Destroy */ __fastcall virtual ~THtmlRadioGroup(void) { }
};
class DELPHICLASS TCustomHtmlCheckboxGroup;
class PASCALIMPLEMENTATION TCustomHtmlCheckboxGroup : public Htmltxt::THtmlFormControl
{
typedef Htmltxt::THtmlFormControl inherited;
private:
Classes::TStrings* FItems;
System::AnsiString FBetweenItems;
bool __fastcall GetSelected(int Index);
void __fastcall SetSelected(int Index, bool Value);
void __fastcall SetItems(Classes::TStrings* Value);
System::AnsiString __fastcall GetValueAt(int Index);
protected:
virtual void __fastcall ProduceHtml(Classes::TStrings* Dest);
virtual void __fastcall SubmitValue(const System::AnsiString Value);
public:
__fastcall virtual TCustomHtmlCheckboxGroup(Classes::TComponent* AOwner);
__fastcall virtual ~TCustomHtmlCheckboxGroup(void);
__property bool Selected[int Index] = {read=GetSelected, write=SetSelected};
__property System::AnsiString BetweenItems = {read=FBetweenItems, write=FBetweenItems};
__property Classes::TStrings* Items = {read=FItems, write=SetItems};
};
class DELPHICLASS THtmlCheckboxGroup;
class PASCALIMPLEMENTATION THtmlCheckboxGroup : public Htmltxt::TCustomHtmlCheckboxGroup
{
typedef Htmltxt::TCustomHtmlCheckboxGroup inherited;
public:
__fastcall virtual THtmlCheckboxGroup(Classes::TComponent* AOwner);
__published:
__property BetweenItems ;
__property Items ;
__property OnChange ;
public:
/* TCustomHtmlCheckboxGroup.Destroy */ __fastcall virtual ~THtmlCheckboxGroup(void) { }
};
class DELPHICLASS THtmlForm;
class PASCALIMPLEMENTATION THtmlForm : public Htmltxt::TCustomHtmlForm
{
typedef Htmltxt::TCustomHtmlForm inherited;
__published:
__property OnBeforeSubmit ;
__property OnAfterSubmit ;
public:
/* TCustomHtmlForm.Create */ __fastcall virtual THtmlForm(Classes::TComponent* AOwner) : Htmltxt::TCustomHtmlForm(
AOwner) { }
/* TCustomHtmlForm.Destroy */ __fastcall virtual ~THtmlForm(void) { }
};
class DELPHICLASS TCustomHtmlJavaApplet;
class PASCALIMPLEMENTATION TCustomHtmlJavaApplet : public Htmltxt::TWapControl
{
typedef Htmltxt::TWapControl inherited;
private:
System::AnsiString FArchive;
System::AnsiString FCodeBase;
System::AnsiString FCode;
int FWidth;
int FHeight;
int FHSpace;
int FVSpace;
System::AnsiString FAlign;
Classes::TStrings* FParams;
void __fastcall SetParams(Classes::TStrings* Value);
protected:
virtual void __fastcall ProduceHtml(Classes::TStrings* Dest);
__property System::AnsiString Archive = {read=FArchive, write=FArchive};
__property System::AnsiString CodeBase = {read=FCodeBase, write=FCodeBase};
__property System::AnsiString Code = {read=FCode, write=FCode};
__property int Width = {read=FWidth, write=FWidth, nodefault};
__property int Height = {read=FHeight, write=FHeight, nodefault};
__property int HSpace = {read=FHSpace, write=FHSpace, nodefault};
__property int VSpace = {read=FVSpace, write=FVSpace, nodefault};
__property System::AnsiString Align = {read=FAlign, write=FAlign};
__property Classes::TStrings* Params = {read=FParams, write=SetParams};
public:
__fastcall virtual TCustomHtmlJavaApplet(Classes::TComponent* AOwner);
__fastcall virtual ~TCustomHtmlJavaApplet(void);
};
class DELPHICLASS THtmlJavaApplet;
class PASCALIMPLEMENTATION THtmlJavaApplet : public Htmltxt::TCustomHtmlJavaApplet
{
typedef Htmltxt::TCustomHtmlJavaApplet inherited;
__published:
__property Archive ;
__property CodeBase ;
__property Code ;
__property Width ;
__property Height ;
__property HSpace ;
__property VSpace ;
__property Align ;
__property Params ;
public:
/* TCustomHtmlJavaApplet.Create */ __fastcall virtual THtmlJavaApplet(Classes::TComponent* AOwner) :
Htmltxt::TCustomHtmlJavaApplet(AOwner) { }
/* TCustomHtmlJavaApplet.Destroy */ __fastcall virtual ~THtmlJavaApplet(void) { }
};
//-- var, const, procedure ---------------------------------------------------
#define NewLine "\r\n"
extern PACKAGE System::AnsiString __fastcall Tag(const System::AnsiString Tag);
extern PACKAGE System::AnsiString __fastcall TagWithAttributes(const System::AnsiString Tag, const System::AnsiString
* Attributes, const int Attributes_Size);
extern PACKAGE System::AnsiString __fastcall EndTag(const System::AnsiString Tag);
extern PACKAGE System::AnsiString __fastcall EnclosingTag(const System::AnsiString Tag, const System::AnsiString
Text);
extern PACKAGE System::AnsiString __fastcall EnclosingTagWithAttributes(const System::AnsiString Tag
, const System::AnsiString * Attributes, const int Attributes_Size, System::AnsiString Text);
extern PACKAGE System::AnsiString __fastcall Attribute(const System::AnsiString Name, const System::AnsiString
Value);
extern PACKAGE System::AnsiString __fastcall Html(const System::AnsiString Text);
extern PACKAGE System::AnsiString __fastcall Head(const System::AnsiString Text);
extern PACKAGE System::AnsiString __fastcall Body(const System::AnsiString Text);
extern PACKAGE System::AnsiString __fastcall BodyWithAttributes(const System::AnsiString * Attributes
, const int Attributes_Size, const System::AnsiString Text);
extern PACKAGE System::AnsiString __fastcall FormBegin(const System::AnsiString Name, const System::AnsiString
Method, const System::AnsiString Action, const System::AnsiString EncType, const System::AnsiString
Target);
extern PACKAGE System::AnsiString __fastcall FormEnd();
extern PACKAGE System::AnsiString __fastcall Form(const System::AnsiString Name, const System::AnsiString
Method, const System::AnsiString Action, const System::AnsiString EncType, const System::AnsiString
Target, const System::AnsiString Text);
extern PACKAGE System::AnsiString __fastcall Italic(const System::AnsiString Text);
extern PACKAGE System::AnsiString __fastcall Bold(const System::AnsiString Text);
extern PACKAGE System::AnsiString __fastcall Underline(const System::AnsiString Text);
extern PACKAGE System::AnsiString __fastcall Script(const System::AnsiString ScriptLanguage, const System::AnsiString
Text);
extern PACKAGE System::AnsiString __fastcall NoScript(const System::AnsiString Text);
extern PACKAGE System::AnsiString __fastcall Par(const System::AnsiString Text);
extern PACKAGE System::AnsiString __fastcall ParWithAttributes(const System::AnsiString * Attributes
, const int Attributes_Size, const System::AnsiString Text);
extern PACKAGE System::AnsiString __fastcall Link(const System::AnsiString HRef, const System::AnsiString
Target, const System::AnsiString Text);
extern PACKAGE System::AnsiString __fastcall LineBreak();
extern PACKAGE System::AnsiString __fastcall Title(const System::AnsiString Title);
extern PACKAGE System::AnsiString __fastcall Heading(int Level, const System::AnsiString Text);
extern PACKAGE System::AnsiString __fastcall ColorToHtmlColor(Graphics::TColor Color);
extern PACKAGE System::AnsiString __fastcall SelfURL(Appssi::THttpRequest* Request, const System::AnsiString
LogicalPath, const System::AnsiString QueryString);
extern PACKAGE System::AnsiString __fastcall URLFields(const System::AnsiString * Fields, const int
Fields_Size);
extern PACKAGE System::AnsiString __fastcall URLField(const System::AnsiString Field, const System::AnsiString
Value);
extern PACKAGE System::AnsiString __fastcall Action(const System::AnsiString ActionName, const System::AnsiString
Verb, const System::AnsiString Value);
extern PACKAGE System::AnsiString __fastcall ActionWithParams(const System::AnsiString ActionName, const
System::AnsiString Verb, const System::AnsiString Value, const System::AnsiString * Params, const int
Params_Size);
extern PACKAGE System::AnsiString __fastcall ActionParam(const System::AnsiString Param, const System::AnsiString
Value);
extern PACKAGE System::AnsiString __fastcall ColorToJSColor(Graphics::TColor Color);
extern PACKAGE void __fastcall FormatStringsAsParams(Classes::TStrings* SourceStrings, Classes::TStrings*
DestParams);
} /* namespace Htmltxt */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Htmltxt;
#endif
//-- end unit ----------------------------------------------------------------
#endif // HtmlTxt