1 |
torben |
2671 |
unit SysTools_TLB;
|
2 |
|
|
|
3 |
|
|
// ************************************************************************ //
|
4 |
|
|
// WARNING
|
5 |
|
|
// -------
|
6 |
|
|
// The types declared in this file were generated from data read from a
|
7 |
|
|
// Type Library. If this type library is explicitly or indirectly (via
|
8 |
|
|
// another type library referring to this type library) re-imported, or the
|
9 |
|
|
// 'Refresh' command of the Type Library Editor activated while editing the
|
10 |
|
|
// Type Library, the contents of this file will be regenerated and all
|
11 |
|
|
// manual modifications will be lost.
|
12 |
|
|
// ************************************************************************ //
|
13 |
|
|
|
14 |
|
|
// PASTLWTR : $Revision: 1.1.1.1 $
|
15 |
|
|
// File generated on 5/10/2000 2:46:28 PM from Type Library described below.
|
16 |
|
|
|
17 |
|
|
// *************************************************************************//
|
18 |
|
|
// NOTE:
|
19 |
|
|
// Items guarded by $IFDEF_LIVE_SERVER_AT_DESIGN_TIME are used by properties
|
20 |
|
|
// which return objects that may need to be explicitly created via a function
|
21 |
|
|
// call prior to any access via the property. These items have been disabled
|
22 |
|
|
// in order to prevent accidental use from within the object inspector. You
|
23 |
|
|
// may enable them by defining LIVE_SERVER_AT_DESIGN_TIME or by selectively
|
24 |
|
|
// removing them from the $IFDEF blocks. However, such items must still be
|
25 |
|
|
// programmatically created via a method of the appropriate CoClass before
|
26 |
|
|
// they can be used.
|
27 |
|
|
// ************************************************************************ //
|
28 |
|
|
// Type Lib: F:\TPS\SYSTOOLS\COM\SysTools.tlb (1)
|
29 |
|
|
// IID\LCID: {AC5A1156-9F49-49CB-8827-2C37F08BF054}\0
|
30 |
|
|
// Helpfile:
|
31 |
|
|
// DepndLst:
|
32 |
|
|
// (1) v2.0 stdole, (C:\WINNT\System32\stdole2.tlb)
|
33 |
|
|
// (2) v4.0 StdVCL, (C:\WINNT\System32\STDVCL40.DLL)
|
34 |
|
|
// ************************************************************************ //
|
35 |
|
|
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
|
36 |
|
|
interface
|
37 |
|
|
|
38 |
|
|
uses Windows, ActiveX, Classes, Graphics, OleServer, OleCtrls, StdVCL;
|
39 |
|
|
|
40 |
|
|
// *********************************************************************//
|
41 |
|
|
// GUIDS declared in the TypeLibrary. Following prefixes are used:
|
42 |
|
|
// Type Libraries : LIBID_xxxx
|
43 |
|
|
// CoClasses : CLASS_xxxx
|
44 |
|
|
// DISPInterfaces : DIID_xxxx
|
45 |
|
|
// Non-DISP interfaces: IID_xxxx
|
46 |
|
|
// *********************************************************************//
|
47 |
|
|
const
|
48 |
|
|
// TypeLibrary Major and minor versions
|
49 |
|
|
SysToolsMajorVersion = 1;
|
50 |
|
|
SysToolsMinorVersion = 0;
|
51 |
|
|
|
52 |
|
|
LIBID_SysTools: TGUID = '{AC5A1156-9F49-49CB-8827-2C37F08BF054}';
|
53 |
|
|
|
54 |
|
|
IID_IStDate: TGUID = '{06A34C32-CF9D-40DA-B943-B7D5D178AE4D}';
|
55 |
|
|
CLASS_StDate: TGUID = '{C77513BB-8AB2-4EB8-A585-8D3F8486F4E3}';
|
56 |
|
|
IID_IStString: TGUID = '{B622F701-6E3F-4875-A574-201F0DB002F3}';
|
57 |
|
|
CLASS_StString: TGUID = '{D152991C-854C-40DD-AB93-912311F62E2E}';
|
58 |
|
|
IID_IStToHTML: TGUID = '{9F64CFCF-E50F-4807-A1AA-1E319B0A1D63}';
|
59 |
|
|
DIID_IStToHTMLEvents: TGUID = '{71DAEE82-3292-4122-8E4A-E1BB58D8D162}';
|
60 |
|
|
CLASS_StToHTML: TGUID = '{807E3064-CA6F-4DEF-B6F6-BA4DBF4F51DD}';
|
61 |
|
|
IID_IStStringList: TGUID = '{7A005B00-EE90-4034-B05A-64579C0A7837}';
|
62 |
|
|
DIID_IStStringListEvents: TGUID = '{2457A45F-311D-4E0F-A370-AAD85C6C922E}';
|
63 |
|
|
CLASS_StStringList: TGUID = '{1689CC1F-4D2E-409E-AFFD-1EBAC808C569}';
|
64 |
|
|
IID_IStRegEx: TGUID = '{6498218A-2A04-4B0F-AD99-AD1D551997E8}';
|
65 |
|
|
DIID_IStRegExEvents: TGUID = '{25513E60-B981-49F8-AD17-E18E7358163A}';
|
66 |
|
|
CLASS_StRegEx: TGUID = '{E894200A-226E-4B27-8FB5-320BF9430046}';
|
67 |
|
|
IID_IStExpr: TGUID = '{C4753F38-E937-4AFE-8D35-2210305B6D19}';
|
68 |
|
|
CLASS_StExpr: TGUID = '{D0200AD9-8DE6-40C4-AACB-CC12964084FE}';
|
69 |
|
|
IID_IStMime: TGUID = '{96547B4C-ED9E-4844-8F74-5C9E0268F460}';
|
70 |
|
|
DIID_IStMimeEvents: TGUID = '{0D42F0C6-844D-4541-8BAD-E2BFB6BF6C25}';
|
71 |
|
|
CLASS_StMime: TGUID = '{0EF7D4FF-E095-4C8A-A25C-CED37FF02398}';
|
72 |
|
|
IID_IStRegINI: TGUID = '{37198FBE-3932-4548-A6B1-31229E83F87B}';
|
73 |
|
|
CLASS_StRegINI: TGUID = '{856EC866-10AE-4AC7-90FF-6C7D5B153064}';
|
74 |
|
|
IID_IStFin: TGUID = '{821B289E-492C-4115-8484-A6545E281BB3}';
|
75 |
|
|
CLASS_StFin: TGUID = '{8CD51FD5-514E-4CB0-9121-9B4B21B3A320}';
|
76 |
|
|
IID_IStRegINIQueryKeyInfo: TGUID = '{DF09E023-FC82-4BC0-BEA8-AA5D5C0E9F2A}';
|
77 |
|
|
CLASS_StRegINIQueryKeyInfo: TGUID = '{33B067CF-275F-444C-A63B-E98ADEE1D1B2}';
|
78 |
|
|
IID_IStRegINISubKeys: TGUID = '{43B798DA-D2CA-4263-854D-E63FBB2F7C64}';
|
79 |
|
|
CLASS_StRegINISubKeys: TGUID = '{A4FD4C76-1147-46C9-862B-4C3A5D246D38}';
|
80 |
|
|
IID_IStRegINIValue: TGUID = '{A3E5FB23-CD5C-471B-8214-5075375DE8DF}';
|
81 |
|
|
CLASS_StRegINIValue: TGUID = '{C5B752C4-113B-4887-92CC-5C30B158E502}';
|
82 |
|
|
IID_IStRegINIValues: TGUID = '{FC9E57F0-ABC0-4B69-80A0-06CDACB61AEB}';
|
83 |
|
|
CLASS_StRegINIValues: TGUID = '{50210282-7730-48FC-A9EC-6BBAD8B3915A}';
|
84 |
|
|
IID_IStRegINISubKey: TGUID = '{BBA14CDE-6BDE-4E40-86DD-E04697595AF3}';
|
85 |
|
|
CLASS_StRegINISubKey: TGUID = '{0C2EECA2-08E5-47C2-AABF-F091F71427CC}';
|
86 |
|
|
|
87 |
|
|
// *********************************************************************//
|
88 |
|
|
// Declaration of Enumerations defined in Type Library
|
89 |
|
|
// *********************************************************************//
|
90 |
|
|
// Constants for enum TStBondDateType
|
91 |
|
|
type
|
92 |
|
|
TStBondDateType = TOleEnum;
|
93 |
|
|
const
|
94 |
|
|
bdtActual = $00000000;
|
95 |
|
|
bdt30E360 = $00000001;
|
96 |
|
|
bdt30360 = $00000002;
|
97 |
|
|
|
98 |
|
|
// Constants for enum TStDayType
|
99 |
|
|
type
|
100 |
|
|
TStDayType = TOleEnum;
|
101 |
|
|
const
|
102 |
|
|
Sunday = $00000000;
|
103 |
|
|
Monday = $00000001;
|
104 |
|
|
Tuesday = $00000002;
|
105 |
|
|
Wednesday = $00000003;
|
106 |
|
|
Thursday = $00000004;
|
107 |
|
|
Friday = $00000005;
|
108 |
|
|
Saturday = $00000006;
|
109 |
|
|
|
110 |
|
|
// Constants for enum TStConvertState
|
111 |
|
|
type
|
112 |
|
|
TStConvertState = TOleEnum;
|
113 |
|
|
const
|
114 |
|
|
csStarted = $00000000;
|
115 |
|
|
csProgressing = $00000001;
|
116 |
|
|
csFinished = $00000002;
|
117 |
|
|
|
118 |
|
|
// Constants for enum TStLineTerminator
|
119 |
|
|
type
|
120 |
|
|
TStLineTerminator = TOleEnum;
|
121 |
|
|
const
|
122 |
|
|
ltNone = $00000000;
|
123 |
|
|
ltCR = $00000001;
|
124 |
|
|
ltLF = $00000002;
|
125 |
|
|
ltCRLF = $00000003;
|
126 |
|
|
ltOther = $00000004;
|
127 |
|
|
|
128 |
|
|
// Constants for enum TStOutputOption
|
129 |
|
|
type
|
130 |
|
|
TStOutputOption = TOleEnum;
|
131 |
|
|
const
|
132 |
|
|
ooUnSelected = $00000001;
|
133 |
|
|
ooModified = $00000002;
|
134 |
|
|
ooCountOnly = $00000004;
|
135 |
|
|
|
136 |
|
|
type
|
137 |
|
|
|
138 |
|
|
// *********************************************************************//
|
139 |
|
|
// Forward declaration of types defined in TypeLibrary
|
140 |
|
|
// *********************************************************************//
|
141 |
|
|
IStDate = interface;
|
142 |
|
|
IStDateDisp = dispinterface;
|
143 |
|
|
IStString = interface;
|
144 |
|
|
IStStringDisp = dispinterface;
|
145 |
|
|
IStToHTML = interface;
|
146 |
|
|
IStToHTMLDisp = dispinterface;
|
147 |
|
|
IStToHTMLEvents = dispinterface;
|
148 |
|
|
IStStringList = interface;
|
149 |
|
|
IStStringListDisp = dispinterface;
|
150 |
|
|
IStStringListEvents = dispinterface;
|
151 |
|
|
IStRegEx = interface;
|
152 |
|
|
IStRegExDisp = dispinterface;
|
153 |
|
|
IStRegExEvents = dispinterface;
|
154 |
|
|
IStExpr = interface;
|
155 |
|
|
IStExprDisp = dispinterface;
|
156 |
|
|
IStMime = interface;
|
157 |
|
|
IStMimeDisp = dispinterface;
|
158 |
|
|
IStMimeEvents = dispinterface;
|
159 |
|
|
IStRegINI = interface;
|
160 |
|
|
IStRegINIDisp = dispinterface;
|
161 |
|
|
IStFin = interface;
|
162 |
|
|
IStFinDisp = dispinterface;
|
163 |
|
|
IStRegINIQueryKeyInfo = interface;
|
164 |
|
|
IStRegINIQueryKeyInfoDisp = dispinterface;
|
165 |
|
|
IStRegINISubKeys = interface;
|
166 |
|
|
IStRegINISubKeysDisp = dispinterface;
|
167 |
|
|
IStRegINIValue = interface;
|
168 |
|
|
IStRegINIValueDisp = dispinterface;
|
169 |
|
|
IStRegINIValues = interface;
|
170 |
|
|
IStRegINIValuesDisp = dispinterface;
|
171 |
|
|
IStRegINISubKey = interface;
|
172 |
|
|
IStRegINISubKeyDisp = dispinterface;
|
173 |
|
|
|
174 |
|
|
// *********************************************************************//
|
175 |
|
|
// Declaration of CoClasses defined in Type Library
|
176 |
|
|
// (NOTE: Here we map each CoClass to its Default Interface)
|
177 |
|
|
// *********************************************************************//
|
178 |
|
|
StDate = IStDate;
|
179 |
|
|
StString = IStString;
|
180 |
|
|
StToHTML = IStToHTML;
|
181 |
|
|
StStringList = IStStringList;
|
182 |
|
|
StRegEx = IStRegEx;
|
183 |
|
|
StExpr = IStExpr;
|
184 |
|
|
StMime = IStMime;
|
185 |
|
|
StRegINI = IStRegINI;
|
186 |
|
|
StFin = IStFin;
|
187 |
|
|
StRegINIQueryKeyInfo = IStRegINIQueryKeyInfo;
|
188 |
|
|
StRegINISubKeys = IStRegINISubKeys;
|
189 |
|
|
StRegINIValue = IStRegINIValue;
|
190 |
|
|
StRegINIValues = IStRegINIValues;
|
191 |
|
|
StRegINISubKey = IStRegINISubKey;
|
192 |
|
|
|
193 |
|
|
|
194 |
|
|
// *********************************************************************//
|
195 |
|
|
// Interface: IStDate
|
196 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
197 |
|
|
// GUID: {06A34C32-CF9D-40DA-B943-B7D5D178AE4D}
|
198 |
|
|
// *********************************************************************//
|
199 |
|
|
IStDate = interface(IDispatch)
|
200 |
|
|
['{06A34C32-CF9D-40DA-B943-B7D5D178AE4D}']
|
201 |
|
|
function AstJulianDate(Julian: TDateTime): Double; safecall;
|
202 |
|
|
function AstJulianDatePrim(Year: Integer; Month: Integer; Day: Integer; UT: TDateTime): Double; safecall;
|
203 |
|
|
function AstJulianDateToStDate(AstJD: Double; Truncate: WordBool): TDateTime; safecall;
|
204 |
|
|
function BondDateDiff(Date1: TDateTime; Date2: TDateTime; DayBasis: TStBondDateType): TDateTime; safecall;
|
205 |
|
|
function CurrentDate: TDateTime; safecall;
|
206 |
|
|
function CurrentDateString(const Picture: WideString; Pack: WordBool): WideString; safecall;
|
207 |
|
|
function CurrentTime: TDateTime; safecall;
|
208 |
|
|
function CurrentTimeString(const Picture: WideString; Pack: WordBool): WideString; safecall;
|
209 |
|
|
procedure DateDiff(Date1: TDateTime; Date2: TDateTime; var Days: Integer; var Months: Integer;
|
210 |
|
|
var Years: Integer); safecall;
|
211 |
|
|
function DateStringHMStoAstJD(const Picture: WideString; const DS: WideString; Hours: Integer;
|
212 |
|
|
Minutes: Integer; Seconds: Integer; Epoch: Integer): Double; safecall;
|
213 |
|
|
function DateStringToDMY(const Picture: WideString; const S: WideString; var Day: Integer;
|
214 |
|
|
var Month: Integer; var Year: Integer; Epoch: Integer): WordBool; safecall;
|
215 |
|
|
function DateStringToStDate(const Picture: WideString; const S: WideString; Epoch: Integer): TDateTime; safecall;
|
216 |
|
|
procedure DateTimeDiff(DT1: TDateTime; DT2: TDateTime; var Days: Integer; var Seconds: Integer); safecall;
|
217 |
|
|
function DayOfWeek(Julian: TDateTime): TStDayType; safecall;
|
218 |
|
|
function DayOfWeekDMY(Day: Integer; Month: Integer; Year: Integer; Epoch: Integer): TStDayType; safecall;
|
219 |
|
|
function DayOfWeekToString(WeekDay: TStDayType): WideString; safecall;
|
220 |
|
|
function DaysInMonth(Month: Integer; Year: Integer; Epoch: Integer): Integer; safecall;
|
221 |
|
|
function DecTime(T: TDateTime; Hours: Byte; Minutes: Byte; Seconds: Byte): TDateTime; safecall;
|
222 |
|
|
function DMYtoStDate(Day: Integer; Month: Integer; Year: Integer; Epoch: Integer): TDateTime; safecall;
|
223 |
|
|
function DMYtoDateString(const Picture: WideString; Day: Integer; Month: Integer;
|
224 |
|
|
Year: Integer; Epoch: Integer; Pack: WordBool): WideString; safecall;
|
225 |
|
|
function HMStoStTime(Hours: Byte; Minutes: Byte; Seconds: Byte): TDateTime; safecall;
|
226 |
|
|
function IncDate(Julian: TDateTime; Days: Integer; Months: Integer; Years: Integer): TDateTime; safecall;
|
227 |
|
|
procedure IncDateTime(DT1: TDateTime; var DT2: TDateTime; Days: Integer; Seconds: Integer); safecall;
|
228 |
|
|
function IncDateTrunc(Julian: TDateTime; Months: Integer; Years: Integer): TDateTime; safecall;
|
229 |
|
|
function IncTime(T: TDateTime; Hours: Byte; Minutes: Byte; Seconds: Byte): TDateTime; safecall;
|
230 |
|
|
function InternationalDate(ForceCentury: WordBool): WideString; safecall;
|
231 |
|
|
function InternationalLongDate(ShortNames: WordBool; ExcludeDOW: WordBool): WideString; safecall;
|
232 |
|
|
function InternationalTime(ShowSeconds: WordBool): WideString; safecall;
|
233 |
|
|
function IsLeapYear(Year: Integer): WordBool; safecall;
|
234 |
|
|
function MonthToString(Month: Integer): WideString; safecall;
|
235 |
|
|
function RoundToNearestHour(T: TDateTime; Truncate: WordBool): TDateTime; safecall;
|
236 |
|
|
function RoundToNearestMinute(T: TDateTime; Truncate: WordBool): TDateTime; safecall;
|
237 |
|
|
function StDateToDateString(const Picture: WideString; Julian: TDateTime; Pack: WordBool): WideString; safecall;
|
238 |
|
|
procedure StDateToDMY(Julian: TDateTime; var Day: Integer; var Month: Integer; var Year: Integer); safecall;
|
239 |
|
|
function StTimeToAmPmString(const Picture: WideString; T: TDateTime; Pack: WordBool): WideString; safecall;
|
240 |
|
|
procedure StTimeToHMS(T: TDateTime; var Hours: Byte; var Minutes: Byte; var Seconds: Byte); safecall;
|
241 |
|
|
function StTimeToTimeString(const Picture: WideString; T: TDateTime; Pack: WordBool): WideString; safecall;
|
242 |
|
|
procedure TimeDiff(T1: TDateTime; T2: TDateTime; var Hours: Byte; var Minutes: Byte;
|
243 |
|
|
var Seconds: Byte); safecall;
|
244 |
|
|
function TimeStringToHMS(const Picture: WideString; const TS: WideString; var Hours: Integer;
|
245 |
|
|
var Minutes: Integer; var Seconds: Integer): WordBool; safecall;
|
246 |
|
|
function TimeStringToStTime(const Picture: WideString; const S: WideString): TDateTime; safecall;
|
247 |
|
|
function ValidDate(Day: Integer; Month: Integer; Year: Integer; Epoch: Integer): WordBool; safecall;
|
248 |
|
|
function ValidTime(Hours: Integer; Minutes: Integer; Seconds: Integer): WordBool; safecall;
|
249 |
|
|
function WeekOfYear(Julian: TDateTime): Byte; safecall;
|
250 |
|
|
function License(const Key: WideString): WordBool; safecall;
|
251 |
|
|
end;
|
252 |
|
|
|
253 |
|
|
// *********************************************************************//
|
254 |
|
|
// DispIntf: IStDateDisp
|
255 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
256 |
|
|
// GUID: {06A34C32-CF9D-40DA-B943-B7D5D178AE4D}
|
257 |
|
|
// *********************************************************************//
|
258 |
|
|
IStDateDisp = dispinterface
|
259 |
|
|
['{06A34C32-CF9D-40DA-B943-B7D5D178AE4D}']
|
260 |
|
|
function AstJulianDate(Julian: TDateTime): Double; dispid 1;
|
261 |
|
|
function AstJulianDatePrim(Year: Integer; Month: Integer; Day: Integer; UT: TDateTime): Double; dispid 2;
|
262 |
|
|
function AstJulianDateToStDate(AstJD: Double; Truncate: WordBool): TDateTime; dispid 3;
|
263 |
|
|
function BondDateDiff(Date1: TDateTime; Date2: TDateTime; DayBasis: TStBondDateType): TDateTime; dispid 4;
|
264 |
|
|
function CurrentDate: TDateTime; dispid 5;
|
265 |
|
|
function CurrentDateString(const Picture: WideString; Pack: WordBool): WideString; dispid 6;
|
266 |
|
|
function CurrentTime: TDateTime; dispid 7;
|
267 |
|
|
function CurrentTimeString(const Picture: WideString; Pack: WordBool): WideString; dispid 8;
|
268 |
|
|
procedure DateDiff(Date1: TDateTime; Date2: TDateTime; var Days: Integer; var Months: Integer;
|
269 |
|
|
var Years: Integer); dispid 9;
|
270 |
|
|
function DateStringHMStoAstJD(const Picture: WideString; const DS: WideString; Hours: Integer;
|
271 |
|
|
Minutes: Integer; Seconds: Integer; Epoch: Integer): Double; dispid 10;
|
272 |
|
|
function DateStringToDMY(const Picture: WideString; const S: WideString; var Day: Integer;
|
273 |
|
|
var Month: Integer; var Year: Integer; Epoch: Integer): WordBool; dispid 11;
|
274 |
|
|
function DateStringToStDate(const Picture: WideString; const S: WideString; Epoch: Integer): TDateTime; dispid 12;
|
275 |
|
|
procedure DateTimeDiff(DT1: TDateTime; DT2: TDateTime; var Days: Integer; var Seconds: Integer); dispid 13;
|
276 |
|
|
function DayOfWeek(Julian: TDateTime): TStDayType; dispid 14;
|
277 |
|
|
function DayOfWeekDMY(Day: Integer; Month: Integer; Year: Integer; Epoch: Integer): TStDayType; dispid 15;
|
278 |
|
|
function DayOfWeekToString(WeekDay: TStDayType): WideString; dispid 16;
|
279 |
|
|
function DaysInMonth(Month: Integer; Year: Integer; Epoch: Integer): Integer; dispid 17;
|
280 |
|
|
function DecTime(T: TDateTime; Hours: Byte; Minutes: Byte; Seconds: Byte): TDateTime; dispid 18;
|
281 |
|
|
function DMYtoStDate(Day: Integer; Month: Integer; Year: Integer; Epoch: Integer): TDateTime; dispid 19;
|
282 |
|
|
function DMYtoDateString(const Picture: WideString; Day: Integer; Month: Integer;
|
283 |
|
|
Year: Integer; Epoch: Integer; Pack: WordBool): WideString; dispid 20;
|
284 |
|
|
function HMStoStTime(Hours: Byte; Minutes: Byte; Seconds: Byte): TDateTime; dispid 21;
|
285 |
|
|
function IncDate(Julian: TDateTime; Days: Integer; Months: Integer; Years: Integer): TDateTime; dispid 22;
|
286 |
|
|
procedure IncDateTime(DT1: TDateTime; var DT2: TDateTime; Days: Integer; Seconds: Integer); dispid 23;
|
287 |
|
|
function IncDateTrunc(Julian: TDateTime; Months: Integer; Years: Integer): TDateTime; dispid 24;
|
288 |
|
|
function IncTime(T: TDateTime; Hours: Byte; Minutes: Byte; Seconds: Byte): TDateTime; dispid 25;
|
289 |
|
|
function InternationalDate(ForceCentury: WordBool): WideString; dispid 26;
|
290 |
|
|
function InternationalLongDate(ShortNames: WordBool; ExcludeDOW: WordBool): WideString; dispid 27;
|
291 |
|
|
function InternationalTime(ShowSeconds: WordBool): WideString; dispid 28;
|
292 |
|
|
function IsLeapYear(Year: Integer): WordBool; dispid 29;
|
293 |
|
|
function MonthToString(Month: Integer): WideString; dispid 30;
|
294 |
|
|
function RoundToNearestHour(T: TDateTime; Truncate: WordBool): TDateTime; dispid 31;
|
295 |
|
|
function RoundToNearestMinute(T: TDateTime; Truncate: WordBool): TDateTime; dispid 32;
|
296 |
|
|
function StDateToDateString(const Picture: WideString; Julian: TDateTime; Pack: WordBool): WideString; dispid 33;
|
297 |
|
|
procedure StDateToDMY(Julian: TDateTime; var Day: Integer; var Month: Integer; var Year: Integer); dispid 34;
|
298 |
|
|
function StTimeToAmPmString(const Picture: WideString; T: TDateTime; Pack: WordBool): WideString; dispid 35;
|
299 |
|
|
procedure StTimeToHMS(T: TDateTime; var Hours: Byte; var Minutes: Byte; var Seconds: Byte); dispid 36;
|
300 |
|
|
function StTimeToTimeString(const Picture: WideString; T: TDateTime; Pack: WordBool): WideString; dispid 37;
|
301 |
|
|
procedure TimeDiff(T1: TDateTime; T2: TDateTime; var Hours: Byte; var Minutes: Byte;
|
302 |
|
|
var Seconds: Byte); dispid 38;
|
303 |
|
|
function TimeStringToHMS(const Picture: WideString; const TS: WideString; var Hours: Integer;
|
304 |
|
|
var Minutes: Integer; var Seconds: Integer): WordBool; dispid 39;
|
305 |
|
|
function TimeStringToStTime(const Picture: WideString; const S: WideString): TDateTime; dispid 40;
|
306 |
|
|
function ValidDate(Day: Integer; Month: Integer; Year: Integer; Epoch: Integer): WordBool; dispid 41;
|
307 |
|
|
function ValidTime(Hours: Integer; Minutes: Integer; Seconds: Integer): WordBool; dispid 42;
|
308 |
|
|
function WeekOfYear(Julian: TDateTime): Byte; dispid 43;
|
309 |
|
|
function License(const Key: WideString): WordBool; dispid 200;
|
310 |
|
|
end;
|
311 |
|
|
|
312 |
|
|
// *********************************************************************//
|
313 |
|
|
// Interface: IStString
|
314 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
315 |
|
|
// GUID: {B622F701-6E3F-4875-A574-201F0DB002F3}
|
316 |
|
|
// *********************************************************************//
|
317 |
|
|
IStString = interface(IDispatch)
|
318 |
|
|
['{B622F701-6E3F-4875-A574-201F0DB002F3}']
|
319 |
|
|
function AddBackSlash(const DirName: WideString): WideString; safecall;
|
320 |
|
|
function AsciiCount(const S: WideString; const WordDelims: WideString; const Quote: WideString): Integer; safecall;
|
321 |
|
|
function AsciiPosition(N: Integer; const S: WideString; const WordDelims: WideString;
|
322 |
|
|
const Quote: WideString; var Pos: Integer): WordBool; safecall;
|
323 |
|
|
function BinaryB(B: Byte): WideString; safecall;
|
324 |
|
|
function BinaryW(W: Integer): WideString; safecall;
|
325 |
|
|
function BinaryL(L: Integer): WideString; safecall;
|
326 |
|
|
function Center(const S: WideString; Len: Integer): WideString; safecall;
|
327 |
|
|
function CenterCh(const S: WideString; const C: WideString; Len: Integer): WideString; safecall;
|
328 |
|
|
function CharCount(const S: WideString; const C: WideString): Integer; safecall;
|
329 |
|
|
function CharExists(const S: WideString; const C: WideString): WordBool; safecall;
|
330 |
|
|
function CharStr(const C: WideString; Len: Integer): WideString; safecall;
|
331 |
|
|
function CleanPathName(const PathName: WideString): WideString; safecall;
|
332 |
|
|
function Commaize(L: Integer): WideString; safecall;
|
333 |
|
|
function CommaizeCh(L: Integer; const Ch: WideString): WideString; safecall;
|
334 |
|
|
function CompString(const S1: WideString; const S2: WideString): Integer; safecall;
|
335 |
|
|
function CompUCString(const S1: WideString; const S2: WideString): Integer; safecall;
|
336 |
|
|
function ContainsOnly(const S: WideString; const Chars: WideString; var BadPos: Integer): WordBool; safecall;
|
337 |
|
|
function ContainsOtherThan(const S: WideString; const Chars: WideString; var BadPos: Integer): WordBool; safecall;
|
338 |
|
|
function CopyFromNthWord(const S: WideString; const WordDelims: WideString;
|
339 |
|
|
const AWord: WideString; N: Integer; var SubString: WideString): WordBool; safecall;
|
340 |
|
|
function CopyFromToWord(const S: WideString; const WordDelims: WideString;
|
341 |
|
|
const Word1: WideString; const Word2: WideString; N1: Integer;
|
342 |
|
|
N2: Integer; var SubString: WideString): WordBool; safecall;
|
343 |
|
|
function CopyLeft(const S: WideString; Len: Integer): WideString; safecall;
|
344 |
|
|
function CopyMid(const S: WideString; First: Integer; Len: Integer): WideString; safecall;
|
345 |
|
|
function CopyRight(const S: WideString; First: Integer): WideString; safecall;
|
346 |
|
|
function CopyWithin(const S: WideString; const Delimiter: WideString; Strip: WordBool): WideString; safecall;
|
347 |
|
|
function DefaultExtension(const Name: WideString; const Ext: WideString): WideString; safecall;
|
348 |
|
|
function DeleteFromNthWord(const S: WideString; const WordDelims: WideString;
|
349 |
|
|
const AWord: WideString; N: Integer; var SubString: WideString): WordBool; safecall;
|
350 |
|
|
function DeleteFromToWord(const S: WideString; const WordDelims: WideString;
|
351 |
|
|
const Word1: WideString; const Word2: WideString; N1: Integer;
|
352 |
|
|
N2: Integer; var SubString: WideString): WordBool; safecall;
|
353 |
|
|
function DeleteWithin(const S: WideString; const Delimeter: WideString): WideString; safecall;
|
354 |
|
|
function Detab(const S: WideString; TabSize: Byte): WideString; safecall;
|
355 |
|
|
function Entab(const S: WideString; TabSize: Byte): WideString; safecall;
|
356 |
|
|
function Ext2Str(R: OleVariant; Width: Byte; Places: Byte): WideString; safecall;
|
357 |
|
|
function ExtractAscii(N: Integer; const S: WideString; const WordDelims: WideString;
|
358 |
|
|
const Quote: WideString): WideString; safecall;
|
359 |
|
|
function ExtractTokens(const S: WideString; const Delims: WideString;
|
360 |
|
|
const QuoteChar: WideString; AllowNulls: WordBool;
|
361 |
|
|
out Tokens: IStStringList): Integer; safecall;
|
362 |
|
|
function ExtractWord(N: Integer; const S: WideString; const WordDelims: WideString): WideString; safecall;
|
363 |
|
|
function Filter(const S: WideString; const Filters: WideString): WideString; safecall;
|
364 |
|
|
function FloatForm(const Mask: WideString; R: Double; L: Integer; const LtCurr: WideString;
|
365 |
|
|
const RtCurr: WideString; const Sep: WideString; const DecPt: WideString): WideString; safecall;
|
366 |
|
|
function ForceExtension(const Name: WideString; const Ext: WideString): WideString; safecall;
|
367 |
|
|
function HasExtension(const Name: WideString; var DotPos: Integer): WordBool; safecall;
|
368 |
|
|
function HexB(B: Byte): WideString; safecall;
|
369 |
|
|
function HexW(W: Integer): WideString; safecall;
|
370 |
|
|
function HexL(L: Integer): WideString; safecall;
|
371 |
|
|
function IsChAlpha(const C: WideString): WordBool; safecall;
|
372 |
|
|
function IsChAlphaNumeric(const C: WideString; const Numbers: WideString): WordBool; safecall;
|
373 |
|
|
function IsChNumeric(const C: WideString; const Numbers: WideString): WordBool; safecall;
|
374 |
|
|
function IsStrAlpha(const S: WideString): WordBool; safecall;
|
375 |
|
|
function IsStrAlphaNumeric(const S: WideString; const Numbers: WideString): WordBool; safecall;
|
376 |
|
|
function IsStrNumeric(const S: WideString; const Numbers: WideString): WordBool; safecall;
|
377 |
|
|
function JustExtension(const Name: WideString): WideString; safecall;
|
378 |
|
|
function JustFilename(const PathName: WideString): WideString; safecall;
|
379 |
|
|
function JustName(const PathName: WideString): WideString; safecall;
|
380 |
|
|
function JustPathname(const PathName: WideString): WideString; safecall;
|
381 |
|
|
function KeepChars(const S: WideString; const Chars: WideString): WideString; safecall;
|
382 |
|
|
function LastString(const S: WideString; const AString: WideString; var Position: Integer): WordBool; safecall;
|
383 |
|
|
function LastWord(const S: WideString; const WordDelims: WideString; const AWord: WideString;
|
384 |
|
|
var Position: Integer): WordBool; safecall;
|
385 |
|
|
function LastWordAbs(const S: WideString; const WordDelims: WideString; var Position: Integer): WordBool; safecall;
|
386 |
|
|
function LeftPad(const S: WideString; Len: Integer): WideString; safecall;
|
387 |
|
|
function LeftPadCh(const S: WideString; const C: WideString; Len: Integer): WideString; safecall;
|
388 |
|
|
function LeftTrimChars(const S: WideString; const Chars: WideString): WideString; safecall;
|
389 |
|
|
function Long2Str(L: Integer): WideString; safecall;
|
390 |
|
|
function LongIntForm(const Mask: WideString; L: Integer; const LtCurr: WideString;
|
391 |
|
|
const RtCurr: WideString; const Sep: WideString): WideString; safecall;
|
392 |
|
|
function OctalB(B: Byte): WideString; safecall;
|
393 |
|
|
function OctalW(W: Integer): WideString; safecall;
|
394 |
|
|
function OctalL(L: Integer): WideString; safecall;
|
395 |
|
|
function Pad(const S: WideString; Len: Integer): WideString; safecall;
|
396 |
|
|
function PadCh(const S: WideString; const C: WideString; Len: Integer): WideString; safecall;
|
397 |
|
|
function Real2Str(R: Double; Width: Byte; Places: Byte): WideString; safecall;
|
398 |
|
|
function RepeatString(const S: WideString; var Repetitions: Integer; MaxLen: Integer): WideString; safecall;
|
399 |
|
|
function ReplaceWord(const S: WideString; const WordDelims: WideString;
|
400 |
|
|
const OldWord: WideString; const NewWord: WideString; N: Integer;
|
401 |
|
|
var Replacements: Integer): WideString; safecall;
|
402 |
|
|
function ReplaceWordAll(const S: WideString; const WordDelims: WideString;
|
403 |
|
|
const OldWord: WideString; const NewWord: WideString;
|
404 |
|
|
var Replacements: Integer): WideString; safecall;
|
405 |
|
|
function ReplaceString(const S: WideString; const OldString: WideString;
|
406 |
|
|
const NewString: WideString; N: Integer; var Replacements: Integer): WideString; safecall;
|
407 |
|
|
function ReplaceStringAll(const S: WideString; const OldString: WideString;
|
408 |
|
|
const NewString: WideString; var Replacements: Integer): WideString; safecall;
|
409 |
|
|
function RightTrimChars(const S: WideString; const Chars: WideString): WideString; safecall;
|
410 |
|
|
function Scramble(const S: WideString; const Key: WideString): WideString; safecall;
|
411 |
|
|
function Str2Ext(const S: WideString; var R: OleVariant): WordBool; safecall;
|
412 |
|
|
function Str2Int16(const S: WideString; var I: Smallint): WordBool; safecall;
|
413 |
|
|
function Str2Long(const S: WideString; var I: Integer): WordBool; safecall;
|
414 |
|
|
function Str2Real(const S: WideString; var R: Double): WordBool; safecall;
|
415 |
|
|
function Str2Word(const S: WideString; var W: Integer): WordBool; safecall;
|
416 |
|
|
function StrChDelete(const S: WideString; Pos: Integer): WideString; safecall;
|
417 |
|
|
function StrChInsert(const S: WideString; const C: WideString; Pos: Integer): WideString; safecall;
|
418 |
|
|
function StrChPos(const P: WideString; const C: WideString; var Pos: Integer): WordBool; safecall;
|
419 |
|
|
function StrStCopy(const S: WideString; Pos: Integer; Count: Integer): WideString; safecall;
|
420 |
|
|
function StrStDelete(const S: WideString; Pos: Integer; Count: Integer): WideString; safecall;
|
421 |
|
|
function StrStInsert(const S1: WideString; const S2: WideString; Pos: Integer): WideString; safecall;
|
422 |
|
|
function StrStPos(const P: WideString; const S: WideString; var Pos: Integer): WordBool; safecall;
|
423 |
|
|
function StrWithin(const S: WideString; const SearchStr: WideString; Start: Integer;
|
424 |
|
|
var Position: Integer): WordBool; safecall;
|
425 |
|
|
function Substitute(const S: WideString; const FromStr: WideString; const ToStr: WideString): WideString; safecall;
|
426 |
|
|
function Trim(const S: WideString): WideString; safecall;
|
427 |
|
|
function TrimChars(const S: WideString; const Chars: WideString): WideString; safecall;
|
428 |
|
|
function TrimLead(const S: WideString): WideString; safecall;
|
429 |
|
|
function TrimSpaces(const S: WideString): WideString; safecall;
|
430 |
|
|
function TrimTrail(const S: WideString): WideString; safecall;
|
431 |
|
|
function ValPrep(const S: WideString): WideString; safecall;
|
432 |
|
|
function WordCount(const S: WideString; const WordDelims: WideString): Integer; safecall;
|
433 |
|
|
function WordPos(const S: WideString; const WordDelims: WideString; const AWord: WideString;
|
434 |
|
|
N: Integer; var Position: Integer): WordBool; safecall;
|
435 |
|
|
function WordPosition(N: Integer; const S: WideString; const WordDelims: WideString;
|
436 |
|
|
var Position: Integer): WordBool; safecall;
|
437 |
|
|
procedure WordWrap(const InSt: WideString; var OutSt: WideString; var Overlap: WideString;
|
438 |
|
|
Margin: Integer; PadToMArgin: WordBool); safecall;
|
439 |
|
|
function License(const Key: WideString): WordBool; safecall;
|
440 |
|
|
function Soundex(const S: WideString): WideString; safecall;
|
441 |
|
|
end;
|
442 |
|
|
|
443 |
|
|
// *********************************************************************//
|
444 |
|
|
// DispIntf: IStStringDisp
|
445 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
446 |
|
|
// GUID: {B622F701-6E3F-4875-A574-201F0DB002F3}
|
447 |
|
|
// *********************************************************************//
|
448 |
|
|
IStStringDisp = dispinterface
|
449 |
|
|
['{B622F701-6E3F-4875-A574-201F0DB002F3}']
|
450 |
|
|
function AddBackSlash(const DirName: WideString): WideString; dispid 1;
|
451 |
|
|
function AsciiCount(const S: WideString; const WordDelims: WideString; const Quote: WideString): Integer; dispid 2;
|
452 |
|
|
function AsciiPosition(N: Integer; const S: WideString; const WordDelims: WideString;
|
453 |
|
|
const Quote: WideString; var Pos: Integer): WordBool; dispid 3;
|
454 |
|
|
function BinaryB(B: Byte): WideString; dispid 4;
|
455 |
|
|
function BinaryW(W: Integer): WideString; dispid 5;
|
456 |
|
|
function BinaryL(L: Integer): WideString; dispid 6;
|
457 |
|
|
function Center(const S: WideString; Len: Integer): WideString; dispid 7;
|
458 |
|
|
function CenterCh(const S: WideString; const C: WideString; Len: Integer): WideString; dispid 8;
|
459 |
|
|
function CharCount(const S: WideString; const C: WideString): Integer; dispid 9;
|
460 |
|
|
function CharExists(const S: WideString; const C: WideString): WordBool; dispid 10;
|
461 |
|
|
function CharStr(const C: WideString; Len: Integer): WideString; dispid 11;
|
462 |
|
|
function CleanPathName(const PathName: WideString): WideString; dispid 12;
|
463 |
|
|
function Commaize(L: Integer): WideString; dispid 13;
|
464 |
|
|
function CommaizeCh(L: Integer; const Ch: WideString): WideString; dispid 14;
|
465 |
|
|
function CompString(const S1: WideString; const S2: WideString): Integer; dispid 15;
|
466 |
|
|
function CompUCString(const S1: WideString; const S2: WideString): Integer; dispid 16;
|
467 |
|
|
function ContainsOnly(const S: WideString; const Chars: WideString; var BadPos: Integer): WordBool; dispid 17;
|
468 |
|
|
function ContainsOtherThan(const S: WideString; const Chars: WideString; var BadPos: Integer): WordBool; dispid 18;
|
469 |
|
|
function CopyFromNthWord(const S: WideString; const WordDelims: WideString;
|
470 |
|
|
const AWord: WideString; N: Integer; var SubString: WideString): WordBool; dispid 19;
|
471 |
|
|
function CopyFromToWord(const S: WideString; const WordDelims: WideString;
|
472 |
|
|
const Word1: WideString; const Word2: WideString; N1: Integer;
|
473 |
|
|
N2: Integer; var SubString: WideString): WordBool; dispid 20;
|
474 |
|
|
function CopyLeft(const S: WideString; Len: Integer): WideString; dispid 21;
|
475 |
|
|
function CopyMid(const S: WideString; First: Integer; Len: Integer): WideString; dispid 22;
|
476 |
|
|
function CopyRight(const S: WideString; First: Integer): WideString; dispid 23;
|
477 |
|
|
function CopyWithin(const S: WideString; const Delimiter: WideString; Strip: WordBool): WideString; dispid 24;
|
478 |
|
|
function DefaultExtension(const Name: WideString; const Ext: WideString): WideString; dispid 25;
|
479 |
|
|
function DeleteFromNthWord(const S: WideString; const WordDelims: WideString;
|
480 |
|
|
const AWord: WideString; N: Integer; var SubString: WideString): WordBool; dispid 26;
|
481 |
|
|
function DeleteFromToWord(const S: WideString; const WordDelims: WideString;
|
482 |
|
|
const Word1: WideString; const Word2: WideString; N1: Integer;
|
483 |
|
|
N2: Integer; var SubString: WideString): WordBool; dispid 27;
|
484 |
|
|
function DeleteWithin(const S: WideString; const Delimeter: WideString): WideString; dispid 28;
|
485 |
|
|
function Detab(const S: WideString; TabSize: Byte): WideString; dispid 29;
|
486 |
|
|
function Entab(const S: WideString; TabSize: Byte): WideString; dispid 30;
|
487 |
|
|
function Ext2Str(R: OleVariant; Width: Byte; Places: Byte): WideString; dispid 31;
|
488 |
|
|
function ExtractAscii(N: Integer; const S: WideString; const WordDelims: WideString;
|
489 |
|
|
const Quote: WideString): WideString; dispid 32;
|
490 |
|
|
function ExtractTokens(const S: WideString; const Delims: WideString;
|
491 |
|
|
const QuoteChar: WideString; AllowNulls: WordBool;
|
492 |
|
|
out Tokens: IStStringList): Integer; dispid 33;
|
493 |
|
|
function ExtractWord(N: Integer; const S: WideString; const WordDelims: WideString): WideString; dispid 34;
|
494 |
|
|
function Filter(const S: WideString; const Filters: WideString): WideString; dispid 35;
|
495 |
|
|
function FloatForm(const Mask: WideString; R: Double; L: Integer; const LtCurr: WideString;
|
496 |
|
|
const RtCurr: WideString; const Sep: WideString; const DecPt: WideString): WideString; dispid 36;
|
497 |
|
|
function ForceExtension(const Name: WideString; const Ext: WideString): WideString; dispid 37;
|
498 |
|
|
function HasExtension(const Name: WideString; var DotPos: Integer): WordBool; dispid 38;
|
499 |
|
|
function HexB(B: Byte): WideString; dispid 39;
|
500 |
|
|
function HexW(W: Integer): WideString; dispid 40;
|
501 |
|
|
function HexL(L: Integer): WideString; dispid 41;
|
502 |
|
|
function IsChAlpha(const C: WideString): WordBool; dispid 42;
|
503 |
|
|
function IsChAlphaNumeric(const C: WideString; const Numbers: WideString): WordBool; dispid 43;
|
504 |
|
|
function IsChNumeric(const C: WideString; const Numbers: WideString): WordBool; dispid 44;
|
505 |
|
|
function IsStrAlpha(const S: WideString): WordBool; dispid 45;
|
506 |
|
|
function IsStrAlphaNumeric(const S: WideString; const Numbers: WideString): WordBool; dispid 46;
|
507 |
|
|
function IsStrNumeric(const S: WideString; const Numbers: WideString): WordBool; dispid 47;
|
508 |
|
|
function JustExtension(const Name: WideString): WideString; dispid 48;
|
509 |
|
|
function JustFilename(const PathName: WideString): WideString; dispid 49;
|
510 |
|
|
function JustName(const PathName: WideString): WideString; dispid 50;
|
511 |
|
|
function JustPathname(const PathName: WideString): WideString; dispid 51;
|
512 |
|
|
function KeepChars(const S: WideString; const Chars: WideString): WideString; dispid 52;
|
513 |
|
|
function LastString(const S: WideString; const AString: WideString; var Position: Integer): WordBool; dispid 53;
|
514 |
|
|
function LastWord(const S: WideString; const WordDelims: WideString; const AWord: WideString;
|
515 |
|
|
var Position: Integer): WordBool; dispid 54;
|
516 |
|
|
function LastWordAbs(const S: WideString; const WordDelims: WideString; var Position: Integer): WordBool; dispid 55;
|
517 |
|
|
function LeftPad(const S: WideString; Len: Integer): WideString; dispid 56;
|
518 |
|
|
function LeftPadCh(const S: WideString; const C: WideString; Len: Integer): WideString; dispid 57;
|
519 |
|
|
function LeftTrimChars(const S: WideString; const Chars: WideString): WideString; dispid 58;
|
520 |
|
|
function Long2Str(L: Integer): WideString; dispid 59;
|
521 |
|
|
function LongIntForm(const Mask: WideString; L: Integer; const LtCurr: WideString;
|
522 |
|
|
const RtCurr: WideString; const Sep: WideString): WideString; dispid 60;
|
523 |
|
|
function OctalB(B: Byte): WideString; dispid 61;
|
524 |
|
|
function OctalW(W: Integer): WideString; dispid 62;
|
525 |
|
|
function OctalL(L: Integer): WideString; dispid 63;
|
526 |
|
|
function Pad(const S: WideString; Len: Integer): WideString; dispid 64;
|
527 |
|
|
function PadCh(const S: WideString; const C: WideString; Len: Integer): WideString; dispid 65;
|
528 |
|
|
function Real2Str(R: Double; Width: Byte; Places: Byte): WideString; dispid 66;
|
529 |
|
|
function RepeatString(const S: WideString; var Repetitions: Integer; MaxLen: Integer): WideString; dispid 67;
|
530 |
|
|
function ReplaceWord(const S: WideString; const WordDelims: WideString;
|
531 |
|
|
const OldWord: WideString; const NewWord: WideString; N: Integer;
|
532 |
|
|
var Replacements: Integer): WideString; dispid 68;
|
533 |
|
|
function ReplaceWordAll(const S: WideString; const WordDelims: WideString;
|
534 |
|
|
const OldWord: WideString; const NewWord: WideString;
|
535 |
|
|
var Replacements: Integer): WideString; dispid 69;
|
536 |
|
|
function ReplaceString(const S: WideString; const OldString: WideString;
|
537 |
|
|
const NewString: WideString; N: Integer; var Replacements: Integer): WideString; dispid 70;
|
538 |
|
|
function ReplaceStringAll(const S: WideString; const OldString: WideString;
|
539 |
|
|
const NewString: WideString; var Replacements: Integer): WideString; dispid 71;
|
540 |
|
|
function RightTrimChars(const S: WideString; const Chars: WideString): WideString; dispid 72;
|
541 |
|
|
function Scramble(const S: WideString; const Key: WideString): WideString; dispid 73;
|
542 |
|
|
function Str2Ext(const S: WideString; var R: OleVariant): WordBool; dispid 74;
|
543 |
|
|
function Str2Int16(const S: WideString; var I: Smallint): WordBool; dispid 75;
|
544 |
|
|
function Str2Long(const S: WideString; var I: Integer): WordBool; dispid 76;
|
545 |
|
|
function Str2Real(const S: WideString; var R: Double): WordBool; dispid 77;
|
546 |
|
|
function Str2Word(const S: WideString; var W: Integer): WordBool; dispid 78;
|
547 |
|
|
function StrChDelete(const S: WideString; Pos: Integer): WideString; dispid 79;
|
548 |
|
|
function StrChInsert(const S: WideString; const C: WideString; Pos: Integer): WideString; dispid 80;
|
549 |
|
|
function StrChPos(const P: WideString; const C: WideString; var Pos: Integer): WordBool; dispid 81;
|
550 |
|
|
function StrStCopy(const S: WideString; Pos: Integer; Count: Integer): WideString; dispid 82;
|
551 |
|
|
function StrStDelete(const S: WideString; Pos: Integer; Count: Integer): WideString; dispid 83;
|
552 |
|
|
function StrStInsert(const S1: WideString; const S2: WideString; Pos: Integer): WideString; dispid 84;
|
553 |
|
|
function StrStPos(const P: WideString; const S: WideString; var Pos: Integer): WordBool; dispid 85;
|
554 |
|
|
function StrWithin(const S: WideString; const SearchStr: WideString; Start: Integer;
|
555 |
|
|
var Position: Integer): WordBool; dispid 86;
|
556 |
|
|
function Substitute(const S: WideString; const FromStr: WideString; const ToStr: WideString): WideString; dispid 87;
|
557 |
|
|
function Trim(const S: WideString): WideString; dispid 88;
|
558 |
|
|
function TrimChars(const S: WideString; const Chars: WideString): WideString; dispid 89;
|
559 |
|
|
function TrimLead(const S: WideString): WideString; dispid 90;
|
560 |
|
|
function TrimSpaces(const S: WideString): WideString; dispid 91;
|
561 |
|
|
function TrimTrail(const S: WideString): WideString; dispid 92;
|
562 |
|
|
function ValPrep(const S: WideString): WideString; dispid 93;
|
563 |
|
|
function WordCount(const S: WideString; const WordDelims: WideString): Integer; dispid 94;
|
564 |
|
|
function WordPos(const S: WideString; const WordDelims: WideString; const AWord: WideString;
|
565 |
|
|
N: Integer; var Position: Integer): WordBool; dispid 95;
|
566 |
|
|
function WordPosition(N: Integer; const S: WideString; const WordDelims: WideString;
|
567 |
|
|
var Position: Integer): WordBool; dispid 96;
|
568 |
|
|
procedure WordWrap(const InSt: WideString; var OutSt: WideString; var Overlap: WideString;
|
569 |
|
|
Margin: Integer; PadToMArgin: WordBool); dispid 97;
|
570 |
|
|
function License(const Key: WideString): WordBool; dispid 200;
|
571 |
|
|
function Soundex(const S: WideString): WideString; dispid 98;
|
572 |
|
|
end;
|
573 |
|
|
|
574 |
|
|
// *********************************************************************//
|
575 |
|
|
// Interface: IStToHTML
|
576 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
577 |
|
|
// GUID: {9F64CFCF-E50F-4807-A1AA-1E319B0A1D63}
|
578 |
|
|
// *********************************************************************//
|
579 |
|
|
IStToHTML = interface(IDispatch)
|
580 |
|
|
['{9F64CFCF-E50F-4807-A1AA-1E319B0A1D63}']
|
581 |
|
|
function Get_CaseSensitve: WordBool; safecall;
|
582 |
|
|
procedure Set_CaseSensitve(Value: WordBool); safecall;
|
583 |
|
|
function Get_CommentMarkers: IStStringList; safecall;
|
584 |
|
|
procedure Set_CommentMarkers(const Value: IStStringList); safecall;
|
585 |
|
|
function Get_EmbeddedHTML: IStStringList; safecall;
|
586 |
|
|
procedure Set_EmbeddedHTML(const Value: IStStringList); safecall;
|
587 |
|
|
function Get_FixedLineLength: Integer; safecall;
|
588 |
|
|
procedure Set_FixedLineLength(Value: Integer); safecall;
|
589 |
|
|
function Get_Keywords: IStStringList; safecall;
|
590 |
|
|
procedure Set_Keywords(const Value: IStStringList); safecall;
|
591 |
|
|
function Get_LineTermChar: WideString; safecall;
|
592 |
|
|
procedure Set_LineTermChar(const Value: WideString); safecall;
|
593 |
|
|
function Get_LineTerminator: TStLineTerminator; safecall;
|
594 |
|
|
procedure Set_LineTerminator(Value: TStLineTerminator); safecall;
|
595 |
|
|
function Get_PageFooter: IStStringList; safecall;
|
596 |
|
|
procedure Set_PageFooter(const Value: IStStringList); safecall;
|
597 |
|
|
function Get_PageHeader: IStStringList; safecall;
|
598 |
|
|
procedure Set_PageHeader(const Value: IStStringList); safecall;
|
599 |
|
|
function Get_StringMarkers: IStStringList; safecall;
|
600 |
|
|
procedure Set_StringMarkers(const Value: IStStringList); safecall;
|
601 |
|
|
function Get_WordDelimeters: WideString; safecall;
|
602 |
|
|
procedure Set_WordDelimeters(const Value: WideString); safecall;
|
603 |
|
|
procedure GenerateHTML; safecall;
|
604 |
|
|
procedure LoadFromFile(const FileName: WideString); safecall;
|
605 |
|
|
procedure SaveToFile(const FileName: WideString); safecall;
|
606 |
|
|
function Get_Stream: OleVariant; safecall;
|
607 |
|
|
procedure Set_Stream(Value: OleVariant); safecall;
|
608 |
|
|
procedure Clear; safecall;
|
609 |
|
|
function License(const Key: WideString): WordBool; safecall;
|
610 |
|
|
property CaseSensitve: WordBool read Get_CaseSensitve write Set_CaseSensitve;
|
611 |
|
|
property CommentMarkers: IStStringList read Get_CommentMarkers write Set_CommentMarkers;
|
612 |
|
|
property EmbeddedHTML: IStStringList read Get_EmbeddedHTML write Set_EmbeddedHTML;
|
613 |
|
|
property FixedLineLength: Integer read Get_FixedLineLength write Set_FixedLineLength;
|
614 |
|
|
property Keywords: IStStringList read Get_Keywords write Set_Keywords;
|
615 |
|
|
property LineTermChar: WideString read Get_LineTermChar write Set_LineTermChar;
|
616 |
|
|
property LineTerminator: TStLineTerminator read Get_LineTerminator write Set_LineTerminator;
|
617 |
|
|
property PageFooter: IStStringList read Get_PageFooter write Set_PageFooter;
|
618 |
|
|
property PageHeader: IStStringList read Get_PageHeader write Set_PageHeader;
|
619 |
|
|
property StringMarkers: IStStringList read Get_StringMarkers write Set_StringMarkers;
|
620 |
|
|
property WordDelimeters: WideString read Get_WordDelimeters write Set_WordDelimeters;
|
621 |
|
|
property Stream: OleVariant read Get_Stream write Set_Stream;
|
622 |
|
|
end;
|
623 |
|
|
|
624 |
|
|
// *********************************************************************//
|
625 |
|
|
// DispIntf: IStToHTMLDisp
|
626 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
627 |
|
|
// GUID: {9F64CFCF-E50F-4807-A1AA-1E319B0A1D63}
|
628 |
|
|
// *********************************************************************//
|
629 |
|
|
IStToHTMLDisp = dispinterface
|
630 |
|
|
['{9F64CFCF-E50F-4807-A1AA-1E319B0A1D63}']
|
631 |
|
|
property CaseSensitve: WordBool dispid 1;
|
632 |
|
|
property CommentMarkers: IStStringList dispid 2;
|
633 |
|
|
property EmbeddedHTML: IStStringList dispid 3;
|
634 |
|
|
property FixedLineLength: Integer dispid 4;
|
635 |
|
|
property Keywords: IStStringList dispid 5;
|
636 |
|
|
property LineTermChar: WideString dispid 6;
|
637 |
|
|
property LineTerminator: TStLineTerminator dispid 7;
|
638 |
|
|
property PageFooter: IStStringList dispid 8;
|
639 |
|
|
property PageHeader: IStStringList dispid 9;
|
640 |
|
|
property StringMarkers: IStStringList dispid 10;
|
641 |
|
|
property WordDelimeters: WideString dispid 11;
|
642 |
|
|
procedure GenerateHTML; dispid 12;
|
643 |
|
|
procedure LoadFromFile(const FileName: WideString); dispid 13;
|
644 |
|
|
procedure SaveToFile(const FileName: WideString); dispid 15;
|
645 |
|
|
property Stream: OleVariant dispid 17;
|
646 |
|
|
procedure Clear; dispid 14;
|
647 |
|
|
function License(const Key: WideString): WordBool; dispid 200;
|
648 |
|
|
end;
|
649 |
|
|
|
650 |
|
|
// *********************************************************************//
|
651 |
|
|
// DispIntf: IStToHTMLEvents
|
652 |
|
|
// Flags: (4096) Dispatchable
|
653 |
|
|
// GUID: {71DAEE82-3292-4122-8E4A-E1BB58D8D162}
|
654 |
|
|
// *********************************************************************//
|
655 |
|
|
IStToHTMLEvents = dispinterface
|
656 |
|
|
['{71DAEE82-3292-4122-8E4A-E1BB58D8D162}']
|
657 |
|
|
procedure OnProgress(Percent: Integer); dispid 1;
|
658 |
|
|
end;
|
659 |
|
|
|
660 |
|
|
// *********************************************************************//
|
661 |
|
|
// Interface: IStStringList
|
662 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
663 |
|
|
// GUID: {7A005B00-EE90-4034-B05A-64579C0A7837}
|
664 |
|
|
// *********************************************************************//
|
665 |
|
|
IStStringList = interface(IDispatch)
|
666 |
|
|
['{7A005B00-EE90-4034-B05A-64579C0A7837}']
|
667 |
|
|
function Get__NewEnum: IUnknown; safecall;
|
668 |
|
|
function Get_Item(Index: Integer): WideString; safecall;
|
669 |
|
|
procedure Set_Item(Index: Integer; const Value: WideString); safecall;
|
670 |
|
|
function Get_CommaText: WideString; safecall;
|
671 |
|
|
procedure Set_CommaText(const Value: WideString); safecall;
|
672 |
|
|
function Get_Count: Integer; safecall;
|
673 |
|
|
function Get_Duplicates: Integer; safecall;
|
674 |
|
|
procedure Set_Duplicates(Value: Integer); safecall;
|
675 |
|
|
function Get_Names(Index: Integer): WideString; safecall;
|
676 |
|
|
function Get_Sorted: WordBool; safecall;
|
677 |
|
|
procedure Set_Sorted(Value: WordBool); safecall;
|
678 |
|
|
function Get_Strings(Index: Integer): WideString; safecall;
|
679 |
|
|
procedure Set_Strings(Index: Integer; const Value: WideString); safecall;
|
680 |
|
|
function Get_Text: WideString; safecall;
|
681 |
|
|
procedure Set_Text(const Value: WideString); safecall;
|
682 |
|
|
function Get_Values(const Name: WideString): WideString; safecall;
|
683 |
|
|
procedure Set_Values(const Name: WideString; const Value: WideString); safecall;
|
684 |
|
|
function Add(const S: WideString): Integer; safecall;
|
685 |
|
|
procedure Append(const S: WideString); safecall;
|
686 |
|
|
procedure Clear; safecall;
|
687 |
|
|
procedure Delete(Index: Integer); safecall;
|
688 |
|
|
function Equals(const Strings: IStStringList): WordBool; safecall;
|
689 |
|
|
procedure Exchange(Index1: Integer; Index2: Integer); safecall;
|
690 |
|
|
function Find(const S: WideString; var Index: Integer): WordBool; safecall;
|
691 |
|
|
function IndexOf(const S: WideString): Integer; safecall;
|
692 |
|
|
function IndexOfName(const Name: WideString): Integer; safecall;
|
693 |
|
|
procedure Insert(Index: Integer; const S: WideString); safecall;
|
694 |
|
|
procedure LoadFromFile(const FileName: WideString); safecall;
|
695 |
|
|
procedure Move(CurIndex: Integer; NewIndex: Integer); safecall;
|
696 |
|
|
procedure SaveToFile(const FileName: WideString); safecall;
|
697 |
|
|
procedure Sort; safecall;
|
698 |
|
|
function Get_Stream: OleVariant; safecall;
|
699 |
|
|
procedure Set_Stream(Value: OleVariant); safecall;
|
700 |
|
|
function License(const Key: WideString): WordBool; safecall;
|
701 |
|
|
property _NewEnum: IUnknown read Get__NewEnum;
|
702 |
|
|
property Item[Index: Integer]: WideString read Get_Item write Set_Item; default;
|
703 |
|
|
property CommaText: WideString read Get_CommaText write Set_CommaText;
|
704 |
|
|
property Count: Integer read Get_Count;
|
705 |
|
|
property Duplicates: Integer read Get_Duplicates write Set_Duplicates;
|
706 |
|
|
property Names[Index: Integer]: WideString read Get_Names;
|
707 |
|
|
property Sorted: WordBool read Get_Sorted write Set_Sorted;
|
708 |
|
|
property Strings[Index: Integer]: WideString read Get_Strings write Set_Strings;
|
709 |
|
|
property Text: WideString read Get_Text write Set_Text;
|
710 |
|
|
property Values[const Name: WideString]: WideString read Get_Values write Set_Values;
|
711 |
|
|
property Stream: OleVariant read Get_Stream write Set_Stream;
|
712 |
|
|
end;
|
713 |
|
|
|
714 |
|
|
// *********************************************************************//
|
715 |
|
|
// DispIntf: IStStringListDisp
|
716 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
717 |
|
|
// GUID: {7A005B00-EE90-4034-B05A-64579C0A7837}
|
718 |
|
|
// *********************************************************************//
|
719 |
|
|
IStStringListDisp = dispinterface
|
720 |
|
|
['{7A005B00-EE90-4034-B05A-64579C0A7837}']
|
721 |
|
|
property _NewEnum: IUnknown readonly dispid -4;
|
722 |
|
|
property Item[Index: Integer]: WideString dispid 0; default;
|
723 |
|
|
property CommaText: WideString dispid 1;
|
724 |
|
|
property Count: Integer readonly dispid 2;
|
725 |
|
|
property Duplicates: Integer dispid 3;
|
726 |
|
|
property Names[Index: Integer]: WideString readonly dispid 4;
|
727 |
|
|
property Sorted: WordBool dispid 6;
|
728 |
|
|
property Strings[Index: Integer]: WideString dispid 7;
|
729 |
|
|
property Text: WideString dispid 8;
|
730 |
|
|
property Values[const Name: WideString]: WideString dispid 9;
|
731 |
|
|
function Add(const S: WideString): Integer; dispid 10;
|
732 |
|
|
procedure Append(const S: WideString); dispid 12;
|
733 |
|
|
procedure Clear; dispid 13;
|
734 |
|
|
procedure Delete(Index: Integer); dispid 15;
|
735 |
|
|
function Equals(const Strings: IStStringList): WordBool; dispid 16;
|
736 |
|
|
procedure Exchange(Index1: Integer; Index2: Integer); dispid 17;
|
737 |
|
|
function Find(const S: WideString; var Index: Integer): WordBool; dispid 18;
|
738 |
|
|
function IndexOf(const S: WideString): Integer; dispid 19;
|
739 |
|
|
function IndexOfName(const Name: WideString): Integer; dispid 20;
|
740 |
|
|
procedure Insert(Index: Integer; const S: WideString); dispid 22;
|
741 |
|
|
procedure LoadFromFile(const FileName: WideString); dispid 24;
|
742 |
|
|
procedure Move(CurIndex: Integer; NewIndex: Integer); dispid 26;
|
743 |
|
|
procedure SaveToFile(const FileName: WideString); dispid 27;
|
744 |
|
|
procedure Sort; dispid 29;
|
745 |
|
|
property Stream: OleVariant dispid 21;
|
746 |
|
|
function License(const Key: WideString): WordBool; dispid 200;
|
747 |
|
|
end;
|
748 |
|
|
|
749 |
|
|
// *********************************************************************//
|
750 |
|
|
// DispIntf: IStStringListEvents
|
751 |
|
|
// Flags: (4096) Dispatchable
|
752 |
|
|
// GUID: {2457A45F-311D-4E0F-A370-AAD85C6C922E}
|
753 |
|
|
// *********************************************************************//
|
754 |
|
|
IStStringListEvents = dispinterface
|
755 |
|
|
['{2457A45F-311D-4E0F-A370-AAD85C6C922E}']
|
756 |
|
|
procedure OnChange; dispid 1;
|
757 |
|
|
procedure OnChanging; dispid 2;
|
758 |
|
|
end;
|
759 |
|
|
|
760 |
|
|
// *********************************************************************//
|
761 |
|
|
// Interface: IStRegEx
|
762 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
763 |
|
|
// GUID: {6498218A-2A04-4B0F-AD99-AD1D551997E8}
|
764 |
|
|
// *********************************************************************//
|
765 |
|
|
IStRegEx = interface(IDispatch)
|
766 |
|
|
['{6498218A-2A04-4B0F-AD99-AD1D551997E8}']
|
767 |
|
|
function Get_Avoid: WordBool; safecall;
|
768 |
|
|
procedure Set_Avoid(Value: WordBool); safecall;
|
769 |
|
|
function Get_IgnoreCase: WordBool; safecall;
|
770 |
|
|
procedure Set_IgnoreCase(Value: WordBool); safecall;
|
771 |
|
|
function Get_InFixedLineLength: Integer; safecall;
|
772 |
|
|
procedure Set_InFixedLineLength(Value: Integer); safecall;
|
773 |
|
|
function Get_InLineTermChar: WideString; safecall;
|
774 |
|
|
procedure Set_InLineTermChar(const Value: WideString); safecall;
|
775 |
|
|
function Get_InLineTerminator: TStLineTerminator; safecall;
|
776 |
|
|
procedure Set_InLineTerminator(Value: TStLineTerminator); safecall;
|
777 |
|
|
function Get_LineCount: Integer; safecall;
|
778 |
|
|
function Get_LineNumbers: WordBool; safecall;
|
779 |
|
|
procedure Set_LineNumbers(Value: WordBool); safecall;
|
780 |
|
|
function Get_LinesMatched: Integer; safecall;
|
781 |
|
|
function Get_LinesPerSecond: Integer; safecall;
|
782 |
|
|
function Get_LinesReplaced: Integer; safecall;
|
783 |
|
|
function Get_LinesSelected: Integer; safecall;
|
784 |
|
|
function Get_MatchPattern: IStStringList; safecall;
|
785 |
|
|
procedure Set_MatchPattern(const Value: IStStringList); safecall;
|
786 |
|
|
function Get_OutFixedLineLength: Integer; safecall;
|
787 |
|
|
procedure Set_OutFixedLineLength(Value: Integer); safecall;
|
788 |
|
|
function Get_OutLineTermChar: WideString; safecall;
|
789 |
|
|
procedure Set_OutLineTermChar(const Value: WideString); safecall;
|
790 |
|
|
function Get_OutLineTerminitor: Integer; safecall;
|
791 |
|
|
procedure Set_OutLineTerminitor(Value: Integer); safecall;
|
792 |
|
|
function Get_OutputOptions: TStOutputOption; safecall;
|
793 |
|
|
procedure Set_OutputOptions(Value: TStOutputOption); safecall;
|
794 |
|
|
function Get_ReplacePattern: IStStringList; safecall;
|
795 |
|
|
procedure Set_ReplacePattern(const Value: IStStringList); safecall;
|
796 |
|
|
function Get_SelAvoidPattern: IStStringList; safecall;
|
797 |
|
|
procedure Set_SelAvoidPattern(const Value: IStStringList); safecall;
|
798 |
|
|
function CheckString(const S: WideString; var StartPos: Integer; var EndPos: Integer;
|
799 |
|
|
var Length: Integer): WordBool; safecall;
|
800 |
|
|
function DOSMaskToRegEx(const Masks: WideString): WordBool; safecall;
|
801 |
|
|
function Execute: WordBool; safecall;
|
802 |
|
|
procedure LoadFromFile(const FileName: WideString); safecall;
|
803 |
|
|
procedure SaveToFile(const FileName: WideString); safecall;
|
804 |
|
|
function Get_Stream: OleVariant; safecall;
|
805 |
|
|
procedure Set_Stream(Value: OleVariant); safecall;
|
806 |
|
|
function License(const Key: WideString): WordBool; safecall;
|
807 |
|
|
property Avoid: WordBool read Get_Avoid write Set_Avoid;
|
808 |
|
|
property IgnoreCase: WordBool read Get_IgnoreCase write Set_IgnoreCase;
|
809 |
|
|
property InFixedLineLength: Integer read Get_InFixedLineLength write Set_InFixedLineLength;
|
810 |
|
|
property InLineTermChar: WideString read Get_InLineTermChar write Set_InLineTermChar;
|
811 |
|
|
property InLineTerminator: TStLineTerminator read Get_InLineTerminator write Set_InLineTerminator;
|
812 |
|
|
property LineCount: Integer read Get_LineCount;
|
813 |
|
|
property LineNumbers: WordBool read Get_LineNumbers write Set_LineNumbers;
|
814 |
|
|
property LinesMatched: Integer read Get_LinesMatched;
|
815 |
|
|
property LinesPerSecond: Integer read Get_LinesPerSecond;
|
816 |
|
|
property LinesReplaced: Integer read Get_LinesReplaced;
|
817 |
|
|
property LinesSelected: Integer read Get_LinesSelected;
|
818 |
|
|
property MatchPattern: IStStringList read Get_MatchPattern write Set_MatchPattern;
|
819 |
|
|
property OutFixedLineLength: Integer read Get_OutFixedLineLength write Set_OutFixedLineLength;
|
820 |
|
|
property OutLineTermChar: WideString read Get_OutLineTermChar write Set_OutLineTermChar;
|
821 |
|
|
property OutLineTerminitor: Integer read Get_OutLineTerminitor write Set_OutLineTerminitor;
|
822 |
|
|
property OutputOptions: TStOutputOption read Get_OutputOptions write Set_OutputOptions;
|
823 |
|
|
property ReplacePattern: IStStringList read Get_ReplacePattern write Set_ReplacePattern;
|
824 |
|
|
property SelAvoidPattern: IStStringList read Get_SelAvoidPattern write Set_SelAvoidPattern;
|
825 |
|
|
property Stream: OleVariant read Get_Stream write Set_Stream;
|
826 |
|
|
end;
|
827 |
|
|
|
828 |
|
|
// *********************************************************************//
|
829 |
|
|
// DispIntf: IStRegExDisp
|
830 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
831 |
|
|
// GUID: {6498218A-2A04-4B0F-AD99-AD1D551997E8}
|
832 |
|
|
// *********************************************************************//
|
833 |
|
|
IStRegExDisp = dispinterface
|
834 |
|
|
['{6498218A-2A04-4B0F-AD99-AD1D551997E8}']
|
835 |
|
|
property Avoid: WordBool dispid 1;
|
836 |
|
|
property IgnoreCase: WordBool dispid 2;
|
837 |
|
|
property InFixedLineLength: Integer dispid 3;
|
838 |
|
|
property InLineTermChar: WideString dispid 4;
|
839 |
|
|
property InLineTerminator: TStLineTerminator dispid 5;
|
840 |
|
|
property LineCount: Integer readonly dispid 6;
|
841 |
|
|
property LineNumbers: WordBool dispid 7;
|
842 |
|
|
property LinesMatched: Integer readonly dispid 8;
|
843 |
|
|
property LinesPerSecond: Integer readonly dispid 9;
|
844 |
|
|
property LinesReplaced: Integer readonly dispid 10;
|
845 |
|
|
property LinesSelected: Integer readonly dispid 11;
|
846 |
|
|
property MatchPattern: IStStringList dispid 12;
|
847 |
|
|
property OutFixedLineLength: Integer dispid 13;
|
848 |
|
|
property OutLineTermChar: WideString dispid 14;
|
849 |
|
|
property OutLineTerminitor: Integer dispid 15;
|
850 |
|
|
property OutputOptions: TStOutputOption dispid 16;
|
851 |
|
|
property ReplacePattern: IStStringList dispid 17;
|
852 |
|
|
property SelAvoidPattern: IStStringList dispid 18;
|
853 |
|
|
function CheckString(const S: WideString; var StartPos: Integer; var EndPos: Integer;
|
854 |
|
|
var Length: Integer): WordBool; dispid 19;
|
855 |
|
|
function DOSMaskToRegEx(const Masks: WideString): WordBool; dispid 20;
|
856 |
|
|
function Execute: WordBool; dispid 21;
|
857 |
|
|
procedure LoadFromFile(const FileName: WideString); dispid 22;
|
858 |
|
|
procedure SaveToFile(const FileName: WideString); dispid 24;
|
859 |
|
|
property Stream: OleVariant dispid 23;
|
860 |
|
|
function License(const Key: WideString): WordBool; dispid 200;
|
861 |
|
|
end;
|
862 |
|
|
|
863 |
|
|
// *********************************************************************//
|
864 |
|
|
// DispIntf: IStRegExEvents
|
865 |
|
|
// Flags: (4096) Dispatchable
|
866 |
|
|
// GUID: {25513E60-B981-49F8-AD17-E18E7358163A}
|
867 |
|
|
// *********************************************************************//
|
868 |
|
|
IStRegExEvents = dispinterface
|
869 |
|
|
['{25513E60-B981-49F8-AD17-E18E7358163A}']
|
870 |
|
|
procedure OnProgress(Percent: Integer); dispid 1;
|
871 |
|
|
end;
|
872 |
|
|
|
873 |
|
|
// *********************************************************************//
|
874 |
|
|
// Interface: IStExpr
|
875 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
876 |
|
|
// GUID: {C4753F38-E937-4AFE-8D35-2210305B6D19}
|
877 |
|
|
// *********************************************************************//
|
878 |
|
|
IStExpr = interface(IDispatch)
|
879 |
|
|
['{C4753F38-E937-4AFE-8D35-2210305B6D19}']
|
880 |
|
|
function AnalyzeExpr(const Expr: WideString): Double; safecall;
|
881 |
|
|
function License(const Key: WideString): WordBool; safecall;
|
882 |
|
|
end;
|
883 |
|
|
|
884 |
|
|
// *********************************************************************//
|
885 |
|
|
// DispIntf: IStExprDisp
|
886 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
887 |
|
|
// GUID: {C4753F38-E937-4AFE-8D35-2210305B6D19}
|
888 |
|
|
// *********************************************************************//
|
889 |
|
|
IStExprDisp = dispinterface
|
890 |
|
|
['{C4753F38-E937-4AFE-8D35-2210305B6D19}']
|
891 |
|
|
function AnalyzeExpr(const Expr: WideString): Double; dispid 1;
|
892 |
|
|
function License(const Key: WideString): WordBool; dispid 200;
|
893 |
|
|
end;
|
894 |
|
|
|
895 |
|
|
// *********************************************************************//
|
896 |
|
|
// Interface: IStMime
|
897 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
898 |
|
|
// GUID: {96547B4C-ED9E-4844-8F74-5C9E0268F460}
|
899 |
|
|
// *********************************************************************//
|
900 |
|
|
IStMime = interface(IDispatch)
|
901 |
|
|
['{96547B4C-ED9E-4844-8F74-5C9E0268F460}']
|
902 |
|
|
function Get_Attachments: IStStringList; safecall;
|
903 |
|
|
function Get_Boundry: WideString; safecall;
|
904 |
|
|
procedure Set_Boundry(const Value: WideString); safecall;
|
905 |
|
|
function Get_Encoding: WideString; safecall;
|
906 |
|
|
procedure Set_Encoding(const Value: WideString); safecall;
|
907 |
|
|
function Get_ContentDescription: WideString; safecall;
|
908 |
|
|
procedure Set_ContentDescription(const Value: WideString); safecall;
|
909 |
|
|
function Get_ContentDisposition: WideString; safecall;
|
910 |
|
|
procedure Set_ContentDisposition(const Value: WideString); safecall;
|
911 |
|
|
function Get_ContentType: WideString; safecall;
|
912 |
|
|
procedure Set_ContentType(const Value: WideString); safecall;
|
913 |
|
|
function Get_Directory: WideString; safecall;
|
914 |
|
|
procedure Set_Directory(const Value: WideString); safecall;
|
915 |
|
|
function Get_MimeHeaders: WordBool; safecall;
|
916 |
|
|
procedure Set_MimeHeaders(Value: WordBool); safecall;
|
917 |
|
|
function Get_Stream: OleVariant; safecall;
|
918 |
|
|
procedure Set_Stream(Value: OleVariant); safecall;
|
919 |
|
|
procedure AddFileAttachment(const FileName: WideString); safecall;
|
920 |
|
|
procedure AddStreamAttachment(Stream: OleVariant; const FileName: WideString); safecall;
|
921 |
|
|
procedure ExtractAttachment(const Attachment: WideString); safecall;
|
922 |
|
|
procedure ExtractAttachmentIndex(Index: Integer); safecall;
|
923 |
|
|
procedure ExtractToStream(Index: Integer; Stream: OleVariant); safecall;
|
924 |
|
|
procedure ExtractAttachments; safecall;
|
925 |
|
|
procedure GetTag(const Description: WideString); safecall;
|
926 |
|
|
function License(const Key: WideString): WordBool; safecall;
|
927 |
|
|
property Attachments: IStStringList read Get_Attachments;
|
928 |
|
|
property Boundry: WideString read Get_Boundry write Set_Boundry;
|
929 |
|
|
property Encoding: WideString read Get_Encoding write Set_Encoding;
|
930 |
|
|
property ContentDescription: WideString read Get_ContentDescription write Set_ContentDescription;
|
931 |
|
|
property ContentDisposition: WideString read Get_ContentDisposition write Set_ContentDisposition;
|
932 |
|
|
property ContentType: WideString read Get_ContentType write Set_ContentType;
|
933 |
|
|
property Directory: WideString read Get_Directory write Set_Directory;
|
934 |
|
|
property MimeHeaders: WordBool read Get_MimeHeaders write Set_MimeHeaders;
|
935 |
|
|
property Stream: OleVariant read Get_Stream write Set_Stream;
|
936 |
|
|
end;
|
937 |
|
|
|
938 |
|
|
// *********************************************************************//
|
939 |
|
|
// DispIntf: IStMimeDisp
|
940 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
941 |
|
|
// GUID: {96547B4C-ED9E-4844-8F74-5C9E0268F460}
|
942 |
|
|
// *********************************************************************//
|
943 |
|
|
IStMimeDisp = dispinterface
|
944 |
|
|
['{96547B4C-ED9E-4844-8F74-5C9E0268F460}']
|
945 |
|
|
property Attachments: IStStringList readonly dispid 3;
|
946 |
|
|
property Boundry: WideString dispid 4;
|
947 |
|
|
property Encoding: WideString dispid 5;
|
948 |
|
|
property ContentDescription: WideString dispid 6;
|
949 |
|
|
property ContentDisposition: WideString dispid 7;
|
950 |
|
|
property ContentType: WideString dispid 8;
|
951 |
|
|
property Directory: WideString dispid 9;
|
952 |
|
|
property MimeHeaders: WordBool dispid 10;
|
953 |
|
|
property Stream: OleVariant dispid 11;
|
954 |
|
|
procedure AddFileAttachment(const FileName: WideString); dispid 12;
|
955 |
|
|
procedure AddStreamAttachment(Stream: OleVariant; const FileName: WideString); dispid 13;
|
956 |
|
|
procedure ExtractAttachment(const Attachment: WideString); dispid 14;
|
957 |
|
|
procedure ExtractAttachmentIndex(Index: Integer); dispid 15;
|
958 |
|
|
procedure ExtractToStream(Index: Integer; Stream: OleVariant); dispid 16;
|
959 |
|
|
procedure ExtractAttachments; dispid 17;
|
960 |
|
|
procedure GetTag(const Description: WideString); dispid 18;
|
961 |
|
|
function License(const Key: WideString): WordBool; dispid 200;
|
962 |
|
|
end;
|
963 |
|
|
|
964 |
|
|
// *********************************************************************//
|
965 |
|
|
// DispIntf: IStMimeEvents
|
966 |
|
|
// Flags: (4096) Dispatchable
|
967 |
|
|
// GUID: {0D42F0C6-844D-4541-8BAD-E2BFB6BF6C25}
|
968 |
|
|
// *********************************************************************//
|
969 |
|
|
IStMimeEvents = dispinterface
|
970 |
|
|
['{0D42F0C6-844D-4541-8BAD-E2BFB6BF6C25}']
|
971 |
|
|
procedure OnProgress(Status: TStConvertState; PercentDone: Byte); dispid 1;
|
972 |
|
|
procedure OnSaveAs(var FileName: WideString); dispid 2;
|
973 |
|
|
end;
|
974 |
|
|
|
975 |
|
|
// *********************************************************************//
|
976 |
|
|
// Interface: IStRegINI
|
977 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
978 |
|
|
// GUID: {37198FBE-3932-4548-A6B1-31229E83F87B}
|
979 |
|
|
// *********************************************************************//
|
980 |
|
|
IStRegINI = interface(IDispatch)
|
981 |
|
|
['{37198FBE-3932-4548-A6B1-31229E83F87B}']
|
982 |
|
|
procedure Open(const RootName: WideString; IsIniFile: WordBool); safecall;
|
983 |
|
|
function Get_CurrentSubKey: WideString; safecall;
|
984 |
|
|
procedure Set_CurrentSubKey(const Value: WideString); safecall;
|
985 |
|
|
function Get_IsIniFile: WordBool; safecall;
|
986 |
|
|
procedure CreateKey(const KeyName: WideString); safecall;
|
987 |
|
|
procedure DeleteKey(const KeyName: WideString; DeleteSubKeys: WordBool); safecall;
|
988 |
|
|
procedure DeleteValue(const ValueName: WideString); safecall;
|
989 |
|
|
function Get_Primary: WideString; safecall;
|
990 |
|
|
procedure Set_Primary(const Value: WideString); safecall;
|
991 |
|
|
function Get_SubKeys: IStRegINISubKeys; safecall;
|
992 |
|
|
function Get_Values: IStRegINIValues; safecall;
|
993 |
|
|
function KeyExists(const KeyName: WideString): WordBool; safecall;
|
994 |
|
|
function QueryKey: IStRegINIQueryKeyInfo; safecall;
|
995 |
|
|
function ReadBoolean(const ValueName: WideString; Default: WordBool): WordBool; safecall;
|
996 |
|
|
function ReadDate(const ValueName: WideString; Default: TDateTime): TDateTime; safecall;
|
997 |
|
|
function ReadDateTime(const ValueName: WideString; Default: TDateTime): TDateTime; safecall;
|
998 |
|
|
function ReadInteger(const ValueName: WideString; Default: Integer): Integer; safecall;
|
999 |
|
|
function ReadString(const ValueName: WideString; const Default: WideString): WideString; safecall;
|
1000 |
|
|
function ReadTime(const ValueName: WideString; Default: TDateTime): TDateTime; safecall;
|
1001 |
|
|
procedure WriteBoolean(const ValueName: WideString; Value: WordBool); safecall;
|
1002 |
|
|
procedure WriteDate(const ValueName: WideString; Value: TDateTime); safecall;
|
1003 |
|
|
procedure WriteDateTime(const ValueName: WideString; Value: TDateTime); safecall;
|
1004 |
|
|
procedure WriteInteger(const ValueName: WideString; Value: Integer); safecall;
|
1005 |
|
|
procedure WriteString(const ValueName: WideString; const Value: WideString); safecall;
|
1006 |
|
|
procedure WriteTime(const ValueName: WideString; Value: TDateTime); safecall;
|
1007 |
|
|
function License(const Key: WideString): WordBool; safecall;
|
1008 |
|
|
property CurrentSubKey: WideString read Get_CurrentSubKey write Set_CurrentSubKey;
|
1009 |
|
|
property IsIniFile: WordBool read Get_IsIniFile;
|
1010 |
|
|
property Primary: WideString read Get_Primary write Set_Primary;
|
1011 |
|
|
property SubKeys: IStRegINISubKeys read Get_SubKeys;
|
1012 |
|
|
property Values: IStRegINIValues read Get_Values;
|
1013 |
|
|
end;
|
1014 |
|
|
|
1015 |
|
|
// *********************************************************************//
|
1016 |
|
|
// DispIntf: IStRegINIDisp
|
1017 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
1018 |
|
|
// GUID: {37198FBE-3932-4548-A6B1-31229E83F87B}
|
1019 |
|
|
// *********************************************************************//
|
1020 |
|
|
IStRegINIDisp = dispinterface
|
1021 |
|
|
['{37198FBE-3932-4548-A6B1-31229E83F87B}']
|
1022 |
|
|
procedure Open(const RootName: WideString; IsIniFile: WordBool); dispid 1;
|
1023 |
|
|
property CurrentSubKey: WideString dispid 2;
|
1024 |
|
|
property IsIniFile: WordBool readonly dispid 3;
|
1025 |
|
|
procedure CreateKey(const KeyName: WideString); dispid 6;
|
1026 |
|
|
procedure DeleteKey(const KeyName: WideString; DeleteSubKeys: WordBool); dispid 8;
|
1027 |
|
|
procedure DeleteValue(const ValueName: WideString); dispid 9;
|
1028 |
|
|
property Primary: WideString dispid 10;
|
1029 |
|
|
property SubKeys: IStRegINISubKeys readonly dispid 11;
|
1030 |
|
|
property Values: IStRegINIValues readonly dispid 12;
|
1031 |
|
|
function KeyExists(const KeyName: WideString): WordBool; dispid 13;
|
1032 |
|
|
function QueryKey: IStRegINIQueryKeyInfo; dispid 14;
|
1033 |
|
|
function ReadBoolean(const ValueName: WideString; Default: WordBool): WordBool; dispid 16;
|
1034 |
|
|
function ReadDate(const ValueName: WideString; Default: TDateTime): TDateTime; dispid 17;
|
1035 |
|
|
function ReadDateTime(const ValueName: WideString; Default: TDateTime): TDateTime; dispid 18;
|
1036 |
|
|
function ReadInteger(const ValueName: WideString; Default: Integer): Integer; dispid 19;
|
1037 |
|
|
function ReadString(const ValueName: WideString; const Default: WideString): WideString; dispid 21;
|
1038 |
|
|
function ReadTime(const ValueName: WideString; Default: TDateTime): TDateTime; dispid 22;
|
1039 |
|
|
procedure WriteBoolean(const ValueName: WideString; Value: WordBool); dispid 24;
|
1040 |
|
|
procedure WriteDate(const ValueName: WideString; Value: TDateTime); dispid 25;
|
1041 |
|
|
procedure WriteDateTime(const ValueName: WideString; Value: TDateTime); dispid 26;
|
1042 |
|
|
procedure WriteInteger(const ValueName: WideString; Value: Integer); dispid 28;
|
1043 |
|
|
procedure WriteString(const ValueName: WideString; const Value: WideString); dispid 29;
|
1044 |
|
|
procedure WriteTime(const ValueName: WideString; Value: TDateTime); dispid 30;
|
1045 |
|
|
function License(const Key: WideString): WordBool; dispid 200;
|
1046 |
|
|
end;
|
1047 |
|
|
|
1048 |
|
|
// *********************************************************************//
|
1049 |
|
|
// Interface: IStFin
|
1050 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
1051 |
|
|
// GUID: {821B289E-492C-4115-8484-A6545E281BB3}
|
1052 |
|
|
// *********************************************************************//
|
1053 |
|
|
IStFin = interface(IDispatch)
|
1054 |
|
|
['{821B289E-492C-4115-8484-A6545E281BB3}']
|
1055 |
|
|
function IsCardValid(const S: WideString): WordBool; safecall;
|
1056 |
|
|
function License(const Key: WideString): WordBool; safecall;
|
1057 |
|
|
end;
|
1058 |
|
|
|
1059 |
|
|
// *********************************************************************//
|
1060 |
|
|
// DispIntf: IStFinDisp
|
1061 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
1062 |
|
|
// GUID: {821B289E-492C-4115-8484-A6545E281BB3}
|
1063 |
|
|
// *********************************************************************//
|
1064 |
|
|
IStFinDisp = dispinterface
|
1065 |
|
|
['{821B289E-492C-4115-8484-A6545E281BB3}']
|
1066 |
|
|
function IsCardValid(const S: WideString): WordBool; dispid 1;
|
1067 |
|
|
function License(const Key: WideString): WordBool; dispid 200;
|
1068 |
|
|
end;
|
1069 |
|
|
|
1070 |
|
|
// *********************************************************************//
|
1071 |
|
|
// Interface: IStRegINIQueryKeyInfo
|
1072 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
1073 |
|
|
// GUID: {DF09E023-FC82-4BC0-BEA8-AA5D5C0E9F2A}
|
1074 |
|
|
// *********************************************************************//
|
1075 |
|
|
IStRegINIQueryKeyInfo = interface(IDispatch)
|
1076 |
|
|
['{DF09E023-FC82-4BC0-BEA8-AA5D5C0E9F2A}']
|
1077 |
|
|
function Get_QIClassName: WideString; safecall;
|
1078 |
|
|
function Get_QIFileTime: TDateTime; safecall;
|
1079 |
|
|
function Get_QIKey: Integer; safecall;
|
1080 |
|
|
function Get_QIMaxCNLen: Integer; safecall;
|
1081 |
|
|
function Get_QIMaxDataLen: Integer; safecall;
|
1082 |
|
|
function Get_QIMaxSKNLen: Integer; safecall;
|
1083 |
|
|
function Get_QIMaxVNLen: Integer; safecall;
|
1084 |
|
|
function Get_QINumSubKeys: Integer; safecall;
|
1085 |
|
|
function Get_QINumValues: Integer; safecall;
|
1086 |
|
|
function Get_QISDescLen: Integer; safecall;
|
1087 |
|
|
property QIClassName: WideString read Get_QIClassName;
|
1088 |
|
|
property QIFileTime: TDateTime read Get_QIFileTime;
|
1089 |
|
|
property QIKey: Integer read Get_QIKey;
|
1090 |
|
|
property QIMaxCNLen: Integer read Get_QIMaxCNLen;
|
1091 |
|
|
property QIMaxDataLen: Integer read Get_QIMaxDataLen;
|
1092 |
|
|
property QIMaxSKNLen: Integer read Get_QIMaxSKNLen;
|
1093 |
|
|
property QIMaxVNLen: Integer read Get_QIMaxVNLen;
|
1094 |
|
|
property QINumSubKeys: Integer read Get_QINumSubKeys;
|
1095 |
|
|
property QINumValues: Integer read Get_QINumValues;
|
1096 |
|
|
property QISDescLen: Integer read Get_QISDescLen;
|
1097 |
|
|
end;
|
1098 |
|
|
|
1099 |
|
|
// *********************************************************************//
|
1100 |
|
|
// DispIntf: IStRegINIQueryKeyInfoDisp
|
1101 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
1102 |
|
|
// GUID: {DF09E023-FC82-4BC0-BEA8-AA5D5C0E9F2A}
|
1103 |
|
|
// *********************************************************************//
|
1104 |
|
|
IStRegINIQueryKeyInfoDisp = dispinterface
|
1105 |
|
|
['{DF09E023-FC82-4BC0-BEA8-AA5D5C0E9F2A}']
|
1106 |
|
|
property QIClassName: WideString readonly dispid 1;
|
1107 |
|
|
property QIFileTime: TDateTime readonly dispid 2;
|
1108 |
|
|
property QIKey: Integer readonly dispid 3;
|
1109 |
|
|
property QIMaxCNLen: Integer readonly dispid 4;
|
1110 |
|
|
property QIMaxDataLen: Integer readonly dispid 5;
|
1111 |
|
|
property QIMaxSKNLen: Integer readonly dispid 6;
|
1112 |
|
|
property QIMaxVNLen: Integer readonly dispid 7;
|
1113 |
|
|
property QINumSubKeys: Integer readonly dispid 8;
|
1114 |
|
|
property QINumValues: Integer readonly dispid 9;
|
1115 |
|
|
property QISDescLen: Integer readonly dispid 10;
|
1116 |
|
|
end;
|
1117 |
|
|
|
1118 |
|
|
// *********************************************************************//
|
1119 |
|
|
// Interface: IStRegINISubKeys
|
1120 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
1121 |
|
|
// GUID: {43B798DA-D2CA-4263-854D-E63FBB2F7C64}
|
1122 |
|
|
// *********************************************************************//
|
1123 |
|
|
IStRegINISubKeys = interface(IDispatch)
|
1124 |
|
|
['{43B798DA-D2CA-4263-854D-E63FBB2F7C64}']
|
1125 |
|
|
function Get__NewEnum: IUnknown; safecall;
|
1126 |
|
|
function Get_Item(Index: Integer): IStRegINISubKey; safecall;
|
1127 |
|
|
function Get_Count: Integer; safecall;
|
1128 |
|
|
property _NewEnum: IUnknown read Get__NewEnum;
|
1129 |
|
|
property Item[Index: Integer]: IStRegINISubKey read Get_Item; default;
|
1130 |
|
|
property Count: Integer read Get_Count;
|
1131 |
|
|
end;
|
1132 |
|
|
|
1133 |
|
|
// *********************************************************************//
|
1134 |
|
|
// DispIntf: IStRegINISubKeysDisp
|
1135 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
1136 |
|
|
// GUID: {43B798DA-D2CA-4263-854D-E63FBB2F7C64}
|
1137 |
|
|
// *********************************************************************//
|
1138 |
|
|
IStRegINISubKeysDisp = dispinterface
|
1139 |
|
|
['{43B798DA-D2CA-4263-854D-E63FBB2F7C64}']
|
1140 |
|
|
property _NewEnum: IUnknown readonly dispid -4;
|
1141 |
|
|
property Item[Index: Integer]: IStRegINISubKey readonly dispid 0; default;
|
1142 |
|
|
property Count: Integer readonly dispid 1;
|
1143 |
|
|
end;
|
1144 |
|
|
|
1145 |
|
|
// *********************************************************************//
|
1146 |
|
|
// Interface: IStRegINIValue
|
1147 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
1148 |
|
|
// GUID: {A3E5FB23-CD5C-471B-8214-5075375DE8DF}
|
1149 |
|
|
// *********************************************************************//
|
1150 |
|
|
IStRegINIValue = interface(IDispatch)
|
1151 |
|
|
['{A3E5FB23-CD5C-471B-8214-5075375DE8DF}']
|
1152 |
|
|
function Get_Value: WideString; safecall;
|
1153 |
|
|
property Value: WideString read Get_Value;
|
1154 |
|
|
end;
|
1155 |
|
|
|
1156 |
|
|
// *********************************************************************//
|
1157 |
|
|
// DispIntf: IStRegINIValueDisp
|
1158 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
1159 |
|
|
// GUID: {A3E5FB23-CD5C-471B-8214-5075375DE8DF}
|
1160 |
|
|
// *********************************************************************//
|
1161 |
|
|
IStRegINIValueDisp = dispinterface
|
1162 |
|
|
['{A3E5FB23-CD5C-471B-8214-5075375DE8DF}']
|
1163 |
|
|
property Value: WideString readonly dispid 1;
|
1164 |
|
|
end;
|
1165 |
|
|
|
1166 |
|
|
// *********************************************************************//
|
1167 |
|
|
// Interface: IStRegINIValues
|
1168 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
1169 |
|
|
// GUID: {FC9E57F0-ABC0-4B69-80A0-06CDACB61AEB}
|
1170 |
|
|
// *********************************************************************//
|
1171 |
|
|
IStRegINIValues = interface(IDispatch)
|
1172 |
|
|
['{FC9E57F0-ABC0-4B69-80A0-06CDACB61AEB}']
|
1173 |
|
|
function Get__NewEnum: IUnknown; safecall;
|
1174 |
|
|
function Get_Item(Index: Integer): IStRegINIValue; safecall;
|
1175 |
|
|
function Get_Count: Integer; safecall;
|
1176 |
|
|
property _NewEnum: IUnknown read Get__NewEnum;
|
1177 |
|
|
property Item[Index: Integer]: IStRegINIValue read Get_Item; default;
|
1178 |
|
|
property Count: Integer read Get_Count;
|
1179 |
|
|
end;
|
1180 |
|
|
|
1181 |
|
|
// *********************************************************************//
|
1182 |
|
|
// DispIntf: IStRegINIValuesDisp
|
1183 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
1184 |
|
|
// GUID: {FC9E57F0-ABC0-4B69-80A0-06CDACB61AEB}
|
1185 |
|
|
// *********************************************************************//
|
1186 |
|
|
IStRegINIValuesDisp = dispinterface
|
1187 |
|
|
['{FC9E57F0-ABC0-4B69-80A0-06CDACB61AEB}']
|
1188 |
|
|
property _NewEnum: IUnknown readonly dispid -4;
|
1189 |
|
|
property Item[Index: Integer]: IStRegINIValue readonly dispid 0; default;
|
1190 |
|
|
property Count: Integer readonly dispid 1;
|
1191 |
|
|
end;
|
1192 |
|
|
|
1193 |
|
|
// *********************************************************************//
|
1194 |
|
|
// Interface: IStRegINISubKey
|
1195 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
1196 |
|
|
// GUID: {BBA14CDE-6BDE-4E40-86DD-E04697595AF3}
|
1197 |
|
|
// *********************************************************************//
|
1198 |
|
|
IStRegINISubKey = interface(IDispatch)
|
1199 |
|
|
['{BBA14CDE-6BDE-4E40-86DD-E04697595AF3}']
|
1200 |
|
|
function Get_Value: WideString; safecall;
|
1201 |
|
|
property Value: WideString read Get_Value;
|
1202 |
|
|
end;
|
1203 |
|
|
|
1204 |
|
|
// *********************************************************************//
|
1205 |
|
|
// DispIntf: IStRegINISubKeyDisp
|
1206 |
|
|
// Flags: (4416) Dual OleAutomation Dispatchable
|
1207 |
|
|
// GUID: {BBA14CDE-6BDE-4E40-86DD-E04697595AF3}
|
1208 |
|
|
// *********************************************************************//
|
1209 |
|
|
IStRegINISubKeyDisp = dispinterface
|
1210 |
|
|
['{BBA14CDE-6BDE-4E40-86DD-E04697595AF3}']
|
1211 |
|
|
property Value: WideString readonly dispid 0;
|
1212 |
|
|
end;
|
1213 |
|
|
|
1214 |
|
|
// *********************************************************************//
|
1215 |
|
|
// The Class CoStDate provides a Create and CreateRemote method to
|
1216 |
|
|
// create instances of the default interface IStDate exposed by
|
1217 |
|
|
// the CoClass StDate. The functions are intended to be used by
|
1218 |
|
|
// clients wishing to automate the CoClass objects exposed by the
|
1219 |
|
|
// server of this typelibrary.
|
1220 |
|
|
// *********************************************************************//
|
1221 |
|
|
CoStDate = class
|
1222 |
|
|
class function Create: IStDate;
|
1223 |
|
|
class function CreateRemote(const MachineName: string): IStDate;
|
1224 |
|
|
end;
|
1225 |
|
|
|
1226 |
|
|
|
1227 |
|
|
// *********************************************************************//
|
1228 |
|
|
// OLE Server Proxy class declaration
|
1229 |
|
|
// Server Object : TStDate
|
1230 |
|
|
// Help String : StDate Object
|
1231 |
|
|
// Default Interface: IStDate
|
1232 |
|
|
// Def. Intf. DISP? : No
|
1233 |
|
|
// Event Interface:
|
1234 |
|
|
// TypeFlags : (2) CanCreate
|
1235 |
|
|
// *********************************************************************//
|
1236 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1237 |
|
|
TStDateProperties= class;
|
1238 |
|
|
{$ENDIF}
|
1239 |
|
|
TStDate = class(TOleServer)
|
1240 |
|
|
private
|
1241 |
|
|
FIntf: IStDate;
|
1242 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1243 |
|
|
FProps: TStDateProperties;
|
1244 |
|
|
function GetServerProperties: TStDateProperties;
|
1245 |
|
|
{$ENDIF}
|
1246 |
|
|
function GetDefaultInterface: IStDate;
|
1247 |
|
|
protected
|
1248 |
|
|
procedure InitServerData; override;
|
1249 |
|
|
public
|
1250 |
|
|
constructor Create(AOwner: TComponent); override;
|
1251 |
|
|
destructor Destroy; override;
|
1252 |
|
|
procedure Connect; override;
|
1253 |
|
|
procedure ConnectTo(svrIntf: IStDate);
|
1254 |
|
|
procedure Disconnect; override;
|
1255 |
|
|
function AstJulianDate(Julian: TDateTime): Double;
|
1256 |
|
|
function AstJulianDatePrim(Year: Integer; Month: Integer; Day: Integer; UT: TDateTime): Double;
|
1257 |
|
|
function AstJulianDateToStDate(AstJD: Double; Truncate: WordBool): TDateTime;
|
1258 |
|
|
function BondDateDiff(Date1: TDateTime; Date2: TDateTime; DayBasis: TStBondDateType): TDateTime;
|
1259 |
|
|
function CurrentDate: TDateTime;
|
1260 |
|
|
function CurrentDateString(const Picture: WideString; Pack: WordBool): WideString;
|
1261 |
|
|
function CurrentTime: TDateTime;
|
1262 |
|
|
function CurrentTimeString(const Picture: WideString; Pack: WordBool): WideString;
|
1263 |
|
|
procedure DateDiff(Date1: TDateTime; Date2: TDateTime; var Days: Integer; var Months: Integer;
|
1264 |
|
|
var Years: Integer);
|
1265 |
|
|
function DateStringHMStoAstJD(const Picture: WideString; const DS: WideString; Hours: Integer;
|
1266 |
|
|
Minutes: Integer; Seconds: Integer; Epoch: Integer): Double;
|
1267 |
|
|
function DateStringToDMY(const Picture: WideString; const S: WideString; var Day: Integer;
|
1268 |
|
|
var Month: Integer; var Year: Integer; Epoch: Integer): WordBool;
|
1269 |
|
|
function DateStringToStDate(const Picture: WideString; const S: WideString; Epoch: Integer): TDateTime;
|
1270 |
|
|
procedure DateTimeDiff(DT1: TDateTime; DT2: TDateTime; var Days: Integer; var Seconds: Integer);
|
1271 |
|
|
function DayOfWeek(Julian: TDateTime): TStDayType;
|
1272 |
|
|
function DayOfWeekDMY(Day: Integer; Month: Integer; Year: Integer; Epoch: Integer): TStDayType;
|
1273 |
|
|
function DayOfWeekToString(WeekDay: TStDayType): WideString;
|
1274 |
|
|
function DaysInMonth(Month: Integer; Year: Integer; Epoch: Integer): Integer;
|
1275 |
|
|
function DecTime(T: TDateTime; Hours: Byte; Minutes: Byte; Seconds: Byte): TDateTime;
|
1276 |
|
|
function DMYtoStDate(Day: Integer; Month: Integer; Year: Integer; Epoch: Integer): TDateTime;
|
1277 |
|
|
function DMYtoDateString(const Picture: WideString; Day: Integer; Month: Integer;
|
1278 |
|
|
Year: Integer; Epoch: Integer; Pack: WordBool): WideString;
|
1279 |
|
|
function HMStoStTime(Hours: Byte; Minutes: Byte; Seconds: Byte): TDateTime;
|
1280 |
|
|
function IncDate(Julian: TDateTime; Days: Integer; Months: Integer; Years: Integer): TDateTime;
|
1281 |
|
|
procedure IncDateTime(DT1: TDateTime; var DT2: TDateTime; Days: Integer; Seconds: Integer);
|
1282 |
|
|
function IncDateTrunc(Julian: TDateTime; Months: Integer; Years: Integer): TDateTime;
|
1283 |
|
|
function IncTime(T: TDateTime; Hours: Byte; Minutes: Byte; Seconds: Byte): TDateTime;
|
1284 |
|
|
function InternationalDate(ForceCentury: WordBool): WideString;
|
1285 |
|
|
function InternationalLongDate(ShortNames: WordBool; ExcludeDOW: WordBool): WideString;
|
1286 |
|
|
function InternationalTime(ShowSeconds: WordBool): WideString;
|
1287 |
|
|
function IsLeapYear(Year: Integer): WordBool;
|
1288 |
|
|
function MonthToString(Month: Integer): WideString;
|
1289 |
|
|
function RoundToNearestHour(T: TDateTime; Truncate: WordBool): TDateTime;
|
1290 |
|
|
function RoundToNearestMinute(T: TDateTime; Truncate: WordBool): TDateTime;
|
1291 |
|
|
function StDateToDateString(const Picture: WideString; Julian: TDateTime; Pack: WordBool): WideString;
|
1292 |
|
|
procedure StDateToDMY(Julian: TDateTime; var Day: Integer; var Month: Integer; var Year: Integer);
|
1293 |
|
|
function StTimeToAmPmString(const Picture: WideString; T: TDateTime; Pack: WordBool): WideString;
|
1294 |
|
|
procedure StTimeToHMS(T: TDateTime; var Hours: Byte; var Minutes: Byte; var Seconds: Byte);
|
1295 |
|
|
function StTimeToTimeString(const Picture: WideString; T: TDateTime; Pack: WordBool): WideString;
|
1296 |
|
|
procedure TimeDiff(T1: TDateTime; T2: TDateTime; var Hours: Byte; var Minutes: Byte;
|
1297 |
|
|
var Seconds: Byte);
|
1298 |
|
|
function TimeStringToHMS(const Picture: WideString; const TS: WideString; var Hours: Integer;
|
1299 |
|
|
var Minutes: Integer; var Seconds: Integer): WordBool;
|
1300 |
|
|
function TimeStringToStTime(const Picture: WideString; const S: WideString): TDateTime;
|
1301 |
|
|
function ValidDate(Day: Integer; Month: Integer; Year: Integer; Epoch: Integer): WordBool;
|
1302 |
|
|
function ValidTime(Hours: Integer; Minutes: Integer; Seconds: Integer): WordBool;
|
1303 |
|
|
function WeekOfYear(Julian: TDateTime): Byte;
|
1304 |
|
|
function License(const Key: WideString): WordBool;
|
1305 |
|
|
property DefaultInterface: IStDate read GetDefaultInterface;
|
1306 |
|
|
published
|
1307 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1308 |
|
|
property Server: TStDateProperties read GetServerProperties;
|
1309 |
|
|
{$ENDIF}
|
1310 |
|
|
end;
|
1311 |
|
|
|
1312 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1313 |
|
|
// *********************************************************************//
|
1314 |
|
|
// OLE Server Properties Proxy Class
|
1315 |
|
|
// Server Object : TStDate
|
1316 |
|
|
// (This object is used by the IDE's Property Inspector to allow editing
|
1317 |
|
|
// of the properties of this server)
|
1318 |
|
|
// *********************************************************************//
|
1319 |
|
|
TStDateProperties = class(TPersistent)
|
1320 |
|
|
private
|
1321 |
|
|
FServer: TStDate;
|
1322 |
|
|
function GetDefaultInterface: IStDate;
|
1323 |
|
|
constructor Create(AServer: TStDate);
|
1324 |
|
|
protected
|
1325 |
|
|
public
|
1326 |
|
|
property DefaultInterface: IStDate read GetDefaultInterface;
|
1327 |
|
|
published
|
1328 |
|
|
end;
|
1329 |
|
|
{$ENDIF}
|
1330 |
|
|
|
1331 |
|
|
|
1332 |
|
|
// *********************************************************************//
|
1333 |
|
|
// The Class CoStString provides a Create and CreateRemote method to
|
1334 |
|
|
// create instances of the default interface IStString exposed by
|
1335 |
|
|
// the CoClass StString. The functions are intended to be used by
|
1336 |
|
|
// clients wishing to automate the CoClass objects exposed by the
|
1337 |
|
|
// server of this typelibrary.
|
1338 |
|
|
// *********************************************************************//
|
1339 |
|
|
CoStString = class
|
1340 |
|
|
class function Create: IStString;
|
1341 |
|
|
class function CreateRemote(const MachineName: string): IStString;
|
1342 |
|
|
end;
|
1343 |
|
|
|
1344 |
|
|
|
1345 |
|
|
// *********************************************************************//
|
1346 |
|
|
// OLE Server Proxy class declaration
|
1347 |
|
|
// Server Object : TStString
|
1348 |
|
|
// Help String : StString Object
|
1349 |
|
|
// Default Interface: IStString
|
1350 |
|
|
// Def. Intf. DISP? : No
|
1351 |
|
|
// Event Interface:
|
1352 |
|
|
// TypeFlags : (2) CanCreate
|
1353 |
|
|
// *********************************************************************//
|
1354 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1355 |
|
|
TStStringProperties= class;
|
1356 |
|
|
{$ENDIF}
|
1357 |
|
|
TStString = class(TOleServer)
|
1358 |
|
|
private
|
1359 |
|
|
FIntf: IStString;
|
1360 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1361 |
|
|
FProps: TStStringProperties;
|
1362 |
|
|
function GetServerProperties: TStStringProperties;
|
1363 |
|
|
{$ENDIF}
|
1364 |
|
|
function GetDefaultInterface: IStString;
|
1365 |
|
|
protected
|
1366 |
|
|
procedure InitServerData; override;
|
1367 |
|
|
public
|
1368 |
|
|
constructor Create(AOwner: TComponent); override;
|
1369 |
|
|
destructor Destroy; override;
|
1370 |
|
|
procedure Connect; override;
|
1371 |
|
|
procedure ConnectTo(svrIntf: IStString);
|
1372 |
|
|
procedure Disconnect; override;
|
1373 |
|
|
function AddBackSlash(const DirName: WideString): WideString;
|
1374 |
|
|
function AsciiCount(const S: WideString; const WordDelims: WideString; const Quote: WideString): Integer;
|
1375 |
|
|
function AsciiPosition(N: Integer; const S: WideString; const WordDelims: WideString;
|
1376 |
|
|
const Quote: WideString; var Pos: Integer): WordBool;
|
1377 |
|
|
function BinaryB(B: Byte): WideString;
|
1378 |
|
|
function BinaryW(W: Integer): WideString;
|
1379 |
|
|
function BinaryL(L: Integer): WideString;
|
1380 |
|
|
function Center(const S: WideString; Len: Integer): WideString;
|
1381 |
|
|
function CenterCh(const S: WideString; const C: WideString; Len: Integer): WideString;
|
1382 |
|
|
function CharCount(const S: WideString; const C: WideString): Integer;
|
1383 |
|
|
function CharExists(const S: WideString; const C: WideString): WordBool;
|
1384 |
|
|
function CharStr(const C: WideString; Len: Integer): WideString;
|
1385 |
|
|
function CleanPathName(const PathName: WideString): WideString;
|
1386 |
|
|
function Commaize(L: Integer): WideString;
|
1387 |
|
|
function CommaizeCh(L: Integer; const Ch: WideString): WideString;
|
1388 |
|
|
function CompString(const S1: WideString; const S2: WideString): Integer;
|
1389 |
|
|
function CompUCString(const S1: WideString; const S2: WideString): Integer;
|
1390 |
|
|
function ContainsOnly(const S: WideString; const Chars: WideString; var BadPos: Integer): WordBool;
|
1391 |
|
|
function ContainsOtherThan(const S: WideString; const Chars: WideString; var BadPos: Integer): WordBool;
|
1392 |
|
|
function CopyFromNthWord(const S: WideString; const WordDelims: WideString;
|
1393 |
|
|
const AWord: WideString; N: Integer; var SubString: WideString): WordBool;
|
1394 |
|
|
function CopyFromToWord(const S: WideString; const WordDelims: WideString;
|
1395 |
|
|
const Word1: WideString; const Word2: WideString; N1: Integer;
|
1396 |
|
|
N2: Integer; var SubString: WideString): WordBool;
|
1397 |
|
|
function CopyLeft(const S: WideString; Len: Integer): WideString;
|
1398 |
|
|
function CopyMid(const S: WideString; First: Integer; Len: Integer): WideString;
|
1399 |
|
|
function CopyRight(const S: WideString; First: Integer): WideString;
|
1400 |
|
|
function CopyWithin(const S: WideString; const Delimiter: WideString; Strip: WordBool): WideString;
|
1401 |
|
|
function DefaultExtension(const Name: WideString; const Ext: WideString): WideString;
|
1402 |
|
|
function DeleteFromNthWord(const S: WideString; const WordDelims: WideString;
|
1403 |
|
|
const AWord: WideString; N: Integer; var SubString: WideString): WordBool;
|
1404 |
|
|
function DeleteFromToWord(const S: WideString; const WordDelims: WideString;
|
1405 |
|
|
const Word1: WideString; const Word2: WideString; N1: Integer;
|
1406 |
|
|
N2: Integer; var SubString: WideString): WordBool;
|
1407 |
|
|
function DeleteWithin(const S: WideString; const Delimeter: WideString): WideString;
|
1408 |
|
|
function Detab(const S: WideString; TabSize: Byte): WideString;
|
1409 |
|
|
function Entab(const S: WideString; TabSize: Byte): WideString;
|
1410 |
|
|
function Ext2Str(R: OleVariant; Width: Byte; Places: Byte): WideString;
|
1411 |
|
|
function ExtractAscii(N: Integer; const S: WideString; const WordDelims: WideString;
|
1412 |
|
|
const Quote: WideString): WideString;
|
1413 |
|
|
function ExtractTokens(const S: WideString; const Delims: WideString;
|
1414 |
|
|
const QuoteChar: WideString; AllowNulls: WordBool;
|
1415 |
|
|
out Tokens: IStStringList): Integer;
|
1416 |
|
|
function ExtractWord(N: Integer; const S: WideString; const WordDelims: WideString): WideString;
|
1417 |
|
|
function Filter(const S: WideString; const Filters: WideString): WideString;
|
1418 |
|
|
function FloatForm(const Mask: WideString; R: Double; L: Integer; const LtCurr: WideString;
|
1419 |
|
|
const RtCurr: WideString; const Sep: WideString; const DecPt: WideString): WideString;
|
1420 |
|
|
function ForceExtension(const Name: WideString; const Ext: WideString): WideString;
|
1421 |
|
|
function HasExtension(const Name: WideString; var DotPos: Integer): WordBool;
|
1422 |
|
|
function HexB(B: Byte): WideString;
|
1423 |
|
|
function HexW(W: Integer): WideString;
|
1424 |
|
|
function HexL(L: Integer): WideString;
|
1425 |
|
|
function IsChAlpha(const C: WideString): WordBool;
|
1426 |
|
|
function IsChAlphaNumeric(const C: WideString; const Numbers: WideString): WordBool;
|
1427 |
|
|
function IsChNumeric(const C: WideString; const Numbers: WideString): WordBool;
|
1428 |
|
|
function IsStrAlpha(const S: WideString): WordBool;
|
1429 |
|
|
function IsStrAlphaNumeric(const S: WideString; const Numbers: WideString): WordBool;
|
1430 |
|
|
function IsStrNumeric(const S: WideString; const Numbers: WideString): WordBool;
|
1431 |
|
|
function JustExtension(const Name: WideString): WideString;
|
1432 |
|
|
function JustFilename(const PathName: WideString): WideString;
|
1433 |
|
|
function JustName(const PathName: WideString): WideString;
|
1434 |
|
|
function JustPathname(const PathName: WideString): WideString;
|
1435 |
|
|
function KeepChars(const S: WideString; const Chars: WideString): WideString;
|
1436 |
|
|
function LastString(const S: WideString; const AString: WideString; var Position: Integer): WordBool;
|
1437 |
|
|
function LastWord(const S: WideString; const WordDelims: WideString; const AWord: WideString;
|
1438 |
|
|
var Position: Integer): WordBool;
|
1439 |
|
|
function LastWordAbs(const S: WideString; const WordDelims: WideString; var Position: Integer): WordBool;
|
1440 |
|
|
function LeftPad(const S: WideString; Len: Integer): WideString;
|
1441 |
|
|
function LeftPadCh(const S: WideString; const C: WideString; Len: Integer): WideString;
|
1442 |
|
|
function LeftTrimChars(const S: WideString; const Chars: WideString): WideString;
|
1443 |
|
|
function Long2Str(L: Integer): WideString;
|
1444 |
|
|
function LongIntForm(const Mask: WideString; L: Integer; const LtCurr: WideString;
|
1445 |
|
|
const RtCurr: WideString; const Sep: WideString): WideString;
|
1446 |
|
|
function OctalB(B: Byte): WideString;
|
1447 |
|
|
function OctalW(W: Integer): WideString;
|
1448 |
|
|
function OctalL(L: Integer): WideString;
|
1449 |
|
|
function Pad(const S: WideString; Len: Integer): WideString;
|
1450 |
|
|
function PadCh(const S: WideString; const C: WideString; Len: Integer): WideString;
|
1451 |
|
|
function Real2Str(R: Double; Width: Byte; Places: Byte): WideString;
|
1452 |
|
|
function RepeatString(const S: WideString; var Repetitions: Integer; MaxLen: Integer): WideString;
|
1453 |
|
|
function ReplaceWord(const S: WideString; const WordDelims: WideString;
|
1454 |
|
|
const OldWord: WideString; const NewWord: WideString; N: Integer;
|
1455 |
|
|
var Replacements: Integer): WideString;
|
1456 |
|
|
function ReplaceWordAll(const S: WideString; const WordDelims: WideString;
|
1457 |
|
|
const OldWord: WideString; const NewWord: WideString;
|
1458 |
|
|
var Replacements: Integer): WideString;
|
1459 |
|
|
function ReplaceString(const S: WideString; const OldString: WideString;
|
1460 |
|
|
const NewString: WideString; N: Integer; var Replacements: Integer): WideString;
|
1461 |
|
|
function ReplaceStringAll(const S: WideString; const OldString: WideString;
|
1462 |
|
|
const NewString: WideString; var Replacements: Integer): WideString;
|
1463 |
|
|
function RightTrimChars(const S: WideString; const Chars: WideString): WideString;
|
1464 |
|
|
function Scramble(const S: WideString; const Key: WideString): WideString;
|
1465 |
|
|
function Str2Ext(const S: WideString; var R: OleVariant): WordBool;
|
1466 |
|
|
function Str2Int16(const S: WideString; var I: Smallint): WordBool;
|
1467 |
|
|
function Str2Long(const S: WideString; var I: Integer): WordBool;
|
1468 |
|
|
function Str2Real(const S: WideString; var R: Double): WordBool;
|
1469 |
|
|
function Str2Word(const S: WideString; var W: Integer): WordBool;
|
1470 |
|
|
function StrChDelete(const S: WideString; Pos: Integer): WideString;
|
1471 |
|
|
function StrChInsert(const S: WideString; const C: WideString; Pos: Integer): WideString;
|
1472 |
|
|
function StrChPos(const P: WideString; const C: WideString; var Pos: Integer): WordBool;
|
1473 |
|
|
function StrStCopy(const S: WideString; Pos: Integer; Count: Integer): WideString;
|
1474 |
|
|
function StrStDelete(const S: WideString; Pos: Integer; Count: Integer): WideString;
|
1475 |
|
|
function StrStInsert(const S1: WideString; const S2: WideString; Pos: Integer): WideString;
|
1476 |
|
|
function StrStPos(const P: WideString; const S: WideString; var Pos: Integer): WordBool;
|
1477 |
|
|
function StrWithin(const S: WideString; const SearchStr: WideString; Start: Integer;
|
1478 |
|
|
var Position: Integer): WordBool;
|
1479 |
|
|
function Substitute(const S: WideString; const FromStr: WideString; const ToStr: WideString): WideString;
|
1480 |
|
|
function Trim(const S: WideString): WideString;
|
1481 |
|
|
function TrimChars(const S: WideString; const Chars: WideString): WideString;
|
1482 |
|
|
function TrimLead(const S: WideString): WideString;
|
1483 |
|
|
function TrimSpaces(const S: WideString): WideString;
|
1484 |
|
|
function TrimTrail(const S: WideString): WideString;
|
1485 |
|
|
function ValPrep(const S: WideString): WideString;
|
1486 |
|
|
function WordCount(const S: WideString; const WordDelims: WideString): Integer;
|
1487 |
|
|
function WordPos(const S: WideString; const WordDelims: WideString; const AWord: WideString;
|
1488 |
|
|
N: Integer; var Position: Integer): WordBool;
|
1489 |
|
|
function WordPosition(N: Integer; const S: WideString; const WordDelims: WideString;
|
1490 |
|
|
var Position: Integer): WordBool;
|
1491 |
|
|
procedure WordWrap(const InSt: WideString; var OutSt: WideString; var Overlap: WideString;
|
1492 |
|
|
Margin: Integer; PadToMArgin: WordBool);
|
1493 |
|
|
function License(const Key: WideString): WordBool;
|
1494 |
|
|
function Soundex(const S: WideString): WideString;
|
1495 |
|
|
property DefaultInterface: IStString read GetDefaultInterface;
|
1496 |
|
|
published
|
1497 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1498 |
|
|
property Server: TStStringProperties read GetServerProperties;
|
1499 |
|
|
{$ENDIF}
|
1500 |
|
|
end;
|
1501 |
|
|
|
1502 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1503 |
|
|
// *********************************************************************//
|
1504 |
|
|
// OLE Server Properties Proxy Class
|
1505 |
|
|
// Server Object : TStString
|
1506 |
|
|
// (This object is used by the IDE's Property Inspector to allow editing
|
1507 |
|
|
// of the properties of this server)
|
1508 |
|
|
// *********************************************************************//
|
1509 |
|
|
TStStringProperties = class(TPersistent)
|
1510 |
|
|
private
|
1511 |
|
|
FServer: TStString;
|
1512 |
|
|
function GetDefaultInterface: IStString;
|
1513 |
|
|
constructor Create(AServer: TStString);
|
1514 |
|
|
protected
|
1515 |
|
|
public
|
1516 |
|
|
property DefaultInterface: IStString read GetDefaultInterface;
|
1517 |
|
|
published
|
1518 |
|
|
end;
|
1519 |
|
|
{$ENDIF}
|
1520 |
|
|
|
1521 |
|
|
|
1522 |
|
|
// *********************************************************************//
|
1523 |
|
|
// The Class CoStToHTML provides a Create and CreateRemote method to
|
1524 |
|
|
// create instances of the default interface IStToHTML exposed by
|
1525 |
|
|
// the CoClass StToHTML. The functions are intended to be used by
|
1526 |
|
|
// clients wishing to automate the CoClass objects exposed by the
|
1527 |
|
|
// server of this typelibrary.
|
1528 |
|
|
// *********************************************************************//
|
1529 |
|
|
CoStToHTML = class
|
1530 |
|
|
class function Create: IStToHTML;
|
1531 |
|
|
class function CreateRemote(const MachineName: string): IStToHTML;
|
1532 |
|
|
end;
|
1533 |
|
|
|
1534 |
|
|
TStToHTMLOnProgress = procedure(Sender: TObject; Percent: Integer) of object;
|
1535 |
|
|
|
1536 |
|
|
|
1537 |
|
|
// *********************************************************************//
|
1538 |
|
|
// OLE Server Proxy class declaration
|
1539 |
|
|
// Server Object : TStToHTML
|
1540 |
|
|
// Help String : StToHTML Object
|
1541 |
|
|
// Default Interface: IStToHTML
|
1542 |
|
|
// Def. Intf. DISP? : No
|
1543 |
|
|
// Event Interface: IStToHTMLEvents
|
1544 |
|
|
// TypeFlags : (2) CanCreate
|
1545 |
|
|
// *********************************************************************//
|
1546 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1547 |
|
|
TStToHTMLProperties= class;
|
1548 |
|
|
{$ENDIF}
|
1549 |
|
|
TStToHTML = class(TOleServer)
|
1550 |
|
|
private
|
1551 |
|
|
FOnProgress: TStToHTMLOnProgress;
|
1552 |
|
|
FIntf: IStToHTML;
|
1553 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1554 |
|
|
FProps: TStToHTMLProperties;
|
1555 |
|
|
function GetServerProperties: TStToHTMLProperties;
|
1556 |
|
|
{$ENDIF}
|
1557 |
|
|
function GetDefaultInterface: IStToHTML;
|
1558 |
|
|
protected
|
1559 |
|
|
procedure InitServerData; override;
|
1560 |
|
|
procedure InvokeEvent(DispID: TDispID; var Params: TVariantArray); override;
|
1561 |
|
|
function Get_CaseSensitve: WordBool;
|
1562 |
|
|
procedure Set_CaseSensitve(Value: WordBool);
|
1563 |
|
|
function Get_CommentMarkers: IStStringList;
|
1564 |
|
|
procedure Set_CommentMarkers(const Value: IStStringList);
|
1565 |
|
|
function Get_EmbeddedHTML: IStStringList;
|
1566 |
|
|
procedure Set_EmbeddedHTML(const Value: IStStringList);
|
1567 |
|
|
function Get_FixedLineLength: Integer;
|
1568 |
|
|
procedure Set_FixedLineLength(Value: Integer);
|
1569 |
|
|
function Get_Keywords: IStStringList;
|
1570 |
|
|
procedure Set_Keywords(const Value: IStStringList);
|
1571 |
|
|
function Get_LineTermChar: WideString;
|
1572 |
|
|
procedure Set_LineTermChar(const Value: WideString);
|
1573 |
|
|
function Get_LineTerminator: TStLineTerminator;
|
1574 |
|
|
procedure Set_LineTerminator(Value: TStLineTerminator);
|
1575 |
|
|
function Get_PageFooter: IStStringList;
|
1576 |
|
|
procedure Set_PageFooter(const Value: IStStringList);
|
1577 |
|
|
function Get_PageHeader: IStStringList;
|
1578 |
|
|
procedure Set_PageHeader(const Value: IStStringList);
|
1579 |
|
|
function Get_StringMarkers: IStStringList;
|
1580 |
|
|
procedure Set_StringMarkers(const Value: IStStringList);
|
1581 |
|
|
function Get_WordDelimeters: WideString;
|
1582 |
|
|
procedure Set_WordDelimeters(const Value: WideString);
|
1583 |
|
|
function Get_Stream: OleVariant;
|
1584 |
|
|
procedure Set_Stream(Value: OleVariant);
|
1585 |
|
|
public
|
1586 |
|
|
constructor Create(AOwner: TComponent); override;
|
1587 |
|
|
destructor Destroy; override;
|
1588 |
|
|
procedure Connect; override;
|
1589 |
|
|
procedure ConnectTo(svrIntf: IStToHTML);
|
1590 |
|
|
procedure Disconnect; override;
|
1591 |
|
|
procedure GenerateHTML;
|
1592 |
|
|
procedure LoadFromFile(const FileName: WideString);
|
1593 |
|
|
procedure SaveToFile(const FileName: WideString);
|
1594 |
|
|
procedure Clear;
|
1595 |
|
|
function License(const Key: WideString): WordBool;
|
1596 |
|
|
property DefaultInterface: IStToHTML read GetDefaultInterface;
|
1597 |
|
|
property Stream: OleVariant read Get_Stream write Set_Stream;
|
1598 |
|
|
property CaseSensitve: WordBool read Get_CaseSensitve write Set_CaseSensitve;
|
1599 |
|
|
property CommentMarkers: IStStringList read Get_CommentMarkers write Set_CommentMarkers;
|
1600 |
|
|
property EmbeddedHTML: IStStringList read Get_EmbeddedHTML write Set_EmbeddedHTML;
|
1601 |
|
|
property FixedLineLength: Integer read Get_FixedLineLength write Set_FixedLineLength;
|
1602 |
|
|
property Keywords: IStStringList read Get_Keywords write Set_Keywords;
|
1603 |
|
|
property LineTermChar: WideString read Get_LineTermChar write Set_LineTermChar;
|
1604 |
|
|
property LineTerminator: TStLineTerminator read Get_LineTerminator write Set_LineTerminator;
|
1605 |
|
|
property PageFooter: IStStringList read Get_PageFooter write Set_PageFooter;
|
1606 |
|
|
property PageHeader: IStStringList read Get_PageHeader write Set_PageHeader;
|
1607 |
|
|
property StringMarkers: IStStringList read Get_StringMarkers write Set_StringMarkers;
|
1608 |
|
|
property WordDelimeters: WideString read Get_WordDelimeters write Set_WordDelimeters;
|
1609 |
|
|
published
|
1610 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1611 |
|
|
property Server: TStToHTMLProperties read GetServerProperties;
|
1612 |
|
|
{$ENDIF}
|
1613 |
|
|
property OnProgress: TStToHTMLOnProgress read FOnProgress write FOnProgress;
|
1614 |
|
|
end;
|
1615 |
|
|
|
1616 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1617 |
|
|
// *********************************************************************//
|
1618 |
|
|
// OLE Server Properties Proxy Class
|
1619 |
|
|
// Server Object : TStToHTML
|
1620 |
|
|
// (This object is used by the IDE's Property Inspector to allow editing
|
1621 |
|
|
// of the properties of this server)
|
1622 |
|
|
// *********************************************************************//
|
1623 |
|
|
TStToHTMLProperties = class(TPersistent)
|
1624 |
|
|
private
|
1625 |
|
|
FServer: TStToHTML;
|
1626 |
|
|
function GetDefaultInterface: IStToHTML;
|
1627 |
|
|
constructor Create(AServer: TStToHTML);
|
1628 |
|
|
protected
|
1629 |
|
|
function Get_CaseSensitve: WordBool;
|
1630 |
|
|
procedure Set_CaseSensitve(Value: WordBool);
|
1631 |
|
|
function Get_CommentMarkers: IStStringList;
|
1632 |
|
|
procedure Set_CommentMarkers(const Value: IStStringList);
|
1633 |
|
|
function Get_EmbeddedHTML: IStStringList;
|
1634 |
|
|
procedure Set_EmbeddedHTML(const Value: IStStringList);
|
1635 |
|
|
function Get_FixedLineLength: Integer;
|
1636 |
|
|
procedure Set_FixedLineLength(Value: Integer);
|
1637 |
|
|
function Get_Keywords: IStStringList;
|
1638 |
|
|
procedure Set_Keywords(const Value: IStStringList);
|
1639 |
|
|
function Get_LineTermChar: WideString;
|
1640 |
|
|
procedure Set_LineTermChar(const Value: WideString);
|
1641 |
|
|
function Get_LineTerminator: TStLineTerminator;
|
1642 |
|
|
procedure Set_LineTerminator(Value: TStLineTerminator);
|
1643 |
|
|
function Get_PageFooter: IStStringList;
|
1644 |
|
|
procedure Set_PageFooter(const Value: IStStringList);
|
1645 |
|
|
function Get_PageHeader: IStStringList;
|
1646 |
|
|
procedure Set_PageHeader(const Value: IStStringList);
|
1647 |
|
|
function Get_StringMarkers: IStStringList;
|
1648 |
|
|
procedure Set_StringMarkers(const Value: IStStringList);
|
1649 |
|
|
function Get_WordDelimeters: WideString;
|
1650 |
|
|
procedure Set_WordDelimeters(const Value: WideString);
|
1651 |
|
|
function Get_Stream: OleVariant;
|
1652 |
|
|
procedure Set_Stream(Value: OleVariant);
|
1653 |
|
|
public
|
1654 |
|
|
property DefaultInterface: IStToHTML read GetDefaultInterface;
|
1655 |
|
|
published
|
1656 |
|
|
property CaseSensitve: WordBool read Get_CaseSensitve write Set_CaseSensitve;
|
1657 |
|
|
property CommentMarkers: IStStringList read Get_CommentMarkers write Set_CommentMarkers;
|
1658 |
|
|
property EmbeddedHTML: IStStringList read Get_EmbeddedHTML write Set_EmbeddedHTML;
|
1659 |
|
|
property FixedLineLength: Integer read Get_FixedLineLength write Set_FixedLineLength;
|
1660 |
|
|
property Keywords: IStStringList read Get_Keywords write Set_Keywords;
|
1661 |
|
|
property LineTermChar: WideString read Get_LineTermChar write Set_LineTermChar;
|
1662 |
|
|
property LineTerminator: TStLineTerminator read Get_LineTerminator write Set_LineTerminator;
|
1663 |
|
|
property PageFooter: IStStringList read Get_PageFooter write Set_PageFooter;
|
1664 |
|
|
property PageHeader: IStStringList read Get_PageHeader write Set_PageHeader;
|
1665 |
|
|
property StringMarkers: IStStringList read Get_StringMarkers write Set_StringMarkers;
|
1666 |
|
|
property WordDelimeters: WideString read Get_WordDelimeters write Set_WordDelimeters;
|
1667 |
|
|
end;
|
1668 |
|
|
{$ENDIF}
|
1669 |
|
|
|
1670 |
|
|
|
1671 |
|
|
// *********************************************************************//
|
1672 |
|
|
// The Class CoStStringList provides a Create and CreateRemote method to
|
1673 |
|
|
// create instances of the default interface IStStringList exposed by
|
1674 |
|
|
// the CoClass StStringList. The functions are intended to be used by
|
1675 |
|
|
// clients wishing to automate the CoClass objects exposed by the
|
1676 |
|
|
// server of this typelibrary.
|
1677 |
|
|
// *********************************************************************//
|
1678 |
|
|
CoStStringList = class
|
1679 |
|
|
class function Create: IStStringList;
|
1680 |
|
|
class function CreateRemote(const MachineName: string): IStStringList;
|
1681 |
|
|
end;
|
1682 |
|
|
|
1683 |
|
|
|
1684 |
|
|
// *********************************************************************//
|
1685 |
|
|
// OLE Server Proxy class declaration
|
1686 |
|
|
// Server Object : TStStringList
|
1687 |
|
|
// Help String : StStringList Object
|
1688 |
|
|
// Default Interface: IStStringList
|
1689 |
|
|
// Def. Intf. DISP? : No
|
1690 |
|
|
// Event Interface: IStStringListEvents
|
1691 |
|
|
// TypeFlags : (2) CanCreate
|
1692 |
|
|
// *********************************************************************//
|
1693 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1694 |
|
|
TStStringListProperties= class;
|
1695 |
|
|
{$ENDIF}
|
1696 |
|
|
TStStringList = class(TOleServer)
|
1697 |
|
|
private
|
1698 |
|
|
FOnChange: TNotifyEvent;
|
1699 |
|
|
FOnChanging: TNotifyEvent;
|
1700 |
|
|
FIntf: IStStringList;
|
1701 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1702 |
|
|
FProps: TStStringListProperties;
|
1703 |
|
|
function GetServerProperties: TStStringListProperties;
|
1704 |
|
|
{$ENDIF}
|
1705 |
|
|
function GetDefaultInterface: IStStringList;
|
1706 |
|
|
protected
|
1707 |
|
|
procedure InitServerData; override;
|
1708 |
|
|
procedure InvokeEvent(DispID: TDispID; var Params: TVariantArray); override;
|
1709 |
|
|
function Get__NewEnum: IUnknown;
|
1710 |
|
|
function Get_Item(Index: Integer): WideString;
|
1711 |
|
|
procedure Set_Item(Index: Integer; const Value: WideString);
|
1712 |
|
|
function Get_CommaText: WideString;
|
1713 |
|
|
procedure Set_CommaText(const Value: WideString);
|
1714 |
|
|
function Get_Count: Integer;
|
1715 |
|
|
function Get_Duplicates: Integer;
|
1716 |
|
|
procedure Set_Duplicates(Value: Integer);
|
1717 |
|
|
function Get_Names(Index: Integer): WideString;
|
1718 |
|
|
function Get_Sorted: WordBool;
|
1719 |
|
|
procedure Set_Sorted(Value: WordBool);
|
1720 |
|
|
function Get_Strings(Index: Integer): WideString;
|
1721 |
|
|
procedure Set_Strings(Index: Integer; const Value: WideString);
|
1722 |
|
|
function Get_Text: WideString;
|
1723 |
|
|
procedure Set_Text(const Value: WideString);
|
1724 |
|
|
function Get_Values(const Name: WideString): WideString;
|
1725 |
|
|
procedure Set_Values(const Name: WideString; const Value: WideString);
|
1726 |
|
|
function Get_Stream: OleVariant;
|
1727 |
|
|
procedure Set_Stream(Value: OleVariant);
|
1728 |
|
|
public
|
1729 |
|
|
constructor Create(AOwner: TComponent); override;
|
1730 |
|
|
destructor Destroy; override;
|
1731 |
|
|
procedure Connect; override;
|
1732 |
|
|
procedure ConnectTo(svrIntf: IStStringList);
|
1733 |
|
|
procedure Disconnect; override;
|
1734 |
|
|
function Add(const S: WideString): Integer;
|
1735 |
|
|
procedure Append(const S: WideString);
|
1736 |
|
|
procedure Clear;
|
1737 |
|
|
procedure Delete(Index: Integer);
|
1738 |
|
|
function Equals(const Strings: IStStringList): WordBool;
|
1739 |
|
|
procedure Exchange(Index1: Integer; Index2: Integer);
|
1740 |
|
|
function Find(const S: WideString; var Index: Integer): WordBool;
|
1741 |
|
|
function IndexOf(const S: WideString): Integer;
|
1742 |
|
|
function IndexOfName(const Name: WideString): Integer;
|
1743 |
|
|
procedure Insert(Index: Integer; const S: WideString);
|
1744 |
|
|
procedure LoadFromFile(const FileName: WideString);
|
1745 |
|
|
procedure Move(CurIndex: Integer; NewIndex: Integer);
|
1746 |
|
|
procedure SaveToFile(const FileName: WideString);
|
1747 |
|
|
procedure Sort;
|
1748 |
|
|
function License(const Key: WideString): WordBool;
|
1749 |
|
|
property DefaultInterface: IStStringList read GetDefaultInterface;
|
1750 |
|
|
property _NewEnum: IUnknown read Get__NewEnum;
|
1751 |
|
|
property Item[Index: Integer]: WideString read Get_Item write Set_Item; default;
|
1752 |
|
|
property Count: Integer read Get_Count;
|
1753 |
|
|
property Names[Index: Integer]: WideString read Get_Names;
|
1754 |
|
|
property Strings[Index: Integer]: WideString read Get_Strings write Set_Strings;
|
1755 |
|
|
property Values[const Name: WideString]: WideString read Get_Values write Set_Values;
|
1756 |
|
|
property Stream: OleVariant read Get_Stream write Set_Stream;
|
1757 |
|
|
property CommaText: WideString read Get_CommaText write Set_CommaText;
|
1758 |
|
|
property Duplicates: Integer read Get_Duplicates write Set_Duplicates;
|
1759 |
|
|
property Sorted: WordBool read Get_Sorted write Set_Sorted;
|
1760 |
|
|
property Text: WideString read Get_Text write Set_Text;
|
1761 |
|
|
published
|
1762 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1763 |
|
|
property Server: TStStringListProperties read GetServerProperties;
|
1764 |
|
|
{$ENDIF}
|
1765 |
|
|
property OnChange: TNotifyEvent read FOnChange write FOnChange;
|
1766 |
|
|
property OnChanging: TNotifyEvent read FOnChanging write FOnChanging;
|
1767 |
|
|
end;
|
1768 |
|
|
|
1769 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1770 |
|
|
// *********************************************************************//
|
1771 |
|
|
// OLE Server Properties Proxy Class
|
1772 |
|
|
// Server Object : TStStringList
|
1773 |
|
|
// (This object is used by the IDE's Property Inspector to allow editing
|
1774 |
|
|
// of the properties of this server)
|
1775 |
|
|
// *********************************************************************//
|
1776 |
|
|
TStStringListProperties = class(TPersistent)
|
1777 |
|
|
private
|
1778 |
|
|
FServer: TStStringList;
|
1779 |
|
|
function GetDefaultInterface: IStStringList;
|
1780 |
|
|
constructor Create(AServer: TStStringList);
|
1781 |
|
|
protected
|
1782 |
|
|
function Get__NewEnum: IUnknown;
|
1783 |
|
|
function Get_Item(Index: Integer): WideString;
|
1784 |
|
|
procedure Set_Item(Index: Integer; const Value: WideString);
|
1785 |
|
|
function Get_CommaText: WideString;
|
1786 |
|
|
procedure Set_CommaText(const Value: WideString);
|
1787 |
|
|
function Get_Count: Integer;
|
1788 |
|
|
function Get_Duplicates: Integer;
|
1789 |
|
|
procedure Set_Duplicates(Value: Integer);
|
1790 |
|
|
function Get_Names(Index: Integer): WideString;
|
1791 |
|
|
function Get_Sorted: WordBool;
|
1792 |
|
|
procedure Set_Sorted(Value: WordBool);
|
1793 |
|
|
function Get_Strings(Index: Integer): WideString;
|
1794 |
|
|
procedure Set_Strings(Index: Integer; const Value: WideString);
|
1795 |
|
|
function Get_Text: WideString;
|
1796 |
|
|
procedure Set_Text(const Value: WideString);
|
1797 |
|
|
function Get_Values(const Name: WideString): WideString;
|
1798 |
|
|
procedure Set_Values(const Name: WideString; const Value: WideString);
|
1799 |
|
|
function Get_Stream: OleVariant;
|
1800 |
|
|
procedure Set_Stream(Value: OleVariant);
|
1801 |
|
|
public
|
1802 |
|
|
property DefaultInterface: IStStringList read GetDefaultInterface;
|
1803 |
|
|
published
|
1804 |
|
|
property CommaText: WideString read Get_CommaText write Set_CommaText;
|
1805 |
|
|
property Duplicates: Integer read Get_Duplicates write Set_Duplicates;
|
1806 |
|
|
property Sorted: WordBool read Get_Sorted write Set_Sorted;
|
1807 |
|
|
property Text: WideString read Get_Text write Set_Text;
|
1808 |
|
|
end;
|
1809 |
|
|
{$ENDIF}
|
1810 |
|
|
|
1811 |
|
|
|
1812 |
|
|
// *********************************************************************//
|
1813 |
|
|
// The Class CoStRegEx provides a Create and CreateRemote method to
|
1814 |
|
|
// create instances of the default interface IStRegEx exposed by
|
1815 |
|
|
// the CoClass StRegEx. The functions are intended to be used by
|
1816 |
|
|
// clients wishing to automate the CoClass objects exposed by the
|
1817 |
|
|
// server of this typelibrary.
|
1818 |
|
|
// *********************************************************************//
|
1819 |
|
|
CoStRegEx = class
|
1820 |
|
|
class function Create: IStRegEx;
|
1821 |
|
|
class function CreateRemote(const MachineName: string): IStRegEx;
|
1822 |
|
|
end;
|
1823 |
|
|
|
1824 |
|
|
TStRegExOnProgress = procedure(Sender: TObject; Percent: Integer) of object;
|
1825 |
|
|
|
1826 |
|
|
|
1827 |
|
|
// *********************************************************************//
|
1828 |
|
|
// OLE Server Proxy class declaration
|
1829 |
|
|
// Server Object : TStRegEx
|
1830 |
|
|
// Help String : StRegEx Object
|
1831 |
|
|
// Default Interface: IStRegEx
|
1832 |
|
|
// Def. Intf. DISP? : No
|
1833 |
|
|
// Event Interface: IStRegExEvents
|
1834 |
|
|
// TypeFlags : (2) CanCreate
|
1835 |
|
|
// *********************************************************************//
|
1836 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1837 |
|
|
TStRegExProperties= class;
|
1838 |
|
|
{$ENDIF}
|
1839 |
|
|
TStRegEx = class(TOleServer)
|
1840 |
|
|
private
|
1841 |
|
|
FOnProgress: TStRegExOnProgress;
|
1842 |
|
|
FIntf: IStRegEx;
|
1843 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1844 |
|
|
FProps: TStRegExProperties;
|
1845 |
|
|
function GetServerProperties: TStRegExProperties;
|
1846 |
|
|
{$ENDIF}
|
1847 |
|
|
function GetDefaultInterface: IStRegEx;
|
1848 |
|
|
protected
|
1849 |
|
|
procedure InitServerData; override;
|
1850 |
|
|
procedure InvokeEvent(DispID: TDispID; var Params: TVariantArray); override;
|
1851 |
|
|
function Get_Avoid: WordBool;
|
1852 |
|
|
procedure Set_Avoid(Value: WordBool);
|
1853 |
|
|
function Get_IgnoreCase: WordBool;
|
1854 |
|
|
procedure Set_IgnoreCase(Value: WordBool);
|
1855 |
|
|
function Get_InFixedLineLength: Integer;
|
1856 |
|
|
procedure Set_InFixedLineLength(Value: Integer);
|
1857 |
|
|
function Get_InLineTermChar: WideString;
|
1858 |
|
|
procedure Set_InLineTermChar(const Value: WideString);
|
1859 |
|
|
function Get_InLineTerminator: TStLineTerminator;
|
1860 |
|
|
procedure Set_InLineTerminator(Value: TStLineTerminator);
|
1861 |
|
|
function Get_LineCount: Integer;
|
1862 |
|
|
function Get_LineNumbers: WordBool;
|
1863 |
|
|
procedure Set_LineNumbers(Value: WordBool);
|
1864 |
|
|
function Get_LinesMatched: Integer;
|
1865 |
|
|
function Get_LinesPerSecond: Integer;
|
1866 |
|
|
function Get_LinesReplaced: Integer;
|
1867 |
|
|
function Get_LinesSelected: Integer;
|
1868 |
|
|
function Get_MatchPattern: IStStringList;
|
1869 |
|
|
procedure Set_MatchPattern(const Value: IStStringList);
|
1870 |
|
|
function Get_OutFixedLineLength: Integer;
|
1871 |
|
|
procedure Set_OutFixedLineLength(Value: Integer);
|
1872 |
|
|
function Get_OutLineTermChar: WideString;
|
1873 |
|
|
procedure Set_OutLineTermChar(const Value: WideString);
|
1874 |
|
|
function Get_OutLineTerminitor: Integer;
|
1875 |
|
|
procedure Set_OutLineTerminitor(Value: Integer);
|
1876 |
|
|
function Get_OutputOptions: TStOutputOption;
|
1877 |
|
|
procedure Set_OutputOptions(Value: TStOutputOption);
|
1878 |
|
|
function Get_ReplacePattern: IStStringList;
|
1879 |
|
|
procedure Set_ReplacePattern(const Value: IStStringList);
|
1880 |
|
|
function Get_SelAvoidPattern: IStStringList;
|
1881 |
|
|
procedure Set_SelAvoidPattern(const Value: IStStringList);
|
1882 |
|
|
function Get_Stream: OleVariant;
|
1883 |
|
|
procedure Set_Stream(Value: OleVariant);
|
1884 |
|
|
public
|
1885 |
|
|
constructor Create(AOwner: TComponent); override;
|
1886 |
|
|
destructor Destroy; override;
|
1887 |
|
|
procedure Connect; override;
|
1888 |
|
|
procedure ConnectTo(svrIntf: IStRegEx);
|
1889 |
|
|
procedure Disconnect; override;
|
1890 |
|
|
function CheckString(const S: WideString; var StartPos: Integer; var EndPos: Integer;
|
1891 |
|
|
var Length: Integer): WordBool;
|
1892 |
|
|
function DOSMaskToRegEx(const Masks: WideString): WordBool;
|
1893 |
|
|
function Execute: WordBool;
|
1894 |
|
|
procedure LoadFromFile(const FileName: WideString);
|
1895 |
|
|
procedure SaveToFile(const FileName: WideString);
|
1896 |
|
|
function License(const Key: WideString): WordBool;
|
1897 |
|
|
property DefaultInterface: IStRegEx read GetDefaultInterface;
|
1898 |
|
|
property LineCount: Integer read Get_LineCount;
|
1899 |
|
|
property LinesMatched: Integer read Get_LinesMatched;
|
1900 |
|
|
property LinesPerSecond: Integer read Get_LinesPerSecond;
|
1901 |
|
|
property LinesReplaced: Integer read Get_LinesReplaced;
|
1902 |
|
|
property LinesSelected: Integer read Get_LinesSelected;
|
1903 |
|
|
property Stream: OleVariant read Get_Stream write Set_Stream;
|
1904 |
|
|
property Avoid: WordBool read Get_Avoid write Set_Avoid;
|
1905 |
|
|
property IgnoreCase: WordBool read Get_IgnoreCase write Set_IgnoreCase;
|
1906 |
|
|
property InFixedLineLength: Integer read Get_InFixedLineLength write Set_InFixedLineLength;
|
1907 |
|
|
property InLineTermChar: WideString read Get_InLineTermChar write Set_InLineTermChar;
|
1908 |
|
|
property InLineTerminator: TStLineTerminator read Get_InLineTerminator write Set_InLineTerminator;
|
1909 |
|
|
property LineNumbers: WordBool read Get_LineNumbers write Set_LineNumbers;
|
1910 |
|
|
property MatchPattern: IStStringList read Get_MatchPattern write Set_MatchPattern;
|
1911 |
|
|
property OutFixedLineLength: Integer read Get_OutFixedLineLength write Set_OutFixedLineLength;
|
1912 |
|
|
property OutLineTermChar: WideString read Get_OutLineTermChar write Set_OutLineTermChar;
|
1913 |
|
|
property OutLineTerminitor: Integer read Get_OutLineTerminitor write Set_OutLineTerminitor;
|
1914 |
|
|
property OutputOptions: TStOutputOption read Get_OutputOptions write Set_OutputOptions;
|
1915 |
|
|
property ReplacePattern: IStStringList read Get_ReplacePattern write Set_ReplacePattern;
|
1916 |
|
|
property SelAvoidPattern: IStStringList read Get_SelAvoidPattern write Set_SelAvoidPattern;
|
1917 |
|
|
published
|
1918 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1919 |
|
|
property Server: TStRegExProperties read GetServerProperties;
|
1920 |
|
|
{$ENDIF}
|
1921 |
|
|
property OnProgress: TStRegExOnProgress read FOnProgress write FOnProgress;
|
1922 |
|
|
end;
|
1923 |
|
|
|
1924 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
1925 |
|
|
// *********************************************************************//
|
1926 |
|
|
// OLE Server Properties Proxy Class
|
1927 |
|
|
// Server Object : TStRegEx
|
1928 |
|
|
// (This object is used by the IDE's Property Inspector to allow editing
|
1929 |
|
|
// of the properties of this server)
|
1930 |
|
|
// *********************************************************************//
|
1931 |
|
|
TStRegExProperties = class(TPersistent)
|
1932 |
|
|
private
|
1933 |
|
|
FServer: TStRegEx;
|
1934 |
|
|
function GetDefaultInterface: IStRegEx;
|
1935 |
|
|
constructor Create(AServer: TStRegEx);
|
1936 |
|
|
protected
|
1937 |
|
|
function Get_Avoid: WordBool;
|
1938 |
|
|
procedure Set_Avoid(Value: WordBool);
|
1939 |
|
|
function Get_IgnoreCase: WordBool;
|
1940 |
|
|
procedure Set_IgnoreCase(Value: WordBool);
|
1941 |
|
|
function Get_InFixedLineLength: Integer;
|
1942 |
|
|
procedure Set_InFixedLineLength(Value: Integer);
|
1943 |
|
|
function Get_InLineTermChar: WideString;
|
1944 |
|
|
procedure Set_InLineTermChar(const Value: WideString);
|
1945 |
|
|
function Get_InLineTerminator: TStLineTerminator;
|
1946 |
|
|
procedure Set_InLineTerminator(Value: TStLineTerminator);
|
1947 |
|
|
function Get_LineCount: Integer;
|
1948 |
|
|
function Get_LineNumbers: WordBool;
|
1949 |
|
|
procedure Set_LineNumbers(Value: WordBool);
|
1950 |
|
|
function Get_LinesMatched: Integer;
|
1951 |
|
|
function Get_LinesPerSecond: Integer;
|
1952 |
|
|
function Get_LinesReplaced: Integer;
|
1953 |
|
|
function Get_LinesSelected: Integer;
|
1954 |
|
|
function Get_MatchPattern: IStStringList;
|
1955 |
|
|
procedure Set_MatchPattern(const Value: IStStringList);
|
1956 |
|
|
function Get_OutFixedLineLength: Integer;
|
1957 |
|
|
procedure Set_OutFixedLineLength(Value: Integer);
|
1958 |
|
|
function Get_OutLineTermChar: WideString;
|
1959 |
|
|
procedure Set_OutLineTermChar(const Value: WideString);
|
1960 |
|
|
function Get_OutLineTerminitor: Integer;
|
1961 |
|
|
procedure Set_OutLineTerminitor(Value: Integer);
|
1962 |
|
|
function Get_OutputOptions: TStOutputOption;
|
1963 |
|
|
procedure Set_OutputOptions(Value: TStOutputOption);
|
1964 |
|
|
function Get_ReplacePattern: IStStringList;
|
1965 |
|
|
procedure Set_ReplacePattern(const Value: IStStringList);
|
1966 |
|
|
function Get_SelAvoidPattern: IStStringList;
|
1967 |
|
|
procedure Set_SelAvoidPattern(const Value: IStStringList);
|
1968 |
|
|
function Get_Stream: OleVariant;
|
1969 |
|
|
procedure Set_Stream(Value: OleVariant);
|
1970 |
|
|
public
|
1971 |
|
|
property DefaultInterface: IStRegEx read GetDefaultInterface;
|
1972 |
|
|
published
|
1973 |
|
|
property Avoid: WordBool read Get_Avoid write Set_Avoid;
|
1974 |
|
|
property IgnoreCase: WordBool read Get_IgnoreCase write Set_IgnoreCase;
|
1975 |
|
|
property InFixedLineLength: Integer read Get_InFixedLineLength write Set_InFixedLineLength;
|
1976 |
|
|
property InLineTermChar: WideString read Get_InLineTermChar write Set_InLineTermChar;
|
1977 |
|
|
property InLineTerminator: TStLineTerminator read Get_InLineTerminator write Set_InLineTerminator;
|
1978 |
|
|
property LineNumbers: WordBool read Get_LineNumbers write Set_LineNumbers;
|
1979 |
|
|
property MatchPattern: IStStringList read Get_MatchPattern write Set_MatchPattern;
|
1980 |
|
|
property OutFixedLineLength: Integer read Get_OutFixedLineLength write Set_OutFixedLineLength;
|
1981 |
|
|
property OutLineTermChar: WideString read Get_OutLineTermChar write Set_OutLineTermChar;
|
1982 |
|
|
property OutLineTerminitor: Integer read Get_OutLineTerminitor write Set_OutLineTerminitor;
|
1983 |
|
|
property OutputOptions: TStOutputOption read Get_OutputOptions write Set_OutputOptions;
|
1984 |
|
|
property ReplacePattern: IStStringList read Get_ReplacePattern write Set_ReplacePattern;
|
1985 |
|
|
property SelAvoidPattern: IStStringList read Get_SelAvoidPattern write Set_SelAvoidPattern;
|
1986 |
|
|
end;
|
1987 |
|
|
{$ENDIF}
|
1988 |
|
|
|
1989 |
|
|
|
1990 |
|
|
// *********************************************************************//
|
1991 |
|
|
// The Class CoStExpr provides a Create and CreateRemote method to
|
1992 |
|
|
// create instances of the default interface IStExpr exposed by
|
1993 |
|
|
// the CoClass StExpr. The functions are intended to be used by
|
1994 |
|
|
// clients wishing to automate the CoClass objects exposed by the
|
1995 |
|
|
// server of this typelibrary.
|
1996 |
|
|
// *********************************************************************//
|
1997 |
|
|
CoStExpr = class
|
1998 |
|
|
class function Create: IStExpr;
|
1999 |
|
|
class function CreateRemote(const MachineName: string): IStExpr;
|
2000 |
|
|
end;
|
2001 |
|
|
|
2002 |
|
|
|
2003 |
|
|
// *********************************************************************//
|
2004 |
|
|
// OLE Server Proxy class declaration
|
2005 |
|
|
// Server Object : TStExpr
|
2006 |
|
|
// Help String : StExpr Object
|
2007 |
|
|
// Default Interface: IStExpr
|
2008 |
|
|
// Def. Intf. DISP? : No
|
2009 |
|
|
// Event Interface:
|
2010 |
|
|
// TypeFlags : (2) CanCreate
|
2011 |
|
|
// *********************************************************************//
|
2012 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2013 |
|
|
TStExprProperties= class;
|
2014 |
|
|
{$ENDIF}
|
2015 |
|
|
TStExpr = class(TOleServer)
|
2016 |
|
|
private
|
2017 |
|
|
FIntf: IStExpr;
|
2018 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2019 |
|
|
FProps: TStExprProperties;
|
2020 |
|
|
function GetServerProperties: TStExprProperties;
|
2021 |
|
|
{$ENDIF}
|
2022 |
|
|
function GetDefaultInterface: IStExpr;
|
2023 |
|
|
protected
|
2024 |
|
|
procedure InitServerData; override;
|
2025 |
|
|
public
|
2026 |
|
|
constructor Create(AOwner: TComponent); override;
|
2027 |
|
|
destructor Destroy; override;
|
2028 |
|
|
procedure Connect; override;
|
2029 |
|
|
procedure ConnectTo(svrIntf: IStExpr);
|
2030 |
|
|
procedure Disconnect; override;
|
2031 |
|
|
function AnalyzeExpr(const Expr: WideString): Double;
|
2032 |
|
|
function License(const Key: WideString): WordBool;
|
2033 |
|
|
property DefaultInterface: IStExpr read GetDefaultInterface;
|
2034 |
|
|
published
|
2035 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2036 |
|
|
property Server: TStExprProperties read GetServerProperties;
|
2037 |
|
|
{$ENDIF}
|
2038 |
|
|
end;
|
2039 |
|
|
|
2040 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2041 |
|
|
// *********************************************************************//
|
2042 |
|
|
// OLE Server Properties Proxy Class
|
2043 |
|
|
// Server Object : TStExpr
|
2044 |
|
|
// (This object is used by the IDE's Property Inspector to allow editing
|
2045 |
|
|
// of the properties of this server)
|
2046 |
|
|
// *********************************************************************//
|
2047 |
|
|
TStExprProperties = class(TPersistent)
|
2048 |
|
|
private
|
2049 |
|
|
FServer: TStExpr;
|
2050 |
|
|
function GetDefaultInterface: IStExpr;
|
2051 |
|
|
constructor Create(AServer: TStExpr);
|
2052 |
|
|
protected
|
2053 |
|
|
public
|
2054 |
|
|
property DefaultInterface: IStExpr read GetDefaultInterface;
|
2055 |
|
|
published
|
2056 |
|
|
end;
|
2057 |
|
|
{$ENDIF}
|
2058 |
|
|
|
2059 |
|
|
|
2060 |
|
|
// *********************************************************************//
|
2061 |
|
|
// The Class CoStMime provides a Create and CreateRemote method to
|
2062 |
|
|
// create instances of the default interface IStMime exposed by
|
2063 |
|
|
// the CoClass StMime. The functions are intended to be used by
|
2064 |
|
|
// clients wishing to automate the CoClass objects exposed by the
|
2065 |
|
|
// server of this typelibrary.
|
2066 |
|
|
// *********************************************************************//
|
2067 |
|
|
CoStMime = class
|
2068 |
|
|
class function Create: IStMime;
|
2069 |
|
|
class function CreateRemote(const MachineName: string): IStMime;
|
2070 |
|
|
end;
|
2071 |
|
|
|
2072 |
|
|
TStMimeOnProgress = procedure(Sender: TObject; Status: TStConvertState; PercentDone: Byte) of object;
|
2073 |
|
|
TStMimeOnSaveAs = procedure(Sender: TObject; var FileName: OleVariant) of object;
|
2074 |
|
|
|
2075 |
|
|
|
2076 |
|
|
// *********************************************************************//
|
2077 |
|
|
// OLE Server Proxy class declaration
|
2078 |
|
|
// Server Object : TStMime
|
2079 |
|
|
// Help String : StMime Object
|
2080 |
|
|
// Default Interface: IStMime
|
2081 |
|
|
// Def. Intf. DISP? : No
|
2082 |
|
|
// Event Interface: IStMimeEvents
|
2083 |
|
|
// TypeFlags : (2) CanCreate
|
2084 |
|
|
// *********************************************************************//
|
2085 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2086 |
|
|
TStMimeProperties= class;
|
2087 |
|
|
{$ENDIF}
|
2088 |
|
|
TStMime = class(TOleServer)
|
2089 |
|
|
private
|
2090 |
|
|
FOnProgress: TStMimeOnProgress;
|
2091 |
|
|
FOnSaveAs: TStMimeOnSaveAs;
|
2092 |
|
|
FIntf: IStMime;
|
2093 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2094 |
|
|
FProps: TStMimeProperties;
|
2095 |
|
|
function GetServerProperties: TStMimeProperties;
|
2096 |
|
|
{$ENDIF}
|
2097 |
|
|
function GetDefaultInterface: IStMime;
|
2098 |
|
|
protected
|
2099 |
|
|
procedure InitServerData; override;
|
2100 |
|
|
procedure InvokeEvent(DispID: TDispID; var Params: TVariantArray); override;
|
2101 |
|
|
function Get_Attachments: IStStringList;
|
2102 |
|
|
function Get_Boundry: WideString;
|
2103 |
|
|
procedure Set_Boundry(const Value: WideString);
|
2104 |
|
|
function Get_Encoding: WideString;
|
2105 |
|
|
procedure Set_Encoding(const Value: WideString);
|
2106 |
|
|
function Get_ContentDescription: WideString;
|
2107 |
|
|
procedure Set_ContentDescription(const Value: WideString);
|
2108 |
|
|
function Get_ContentDisposition: WideString;
|
2109 |
|
|
procedure Set_ContentDisposition(const Value: WideString);
|
2110 |
|
|
function Get_ContentType: WideString;
|
2111 |
|
|
procedure Set_ContentType(const Value: WideString);
|
2112 |
|
|
function Get_Directory: WideString;
|
2113 |
|
|
procedure Set_Directory(const Value: WideString);
|
2114 |
|
|
function Get_MimeHeaders: WordBool;
|
2115 |
|
|
procedure Set_MimeHeaders(Value: WordBool);
|
2116 |
|
|
function Get_Stream: OleVariant;
|
2117 |
|
|
procedure Set_Stream(Value: OleVariant);
|
2118 |
|
|
public
|
2119 |
|
|
constructor Create(AOwner: TComponent); override;
|
2120 |
|
|
destructor Destroy; override;
|
2121 |
|
|
procedure Connect; override;
|
2122 |
|
|
procedure ConnectTo(svrIntf: IStMime);
|
2123 |
|
|
procedure Disconnect; override;
|
2124 |
|
|
procedure AddFileAttachment(const FileName: WideString);
|
2125 |
|
|
procedure AddStreamAttachment(Stream: OleVariant; const FileName: WideString);
|
2126 |
|
|
procedure ExtractAttachment(const Attachment: WideString);
|
2127 |
|
|
procedure ExtractAttachmentIndex(Index: Integer);
|
2128 |
|
|
procedure ExtractToStream(Index: Integer; Stream: OleVariant);
|
2129 |
|
|
procedure ExtractAttachments;
|
2130 |
|
|
procedure GetTag(const Description: WideString);
|
2131 |
|
|
function License(const Key: WideString): WordBool;
|
2132 |
|
|
property DefaultInterface: IStMime read GetDefaultInterface;
|
2133 |
|
|
property Attachments: IStStringList read Get_Attachments;
|
2134 |
|
|
property Stream: OleVariant read Get_Stream write Set_Stream;
|
2135 |
|
|
property Boundry: WideString read Get_Boundry write Set_Boundry;
|
2136 |
|
|
property Encoding: WideString read Get_Encoding write Set_Encoding;
|
2137 |
|
|
property ContentDescription: WideString read Get_ContentDescription write Set_ContentDescription;
|
2138 |
|
|
property ContentDisposition: WideString read Get_ContentDisposition write Set_ContentDisposition;
|
2139 |
|
|
property ContentType: WideString read Get_ContentType write Set_ContentType;
|
2140 |
|
|
property Directory: WideString read Get_Directory write Set_Directory;
|
2141 |
|
|
property MimeHeaders: WordBool read Get_MimeHeaders write Set_MimeHeaders;
|
2142 |
|
|
published
|
2143 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2144 |
|
|
property Server: TStMimeProperties read GetServerProperties;
|
2145 |
|
|
{$ENDIF}
|
2146 |
|
|
property OnProgress: TStMimeOnProgress read FOnProgress write FOnProgress;
|
2147 |
|
|
property OnSaveAs: TStMimeOnSaveAs read FOnSaveAs write FOnSaveAs;
|
2148 |
|
|
end;
|
2149 |
|
|
|
2150 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2151 |
|
|
// *********************************************************************//
|
2152 |
|
|
// OLE Server Properties Proxy Class
|
2153 |
|
|
// Server Object : TStMime
|
2154 |
|
|
// (This object is used by the IDE's Property Inspector to allow editing
|
2155 |
|
|
// of the properties of this server)
|
2156 |
|
|
// *********************************************************************//
|
2157 |
|
|
TStMimeProperties = class(TPersistent)
|
2158 |
|
|
private
|
2159 |
|
|
FServer: TStMime;
|
2160 |
|
|
function GetDefaultInterface: IStMime;
|
2161 |
|
|
constructor Create(AServer: TStMime);
|
2162 |
|
|
protected
|
2163 |
|
|
function Get_Attachments: IStStringList;
|
2164 |
|
|
function Get_Boundry: WideString;
|
2165 |
|
|
procedure Set_Boundry(const Value: WideString);
|
2166 |
|
|
function Get_Encoding: WideString;
|
2167 |
|
|
procedure Set_Encoding(const Value: WideString);
|
2168 |
|
|
function Get_ContentDescription: WideString;
|
2169 |
|
|
procedure Set_ContentDescription(const Value: WideString);
|
2170 |
|
|
function Get_ContentDisposition: WideString;
|
2171 |
|
|
procedure Set_ContentDisposition(const Value: WideString);
|
2172 |
|
|
function Get_ContentType: WideString;
|
2173 |
|
|
procedure Set_ContentType(const Value: WideString);
|
2174 |
|
|
function Get_Directory: WideString;
|
2175 |
|
|
procedure Set_Directory(const Value: WideString);
|
2176 |
|
|
function Get_MimeHeaders: WordBool;
|
2177 |
|
|
procedure Set_MimeHeaders(Value: WordBool);
|
2178 |
|
|
function Get_Stream: OleVariant;
|
2179 |
|
|
procedure Set_Stream(Value: OleVariant);
|
2180 |
|
|
public
|
2181 |
|
|
property DefaultInterface: IStMime read GetDefaultInterface;
|
2182 |
|
|
published
|
2183 |
|
|
property Boundry: WideString read Get_Boundry write Set_Boundry;
|
2184 |
|
|
property Encoding: WideString read Get_Encoding write Set_Encoding;
|
2185 |
|
|
property ContentDescription: WideString read Get_ContentDescription write Set_ContentDescription;
|
2186 |
|
|
property ContentDisposition: WideString read Get_ContentDisposition write Set_ContentDisposition;
|
2187 |
|
|
property ContentType: WideString read Get_ContentType write Set_ContentType;
|
2188 |
|
|
property Directory: WideString read Get_Directory write Set_Directory;
|
2189 |
|
|
property MimeHeaders: WordBool read Get_MimeHeaders write Set_MimeHeaders;
|
2190 |
|
|
end;
|
2191 |
|
|
{$ENDIF}
|
2192 |
|
|
|
2193 |
|
|
|
2194 |
|
|
// *********************************************************************//
|
2195 |
|
|
// The Class CoStRegINI provides a Create and CreateRemote method to
|
2196 |
|
|
// create instances of the default interface IStRegINI exposed by
|
2197 |
|
|
// the CoClass StRegINI. The functions are intended to be used by
|
2198 |
|
|
// clients wishing to automate the CoClass objects exposed by the
|
2199 |
|
|
// server of this typelibrary.
|
2200 |
|
|
// *********************************************************************//
|
2201 |
|
|
CoStRegINI = class
|
2202 |
|
|
class function Create: IStRegINI;
|
2203 |
|
|
class function CreateRemote(const MachineName: string): IStRegINI;
|
2204 |
|
|
end;
|
2205 |
|
|
|
2206 |
|
|
|
2207 |
|
|
// *********************************************************************//
|
2208 |
|
|
// OLE Server Proxy class declaration
|
2209 |
|
|
// Server Object : TStRegINI
|
2210 |
|
|
// Help String : StRegINI Object
|
2211 |
|
|
// Default Interface: IStRegINI
|
2212 |
|
|
// Def. Intf. DISP? : No
|
2213 |
|
|
// Event Interface:
|
2214 |
|
|
// TypeFlags : (2) CanCreate
|
2215 |
|
|
// *********************************************************************//
|
2216 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2217 |
|
|
TStRegINIProperties= class;
|
2218 |
|
|
{$ENDIF}
|
2219 |
|
|
TStRegINI = class(TOleServer)
|
2220 |
|
|
private
|
2221 |
|
|
FIntf: IStRegINI;
|
2222 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2223 |
|
|
FProps: TStRegINIProperties;
|
2224 |
|
|
function GetServerProperties: TStRegINIProperties;
|
2225 |
|
|
{$ENDIF}
|
2226 |
|
|
function GetDefaultInterface: IStRegINI;
|
2227 |
|
|
protected
|
2228 |
|
|
procedure InitServerData; override;
|
2229 |
|
|
function Get_CurrentSubKey: WideString;
|
2230 |
|
|
procedure Set_CurrentSubKey(const Value: WideString);
|
2231 |
|
|
function Get_IsIniFile: WordBool;
|
2232 |
|
|
function Get_Primary: WideString;
|
2233 |
|
|
procedure Set_Primary(const Value: WideString);
|
2234 |
|
|
function Get_SubKeys: IStRegINISubKeys;
|
2235 |
|
|
function Get_Values: IStRegINIValues;
|
2236 |
|
|
public
|
2237 |
|
|
constructor Create(AOwner: TComponent); override;
|
2238 |
|
|
destructor Destroy; override;
|
2239 |
|
|
procedure Connect; override;
|
2240 |
|
|
procedure ConnectTo(svrIntf: IStRegINI);
|
2241 |
|
|
procedure Disconnect; override;
|
2242 |
|
|
procedure Open(const RootName: WideString; IsIniFile: WordBool);
|
2243 |
|
|
procedure CreateKey(const KeyName: WideString);
|
2244 |
|
|
procedure DeleteKey(const KeyName: WideString; DeleteSubKeys: WordBool);
|
2245 |
|
|
procedure DeleteValue(const ValueName: WideString);
|
2246 |
|
|
function KeyExists(const KeyName: WideString): WordBool;
|
2247 |
|
|
function QueryKey: IStRegINIQueryKeyInfo;
|
2248 |
|
|
function ReadBoolean(const ValueName: WideString; Default: WordBool): WordBool;
|
2249 |
|
|
function ReadDate(const ValueName: WideString; Default: TDateTime): TDateTime;
|
2250 |
|
|
function ReadDateTime(const ValueName: WideString; Default: TDateTime): TDateTime;
|
2251 |
|
|
function ReadInteger(const ValueName: WideString; Default: Integer): Integer;
|
2252 |
|
|
function ReadString(const ValueName: WideString; const Default: WideString): WideString;
|
2253 |
|
|
function ReadTime(const ValueName: WideString; Default: TDateTime): TDateTime;
|
2254 |
|
|
procedure WriteBoolean(const ValueName: WideString; Value: WordBool);
|
2255 |
|
|
procedure WriteDate(const ValueName: WideString; Value: TDateTime);
|
2256 |
|
|
procedure WriteDateTime(const ValueName: WideString; Value: TDateTime);
|
2257 |
|
|
procedure WriteInteger(const ValueName: WideString; Value: Integer);
|
2258 |
|
|
procedure WriteString(const ValueName: WideString; const Value: WideString);
|
2259 |
|
|
procedure WriteTime(const ValueName: WideString; Value: TDateTime);
|
2260 |
|
|
function License(const Key: WideString): WordBool;
|
2261 |
|
|
property DefaultInterface: IStRegINI read GetDefaultInterface;
|
2262 |
|
|
property IsIniFile: WordBool read Get_IsIniFile;
|
2263 |
|
|
property SubKeys: IStRegINISubKeys read Get_SubKeys;
|
2264 |
|
|
property Values: IStRegINIValues read Get_Values;
|
2265 |
|
|
property CurrentSubKey: WideString read Get_CurrentSubKey write Set_CurrentSubKey;
|
2266 |
|
|
property Primary: WideString read Get_Primary write Set_Primary;
|
2267 |
|
|
published
|
2268 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2269 |
|
|
property Server: TStRegINIProperties read GetServerProperties;
|
2270 |
|
|
{$ENDIF}
|
2271 |
|
|
end;
|
2272 |
|
|
|
2273 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2274 |
|
|
// *********************************************************************//
|
2275 |
|
|
// OLE Server Properties Proxy Class
|
2276 |
|
|
// Server Object : TStRegINI
|
2277 |
|
|
// (This object is used by the IDE's Property Inspector to allow editing
|
2278 |
|
|
// of the properties of this server)
|
2279 |
|
|
// *********************************************************************//
|
2280 |
|
|
TStRegINIProperties = class(TPersistent)
|
2281 |
|
|
private
|
2282 |
|
|
FServer: TStRegINI;
|
2283 |
|
|
function GetDefaultInterface: IStRegINI;
|
2284 |
|
|
constructor Create(AServer: TStRegINI);
|
2285 |
|
|
protected
|
2286 |
|
|
function Get_CurrentSubKey: WideString;
|
2287 |
|
|
procedure Set_CurrentSubKey(const Value: WideString);
|
2288 |
|
|
function Get_IsIniFile: WordBool;
|
2289 |
|
|
function Get_Primary: WideString;
|
2290 |
|
|
procedure Set_Primary(const Value: WideString);
|
2291 |
|
|
function Get_SubKeys: IStRegINISubKeys;
|
2292 |
|
|
function Get_Values: IStRegINIValues;
|
2293 |
|
|
public
|
2294 |
|
|
property DefaultInterface: IStRegINI read GetDefaultInterface;
|
2295 |
|
|
published
|
2296 |
|
|
property CurrentSubKey: WideString read Get_CurrentSubKey write Set_CurrentSubKey;
|
2297 |
|
|
property Primary: WideString read Get_Primary write Set_Primary;
|
2298 |
|
|
end;
|
2299 |
|
|
{$ENDIF}
|
2300 |
|
|
|
2301 |
|
|
|
2302 |
|
|
// *********************************************************************//
|
2303 |
|
|
// The Class CoStFin provides a Create and CreateRemote method to
|
2304 |
|
|
// create instances of the default interface IStFin exposed by
|
2305 |
|
|
// the CoClass StFin. The functions are intended to be used by
|
2306 |
|
|
// clients wishing to automate the CoClass objects exposed by the
|
2307 |
|
|
// server of this typelibrary.
|
2308 |
|
|
// *********************************************************************//
|
2309 |
|
|
CoStFin = class
|
2310 |
|
|
class function Create: IStFin;
|
2311 |
|
|
class function CreateRemote(const MachineName: string): IStFin;
|
2312 |
|
|
end;
|
2313 |
|
|
|
2314 |
|
|
|
2315 |
|
|
// *********************************************************************//
|
2316 |
|
|
// OLE Server Proxy class declaration
|
2317 |
|
|
// Server Object : TStFin
|
2318 |
|
|
// Help String : StFin Object
|
2319 |
|
|
// Default Interface: IStFin
|
2320 |
|
|
// Def. Intf. DISP? : No
|
2321 |
|
|
// Event Interface:
|
2322 |
|
|
// TypeFlags : (2) CanCreate
|
2323 |
|
|
// *********************************************************************//
|
2324 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2325 |
|
|
TStFinProperties= class;
|
2326 |
|
|
{$ENDIF}
|
2327 |
|
|
TStFin = class(TOleServer)
|
2328 |
|
|
private
|
2329 |
|
|
FIntf: IStFin;
|
2330 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2331 |
|
|
FProps: TStFinProperties;
|
2332 |
|
|
function GetServerProperties: TStFinProperties;
|
2333 |
|
|
{$ENDIF}
|
2334 |
|
|
function GetDefaultInterface: IStFin;
|
2335 |
|
|
protected
|
2336 |
|
|
procedure InitServerData; override;
|
2337 |
|
|
public
|
2338 |
|
|
constructor Create(AOwner: TComponent); override;
|
2339 |
|
|
destructor Destroy; override;
|
2340 |
|
|
procedure Connect; override;
|
2341 |
|
|
procedure ConnectTo(svrIntf: IStFin);
|
2342 |
|
|
procedure Disconnect; override;
|
2343 |
|
|
function IsCardValid(const S: WideString): WordBool;
|
2344 |
|
|
function License(const Key: WideString): WordBool;
|
2345 |
|
|
property DefaultInterface: IStFin read GetDefaultInterface;
|
2346 |
|
|
published
|
2347 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2348 |
|
|
property Server: TStFinProperties read GetServerProperties;
|
2349 |
|
|
{$ENDIF}
|
2350 |
|
|
end;
|
2351 |
|
|
|
2352 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2353 |
|
|
// *********************************************************************//
|
2354 |
|
|
// OLE Server Properties Proxy Class
|
2355 |
|
|
// Server Object : TStFin
|
2356 |
|
|
// (This object is used by the IDE's Property Inspector to allow editing
|
2357 |
|
|
// of the properties of this server)
|
2358 |
|
|
// *********************************************************************//
|
2359 |
|
|
TStFinProperties = class(TPersistent)
|
2360 |
|
|
private
|
2361 |
|
|
FServer: TStFin;
|
2362 |
|
|
function GetDefaultInterface: IStFin;
|
2363 |
|
|
constructor Create(AServer: TStFin);
|
2364 |
|
|
protected
|
2365 |
|
|
public
|
2366 |
|
|
property DefaultInterface: IStFin read GetDefaultInterface;
|
2367 |
|
|
published
|
2368 |
|
|
end;
|
2369 |
|
|
{$ENDIF}
|
2370 |
|
|
|
2371 |
|
|
|
2372 |
|
|
// *********************************************************************//
|
2373 |
|
|
// The Class CoStRegINIQueryKeyInfo provides a Create and CreateRemote method to
|
2374 |
|
|
// create instances of the default interface IStRegINIQueryKeyInfo exposed by
|
2375 |
|
|
// the CoClass StRegINIQueryKeyInfo. The functions are intended to be used by
|
2376 |
|
|
// clients wishing to automate the CoClass objects exposed by the
|
2377 |
|
|
// server of this typelibrary.
|
2378 |
|
|
// *********************************************************************//
|
2379 |
|
|
CoStRegINIQueryKeyInfo = class
|
2380 |
|
|
class function Create: IStRegINIQueryKeyInfo;
|
2381 |
|
|
class function CreateRemote(const MachineName: string): IStRegINIQueryKeyInfo;
|
2382 |
|
|
end;
|
2383 |
|
|
|
2384 |
|
|
|
2385 |
|
|
// *********************************************************************//
|
2386 |
|
|
// OLE Server Proxy class declaration
|
2387 |
|
|
// Server Object : TStRegINIQueryKeyInfo
|
2388 |
|
|
// Help String : StRegINIQueryKeyInfo Object
|
2389 |
|
|
// Default Interface: IStRegINIQueryKeyInfo
|
2390 |
|
|
// Def. Intf. DISP? : No
|
2391 |
|
|
// Event Interface:
|
2392 |
|
|
// TypeFlags : (2) CanCreate
|
2393 |
|
|
// *********************************************************************//
|
2394 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2395 |
|
|
TStRegINIQueryKeyInfoProperties= class;
|
2396 |
|
|
{$ENDIF}
|
2397 |
|
|
TStRegINIQueryKeyInfo = class(TOleServer)
|
2398 |
|
|
private
|
2399 |
|
|
FIntf: IStRegINIQueryKeyInfo;
|
2400 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2401 |
|
|
FProps: TStRegINIQueryKeyInfoProperties;
|
2402 |
|
|
function GetServerProperties: TStRegINIQueryKeyInfoProperties;
|
2403 |
|
|
{$ENDIF}
|
2404 |
|
|
function GetDefaultInterface: IStRegINIQueryKeyInfo;
|
2405 |
|
|
protected
|
2406 |
|
|
procedure InitServerData; override;
|
2407 |
|
|
function Get_QIClassName: WideString;
|
2408 |
|
|
function Get_QIFileTime: TDateTime;
|
2409 |
|
|
function Get_QIKey: Integer;
|
2410 |
|
|
function Get_QIMaxCNLen: Integer;
|
2411 |
|
|
function Get_QIMaxDataLen: Integer;
|
2412 |
|
|
function Get_QIMaxSKNLen: Integer;
|
2413 |
|
|
function Get_QIMaxVNLen: Integer;
|
2414 |
|
|
function Get_QINumSubKeys: Integer;
|
2415 |
|
|
function Get_QINumValues: Integer;
|
2416 |
|
|
function Get_QISDescLen: Integer;
|
2417 |
|
|
public
|
2418 |
|
|
constructor Create(AOwner: TComponent); override;
|
2419 |
|
|
destructor Destroy; override;
|
2420 |
|
|
procedure Connect; override;
|
2421 |
|
|
procedure ConnectTo(svrIntf: IStRegINIQueryKeyInfo);
|
2422 |
|
|
procedure Disconnect; override;
|
2423 |
|
|
property DefaultInterface: IStRegINIQueryKeyInfo read GetDefaultInterface;
|
2424 |
|
|
property QIClassName: WideString read Get_QIClassName;
|
2425 |
|
|
property QIFileTime: TDateTime read Get_QIFileTime;
|
2426 |
|
|
property QIKey: Integer read Get_QIKey;
|
2427 |
|
|
property QIMaxCNLen: Integer read Get_QIMaxCNLen;
|
2428 |
|
|
property QIMaxDataLen: Integer read Get_QIMaxDataLen;
|
2429 |
|
|
property QIMaxSKNLen: Integer read Get_QIMaxSKNLen;
|
2430 |
|
|
property QIMaxVNLen: Integer read Get_QIMaxVNLen;
|
2431 |
|
|
property QINumSubKeys: Integer read Get_QINumSubKeys;
|
2432 |
|
|
property QINumValues: Integer read Get_QINumValues;
|
2433 |
|
|
property QISDescLen: Integer read Get_QISDescLen;
|
2434 |
|
|
published
|
2435 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2436 |
|
|
property Server: TStRegINIQueryKeyInfoProperties read GetServerProperties;
|
2437 |
|
|
{$ENDIF}
|
2438 |
|
|
end;
|
2439 |
|
|
|
2440 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2441 |
|
|
// *********************************************************************//
|
2442 |
|
|
// OLE Server Properties Proxy Class
|
2443 |
|
|
// Server Object : TStRegINIQueryKeyInfo
|
2444 |
|
|
// (This object is used by the IDE's Property Inspector to allow editing
|
2445 |
|
|
// of the properties of this server)
|
2446 |
|
|
// *********************************************************************//
|
2447 |
|
|
TStRegINIQueryKeyInfoProperties = class(TPersistent)
|
2448 |
|
|
private
|
2449 |
|
|
FServer: TStRegINIQueryKeyInfo;
|
2450 |
|
|
function GetDefaultInterface: IStRegINIQueryKeyInfo;
|
2451 |
|
|
constructor Create(AServer: TStRegINIQueryKeyInfo);
|
2452 |
|
|
protected
|
2453 |
|
|
function Get_QIClassName: WideString;
|
2454 |
|
|
function Get_QIFileTime: TDateTime;
|
2455 |
|
|
function Get_QIKey: Integer;
|
2456 |
|
|
function Get_QIMaxCNLen: Integer;
|
2457 |
|
|
function Get_QIMaxDataLen: Integer;
|
2458 |
|
|
function Get_QIMaxSKNLen: Integer;
|
2459 |
|
|
function Get_QIMaxVNLen: Integer;
|
2460 |
|
|
function Get_QINumSubKeys: Integer;
|
2461 |
|
|
function Get_QINumValues: Integer;
|
2462 |
|
|
function Get_QISDescLen: Integer;
|
2463 |
|
|
public
|
2464 |
|
|
property DefaultInterface: IStRegINIQueryKeyInfo read GetDefaultInterface;
|
2465 |
|
|
published
|
2466 |
|
|
end;
|
2467 |
|
|
{$ENDIF}
|
2468 |
|
|
|
2469 |
|
|
|
2470 |
|
|
// *********************************************************************//
|
2471 |
|
|
// The Class CoStRegINISubKeys provides a Create and CreateRemote method to
|
2472 |
|
|
// create instances of the default interface IStRegINISubKeys exposed by
|
2473 |
|
|
// the CoClass StRegINISubKeys. The functions are intended to be used by
|
2474 |
|
|
// clients wishing to automate the CoClass objects exposed by the
|
2475 |
|
|
// server of this typelibrary.
|
2476 |
|
|
// *********************************************************************//
|
2477 |
|
|
CoStRegINISubKeys = class
|
2478 |
|
|
class function Create: IStRegINISubKeys;
|
2479 |
|
|
class function CreateRemote(const MachineName: string): IStRegINISubKeys;
|
2480 |
|
|
end;
|
2481 |
|
|
|
2482 |
|
|
|
2483 |
|
|
// *********************************************************************//
|
2484 |
|
|
// OLE Server Proxy class declaration
|
2485 |
|
|
// Server Object : TStRegINISubKeys
|
2486 |
|
|
// Help String : StRegINISubKeys Object
|
2487 |
|
|
// Default Interface: IStRegINISubKeys
|
2488 |
|
|
// Def. Intf. DISP? : No
|
2489 |
|
|
// Event Interface:
|
2490 |
|
|
// TypeFlags : (2) CanCreate
|
2491 |
|
|
// *********************************************************************//
|
2492 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2493 |
|
|
TStRegINISubKeysProperties= class;
|
2494 |
|
|
{$ENDIF}
|
2495 |
|
|
TStRegINISubKeys = class(TOleServer)
|
2496 |
|
|
private
|
2497 |
|
|
FIntf: IStRegINISubKeys;
|
2498 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2499 |
|
|
FProps: TStRegINISubKeysProperties;
|
2500 |
|
|
function GetServerProperties: TStRegINISubKeysProperties;
|
2501 |
|
|
{$ENDIF}
|
2502 |
|
|
function GetDefaultInterface: IStRegINISubKeys;
|
2503 |
|
|
protected
|
2504 |
|
|
procedure InitServerData; override;
|
2505 |
|
|
function Get__NewEnum: IUnknown;
|
2506 |
|
|
function Get_Item(Index: Integer): IStRegINISubKey;
|
2507 |
|
|
function Get_Count: Integer;
|
2508 |
|
|
public
|
2509 |
|
|
constructor Create(AOwner: TComponent); override;
|
2510 |
|
|
destructor Destroy; override;
|
2511 |
|
|
procedure Connect; override;
|
2512 |
|
|
procedure ConnectTo(svrIntf: IStRegINISubKeys);
|
2513 |
|
|
procedure Disconnect; override;
|
2514 |
|
|
property DefaultInterface: IStRegINISubKeys read GetDefaultInterface;
|
2515 |
|
|
property _NewEnum: IUnknown read Get__NewEnum;
|
2516 |
|
|
property Item[Index: Integer]: IStRegINISubKey read Get_Item; default;
|
2517 |
|
|
property Count: Integer read Get_Count;
|
2518 |
|
|
published
|
2519 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2520 |
|
|
property Server: TStRegINISubKeysProperties read GetServerProperties;
|
2521 |
|
|
{$ENDIF}
|
2522 |
|
|
end;
|
2523 |
|
|
|
2524 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2525 |
|
|
// *********************************************************************//
|
2526 |
|
|
// OLE Server Properties Proxy Class
|
2527 |
|
|
// Server Object : TStRegINISubKeys
|
2528 |
|
|
// (This object is used by the IDE's Property Inspector to allow editing
|
2529 |
|
|
// of the properties of this server)
|
2530 |
|
|
// *********************************************************************//
|
2531 |
|
|
TStRegINISubKeysProperties = class(TPersistent)
|
2532 |
|
|
private
|
2533 |
|
|
FServer: TStRegINISubKeys;
|
2534 |
|
|
function GetDefaultInterface: IStRegINISubKeys;
|
2535 |
|
|
constructor Create(AServer: TStRegINISubKeys);
|
2536 |
|
|
protected
|
2537 |
|
|
function Get__NewEnum: IUnknown;
|
2538 |
|
|
function Get_Item(Index: Integer): IStRegINISubKey;
|
2539 |
|
|
function Get_Count: Integer;
|
2540 |
|
|
public
|
2541 |
|
|
property DefaultInterface: IStRegINISubKeys read GetDefaultInterface;
|
2542 |
|
|
published
|
2543 |
|
|
end;
|
2544 |
|
|
{$ENDIF}
|
2545 |
|
|
|
2546 |
|
|
|
2547 |
|
|
// *********************************************************************//
|
2548 |
|
|
// The Class CoStRegINIValue provides a Create and CreateRemote method to
|
2549 |
|
|
// create instances of the default interface IStRegINIValue exposed by
|
2550 |
|
|
// the CoClass StRegINIValue. The functions are intended to be used by
|
2551 |
|
|
// clients wishing to automate the CoClass objects exposed by the
|
2552 |
|
|
// server of this typelibrary.
|
2553 |
|
|
// *********************************************************************//
|
2554 |
|
|
CoStRegINIValue = class
|
2555 |
|
|
class function Create: IStRegINIValue;
|
2556 |
|
|
class function CreateRemote(const MachineName: string): IStRegINIValue;
|
2557 |
|
|
end;
|
2558 |
|
|
|
2559 |
|
|
|
2560 |
|
|
// *********************************************************************//
|
2561 |
|
|
// OLE Server Proxy class declaration
|
2562 |
|
|
// Server Object : TStRegINIValue
|
2563 |
|
|
// Help String : StRegIniValue Object
|
2564 |
|
|
// Default Interface: IStRegINIValue
|
2565 |
|
|
// Def. Intf. DISP? : No
|
2566 |
|
|
// Event Interface:
|
2567 |
|
|
// TypeFlags : (2) CanCreate
|
2568 |
|
|
// *********************************************************************//
|
2569 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2570 |
|
|
TStRegINIValueProperties= class;
|
2571 |
|
|
{$ENDIF}
|
2572 |
|
|
TStRegINIValue = class(TOleServer)
|
2573 |
|
|
private
|
2574 |
|
|
FIntf: IStRegINIValue;
|
2575 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2576 |
|
|
FProps: TStRegINIValueProperties;
|
2577 |
|
|
function GetServerProperties: TStRegINIValueProperties;
|
2578 |
|
|
{$ENDIF}
|
2579 |
|
|
function GetDefaultInterface: IStRegINIValue;
|
2580 |
|
|
protected
|
2581 |
|
|
procedure InitServerData; override;
|
2582 |
|
|
function Get_Value: WideString;
|
2583 |
|
|
public
|
2584 |
|
|
constructor Create(AOwner: TComponent); override;
|
2585 |
|
|
destructor Destroy; override;
|
2586 |
|
|
procedure Connect; override;
|
2587 |
|
|
procedure ConnectTo(svrIntf: IStRegINIValue);
|
2588 |
|
|
procedure Disconnect; override;
|
2589 |
|
|
property DefaultInterface: IStRegINIValue read GetDefaultInterface;
|
2590 |
|
|
property Value: WideString read Get_Value;
|
2591 |
|
|
published
|
2592 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2593 |
|
|
property Server: TStRegINIValueProperties read GetServerProperties;
|
2594 |
|
|
{$ENDIF}
|
2595 |
|
|
end;
|
2596 |
|
|
|
2597 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2598 |
|
|
// *********************************************************************//
|
2599 |
|
|
// OLE Server Properties Proxy Class
|
2600 |
|
|
// Server Object : TStRegINIValue
|
2601 |
|
|
// (This object is used by the IDE's Property Inspector to allow editing
|
2602 |
|
|
// of the properties of this server)
|
2603 |
|
|
// *********************************************************************//
|
2604 |
|
|
TStRegINIValueProperties = class(TPersistent)
|
2605 |
|
|
private
|
2606 |
|
|
FServer: TStRegINIValue;
|
2607 |
|
|
function GetDefaultInterface: IStRegINIValue;
|
2608 |
|
|
constructor Create(AServer: TStRegINIValue);
|
2609 |
|
|
protected
|
2610 |
|
|
function Get_Value: WideString;
|
2611 |
|
|
public
|
2612 |
|
|
property DefaultInterface: IStRegINIValue read GetDefaultInterface;
|
2613 |
|
|
published
|
2614 |
|
|
end;
|
2615 |
|
|
{$ENDIF}
|
2616 |
|
|
|
2617 |
|
|
|
2618 |
|
|
// *********************************************************************//
|
2619 |
|
|
// The Class CoStRegINIValues provides a Create and CreateRemote method to
|
2620 |
|
|
// create instances of the default interface IStRegINIValues exposed by
|
2621 |
|
|
// the CoClass StRegINIValues. The functions are intended to be used by
|
2622 |
|
|
// clients wishing to automate the CoClass objects exposed by the
|
2623 |
|
|
// server of this typelibrary.
|
2624 |
|
|
// *********************************************************************//
|
2625 |
|
|
CoStRegINIValues = class
|
2626 |
|
|
class function Create: IStRegINIValues;
|
2627 |
|
|
class function CreateRemote(const MachineName: string): IStRegINIValues;
|
2628 |
|
|
end;
|
2629 |
|
|
|
2630 |
|
|
|
2631 |
|
|
// *********************************************************************//
|
2632 |
|
|
// OLE Server Proxy class declaration
|
2633 |
|
|
// Server Object : TStRegINIValues
|
2634 |
|
|
// Help String : StRegIniValues Object
|
2635 |
|
|
// Default Interface: IStRegINIValues
|
2636 |
|
|
// Def. Intf. DISP? : No
|
2637 |
|
|
// Event Interface:
|
2638 |
|
|
// TypeFlags : (2) CanCreate
|
2639 |
|
|
// *********************************************************************//
|
2640 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2641 |
|
|
TStRegINIValuesProperties= class;
|
2642 |
|
|
{$ENDIF}
|
2643 |
|
|
TStRegINIValues = class(TOleServer)
|
2644 |
|
|
private
|
2645 |
|
|
FIntf: IStRegINIValues;
|
2646 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2647 |
|
|
FProps: TStRegINIValuesProperties;
|
2648 |
|
|
function GetServerProperties: TStRegINIValuesProperties;
|
2649 |
|
|
{$ENDIF}
|
2650 |
|
|
function GetDefaultInterface: IStRegINIValues;
|
2651 |
|
|
protected
|
2652 |
|
|
procedure InitServerData; override;
|
2653 |
|
|
function Get__NewEnum: IUnknown;
|
2654 |
|
|
function Get_Item(Index: Integer): IStRegINIValue;
|
2655 |
|
|
function Get_Count: Integer;
|
2656 |
|
|
public
|
2657 |
|
|
constructor Create(AOwner: TComponent); override;
|
2658 |
|
|
destructor Destroy; override;
|
2659 |
|
|
procedure Connect; override;
|
2660 |
|
|
procedure ConnectTo(svrIntf: IStRegINIValues);
|
2661 |
|
|
procedure Disconnect; override;
|
2662 |
|
|
property DefaultInterface: IStRegINIValues read GetDefaultInterface;
|
2663 |
|
|
property _NewEnum: IUnknown read Get__NewEnum;
|
2664 |
|
|
property Item[Index: Integer]: IStRegINIValue read Get_Item; default;
|
2665 |
|
|
property Count: Integer read Get_Count;
|
2666 |
|
|
published
|
2667 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2668 |
|
|
property Server: TStRegINIValuesProperties read GetServerProperties;
|
2669 |
|
|
{$ENDIF}
|
2670 |
|
|
end;
|
2671 |
|
|
|
2672 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2673 |
|
|
// *********************************************************************//
|
2674 |
|
|
// OLE Server Properties Proxy Class
|
2675 |
|
|
// Server Object : TStRegINIValues
|
2676 |
|
|
// (This object is used by the IDE's Property Inspector to allow editing
|
2677 |
|
|
// of the properties of this server)
|
2678 |
|
|
// *********************************************************************//
|
2679 |
|
|
TStRegINIValuesProperties = class(TPersistent)
|
2680 |
|
|
private
|
2681 |
|
|
FServer: TStRegINIValues;
|
2682 |
|
|
function GetDefaultInterface: IStRegINIValues;
|
2683 |
|
|
constructor Create(AServer: TStRegINIValues);
|
2684 |
|
|
protected
|
2685 |
|
|
function Get__NewEnum: IUnknown;
|
2686 |
|
|
function Get_Item(Index: Integer): IStRegINIValue;
|
2687 |
|
|
function Get_Count: Integer;
|
2688 |
|
|
public
|
2689 |
|
|
property DefaultInterface: IStRegINIValues read GetDefaultInterface;
|
2690 |
|
|
published
|
2691 |
|
|
end;
|
2692 |
|
|
{$ENDIF}
|
2693 |
|
|
|
2694 |
|
|
|
2695 |
|
|
// *********************************************************************//
|
2696 |
|
|
// The Class CoStRegINISubKey provides a Create and CreateRemote method to
|
2697 |
|
|
// create instances of the default interface IStRegINISubKey exposed by
|
2698 |
|
|
// the CoClass StRegINISubKey. The functions are intended to be used by
|
2699 |
|
|
// clients wishing to automate the CoClass objects exposed by the
|
2700 |
|
|
// server of this typelibrary.
|
2701 |
|
|
// *********************************************************************//
|
2702 |
|
|
CoStRegINISubKey = class
|
2703 |
|
|
class function Create: IStRegINISubKey;
|
2704 |
|
|
class function CreateRemote(const MachineName: string): IStRegINISubKey;
|
2705 |
|
|
end;
|
2706 |
|
|
|
2707 |
|
|
|
2708 |
|
|
// *********************************************************************//
|
2709 |
|
|
// OLE Server Proxy class declaration
|
2710 |
|
|
// Server Object : TStRegINISubKey
|
2711 |
|
|
// Help String : StRegINISubKey Object
|
2712 |
|
|
// Default Interface: IStRegINISubKey
|
2713 |
|
|
// Def. Intf. DISP? : No
|
2714 |
|
|
// Event Interface:
|
2715 |
|
|
// TypeFlags : (2) CanCreate
|
2716 |
|
|
// *********************************************************************//
|
2717 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2718 |
|
|
TStRegINISubKeyProperties= class;
|
2719 |
|
|
{$ENDIF}
|
2720 |
|
|
TStRegINISubKey = class(TOleServer)
|
2721 |
|
|
private
|
2722 |
|
|
FIntf: IStRegINISubKey;
|
2723 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2724 |
|
|
FProps: TStRegINISubKeyProperties;
|
2725 |
|
|
function GetServerProperties: TStRegINISubKeyProperties;
|
2726 |
|
|
{$ENDIF}
|
2727 |
|
|
function GetDefaultInterface: IStRegINISubKey;
|
2728 |
|
|
protected
|
2729 |
|
|
procedure InitServerData; override;
|
2730 |
|
|
function Get_Value: WideString;
|
2731 |
|
|
public
|
2732 |
|
|
constructor Create(AOwner: TComponent); override;
|
2733 |
|
|
destructor Destroy; override;
|
2734 |
|
|
procedure Connect; override;
|
2735 |
|
|
procedure ConnectTo(svrIntf: IStRegINISubKey);
|
2736 |
|
|
procedure Disconnect; override;
|
2737 |
|
|
property DefaultInterface: IStRegINISubKey read GetDefaultInterface;
|
2738 |
|
|
property Value: WideString read Get_Value;
|
2739 |
|
|
published
|
2740 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2741 |
|
|
property Server: TStRegINISubKeyProperties read GetServerProperties;
|
2742 |
|
|
{$ENDIF}
|
2743 |
|
|
end;
|
2744 |
|
|
|
2745 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2746 |
|
|
// *********************************************************************//
|
2747 |
|
|
// OLE Server Properties Proxy Class
|
2748 |
|
|
// Server Object : TStRegINISubKey
|
2749 |
|
|
// (This object is used by the IDE's Property Inspector to allow editing
|
2750 |
|
|
// of the properties of this server)
|
2751 |
|
|
// *********************************************************************//
|
2752 |
|
|
TStRegINISubKeyProperties = class(TPersistent)
|
2753 |
|
|
private
|
2754 |
|
|
FServer: TStRegINISubKey;
|
2755 |
|
|
function GetDefaultInterface: IStRegINISubKey;
|
2756 |
|
|
constructor Create(AServer: TStRegINISubKey);
|
2757 |
|
|
protected
|
2758 |
|
|
function Get_Value: WideString;
|
2759 |
|
|
public
|
2760 |
|
|
property DefaultInterface: IStRegINISubKey read GetDefaultInterface;
|
2761 |
|
|
published
|
2762 |
|
|
end;
|
2763 |
|
|
{$ENDIF}
|
2764 |
|
|
|
2765 |
|
|
|
2766 |
|
|
procedure Register;
|
2767 |
|
|
|
2768 |
|
|
implementation
|
2769 |
|
|
|
2770 |
|
|
uses ComObj;
|
2771 |
|
|
|
2772 |
|
|
class function CoStDate.Create: IStDate;
|
2773 |
|
|
begin
|
2774 |
|
|
Result := CreateComObject(CLASS_StDate) as IStDate;
|
2775 |
|
|
end;
|
2776 |
|
|
|
2777 |
|
|
class function CoStDate.CreateRemote(const MachineName: string): IStDate;
|
2778 |
|
|
begin
|
2779 |
|
|
Result := CreateRemoteComObject(MachineName, CLASS_StDate) as IStDate;
|
2780 |
|
|
end;
|
2781 |
|
|
|
2782 |
|
|
procedure TStDate.InitServerData;
|
2783 |
|
|
const
|
2784 |
|
|
CServerData: TServerData = (
|
2785 |
|
|
ClassID: '{C77513BB-8AB2-4EB8-A585-8D3F8486F4E3}';
|
2786 |
|
|
IntfIID: '{06A34C32-CF9D-40DA-B943-B7D5D178AE4D}';
|
2787 |
|
|
EventIID: '';
|
2788 |
|
|
LicenseKey: nil;
|
2789 |
|
|
Version: 500);
|
2790 |
|
|
begin
|
2791 |
|
|
ServerData := @CServerData;
|
2792 |
|
|
end;
|
2793 |
|
|
|
2794 |
|
|
procedure TStDate.Connect;
|
2795 |
|
|
var
|
2796 |
|
|
punk: IUnknown;
|
2797 |
|
|
begin
|
2798 |
|
|
if FIntf = nil then
|
2799 |
|
|
begin
|
2800 |
|
|
punk := GetServer;
|
2801 |
|
|
Fintf:= punk as IStDate;
|
2802 |
|
|
end;
|
2803 |
|
|
end;
|
2804 |
|
|
|
2805 |
|
|
procedure TStDate.ConnectTo(svrIntf: IStDate);
|
2806 |
|
|
begin
|
2807 |
|
|
Disconnect;
|
2808 |
|
|
FIntf := svrIntf;
|
2809 |
|
|
end;
|
2810 |
|
|
|
2811 |
|
|
procedure TStDate.DisConnect;
|
2812 |
|
|
begin
|
2813 |
|
|
if Fintf <> nil then
|
2814 |
|
|
begin
|
2815 |
|
|
FIntf := nil;
|
2816 |
|
|
end;
|
2817 |
|
|
end;
|
2818 |
|
|
|
2819 |
|
|
function TStDate.GetDefaultInterface: IStDate;
|
2820 |
|
|
begin
|
2821 |
|
|
if FIntf = nil then
|
2822 |
|
|
Connect;
|
2823 |
|
|
Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
|
2824 |
|
|
Result := FIntf;
|
2825 |
|
|
end;
|
2826 |
|
|
|
2827 |
|
|
constructor TStDate.Create(AOwner: TComponent);
|
2828 |
|
|
begin
|
2829 |
|
|
inherited Create(AOwner);
|
2830 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2831 |
|
|
FProps := TStDateProperties.Create(Self);
|
2832 |
|
|
{$ENDIF}
|
2833 |
|
|
end;
|
2834 |
|
|
|
2835 |
|
|
destructor TStDate.Destroy;
|
2836 |
|
|
begin
|
2837 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2838 |
|
|
FProps.Free;
|
2839 |
|
|
{$ENDIF}
|
2840 |
|
|
inherited Destroy;
|
2841 |
|
|
end;
|
2842 |
|
|
|
2843 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
2844 |
|
|
function TStDate.GetServerProperties: TStDateProperties;
|
2845 |
|
|
begin
|
2846 |
|
|
Result := FProps;
|
2847 |
|
|
end;
|
2848 |
|
|
{$ENDIF}
|
2849 |
|
|
|
2850 |
|
|
function TStDate.AstJulianDate(Julian: TDateTime): Double;
|
2851 |
|
|
begin
|
2852 |
|
|
Result := DefaultInterface.AstJulianDate(Julian);
|
2853 |
|
|
end;
|
2854 |
|
|
|
2855 |
|
|
function TStDate.AstJulianDatePrim(Year: Integer; Month: Integer; Day: Integer; UT: TDateTime): Double;
|
2856 |
|
|
begin
|
2857 |
|
|
Result := DefaultInterface.AstJulianDatePrim(Year, Month, Day, UT);
|
2858 |
|
|
end;
|
2859 |
|
|
|
2860 |
|
|
function TStDate.AstJulianDateToStDate(AstJD: Double; Truncate: WordBool): TDateTime;
|
2861 |
|
|
begin
|
2862 |
|
|
Result := DefaultInterface.AstJulianDateToStDate(AstJD, Truncate);
|
2863 |
|
|
end;
|
2864 |
|
|
|
2865 |
|
|
function TStDate.BondDateDiff(Date1: TDateTime; Date2: TDateTime; DayBasis: TStBondDateType): TDateTime;
|
2866 |
|
|
begin
|
2867 |
|
|
Result := DefaultInterface.BondDateDiff(Date1, Date2, DayBasis);
|
2868 |
|
|
end;
|
2869 |
|
|
|
2870 |
|
|
function TStDate.CurrentDate: TDateTime;
|
2871 |
|
|
begin
|
2872 |
|
|
Result := DefaultInterface.CurrentDate;
|
2873 |
|
|
end;
|
2874 |
|
|
|
2875 |
|
|
function TStDate.CurrentDateString(const Picture: WideString; Pack: WordBool): WideString;
|
2876 |
|
|
begin
|
2877 |
|
|
Result := DefaultInterface.CurrentDateString(Picture, Pack);
|
2878 |
|
|
end;
|
2879 |
|
|
|
2880 |
|
|
function TStDate.CurrentTime: TDateTime;
|
2881 |
|
|
begin
|
2882 |
|
|
Result := DefaultInterface.CurrentTime;
|
2883 |
|
|
end;
|
2884 |
|
|
|
2885 |
|
|
function TStDate.CurrentTimeString(const Picture: WideString; Pack: WordBool): WideString;
|
2886 |
|
|
begin
|
2887 |
|
|
Result := DefaultInterface.CurrentTimeString(Picture, Pack);
|
2888 |
|
|
end;
|
2889 |
|
|
|
2890 |
|
|
procedure TStDate.DateDiff(Date1: TDateTime; Date2: TDateTime; var Days: Integer;
|
2891 |
|
|
var Months: Integer; var Years: Integer);
|
2892 |
|
|
begin
|
2893 |
|
|
DefaultInterface.DateDiff(Date1, Date2, Days, Months, Years);
|
2894 |
|
|
end;
|
2895 |
|
|
|
2896 |
|
|
function TStDate.DateStringHMStoAstJD(const Picture: WideString; const DS: WideString;
|
2897 |
|
|
Hours: Integer; Minutes: Integer; Seconds: Integer;
|
2898 |
|
|
Epoch: Integer): Double;
|
2899 |
|
|
begin
|
2900 |
|
|
Result := DefaultInterface.DateStringHMStoAstJD(Picture, DS, Hours, Minutes, Seconds, Epoch);
|
2901 |
|
|
end;
|
2902 |
|
|
|
2903 |
|
|
function TStDate.DateStringToDMY(const Picture: WideString; const S: WideString; var Day: Integer;
|
2904 |
|
|
var Month: Integer; var Year: Integer; Epoch: Integer): WordBool;
|
2905 |
|
|
begin
|
2906 |
|
|
Result := DefaultInterface.DateStringToDMY(Picture, S, Day, Month, Year, Epoch);
|
2907 |
|
|
end;
|
2908 |
|
|
|
2909 |
|
|
function TStDate.DateStringToStDate(const Picture: WideString; const S: WideString; Epoch: Integer): TDateTime;
|
2910 |
|
|
begin
|
2911 |
|
|
Result := DefaultInterface.DateStringToStDate(Picture, S, Epoch);
|
2912 |
|
|
end;
|
2913 |
|
|
|
2914 |
|
|
procedure TStDate.DateTimeDiff(DT1: TDateTime; DT2: TDateTime; var Days: Integer;
|
2915 |
|
|
var Seconds: Integer);
|
2916 |
|
|
begin
|
2917 |
|
|
DefaultInterface.DateTimeDiff(DT1, DT2, Days, Seconds);
|
2918 |
|
|
end;
|
2919 |
|
|
|
2920 |
|
|
function TStDate.DayOfWeek(Julian: TDateTime): TStDayType;
|
2921 |
|
|
begin
|
2922 |
|
|
Result := DefaultInterface.DayOfWeek(Julian);
|
2923 |
|
|
end;
|
2924 |
|
|
|
2925 |
|
|
function TStDate.DayOfWeekDMY(Day: Integer; Month: Integer; Year: Integer; Epoch: Integer): TStDayType;
|
2926 |
|
|
begin
|
2927 |
|
|
Result := DefaultInterface.DayOfWeekDMY(Day, Month, Year, Epoch);
|
2928 |
|
|
end;
|
2929 |
|
|
|
2930 |
|
|
function TStDate.DayOfWeekToString(WeekDay: TStDayType): WideString;
|
2931 |
|
|
begin
|
2932 |
|
|
Result := DefaultInterface.DayOfWeekToString(WeekDay);
|
2933 |
|
|
end;
|
2934 |
|
|
|
2935 |
|
|
function TStDate.DaysInMonth(Month: Integer; Year: Integer; Epoch: Integer): Integer;
|
2936 |
|
|
begin
|
2937 |
|
|
Result := DefaultInterface.DaysInMonth(Month, Year, Epoch);
|
2938 |
|
|
end;
|
2939 |
|
|
|
2940 |
|
|
function TStDate.DecTime(T: TDateTime; Hours: Byte; Minutes: Byte; Seconds: Byte): TDateTime;
|
2941 |
|
|
begin
|
2942 |
|
|
Result := DefaultInterface.DecTime(T, Hours, Minutes, Seconds);
|
2943 |
|
|
end;
|
2944 |
|
|
|
2945 |
|
|
function TStDate.DMYtoStDate(Day: Integer; Month: Integer; Year: Integer; Epoch: Integer): TDateTime;
|
2946 |
|
|
begin
|
2947 |
|
|
Result := DefaultInterface.DMYtoStDate(Day, Month, Year, Epoch);
|
2948 |
|
|
end;
|
2949 |
|
|
|
2950 |
|
|
function TStDate.DMYtoDateString(const Picture: WideString; Day: Integer; Month: Integer;
|
2951 |
|
|
Year: Integer; Epoch: Integer; Pack: WordBool): WideString;
|
2952 |
|
|
begin
|
2953 |
|
|
Result := DefaultInterface.DMYtoDateString(Picture, Day, Month, Year, Epoch, Pack);
|
2954 |
|
|
end;
|
2955 |
|
|
|
2956 |
|
|
function TStDate.HMStoStTime(Hours: Byte; Minutes: Byte; Seconds: Byte): TDateTime;
|
2957 |
|
|
begin
|
2958 |
|
|
Result := DefaultInterface.HMStoStTime(Hours, Minutes, Seconds);
|
2959 |
|
|
end;
|
2960 |
|
|
|
2961 |
|
|
function TStDate.IncDate(Julian: TDateTime; Days: Integer; Months: Integer; Years: Integer): TDateTime;
|
2962 |
|
|
begin
|
2963 |
|
|
Result := DefaultInterface.IncDate(Julian, Days, Months, Years);
|
2964 |
|
|
end;
|
2965 |
|
|
|
2966 |
|
|
procedure TStDate.IncDateTime(DT1: TDateTime; var DT2: TDateTime; Days: Integer; Seconds: Integer);
|
2967 |
|
|
begin
|
2968 |
|
|
DefaultInterface.IncDateTime(DT1, DT2, Days, Seconds);
|
2969 |
|
|
end;
|
2970 |
|
|
|
2971 |
|
|
function TStDate.IncDateTrunc(Julian: TDateTime; Months: Integer; Years: Integer): TDateTime;
|
2972 |
|
|
begin
|
2973 |
|
|
Result := DefaultInterface.IncDateTrunc(Julian, Months, Years);
|
2974 |
|
|
end;
|
2975 |
|
|
|
2976 |
|
|
function TStDate.IncTime(T: TDateTime; Hours: Byte; Minutes: Byte; Seconds: Byte): TDateTime;
|
2977 |
|
|
begin
|
2978 |
|
|
Result := DefaultInterface.IncTime(T, Hours, Minutes, Seconds);
|
2979 |
|
|
end;
|
2980 |
|
|
|
2981 |
|
|
function TStDate.InternationalDate(ForceCentury: WordBool): WideString;
|
2982 |
|
|
begin
|
2983 |
|
|
Result := DefaultInterface.InternationalDate(ForceCentury);
|
2984 |
|
|
end;
|
2985 |
|
|
|
2986 |
|
|
function TStDate.InternationalLongDate(ShortNames: WordBool; ExcludeDOW: WordBool): WideString;
|
2987 |
|
|
begin
|
2988 |
|
|
Result := DefaultInterface.InternationalLongDate(ShortNames, ExcludeDOW);
|
2989 |
|
|
end;
|
2990 |
|
|
|
2991 |
|
|
function TStDate.InternationalTime(ShowSeconds: WordBool): WideString;
|
2992 |
|
|
begin
|
2993 |
|
|
Result := DefaultInterface.InternationalTime(ShowSeconds);
|
2994 |
|
|
end;
|
2995 |
|
|
|
2996 |
|
|
function TStDate.IsLeapYear(Year: Integer): WordBool;
|
2997 |
|
|
begin
|
2998 |
|
|
Result := DefaultInterface.IsLeapYear(Year);
|
2999 |
|
|
end;
|
3000 |
|
|
|
3001 |
|
|
function TStDate.MonthToString(Month: Integer): WideString;
|
3002 |
|
|
begin
|
3003 |
|
|
Result := DefaultInterface.MonthToString(Month);
|
3004 |
|
|
end;
|
3005 |
|
|
|
3006 |
|
|
function TStDate.RoundToNearestHour(T: TDateTime; Truncate: WordBool): TDateTime;
|
3007 |
|
|
begin
|
3008 |
|
|
Result := DefaultInterface.RoundToNearestHour(T, Truncate);
|
3009 |
|
|
end;
|
3010 |
|
|
|
3011 |
|
|
function TStDate.RoundToNearestMinute(T: TDateTime; Truncate: WordBool): TDateTime;
|
3012 |
|
|
begin
|
3013 |
|
|
Result := DefaultInterface.RoundToNearestMinute(T, Truncate);
|
3014 |
|
|
end;
|
3015 |
|
|
|
3016 |
|
|
function TStDate.StDateToDateString(const Picture: WideString; Julian: TDateTime; Pack: WordBool): WideString;
|
3017 |
|
|
begin
|
3018 |
|
|
Result := DefaultInterface.StDateToDateString(Picture, Julian, Pack);
|
3019 |
|
|
end;
|
3020 |
|
|
|
3021 |
|
|
procedure TStDate.StDateToDMY(Julian: TDateTime; var Day: Integer; var Month: Integer;
|
3022 |
|
|
var Year: Integer);
|
3023 |
|
|
begin
|
3024 |
|
|
DefaultInterface.StDateToDMY(Julian, Day, Month, Year);
|
3025 |
|
|
end;
|
3026 |
|
|
|
3027 |
|
|
function TStDate.StTimeToAmPmString(const Picture: WideString; T: TDateTime; Pack: WordBool): WideString;
|
3028 |
|
|
begin
|
3029 |
|
|
Result := DefaultInterface.StTimeToAmPmString(Picture, T, Pack);
|
3030 |
|
|
end;
|
3031 |
|
|
|
3032 |
|
|
procedure TStDate.StTimeToHMS(T: TDateTime; var Hours: Byte; var Minutes: Byte; var Seconds: Byte);
|
3033 |
|
|
begin
|
3034 |
|
|
DefaultInterface.StTimeToHMS(T, Hours, Minutes, Seconds);
|
3035 |
|
|
end;
|
3036 |
|
|
|
3037 |
|
|
function TStDate.StTimeToTimeString(const Picture: WideString; T: TDateTime; Pack: WordBool): WideString;
|
3038 |
|
|
begin
|
3039 |
|
|
Result := DefaultInterface.StTimeToTimeString(Picture, T, Pack);
|
3040 |
|
|
end;
|
3041 |
|
|
|
3042 |
|
|
procedure TStDate.TimeDiff(T1: TDateTime; T2: TDateTime; var Hours: Byte; var Minutes: Byte;
|
3043 |
|
|
var Seconds: Byte);
|
3044 |
|
|
begin
|
3045 |
|
|
DefaultInterface.TimeDiff(T1, T2, Hours, Minutes, Seconds);
|
3046 |
|
|
end;
|
3047 |
|
|
|
3048 |
|
|
function TStDate.TimeStringToHMS(const Picture: WideString; const TS: WideString;
|
3049 |
|
|
var Hours: Integer; var Minutes: Integer; var Seconds: Integer): WordBool;
|
3050 |
|
|
begin
|
3051 |
|
|
Result := DefaultInterface.TimeStringToHMS(Picture, TS, Hours, Minutes, Seconds);
|
3052 |
|
|
end;
|
3053 |
|
|
|
3054 |
|
|
function TStDate.TimeStringToStTime(const Picture: WideString; const S: WideString): TDateTime;
|
3055 |
|
|
begin
|
3056 |
|
|
Result := DefaultInterface.TimeStringToStTime(Picture, S);
|
3057 |
|
|
end;
|
3058 |
|
|
|
3059 |
|
|
function TStDate.ValidDate(Day: Integer; Month: Integer; Year: Integer; Epoch: Integer): WordBool;
|
3060 |
|
|
begin
|
3061 |
|
|
Result := DefaultInterface.ValidDate(Day, Month, Year, Epoch);
|
3062 |
|
|
end;
|
3063 |
|
|
|
3064 |
|
|
function TStDate.ValidTime(Hours: Integer; Minutes: Integer; Seconds: Integer): WordBool;
|
3065 |
|
|
begin
|
3066 |
|
|
Result := DefaultInterface.ValidTime(Hours, Minutes, Seconds);
|
3067 |
|
|
end;
|
3068 |
|
|
|
3069 |
|
|
function TStDate.WeekOfYear(Julian: TDateTime): Byte;
|
3070 |
|
|
begin
|
3071 |
|
|
Result := DefaultInterface.WeekOfYear(Julian);
|
3072 |
|
|
end;
|
3073 |
|
|
|
3074 |
|
|
function TStDate.License(const Key: WideString): WordBool;
|
3075 |
|
|
begin
|
3076 |
|
|
Result := DefaultInterface.License(Key);
|
3077 |
|
|
end;
|
3078 |
|
|
|
3079 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
3080 |
|
|
constructor TStDateProperties.Create(AServer: TStDate);
|
3081 |
|
|
begin
|
3082 |
|
|
inherited Create;
|
3083 |
|
|
FServer := AServer;
|
3084 |
|
|
end;
|
3085 |
|
|
|
3086 |
|
|
function TStDateProperties.GetDefaultInterface: IStDate;
|
3087 |
|
|
begin
|
3088 |
|
|
Result := FServer.DefaultInterface;
|
3089 |
|
|
end;
|
3090 |
|
|
|
3091 |
|
|
{$ENDIF}
|
3092 |
|
|
|
3093 |
|
|
class function CoStString.Create: IStString;
|
3094 |
|
|
begin
|
3095 |
|
|
Result := CreateComObject(CLASS_StString) as IStString;
|
3096 |
|
|
end;
|
3097 |
|
|
|
3098 |
|
|
class function CoStString.CreateRemote(const MachineName: string): IStString;
|
3099 |
|
|
begin
|
3100 |
|
|
Result := CreateRemoteComObject(MachineName, CLASS_StString) as IStString;
|
3101 |
|
|
end;
|
3102 |
|
|
|
3103 |
|
|
procedure TStString.InitServerData;
|
3104 |
|
|
const
|
3105 |
|
|
CServerData: TServerData = (
|
3106 |
|
|
ClassID: '{D152991C-854C-40DD-AB93-912311F62E2E}';
|
3107 |
|
|
IntfIID: '{B622F701-6E3F-4875-A574-201F0DB002F3}';
|
3108 |
|
|
EventIID: '';
|
3109 |
|
|
LicenseKey: nil;
|
3110 |
|
|
Version: 500);
|
3111 |
|
|
begin
|
3112 |
|
|
ServerData := @CServerData;
|
3113 |
|
|
end;
|
3114 |
|
|
|
3115 |
|
|
procedure TStString.Connect;
|
3116 |
|
|
var
|
3117 |
|
|
punk: IUnknown;
|
3118 |
|
|
begin
|
3119 |
|
|
if FIntf = nil then
|
3120 |
|
|
begin
|
3121 |
|
|
punk := GetServer;
|
3122 |
|
|
Fintf:= punk as IStString;
|
3123 |
|
|
end;
|
3124 |
|
|
end;
|
3125 |
|
|
|
3126 |
|
|
procedure TStString.ConnectTo(svrIntf: IStString);
|
3127 |
|
|
begin
|
3128 |
|
|
Disconnect;
|
3129 |
|
|
FIntf := svrIntf;
|
3130 |
|
|
end;
|
3131 |
|
|
|
3132 |
|
|
procedure TStString.DisConnect;
|
3133 |
|
|
begin
|
3134 |
|
|
if Fintf <> nil then
|
3135 |
|
|
begin
|
3136 |
|
|
FIntf := nil;
|
3137 |
|
|
end;
|
3138 |
|
|
end;
|
3139 |
|
|
|
3140 |
|
|
function TStString.GetDefaultInterface: IStString;
|
3141 |
|
|
begin
|
3142 |
|
|
if FIntf = nil then
|
3143 |
|
|
Connect;
|
3144 |
|
|
Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
|
3145 |
|
|
Result := FIntf;
|
3146 |
|
|
end;
|
3147 |
|
|
|
3148 |
|
|
constructor TStString.Create(AOwner: TComponent);
|
3149 |
|
|
begin
|
3150 |
|
|
inherited Create(AOwner);
|
3151 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
3152 |
|
|
FProps := TStStringProperties.Create(Self);
|
3153 |
|
|
{$ENDIF}
|
3154 |
|
|
end;
|
3155 |
|
|
|
3156 |
|
|
destructor TStString.Destroy;
|
3157 |
|
|
begin
|
3158 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
3159 |
|
|
FProps.Free;
|
3160 |
|
|
{$ENDIF}
|
3161 |
|
|
inherited Destroy;
|
3162 |
|
|
end;
|
3163 |
|
|
|
3164 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
3165 |
|
|
function TStString.GetServerProperties: TStStringProperties;
|
3166 |
|
|
begin
|
3167 |
|
|
Result := FProps;
|
3168 |
|
|
end;
|
3169 |
|
|
{$ENDIF}
|
3170 |
|
|
|
3171 |
|
|
function TStString.AddBackSlash(const DirName: WideString): WideString;
|
3172 |
|
|
begin
|
3173 |
|
|
Result := DefaultInterface.AddBackSlash(DirName);
|
3174 |
|
|
end;
|
3175 |
|
|
|
3176 |
|
|
function TStString.AsciiCount(const S: WideString; const WordDelims: WideString;
|
3177 |
|
|
const Quote: WideString): Integer;
|
3178 |
|
|
begin
|
3179 |
|
|
Result := DefaultInterface.AsciiCount(S, WordDelims, Quote);
|
3180 |
|
|
end;
|
3181 |
|
|
|
3182 |
|
|
function TStString.AsciiPosition(N: Integer; const S: WideString; const WordDelims: WideString;
|
3183 |
|
|
const Quote: WideString; var Pos: Integer): WordBool;
|
3184 |
|
|
begin
|
3185 |
|
|
Result := DefaultInterface.AsciiPosition(N, S, WordDelims, Quote, Pos);
|
3186 |
|
|
end;
|
3187 |
|
|
|
3188 |
|
|
function TStString.BinaryB(B: Byte): WideString;
|
3189 |
|
|
begin
|
3190 |
|
|
Result := DefaultInterface.BinaryB(B);
|
3191 |
|
|
end;
|
3192 |
|
|
|
3193 |
|
|
function TStString.BinaryW(W: Integer): WideString;
|
3194 |
|
|
begin
|
3195 |
|
|
Result := DefaultInterface.BinaryW(W);
|
3196 |
|
|
end;
|
3197 |
|
|
|
3198 |
|
|
function TStString.BinaryL(L: Integer): WideString;
|
3199 |
|
|
begin
|
3200 |
|
|
Result := DefaultInterface.BinaryL(L);
|
3201 |
|
|
end;
|
3202 |
|
|
|
3203 |
|
|
function TStString.Center(const S: WideString; Len: Integer): WideString;
|
3204 |
|
|
begin
|
3205 |
|
|
Result := DefaultInterface.Center(S, Len);
|
3206 |
|
|
end;
|
3207 |
|
|
|
3208 |
|
|
function TStString.CenterCh(const S: WideString; const C: WideString; Len: Integer): WideString;
|
3209 |
|
|
begin
|
3210 |
|
|
Result := DefaultInterface.CenterCh(S, C, Len);
|
3211 |
|
|
end;
|
3212 |
|
|
|
3213 |
|
|
function TStString.CharCount(const S: WideString; const C: WideString): Integer;
|
3214 |
|
|
begin
|
3215 |
|
|
Result := DefaultInterface.CharCount(S, C);
|
3216 |
|
|
end;
|
3217 |
|
|
|
3218 |
|
|
function TStString.CharExists(const S: WideString; const C: WideString): WordBool;
|
3219 |
|
|
begin
|
3220 |
|
|
Result := DefaultInterface.CharExists(S, C);
|
3221 |
|
|
end;
|
3222 |
|
|
|
3223 |
|
|
function TStString.CharStr(const C: WideString; Len: Integer): WideString;
|
3224 |
|
|
begin
|
3225 |
|
|
Result := DefaultInterface.CharStr(C, Len);
|
3226 |
|
|
end;
|
3227 |
|
|
|
3228 |
|
|
function TStString.CleanPathName(const PathName: WideString): WideString;
|
3229 |
|
|
begin
|
3230 |
|
|
Result := DefaultInterface.CleanPathName(PathName);
|
3231 |
|
|
end;
|
3232 |
|
|
|
3233 |
|
|
function TStString.Commaize(L: Integer): WideString;
|
3234 |
|
|
begin
|
3235 |
|
|
Result := DefaultInterface.Commaize(L);
|
3236 |
|
|
end;
|
3237 |
|
|
|
3238 |
|
|
function TStString.CommaizeCh(L: Integer; const Ch: WideString): WideString;
|
3239 |
|
|
begin
|
3240 |
|
|
Result := DefaultInterface.CommaizeCh(L, Ch);
|
3241 |
|
|
end;
|
3242 |
|
|
|
3243 |
|
|
function TStString.CompString(const S1: WideString; const S2: WideString): Integer;
|
3244 |
|
|
begin
|
3245 |
|
|
Result := DefaultInterface.CompString(S1, S2);
|
3246 |
|
|
end;
|
3247 |
|
|
|
3248 |
|
|
function TStString.CompUCString(const S1: WideString; const S2: WideString): Integer;
|
3249 |
|
|
begin
|
3250 |
|
|
Result := DefaultInterface.CompUCString(S1, S2);
|
3251 |
|
|
end;
|
3252 |
|
|
|
3253 |
|
|
function TStString.ContainsOnly(const S: WideString; const Chars: WideString; var BadPos: Integer): WordBool;
|
3254 |
|
|
begin
|
3255 |
|
|
Result := DefaultInterface.ContainsOnly(S, Chars, BadPos);
|
3256 |
|
|
end;
|
3257 |
|
|
|
3258 |
|
|
function TStString.ContainsOtherThan(const S: WideString; const Chars: WideString;
|
3259 |
|
|
var BadPos: Integer): WordBool;
|
3260 |
|
|
begin
|
3261 |
|
|
Result := DefaultInterface.ContainsOtherThan(S, Chars, BadPos);
|
3262 |
|
|
end;
|
3263 |
|
|
|
3264 |
|
|
function TStString.CopyFromNthWord(const S: WideString; const WordDelims: WideString;
|
3265 |
|
|
const AWord: WideString; N: Integer; var SubString: WideString): WordBool;
|
3266 |
|
|
begin
|
3267 |
|
|
Result := DefaultInterface.CopyFromNthWord(S, WordDelims, AWord, N, SubString);
|
3268 |
|
|
end;
|
3269 |
|
|
|
3270 |
|
|
function TStString.CopyFromToWord(const S: WideString; const WordDelims: WideString;
|
3271 |
|
|
const Word1: WideString; const Word2: WideString; N1: Integer;
|
3272 |
|
|
N2: Integer; var SubString: WideString): WordBool;
|
3273 |
|
|
begin
|
3274 |
|
|
Result := DefaultInterface.CopyFromToWord(S, WordDelims, Word1, Word2, N1, N2, SubString);
|
3275 |
|
|
end;
|
3276 |
|
|
|
3277 |
|
|
function TStString.CopyLeft(const S: WideString; Len: Integer): WideString;
|
3278 |
|
|
begin
|
3279 |
|
|
Result := DefaultInterface.CopyLeft(S, Len);
|
3280 |
|
|
end;
|
3281 |
|
|
|
3282 |
|
|
function TStString.CopyMid(const S: WideString; First: Integer; Len: Integer): WideString;
|
3283 |
|
|
begin
|
3284 |
|
|
Result := DefaultInterface.CopyMid(S, First, Len);
|
3285 |
|
|
end;
|
3286 |
|
|
|
3287 |
|
|
function TStString.CopyRight(const S: WideString; First: Integer): WideString;
|
3288 |
|
|
begin
|
3289 |
|
|
Result := DefaultInterface.CopyRight(S, First);
|
3290 |
|
|
end;
|
3291 |
|
|
|
3292 |
|
|
function TStString.CopyWithin(const S: WideString; const Delimiter: WideString; Strip: WordBool): WideString;
|
3293 |
|
|
begin
|
3294 |
|
|
Result := DefaultInterface.CopyWithin(S, Delimiter, Strip);
|
3295 |
|
|
end;
|
3296 |
|
|
|
3297 |
|
|
function TStString.DefaultExtension(const Name: WideString; const Ext: WideString): WideString;
|
3298 |
|
|
begin
|
3299 |
|
|
Result := DefaultInterface.DefaultExtension(Name, Ext);
|
3300 |
|
|
end;
|
3301 |
|
|
|
3302 |
|
|
function TStString.DeleteFromNthWord(const S: WideString; const WordDelims: WideString;
|
3303 |
|
|
const AWord: WideString; N: Integer; var SubString: WideString): WordBool;
|
3304 |
|
|
begin
|
3305 |
|
|
Result := DefaultInterface.DeleteFromNthWord(S, WordDelims, AWord, N, SubString);
|
3306 |
|
|
end;
|
3307 |
|
|
|
3308 |
|
|
function TStString.DeleteFromToWord(const S: WideString; const WordDelims: WideString;
|
3309 |
|
|
const Word1: WideString; const Word2: WideString; N1: Integer;
|
3310 |
|
|
N2: Integer; var SubString: WideString): WordBool;
|
3311 |
|
|
begin
|
3312 |
|
|
Result := DefaultInterface.DeleteFromToWord(S, WordDelims, Word1, Word2, N1, N2, SubString);
|
3313 |
|
|
end;
|
3314 |
|
|
|
3315 |
|
|
function TStString.DeleteWithin(const S: WideString; const Delimeter: WideString): WideString;
|
3316 |
|
|
begin
|
3317 |
|
|
Result := DefaultInterface.DeleteWithin(S, Delimeter);
|
3318 |
|
|
end;
|
3319 |
|
|
|
3320 |
|
|
function TStString.Detab(const S: WideString; TabSize: Byte): WideString;
|
3321 |
|
|
begin
|
3322 |
|
|
Result := DefaultInterface.Detab(S, TabSize);
|
3323 |
|
|
end;
|
3324 |
|
|
|
3325 |
|
|
function TStString.Entab(const S: WideString; TabSize: Byte): WideString;
|
3326 |
|
|
begin
|
3327 |
|
|
Result := DefaultInterface.Entab(S, TabSize);
|
3328 |
|
|
end;
|
3329 |
|
|
|
3330 |
|
|
function TStString.Ext2Str(R: OleVariant; Width: Byte; Places: Byte): WideString;
|
3331 |
|
|
begin
|
3332 |
|
|
Result := DefaultInterface.Ext2Str(R, Width, Places);
|
3333 |
|
|
end;
|
3334 |
|
|
|
3335 |
|
|
function TStString.ExtractAscii(N: Integer; const S: WideString; const WordDelims: WideString;
|
3336 |
|
|
const Quote: WideString): WideString;
|
3337 |
|
|
begin
|
3338 |
|
|
Result := DefaultInterface.ExtractAscii(N, S, WordDelims, Quote);
|
3339 |
|
|
end;
|
3340 |
|
|
|
3341 |
|
|
function TStString.ExtractTokens(const S: WideString; const Delims: WideString;
|
3342 |
|
|
const QuoteChar: WideString; AllowNulls: WordBool;
|
3343 |
|
|
out Tokens: IStStringList): Integer;
|
3344 |
|
|
begin
|
3345 |
|
|
Result := DefaultInterface.ExtractTokens(S, Delims, QuoteChar, AllowNulls, Tokens);
|
3346 |
|
|
end;
|
3347 |
|
|
|
3348 |
|
|
function TStString.ExtractWord(N: Integer; const S: WideString; const WordDelims: WideString): WideString;
|
3349 |
|
|
begin
|
3350 |
|
|
Result := DefaultInterface.ExtractWord(N, S, WordDelims);
|
3351 |
|
|
end;
|
3352 |
|
|
|
3353 |
|
|
function TStString.Filter(const S: WideString; const Filters: WideString): WideString;
|
3354 |
|
|
begin
|
3355 |
|
|
Result := DefaultInterface.Filter(S, Filters);
|
3356 |
|
|
end;
|
3357 |
|
|
|
3358 |
|
|
function TStString.FloatForm(const Mask: WideString; R: Double; L: Integer;
|
3359 |
|
|
const LtCurr: WideString; const RtCurr: WideString;
|
3360 |
|
|
const Sep: WideString; const DecPt: WideString): WideString;
|
3361 |
|
|
begin
|
3362 |
|
|
Result := DefaultInterface.FloatForm(Mask, R, L, LtCurr, RtCurr, Sep, DecPt);
|
3363 |
|
|
end;
|
3364 |
|
|
|
3365 |
|
|
function TStString.ForceExtension(const Name: WideString; const Ext: WideString): WideString;
|
3366 |
|
|
begin
|
3367 |
|
|
Result := DefaultInterface.ForceExtension(Name, Ext);
|
3368 |
|
|
end;
|
3369 |
|
|
|
3370 |
|
|
function TStString.HasExtension(const Name: WideString; var DotPos: Integer): WordBool;
|
3371 |
|
|
begin
|
3372 |
|
|
Result := DefaultInterface.HasExtension(Name, DotPos);
|
3373 |
|
|
end;
|
3374 |
|
|
|
3375 |
|
|
function TStString.HexB(B: Byte): WideString;
|
3376 |
|
|
begin
|
3377 |
|
|
Result := DefaultInterface.HexB(B);
|
3378 |
|
|
end;
|
3379 |
|
|
|
3380 |
|
|
function TStString.HexW(W: Integer): WideString;
|
3381 |
|
|
begin
|
3382 |
|
|
Result := DefaultInterface.HexW(W);
|
3383 |
|
|
end;
|
3384 |
|
|
|
3385 |
|
|
function TStString.HexL(L: Integer): WideString;
|
3386 |
|
|
begin
|
3387 |
|
|
Result := DefaultInterface.HexL(L);
|
3388 |
|
|
end;
|
3389 |
|
|
|
3390 |
|
|
function TStString.IsChAlpha(const C: WideString): WordBool;
|
3391 |
|
|
begin
|
3392 |
|
|
Result := DefaultInterface.IsChAlpha(C);
|
3393 |
|
|
end;
|
3394 |
|
|
|
3395 |
|
|
function TStString.IsChAlphaNumeric(const C: WideString; const Numbers: WideString): WordBool;
|
3396 |
|
|
begin
|
3397 |
|
|
Result := DefaultInterface.IsChAlphaNumeric(C, Numbers);
|
3398 |
|
|
end;
|
3399 |
|
|
|
3400 |
|
|
function TStString.IsChNumeric(const C: WideString; const Numbers: WideString): WordBool;
|
3401 |
|
|
begin
|
3402 |
|
|
Result := DefaultInterface.IsChNumeric(C, Numbers);
|
3403 |
|
|
end;
|
3404 |
|
|
|
3405 |
|
|
function TStString.IsStrAlpha(const S: WideString): WordBool;
|
3406 |
|
|
begin
|
3407 |
|
|
Result := DefaultInterface.IsStrAlpha(S);
|
3408 |
|
|
end;
|
3409 |
|
|
|
3410 |
|
|
function TStString.IsStrAlphaNumeric(const S: WideString; const Numbers: WideString): WordBool;
|
3411 |
|
|
begin
|
3412 |
|
|
Result := DefaultInterface.IsStrAlphaNumeric(S, Numbers);
|
3413 |
|
|
end;
|
3414 |
|
|
|
3415 |
|
|
function TStString.IsStrNumeric(const S: WideString; const Numbers: WideString): WordBool;
|
3416 |
|
|
begin
|
3417 |
|
|
Result := DefaultInterface.IsStrNumeric(S, Numbers);
|
3418 |
|
|
end;
|
3419 |
|
|
|
3420 |
|
|
function TStString.JustExtension(const Name: WideString): WideString;
|
3421 |
|
|
begin
|
3422 |
|
|
Result := DefaultInterface.JustExtension(Name);
|
3423 |
|
|
end;
|
3424 |
|
|
|
3425 |
|
|
function TStString.JustFilename(const PathName: WideString): WideString;
|
3426 |
|
|
begin
|
3427 |
|
|
Result := DefaultInterface.JustFilename(PathName);
|
3428 |
|
|
end;
|
3429 |
|
|
|
3430 |
|
|
function TStString.JustName(const PathName: WideString): WideString;
|
3431 |
|
|
begin
|
3432 |
|
|
Result := DefaultInterface.JustName(PathName);
|
3433 |
|
|
end;
|
3434 |
|
|
|
3435 |
|
|
function TStString.JustPathname(const PathName: WideString): WideString;
|
3436 |
|
|
begin
|
3437 |
|
|
Result := DefaultInterface.JustPathname(PathName);
|
3438 |
|
|
end;
|
3439 |
|
|
|
3440 |
|
|
function TStString.KeepChars(const S: WideString; const Chars: WideString): WideString;
|
3441 |
|
|
begin
|
3442 |
|
|
Result := DefaultInterface.KeepChars(S, Chars);
|
3443 |
|
|
end;
|
3444 |
|
|
|
3445 |
|
|
function TStString.LastString(const S: WideString; const AString: WideString; var Position: Integer): WordBool;
|
3446 |
|
|
begin
|
3447 |
|
|
Result := DefaultInterface.LastString(S, AString, Position);
|
3448 |
|
|
end;
|
3449 |
|
|
|
3450 |
|
|
function TStString.LastWord(const S: WideString; const WordDelims: WideString;
|
3451 |
|
|
const AWord: WideString; var Position: Integer): WordBool;
|
3452 |
|
|
begin
|
3453 |
|
|
Result := DefaultInterface.LastWord(S, WordDelims, AWord, Position);
|
3454 |
|
|
end;
|
3455 |
|
|
|
3456 |
|
|
function TStString.LastWordAbs(const S: WideString; const WordDelims: WideString;
|
3457 |
|
|
var Position: Integer): WordBool;
|
3458 |
|
|
begin
|
3459 |
|
|
Result := DefaultInterface.LastWordAbs(S, WordDelims, Position);
|
3460 |
|
|
end;
|
3461 |
|
|
|
3462 |
|
|
function TStString.LeftPad(const S: WideString; Len: Integer): WideString;
|
3463 |
|
|
begin
|
3464 |
|
|
Result := DefaultInterface.LeftPad(S, Len);
|
3465 |
|
|
end;
|
3466 |
|
|
|
3467 |
|
|
function TStString.LeftPadCh(const S: WideString; const C: WideString; Len: Integer): WideString;
|
3468 |
|
|
begin
|
3469 |
|
|
Result := DefaultInterface.LeftPadCh(S, C, Len);
|
3470 |
|
|
end;
|
3471 |
|
|
|
3472 |
|
|
function TStString.LeftTrimChars(const S: WideString; const Chars: WideString): WideString;
|
3473 |
|
|
begin
|
3474 |
|
|
Result := DefaultInterface.LeftTrimChars(S, Chars);
|
3475 |
|
|
end;
|
3476 |
|
|
|
3477 |
|
|
function TStString.Long2Str(L: Integer): WideString;
|
3478 |
|
|
begin
|
3479 |
|
|
Result := DefaultInterface.Long2Str(L);
|
3480 |
|
|
end;
|
3481 |
|
|
|
3482 |
|
|
function TStString.LongIntForm(const Mask: WideString; L: Integer; const LtCurr: WideString;
|
3483 |
|
|
const RtCurr: WideString; const Sep: WideString): WideString;
|
3484 |
|
|
begin
|
3485 |
|
|
Result := DefaultInterface.LongIntForm(Mask, L, LtCurr, RtCurr, Sep);
|
3486 |
|
|
end;
|
3487 |
|
|
|
3488 |
|
|
function TStString.OctalB(B: Byte): WideString;
|
3489 |
|
|
begin
|
3490 |
|
|
Result := DefaultInterface.OctalB(B);
|
3491 |
|
|
end;
|
3492 |
|
|
|
3493 |
|
|
function TStString.OctalW(W: Integer): WideString;
|
3494 |
|
|
begin
|
3495 |
|
|
Result := DefaultInterface.OctalW(W);
|
3496 |
|
|
end;
|
3497 |
|
|
|
3498 |
|
|
function TStString.OctalL(L: Integer): WideString;
|
3499 |
|
|
begin
|
3500 |
|
|
Result := DefaultInterface.OctalL(L);
|
3501 |
|
|
end;
|
3502 |
|
|
|
3503 |
|
|
function TStString.Pad(const S: WideString; Len: Integer): WideString;
|
3504 |
|
|
begin
|
3505 |
|
|
Result := DefaultInterface.Pad(S, Len);
|
3506 |
|
|
end;
|
3507 |
|
|
|
3508 |
|
|
function TStString.PadCh(const S: WideString; const C: WideString; Len: Integer): WideString;
|
3509 |
|
|
begin
|
3510 |
|
|
Result := DefaultInterface.PadCh(S, C, Len);
|
3511 |
|
|
end;
|
3512 |
|
|
|
3513 |
|
|
function TStString.Real2Str(R: Double; Width: Byte; Places: Byte): WideString;
|
3514 |
|
|
begin
|
3515 |
|
|
Result := DefaultInterface.Real2Str(R, Width, Places);
|
3516 |
|
|
end;
|
3517 |
|
|
|
3518 |
|
|
function TStString.RepeatString(const S: WideString; var Repetitions: Integer; MaxLen: Integer): WideString;
|
3519 |
|
|
begin
|
3520 |
|
|
Result := DefaultInterface.RepeatString(S, Repetitions, MaxLen);
|
3521 |
|
|
end;
|
3522 |
|
|
|
3523 |
|
|
function TStString.ReplaceWord(const S: WideString; const WordDelims: WideString;
|
3524 |
|
|
const OldWord: WideString; const NewWord: WideString; N: Integer;
|
3525 |
|
|
var Replacements: Integer): WideString;
|
3526 |
|
|
begin
|
3527 |
|
|
Result := DefaultInterface.ReplaceWord(S, WordDelims, OldWord, NewWord, N, Replacements);
|
3528 |
|
|
end;
|
3529 |
|
|
|
3530 |
|
|
function TStString.ReplaceWordAll(const S: WideString; const WordDelims: WideString;
|
3531 |
|
|
const OldWord: WideString; const NewWord: WideString;
|
3532 |
|
|
var Replacements: Integer): WideString;
|
3533 |
|
|
begin
|
3534 |
|
|
Result := DefaultInterface.ReplaceWordAll(S, WordDelims, OldWord, NewWord, Replacements);
|
3535 |
|
|
end;
|
3536 |
|
|
|
3537 |
|
|
function TStString.ReplaceString(const S: WideString; const OldString: WideString;
|
3538 |
|
|
const NewString: WideString; N: Integer; var Replacements: Integer): WideString;
|
3539 |
|
|
begin
|
3540 |
|
|
Result := DefaultInterface.ReplaceString(S, OldString, NewString, N, Replacements);
|
3541 |
|
|
end;
|
3542 |
|
|
|
3543 |
|
|
function TStString.ReplaceStringAll(const S: WideString; const OldString: WideString;
|
3544 |
|
|
const NewString: WideString; var Replacements: Integer): WideString;
|
3545 |
|
|
begin
|
3546 |
|
|
Result := DefaultInterface.ReplaceStringAll(S, OldString, NewString, Replacements);
|
3547 |
|
|
end;
|
3548 |
|
|
|
3549 |
|
|
function TStString.RightTrimChars(const S: WideString; const Chars: WideString): WideString;
|
3550 |
|
|
begin
|
3551 |
|
|
Result := DefaultInterface.RightTrimChars(S, Chars);
|
3552 |
|
|
end;
|
3553 |
|
|
|
3554 |
|
|
function TStString.Scramble(const S: WideString; const Key: WideString): WideString;
|
3555 |
|
|
begin
|
3556 |
|
|
Result := DefaultInterface.Scramble(S, Key);
|
3557 |
|
|
end;
|
3558 |
|
|
|
3559 |
|
|
function TStString.Str2Ext(const S: WideString; var R: OleVariant): WordBool;
|
3560 |
|
|
begin
|
3561 |
|
|
Result := DefaultInterface.Str2Ext(S, R);
|
3562 |
|
|
end;
|
3563 |
|
|
|
3564 |
|
|
function TStString.Str2Int16(const S: WideString; var I: Smallint): WordBool;
|
3565 |
|
|
begin
|
3566 |
|
|
Result := DefaultInterface.Str2Int16(S, I);
|
3567 |
|
|
end;
|
3568 |
|
|
|
3569 |
|
|
function TStString.Str2Long(const S: WideString; var I: Integer): WordBool;
|
3570 |
|
|
begin
|
3571 |
|
|
Result := DefaultInterface.Str2Long(S, I);
|
3572 |
|
|
end;
|
3573 |
|
|
|
3574 |
|
|
function TStString.Str2Real(const S: WideString; var R: Double): WordBool;
|
3575 |
|
|
begin
|
3576 |
|
|
Result := DefaultInterface.Str2Real(S, R);
|
3577 |
|
|
end;
|
3578 |
|
|
|
3579 |
|
|
function TStString.Str2Word(const S: WideString; var W: Integer): WordBool;
|
3580 |
|
|
begin
|
3581 |
|
|
Result := DefaultInterface.Str2Word(S, W);
|
3582 |
|
|
end;
|
3583 |
|
|
|
3584 |
|
|
function TStString.StrChDelete(const S: WideString; Pos: Integer): WideString;
|
3585 |
|
|
begin
|
3586 |
|
|
Result := DefaultInterface.StrChDelete(S, Pos);
|
3587 |
|
|
end;
|
3588 |
|
|
|
3589 |
|
|
function TStString.StrChInsert(const S: WideString; const C: WideString; Pos: Integer): WideString;
|
3590 |
|
|
begin
|
3591 |
|
|
Result := DefaultInterface.StrChInsert(S, C, Pos);
|
3592 |
|
|
end;
|
3593 |
|
|
|
3594 |
|
|
function TStString.StrChPos(const P: WideString; const C: WideString; var Pos: Integer): WordBool;
|
3595 |
|
|
begin
|
3596 |
|
|
Result := DefaultInterface.StrChPos(P, C, Pos);
|
3597 |
|
|
end;
|
3598 |
|
|
|
3599 |
|
|
function TStString.StrStCopy(const S: WideString; Pos: Integer; Count: Integer): WideString;
|
3600 |
|
|
begin
|
3601 |
|
|
Result := DefaultInterface.StrStCopy(S, Pos, Count);
|
3602 |
|
|
end;
|
3603 |
|
|
|
3604 |
|
|
function TStString.StrStDelete(const S: WideString; Pos: Integer; Count: Integer): WideString;
|
3605 |
|
|
begin
|
3606 |
|
|
Result := DefaultInterface.StrStDelete(S, Pos, Count);
|
3607 |
|
|
end;
|
3608 |
|
|
|
3609 |
|
|
function TStString.StrStInsert(const S1: WideString; const S2: WideString; Pos: Integer): WideString;
|
3610 |
|
|
begin
|
3611 |
|
|
Result := DefaultInterface.StrStInsert(S1, S2, Pos);
|
3612 |
|
|
end;
|
3613 |
|
|
|
3614 |
|
|
function TStString.StrStPos(const P: WideString; const S: WideString; var Pos: Integer): WordBool;
|
3615 |
|
|
begin
|
3616 |
|
|
Result := DefaultInterface.StrStPos(P, S, Pos);
|
3617 |
|
|
end;
|
3618 |
|
|
|
3619 |
|
|
function TStString.StrWithin(const S: WideString; const SearchStr: WideString; Start: Integer;
|
3620 |
|
|
var Position: Integer): WordBool;
|
3621 |
|
|
begin
|
3622 |
|
|
Result := DefaultInterface.StrWithin(S, SearchStr, Start, Position);
|
3623 |
|
|
end;
|
3624 |
|
|
|
3625 |
|
|
function TStString.Substitute(const S: WideString; const FromStr: WideString;
|
3626 |
|
|
const ToStr: WideString): WideString;
|
3627 |
|
|
begin
|
3628 |
|
|
Result := DefaultInterface.Substitute(S, FromStr, ToStr);
|
3629 |
|
|
end;
|
3630 |
|
|
|
3631 |
|
|
function TStString.Trim(const S: WideString): WideString;
|
3632 |
|
|
begin
|
3633 |
|
|
Result := DefaultInterface.Trim(S);
|
3634 |
|
|
end;
|
3635 |
|
|
|
3636 |
|
|
function TStString.TrimChars(const S: WideString; const Chars: WideString): WideString;
|
3637 |
|
|
begin
|
3638 |
|
|
Result := DefaultInterface.TrimChars(S, Chars);
|
3639 |
|
|
end;
|
3640 |
|
|
|
3641 |
|
|
function TStString.TrimLead(const S: WideString): WideString;
|
3642 |
|
|
begin
|
3643 |
|
|
Result := DefaultInterface.TrimLead(S);
|
3644 |
|
|
end;
|
3645 |
|
|
|
3646 |
|
|
function TStString.TrimSpaces(const S: WideString): WideString;
|
3647 |
|
|
begin
|
3648 |
|
|
Result := DefaultInterface.TrimSpaces(S);
|
3649 |
|
|
end;
|
3650 |
|
|
|
3651 |
|
|
function TStString.TrimTrail(const S: WideString): WideString;
|
3652 |
|
|
begin
|
3653 |
|
|
Result := DefaultInterface.TrimTrail(S);
|
3654 |
|
|
end;
|
3655 |
|
|
|
3656 |
|
|
function TStString.ValPrep(const S: WideString): WideString;
|
3657 |
|
|
begin
|
3658 |
|
|
Result := DefaultInterface.ValPrep(S);
|
3659 |
|
|
end;
|
3660 |
|
|
|
3661 |
|
|
function TStString.WordCount(const S: WideString; const WordDelims: WideString): Integer;
|
3662 |
|
|
begin
|
3663 |
|
|
Result := DefaultInterface.WordCount(S, WordDelims);
|
3664 |
|
|
end;
|
3665 |
|
|
|
3666 |
|
|
function TStString.WordPos(const S: WideString; const WordDelims: WideString;
|
3667 |
|
|
const AWord: WideString; N: Integer; var Position: Integer): WordBool;
|
3668 |
|
|
begin
|
3669 |
|
|
Result := DefaultInterface.WordPos(S, WordDelims, AWord, N, Position);
|
3670 |
|
|
end;
|
3671 |
|
|
|
3672 |
|
|
function TStString.WordPosition(N: Integer; const S: WideString; const WordDelims: WideString;
|
3673 |
|
|
var Position: Integer): WordBool;
|
3674 |
|
|
begin
|
3675 |
|
|
Result := DefaultInterface.WordPosition(N, S, WordDelims, Position);
|
3676 |
|
|
end;
|
3677 |
|
|
|
3678 |
|
|
procedure TStString.WordWrap(const InSt: WideString; var OutSt: WideString;
|
3679 |
|
|
var Overlap: WideString; Margin: Integer; PadToMArgin: WordBool);
|
3680 |
|
|
begin
|
3681 |
|
|
DefaultInterface.WordWrap(InSt, OutSt, Overlap, Margin, PadToMArgin);
|
3682 |
|
|
end;
|
3683 |
|
|
|
3684 |
|
|
function TStString.License(const Key: WideString): WordBool;
|
3685 |
|
|
begin
|
3686 |
|
|
Result := DefaultInterface.License(Key);
|
3687 |
|
|
end;
|
3688 |
|
|
|
3689 |
|
|
function TStString.Soundex(const S: WideString): WideString;
|
3690 |
|
|
begin
|
3691 |
|
|
Result := DefaultInterface.Soundex(S);
|
3692 |
|
|
end;
|
3693 |
|
|
|
3694 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
3695 |
|
|
constructor TStStringProperties.Create(AServer: TStString);
|
3696 |
|
|
begin
|
3697 |
|
|
inherited Create;
|
3698 |
|
|
FServer := AServer;
|
3699 |
|
|
end;
|
3700 |
|
|
|
3701 |
|
|
function TStStringProperties.GetDefaultInterface: IStString;
|
3702 |
|
|
begin
|
3703 |
|
|
Result := FServer.DefaultInterface;
|
3704 |
|
|
end;
|
3705 |
|
|
|
3706 |
|
|
{$ENDIF}
|
3707 |
|
|
|
3708 |
|
|
class function CoStToHTML.Create: IStToHTML;
|
3709 |
|
|
begin
|
3710 |
|
|
Result := CreateComObject(CLASS_StToHTML) as IStToHTML;
|
3711 |
|
|
end;
|
3712 |
|
|
|
3713 |
|
|
class function CoStToHTML.CreateRemote(const MachineName: string): IStToHTML;
|
3714 |
|
|
begin
|
3715 |
|
|
Result := CreateRemoteComObject(MachineName, CLASS_StToHTML) as IStToHTML;
|
3716 |
|
|
end;
|
3717 |
|
|
|
3718 |
|
|
procedure TStToHTML.InitServerData;
|
3719 |
|
|
const
|
3720 |
|
|
CServerData: TServerData = (
|
3721 |
|
|
ClassID: '{807E3064-CA6F-4DEF-B6F6-BA4DBF4F51DD}';
|
3722 |
|
|
IntfIID: '{9F64CFCF-E50F-4807-A1AA-1E319B0A1D63}';
|
3723 |
|
|
EventIID: '{71DAEE82-3292-4122-8E4A-E1BB58D8D162}';
|
3724 |
|
|
LicenseKey: nil;
|
3725 |
|
|
Version: 500);
|
3726 |
|
|
begin
|
3727 |
|
|
ServerData := @CServerData;
|
3728 |
|
|
end;
|
3729 |
|
|
|
3730 |
|
|
procedure TStToHTML.Connect;
|
3731 |
|
|
var
|
3732 |
|
|
punk: IUnknown;
|
3733 |
|
|
begin
|
3734 |
|
|
if FIntf = nil then
|
3735 |
|
|
begin
|
3736 |
|
|
punk := GetServer;
|
3737 |
|
|
ConnectEvents(punk);
|
3738 |
|
|
Fintf:= punk as IStToHTML;
|
3739 |
|
|
end;
|
3740 |
|
|
end;
|
3741 |
|
|
|
3742 |
|
|
procedure TStToHTML.ConnectTo(svrIntf: IStToHTML);
|
3743 |
|
|
begin
|
3744 |
|
|
Disconnect;
|
3745 |
|
|
FIntf := svrIntf;
|
3746 |
|
|
ConnectEvents(FIntf);
|
3747 |
|
|
end;
|
3748 |
|
|
|
3749 |
|
|
procedure TStToHTML.DisConnect;
|
3750 |
|
|
begin
|
3751 |
|
|
if Fintf <> nil then
|
3752 |
|
|
begin
|
3753 |
|
|
DisconnectEvents(FIntf);
|
3754 |
|
|
FIntf := nil;
|
3755 |
|
|
end;
|
3756 |
|
|
end;
|
3757 |
|
|
|
3758 |
|
|
function TStToHTML.GetDefaultInterface: IStToHTML;
|
3759 |
|
|
begin
|
3760 |
|
|
if FIntf = nil then
|
3761 |
|
|
Connect;
|
3762 |
|
|
Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
|
3763 |
|
|
Result := FIntf;
|
3764 |
|
|
end;
|
3765 |
|
|
|
3766 |
|
|
constructor TStToHTML.Create(AOwner: TComponent);
|
3767 |
|
|
begin
|
3768 |
|
|
inherited Create(AOwner);
|
3769 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
3770 |
|
|
FProps := TStToHTMLProperties.Create(Self);
|
3771 |
|
|
{$ENDIF}
|
3772 |
|
|
end;
|
3773 |
|
|
|
3774 |
|
|
destructor TStToHTML.Destroy;
|
3775 |
|
|
begin
|
3776 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
3777 |
|
|
FProps.Free;
|
3778 |
|
|
{$ENDIF}
|
3779 |
|
|
inherited Destroy;
|
3780 |
|
|
end;
|
3781 |
|
|
|
3782 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
3783 |
|
|
function TStToHTML.GetServerProperties: TStToHTMLProperties;
|
3784 |
|
|
begin
|
3785 |
|
|
Result := FProps;
|
3786 |
|
|
end;
|
3787 |
|
|
{$ENDIF}
|
3788 |
|
|
|
3789 |
|
|
procedure TStToHTML.InvokeEvent(DispID: TDispID; var Params: TVariantArray);
|
3790 |
|
|
begin
|
3791 |
|
|
case DispID of
|
3792 |
|
|
-1: Exit; // DISPID_UNKNOWN
|
3793 |
|
|
1: if Assigned(FOnProgress) then
|
3794 |
|
|
FOnProgress(Self, Params[0] {Integer});
|
3795 |
|
|
end; {case DispID}
|
3796 |
|
|
end;
|
3797 |
|
|
|
3798 |
|
|
function TStToHTML.Get_CaseSensitve: WordBool;
|
3799 |
|
|
begin
|
3800 |
|
|
Result := DefaultInterface.Get_CaseSensitve;
|
3801 |
|
|
end;
|
3802 |
|
|
|
3803 |
|
|
procedure TStToHTML.Set_CaseSensitve(Value: WordBool);
|
3804 |
|
|
begin
|
3805 |
|
|
DefaultInterface.Set_CaseSensitve(Value);
|
3806 |
|
|
end;
|
3807 |
|
|
|
3808 |
|
|
function TStToHTML.Get_CommentMarkers: IStStringList;
|
3809 |
|
|
begin
|
3810 |
|
|
Result := DefaultInterface.Get_CommentMarkers;
|
3811 |
|
|
end;
|
3812 |
|
|
|
3813 |
|
|
procedure TStToHTML.Set_CommentMarkers(const Value: IStStringList);
|
3814 |
|
|
begin
|
3815 |
|
|
DefaultInterface.Set_CommentMarkers(Value);
|
3816 |
|
|
end;
|
3817 |
|
|
|
3818 |
|
|
function TStToHTML.Get_EmbeddedHTML: IStStringList;
|
3819 |
|
|
begin
|
3820 |
|
|
Result := DefaultInterface.Get_EmbeddedHTML;
|
3821 |
|
|
end;
|
3822 |
|
|
|
3823 |
|
|
procedure TStToHTML.Set_EmbeddedHTML(const Value: IStStringList);
|
3824 |
|
|
begin
|
3825 |
|
|
DefaultInterface.Set_EmbeddedHTML(Value);
|
3826 |
|
|
end;
|
3827 |
|
|
|
3828 |
|
|
function TStToHTML.Get_FixedLineLength: Integer;
|
3829 |
|
|
begin
|
3830 |
|
|
Result := DefaultInterface.Get_FixedLineLength;
|
3831 |
|
|
end;
|
3832 |
|
|
|
3833 |
|
|
procedure TStToHTML.Set_FixedLineLength(Value: Integer);
|
3834 |
|
|
begin
|
3835 |
|
|
DefaultInterface.Set_FixedLineLength(Value);
|
3836 |
|
|
end;
|
3837 |
|
|
|
3838 |
|
|
function TStToHTML.Get_Keywords: IStStringList;
|
3839 |
|
|
begin
|
3840 |
|
|
Result := DefaultInterface.Get_Keywords;
|
3841 |
|
|
end;
|
3842 |
|
|
|
3843 |
|
|
procedure TStToHTML.Set_Keywords(const Value: IStStringList);
|
3844 |
|
|
begin
|
3845 |
|
|
DefaultInterface.Set_Keywords(Value);
|
3846 |
|
|
end;
|
3847 |
|
|
|
3848 |
|
|
function TStToHTML.Get_LineTermChar: WideString;
|
3849 |
|
|
begin
|
3850 |
|
|
Result := DefaultInterface.Get_LineTermChar;
|
3851 |
|
|
end;
|
3852 |
|
|
|
3853 |
|
|
procedure TStToHTML.Set_LineTermChar(const Value: WideString);
|
3854 |
|
|
begin
|
3855 |
|
|
DefaultInterface.Set_LineTermChar(Value);
|
3856 |
|
|
end;
|
3857 |
|
|
|
3858 |
|
|
function TStToHTML.Get_LineTerminator: TStLineTerminator;
|
3859 |
|
|
begin
|
3860 |
|
|
Result := DefaultInterface.Get_LineTerminator;
|
3861 |
|
|
end;
|
3862 |
|
|
|
3863 |
|
|
procedure TStToHTML.Set_LineTerminator(Value: TStLineTerminator);
|
3864 |
|
|
begin
|
3865 |
|
|
DefaultInterface.Set_LineTerminator(Value);
|
3866 |
|
|
end;
|
3867 |
|
|
|
3868 |
|
|
function TStToHTML.Get_PageFooter: IStStringList;
|
3869 |
|
|
begin
|
3870 |
|
|
Result := DefaultInterface.Get_PageFooter;
|
3871 |
|
|
end;
|
3872 |
|
|
|
3873 |
|
|
procedure TStToHTML.Set_PageFooter(const Value: IStStringList);
|
3874 |
|
|
begin
|
3875 |
|
|
DefaultInterface.Set_PageFooter(Value);
|
3876 |
|
|
end;
|
3877 |
|
|
|
3878 |
|
|
function TStToHTML.Get_PageHeader: IStStringList;
|
3879 |
|
|
begin
|
3880 |
|
|
Result := DefaultInterface.Get_PageHeader;
|
3881 |
|
|
end;
|
3882 |
|
|
|
3883 |
|
|
procedure TStToHTML.Set_PageHeader(const Value: IStStringList);
|
3884 |
|
|
begin
|
3885 |
|
|
DefaultInterface.Set_PageHeader(Value);
|
3886 |
|
|
end;
|
3887 |
|
|
|
3888 |
|
|
function TStToHTML.Get_StringMarkers: IStStringList;
|
3889 |
|
|
begin
|
3890 |
|
|
Result := DefaultInterface.Get_StringMarkers;
|
3891 |
|
|
end;
|
3892 |
|
|
|
3893 |
|
|
procedure TStToHTML.Set_StringMarkers(const Value: IStStringList);
|
3894 |
|
|
begin
|
3895 |
|
|
DefaultInterface.Set_StringMarkers(Value);
|
3896 |
|
|
end;
|
3897 |
|
|
|
3898 |
|
|
function TStToHTML.Get_WordDelimeters: WideString;
|
3899 |
|
|
begin
|
3900 |
|
|
Result := DefaultInterface.Get_WordDelimeters;
|
3901 |
|
|
end;
|
3902 |
|
|
|
3903 |
|
|
procedure TStToHTML.Set_WordDelimeters(const Value: WideString);
|
3904 |
|
|
begin
|
3905 |
|
|
DefaultInterface.Set_WordDelimeters(Value);
|
3906 |
|
|
end;
|
3907 |
|
|
|
3908 |
|
|
function TStToHTML.Get_Stream: OleVariant;
|
3909 |
|
|
begin
|
3910 |
|
|
Result := DefaultInterface.Get_Stream;
|
3911 |
|
|
end;
|
3912 |
|
|
|
3913 |
|
|
procedure TStToHTML.Set_Stream(Value: OleVariant);
|
3914 |
|
|
begin
|
3915 |
|
|
DefaultInterface.Set_Stream(Value);
|
3916 |
|
|
end;
|
3917 |
|
|
|
3918 |
|
|
procedure TStToHTML.GenerateHTML;
|
3919 |
|
|
begin
|
3920 |
|
|
DefaultInterface.GenerateHTML;
|
3921 |
|
|
end;
|
3922 |
|
|
|
3923 |
|
|
procedure TStToHTML.LoadFromFile(const FileName: WideString);
|
3924 |
|
|
begin
|
3925 |
|
|
DefaultInterface.LoadFromFile(FileName);
|
3926 |
|
|
end;
|
3927 |
|
|
|
3928 |
|
|
procedure TStToHTML.SaveToFile(const FileName: WideString);
|
3929 |
|
|
begin
|
3930 |
|
|
DefaultInterface.SaveToFile(FileName);
|
3931 |
|
|
end;
|
3932 |
|
|
|
3933 |
|
|
procedure TStToHTML.Clear;
|
3934 |
|
|
begin
|
3935 |
|
|
DefaultInterface.Clear;
|
3936 |
|
|
end;
|
3937 |
|
|
|
3938 |
|
|
function TStToHTML.License(const Key: WideString): WordBool;
|
3939 |
|
|
begin
|
3940 |
|
|
Result := DefaultInterface.License(Key);
|
3941 |
|
|
end;
|
3942 |
|
|
|
3943 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
3944 |
|
|
constructor TStToHTMLProperties.Create(AServer: TStToHTML);
|
3945 |
|
|
begin
|
3946 |
|
|
inherited Create;
|
3947 |
|
|
FServer := AServer;
|
3948 |
|
|
end;
|
3949 |
|
|
|
3950 |
|
|
function TStToHTMLProperties.GetDefaultInterface: IStToHTML;
|
3951 |
|
|
begin
|
3952 |
|
|
Result := FServer.DefaultInterface;
|
3953 |
|
|
end;
|
3954 |
|
|
|
3955 |
|
|
function TStToHTMLProperties.Get_CaseSensitve: WordBool;
|
3956 |
|
|
begin
|
3957 |
|
|
Result := DefaultInterface.Get_CaseSensitve;
|
3958 |
|
|
end;
|
3959 |
|
|
|
3960 |
|
|
procedure TStToHTMLProperties.Set_CaseSensitve(Value: WordBool);
|
3961 |
|
|
begin
|
3962 |
|
|
DefaultInterface.Set_CaseSensitve(Value);
|
3963 |
|
|
end;
|
3964 |
|
|
|
3965 |
|
|
function TStToHTMLProperties.Get_CommentMarkers: IStStringList;
|
3966 |
|
|
begin
|
3967 |
|
|
Result := DefaultInterface.Get_CommentMarkers;
|
3968 |
|
|
end;
|
3969 |
|
|
|
3970 |
|
|
procedure TStToHTMLProperties.Set_CommentMarkers(const Value: IStStringList);
|
3971 |
|
|
begin
|
3972 |
|
|
DefaultInterface.Set_CommentMarkers(Value);
|
3973 |
|
|
end;
|
3974 |
|
|
|
3975 |
|
|
function TStToHTMLProperties.Get_EmbeddedHTML: IStStringList;
|
3976 |
|
|
begin
|
3977 |
|
|
Result := DefaultInterface.Get_EmbeddedHTML;
|
3978 |
|
|
end;
|
3979 |
|
|
|
3980 |
|
|
procedure TStToHTMLProperties.Set_EmbeddedHTML(const Value: IStStringList);
|
3981 |
|
|
begin
|
3982 |
|
|
DefaultInterface.Set_EmbeddedHTML(Value);
|
3983 |
|
|
end;
|
3984 |
|
|
|
3985 |
|
|
function TStToHTMLProperties.Get_FixedLineLength: Integer;
|
3986 |
|
|
begin
|
3987 |
|
|
Result := DefaultInterface.Get_FixedLineLength;
|
3988 |
|
|
end;
|
3989 |
|
|
|
3990 |
|
|
procedure TStToHTMLProperties.Set_FixedLineLength(Value: Integer);
|
3991 |
|
|
begin
|
3992 |
|
|
DefaultInterface.Set_FixedLineLength(Value);
|
3993 |
|
|
end;
|
3994 |
|
|
|
3995 |
|
|
function TStToHTMLProperties.Get_Keywords: IStStringList;
|
3996 |
|
|
begin
|
3997 |
|
|
Result := DefaultInterface.Get_Keywords;
|
3998 |
|
|
end;
|
3999 |
|
|
|
4000 |
|
|
procedure TStToHTMLProperties.Set_Keywords(const Value: IStStringList);
|
4001 |
|
|
begin
|
4002 |
|
|
DefaultInterface.Set_Keywords(Value);
|
4003 |
|
|
end;
|
4004 |
|
|
|
4005 |
|
|
function TStToHTMLProperties.Get_LineTermChar: WideString;
|
4006 |
|
|
begin
|
4007 |
|
|
Result := DefaultInterface.Get_LineTermChar;
|
4008 |
|
|
end;
|
4009 |
|
|
|
4010 |
|
|
procedure TStToHTMLProperties.Set_LineTermChar(const Value: WideString);
|
4011 |
|
|
begin
|
4012 |
|
|
DefaultInterface.Set_LineTermChar(Value);
|
4013 |
|
|
end;
|
4014 |
|
|
|
4015 |
|
|
function TStToHTMLProperties.Get_LineTerminator: TStLineTerminator;
|
4016 |
|
|
begin
|
4017 |
|
|
Result := DefaultInterface.Get_LineTerminator;
|
4018 |
|
|
end;
|
4019 |
|
|
|
4020 |
|
|
procedure TStToHTMLProperties.Set_LineTerminator(Value: TStLineTerminator);
|
4021 |
|
|
begin
|
4022 |
|
|
DefaultInterface.Set_LineTerminator(Value);
|
4023 |
|
|
end;
|
4024 |
|
|
|
4025 |
|
|
function TStToHTMLProperties.Get_PageFooter: IStStringList;
|
4026 |
|
|
begin
|
4027 |
|
|
Result := DefaultInterface.Get_PageFooter;
|
4028 |
|
|
end;
|
4029 |
|
|
|
4030 |
|
|
procedure TStToHTMLProperties.Set_PageFooter(const Value: IStStringList);
|
4031 |
|
|
begin
|
4032 |
|
|
DefaultInterface.Set_PageFooter(Value);
|
4033 |
|
|
end;
|
4034 |
|
|
|
4035 |
|
|
function TStToHTMLProperties.Get_PageHeader: IStStringList;
|
4036 |
|
|
begin
|
4037 |
|
|
Result := DefaultInterface.Get_PageHeader;
|
4038 |
|
|
end;
|
4039 |
|
|
|
4040 |
|
|
procedure TStToHTMLProperties.Set_PageHeader(const Value: IStStringList);
|
4041 |
|
|
begin
|
4042 |
|
|
DefaultInterface.Set_PageHeader(Value);
|
4043 |
|
|
end;
|
4044 |
|
|
|
4045 |
|
|
function TStToHTMLProperties.Get_StringMarkers: IStStringList;
|
4046 |
|
|
begin
|
4047 |
|
|
Result := DefaultInterface.Get_StringMarkers;
|
4048 |
|
|
end;
|
4049 |
|
|
|
4050 |
|
|
procedure TStToHTMLProperties.Set_StringMarkers(const Value: IStStringList);
|
4051 |
|
|
begin
|
4052 |
|
|
DefaultInterface.Set_StringMarkers(Value);
|
4053 |
|
|
end;
|
4054 |
|
|
|
4055 |
|
|
function TStToHTMLProperties.Get_WordDelimeters: WideString;
|
4056 |
|
|
begin
|
4057 |
|
|
Result := DefaultInterface.Get_WordDelimeters;
|
4058 |
|
|
end;
|
4059 |
|
|
|
4060 |
|
|
procedure TStToHTMLProperties.Set_WordDelimeters(const Value: WideString);
|
4061 |
|
|
begin
|
4062 |
|
|
DefaultInterface.Set_WordDelimeters(Value);
|
4063 |
|
|
end;
|
4064 |
|
|
|
4065 |
|
|
function TStToHTMLProperties.Get_Stream: OleVariant;
|
4066 |
|
|
begin
|
4067 |
|
|
Result := DefaultInterface.Get_Stream;
|
4068 |
|
|
end;
|
4069 |
|
|
|
4070 |
|
|
procedure TStToHTMLProperties.Set_Stream(Value: OleVariant);
|
4071 |
|
|
begin
|
4072 |
|
|
DefaultInterface.Set_Stream(Value);
|
4073 |
|
|
end;
|
4074 |
|
|
|
4075 |
|
|
{$ENDIF}
|
4076 |
|
|
|
4077 |
|
|
class function CoStStringList.Create: IStStringList;
|
4078 |
|
|
begin
|
4079 |
|
|
Result := CreateComObject(CLASS_StStringList) as IStStringList;
|
4080 |
|
|
end;
|
4081 |
|
|
|
4082 |
|
|
class function CoStStringList.CreateRemote(const MachineName: string): IStStringList;
|
4083 |
|
|
begin
|
4084 |
|
|
Result := CreateRemoteComObject(MachineName, CLASS_StStringList) as IStStringList;
|
4085 |
|
|
end;
|
4086 |
|
|
|
4087 |
|
|
procedure TStStringList.InitServerData;
|
4088 |
|
|
const
|
4089 |
|
|
CServerData: TServerData = (
|
4090 |
|
|
ClassID: '{1689CC1F-4D2E-409E-AFFD-1EBAC808C569}';
|
4091 |
|
|
IntfIID: '{7A005B00-EE90-4034-B05A-64579C0A7837}';
|
4092 |
|
|
EventIID: '{2457A45F-311D-4E0F-A370-AAD85C6C922E}';
|
4093 |
|
|
LicenseKey: nil;
|
4094 |
|
|
Version: 500);
|
4095 |
|
|
begin
|
4096 |
|
|
ServerData := @CServerData;
|
4097 |
|
|
end;
|
4098 |
|
|
|
4099 |
|
|
procedure TStStringList.Connect;
|
4100 |
|
|
var
|
4101 |
|
|
punk: IUnknown;
|
4102 |
|
|
begin
|
4103 |
|
|
if FIntf = nil then
|
4104 |
|
|
begin
|
4105 |
|
|
punk := GetServer;
|
4106 |
|
|
ConnectEvents(punk);
|
4107 |
|
|
Fintf:= punk as IStStringList;
|
4108 |
|
|
end;
|
4109 |
|
|
end;
|
4110 |
|
|
|
4111 |
|
|
procedure TStStringList.ConnectTo(svrIntf: IStStringList);
|
4112 |
|
|
begin
|
4113 |
|
|
Disconnect;
|
4114 |
|
|
FIntf := svrIntf;
|
4115 |
|
|
ConnectEvents(FIntf);
|
4116 |
|
|
end;
|
4117 |
|
|
|
4118 |
|
|
procedure TStStringList.DisConnect;
|
4119 |
|
|
begin
|
4120 |
|
|
if Fintf <> nil then
|
4121 |
|
|
begin
|
4122 |
|
|
DisconnectEvents(FIntf);
|
4123 |
|
|
FIntf := nil;
|
4124 |
|
|
end;
|
4125 |
|
|
end;
|
4126 |
|
|
|
4127 |
|
|
function TStStringList.GetDefaultInterface: IStStringList;
|
4128 |
|
|
begin
|
4129 |
|
|
if FIntf = nil then
|
4130 |
|
|
Connect;
|
4131 |
|
|
Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
|
4132 |
|
|
Result := FIntf;
|
4133 |
|
|
end;
|
4134 |
|
|
|
4135 |
|
|
constructor TStStringList.Create(AOwner: TComponent);
|
4136 |
|
|
begin
|
4137 |
|
|
inherited Create(AOwner);
|
4138 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
4139 |
|
|
FProps := TStStringListProperties.Create(Self);
|
4140 |
|
|
{$ENDIF}
|
4141 |
|
|
end;
|
4142 |
|
|
|
4143 |
|
|
destructor TStStringList.Destroy;
|
4144 |
|
|
begin
|
4145 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
4146 |
|
|
FProps.Free;
|
4147 |
|
|
{$ENDIF}
|
4148 |
|
|
inherited Destroy;
|
4149 |
|
|
end;
|
4150 |
|
|
|
4151 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
4152 |
|
|
function TStStringList.GetServerProperties: TStStringListProperties;
|
4153 |
|
|
begin
|
4154 |
|
|
Result := FProps;
|
4155 |
|
|
end;
|
4156 |
|
|
{$ENDIF}
|
4157 |
|
|
|
4158 |
|
|
procedure TStStringList.InvokeEvent(DispID: TDispID; var Params: TVariantArray);
|
4159 |
|
|
begin
|
4160 |
|
|
case DispID of
|
4161 |
|
|
-1: Exit; // DISPID_UNKNOWN
|
4162 |
|
|
1: if Assigned(FOnChange) then
|
4163 |
|
|
FOnChange(Self);
|
4164 |
|
|
2: if Assigned(FOnChanging) then
|
4165 |
|
|
FOnChanging(Self);
|
4166 |
|
|
end; {case DispID}
|
4167 |
|
|
end;
|
4168 |
|
|
|
4169 |
|
|
function TStStringList.Get__NewEnum: IUnknown;
|
4170 |
|
|
begin
|
4171 |
|
|
Result := DefaultInterface.Get__NewEnum;
|
4172 |
|
|
end;
|
4173 |
|
|
|
4174 |
|
|
function TStStringList.Get_Item(Index: Integer): WideString;
|
4175 |
|
|
begin
|
4176 |
|
|
Result := DefaultInterface.Get_Item(Index);
|
4177 |
|
|
end;
|
4178 |
|
|
|
4179 |
|
|
procedure TStStringList.Set_Item(Index: Integer; const Value: WideString);
|
4180 |
|
|
begin
|
4181 |
|
|
DefaultInterface.Set_Item(Index, Value);
|
4182 |
|
|
end;
|
4183 |
|
|
|
4184 |
|
|
function TStStringList.Get_CommaText: WideString;
|
4185 |
|
|
begin
|
4186 |
|
|
Result := DefaultInterface.Get_CommaText;
|
4187 |
|
|
end;
|
4188 |
|
|
|
4189 |
|
|
procedure TStStringList.Set_CommaText(const Value: WideString);
|
4190 |
|
|
begin
|
4191 |
|
|
DefaultInterface.Set_CommaText(Value);
|
4192 |
|
|
end;
|
4193 |
|
|
|
4194 |
|
|
function TStStringList.Get_Count: Integer;
|
4195 |
|
|
begin
|
4196 |
|
|
Result := DefaultInterface.Get_Count;
|
4197 |
|
|
end;
|
4198 |
|
|
|
4199 |
|
|
function TStStringList.Get_Duplicates: Integer;
|
4200 |
|
|
begin
|
4201 |
|
|
Result := DefaultInterface.Get_Duplicates;
|
4202 |
|
|
end;
|
4203 |
|
|
|
4204 |
|
|
procedure TStStringList.Set_Duplicates(Value: Integer);
|
4205 |
|
|
begin
|
4206 |
|
|
DefaultInterface.Set_Duplicates(Value);
|
4207 |
|
|
end;
|
4208 |
|
|
|
4209 |
|
|
function TStStringList.Get_Names(Index: Integer): WideString;
|
4210 |
|
|
begin
|
4211 |
|
|
Result := DefaultInterface.Get_Names(Index);
|
4212 |
|
|
end;
|
4213 |
|
|
|
4214 |
|
|
function TStStringList.Get_Sorted: WordBool;
|
4215 |
|
|
begin
|
4216 |
|
|
Result := DefaultInterface.Get_Sorted;
|
4217 |
|
|
end;
|
4218 |
|
|
|
4219 |
|
|
procedure TStStringList.Set_Sorted(Value: WordBool);
|
4220 |
|
|
begin
|
4221 |
|
|
DefaultInterface.Set_Sorted(Value);
|
4222 |
|
|
end;
|
4223 |
|
|
|
4224 |
|
|
function TStStringList.Get_Strings(Index: Integer): WideString;
|
4225 |
|
|
begin
|
4226 |
|
|
Result := DefaultInterface.Get_Strings(Index);
|
4227 |
|
|
end;
|
4228 |
|
|
|
4229 |
|
|
procedure TStStringList.Set_Strings(Index: Integer; const Value: WideString);
|
4230 |
|
|
begin
|
4231 |
|
|
DefaultInterface.Set_Strings(Index, Value);
|
4232 |
|
|
end;
|
4233 |
|
|
|
4234 |
|
|
function TStStringList.Get_Text: WideString;
|
4235 |
|
|
begin
|
4236 |
|
|
Result := DefaultInterface.Get_Text;
|
4237 |
|
|
end;
|
4238 |
|
|
|
4239 |
|
|
procedure TStStringList.Set_Text(const Value: WideString);
|
4240 |
|
|
begin
|
4241 |
|
|
DefaultInterface.Set_Text(Value);
|
4242 |
|
|
end;
|
4243 |
|
|
|
4244 |
|
|
function TStStringList.Get_Values(const Name: WideString): WideString;
|
4245 |
|
|
begin
|
4246 |
|
|
Result := DefaultInterface.Get_Values(Name);
|
4247 |
|
|
end;
|
4248 |
|
|
|
4249 |
|
|
procedure TStStringList.Set_Values(const Name: WideString; const Value: WideString);
|
4250 |
|
|
begin
|
4251 |
|
|
DefaultInterface.Set_Values(Name, Value);
|
4252 |
|
|
end;
|
4253 |
|
|
|
4254 |
|
|
function TStStringList.Get_Stream: OleVariant;
|
4255 |
|
|
begin
|
4256 |
|
|
Result := DefaultInterface.Get_Stream;
|
4257 |
|
|
end;
|
4258 |
|
|
|
4259 |
|
|
procedure TStStringList.Set_Stream(Value: OleVariant);
|
4260 |
|
|
begin
|
4261 |
|
|
DefaultInterface.Set_Stream(Value);
|
4262 |
|
|
end;
|
4263 |
|
|
|
4264 |
|
|
function TStStringList.Add(const S: WideString): Integer;
|
4265 |
|
|
begin
|
4266 |
|
|
Result := DefaultInterface.Add(S);
|
4267 |
|
|
end;
|
4268 |
|
|
|
4269 |
|
|
procedure TStStringList.Append(const S: WideString);
|
4270 |
|
|
begin
|
4271 |
|
|
DefaultInterface.Append(S);
|
4272 |
|
|
end;
|
4273 |
|
|
|
4274 |
|
|
procedure TStStringList.Clear;
|
4275 |
|
|
begin
|
4276 |
|
|
DefaultInterface.Clear;
|
4277 |
|
|
end;
|
4278 |
|
|
|
4279 |
|
|
procedure TStStringList.Delete(Index: Integer);
|
4280 |
|
|
begin
|
4281 |
|
|
DefaultInterface.Delete(Index);
|
4282 |
|
|
end;
|
4283 |
|
|
|
4284 |
|
|
function TStStringList.Equals(const Strings: IStStringList): WordBool;
|
4285 |
|
|
begin
|
4286 |
|
|
Result := DefaultInterface.Equals(Strings);
|
4287 |
|
|
end;
|
4288 |
|
|
|
4289 |
|
|
procedure TStStringList.Exchange(Index1: Integer; Index2: Integer);
|
4290 |
|
|
begin
|
4291 |
|
|
DefaultInterface.Exchange(Index1, Index2);
|
4292 |
|
|
end;
|
4293 |
|
|
|
4294 |
|
|
function TStStringList.Find(const S: WideString; var Index: Integer): WordBool;
|
4295 |
|
|
begin
|
4296 |
|
|
Result := DefaultInterface.Find(S, Index);
|
4297 |
|
|
end;
|
4298 |
|
|
|
4299 |
|
|
function TStStringList.IndexOf(const S: WideString): Integer;
|
4300 |
|
|
begin
|
4301 |
|
|
Result := DefaultInterface.IndexOf(S);
|
4302 |
|
|
end;
|
4303 |
|
|
|
4304 |
|
|
function TStStringList.IndexOfName(const Name: WideString): Integer;
|
4305 |
|
|
begin
|
4306 |
|
|
Result := DefaultInterface.IndexOfName(Name);
|
4307 |
|
|
end;
|
4308 |
|
|
|
4309 |
|
|
procedure TStStringList.Insert(Index: Integer; const S: WideString);
|
4310 |
|
|
begin
|
4311 |
|
|
DefaultInterface.Insert(Index, S);
|
4312 |
|
|
end;
|
4313 |
|
|
|
4314 |
|
|
procedure TStStringList.LoadFromFile(const FileName: WideString);
|
4315 |
|
|
begin
|
4316 |
|
|
DefaultInterface.LoadFromFile(FileName);
|
4317 |
|
|
end;
|
4318 |
|
|
|
4319 |
|
|
procedure TStStringList.Move(CurIndex: Integer; NewIndex: Integer);
|
4320 |
|
|
begin
|
4321 |
|
|
DefaultInterface.Move(CurIndex, NewIndex);
|
4322 |
|
|
end;
|
4323 |
|
|
|
4324 |
|
|
procedure TStStringList.SaveToFile(const FileName: WideString);
|
4325 |
|
|
begin
|
4326 |
|
|
DefaultInterface.SaveToFile(FileName);
|
4327 |
|
|
end;
|
4328 |
|
|
|
4329 |
|
|
procedure TStStringList.Sort;
|
4330 |
|
|
begin
|
4331 |
|
|
DefaultInterface.Sort;
|
4332 |
|
|
end;
|
4333 |
|
|
|
4334 |
|
|
function TStStringList.License(const Key: WideString): WordBool;
|
4335 |
|
|
begin
|
4336 |
|
|
Result := DefaultInterface.License(Key);
|
4337 |
|
|
end;
|
4338 |
|
|
|
4339 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
4340 |
|
|
constructor TStStringListProperties.Create(AServer: TStStringList);
|
4341 |
|
|
begin
|
4342 |
|
|
inherited Create;
|
4343 |
|
|
FServer := AServer;
|
4344 |
|
|
end;
|
4345 |
|
|
|
4346 |
|
|
function TStStringListProperties.GetDefaultInterface: IStStringList;
|
4347 |
|
|
begin
|
4348 |
|
|
Result := FServer.DefaultInterface;
|
4349 |
|
|
end;
|
4350 |
|
|
|
4351 |
|
|
function TStStringListProperties.Get__NewEnum: IUnknown;
|
4352 |
|
|
begin
|
4353 |
|
|
Result := DefaultInterface.Get__NewEnum;
|
4354 |
|
|
end;
|
4355 |
|
|
|
4356 |
|
|
function TStStringListProperties.Get_Item(Index: Integer): WideString;
|
4357 |
|
|
begin
|
4358 |
|
|
Result := DefaultInterface.Get_Item(Index);
|
4359 |
|
|
end;
|
4360 |
|
|
|
4361 |
|
|
procedure TStStringListProperties.Set_Item(Index: Integer; const Value: WideString);
|
4362 |
|
|
begin
|
4363 |
|
|
DefaultInterface.Set_Item(Index, Value);
|
4364 |
|
|
end;
|
4365 |
|
|
|
4366 |
|
|
function TStStringListProperties.Get_CommaText: WideString;
|
4367 |
|
|
begin
|
4368 |
|
|
Result := DefaultInterface.Get_CommaText;
|
4369 |
|
|
end;
|
4370 |
|
|
|
4371 |
|
|
procedure TStStringListProperties.Set_CommaText(const Value: WideString);
|
4372 |
|
|
begin
|
4373 |
|
|
DefaultInterface.Set_CommaText(Value);
|
4374 |
|
|
end;
|
4375 |
|
|
|
4376 |
|
|
function TStStringListProperties.Get_Count: Integer;
|
4377 |
|
|
begin
|
4378 |
|
|
Result := DefaultInterface.Get_Count;
|
4379 |
|
|
end;
|
4380 |
|
|
|
4381 |
|
|
function TStStringListProperties.Get_Duplicates: Integer;
|
4382 |
|
|
begin
|
4383 |
|
|
Result := DefaultInterface.Get_Duplicates;
|
4384 |
|
|
end;
|
4385 |
|
|
|
4386 |
|
|
procedure TStStringListProperties.Set_Duplicates(Value: Integer);
|
4387 |
|
|
begin
|
4388 |
|
|
DefaultInterface.Set_Duplicates(Value);
|
4389 |
|
|
end;
|
4390 |
|
|
|
4391 |
|
|
function TStStringListProperties.Get_Names(Index: Integer): WideString;
|
4392 |
|
|
begin
|
4393 |
|
|
Result := DefaultInterface.Get_Names(Index);
|
4394 |
|
|
end;
|
4395 |
|
|
|
4396 |
|
|
function TStStringListProperties.Get_Sorted: WordBool;
|
4397 |
|
|
begin
|
4398 |
|
|
Result := DefaultInterface.Get_Sorted;
|
4399 |
|
|
end;
|
4400 |
|
|
|
4401 |
|
|
procedure TStStringListProperties.Set_Sorted(Value: WordBool);
|
4402 |
|
|
begin
|
4403 |
|
|
DefaultInterface.Set_Sorted(Value);
|
4404 |
|
|
end;
|
4405 |
|
|
|
4406 |
|
|
function TStStringListProperties.Get_Strings(Index: Integer): WideString;
|
4407 |
|
|
begin
|
4408 |
|
|
Result := DefaultInterface.Get_Strings(Index);
|
4409 |
|
|
end;
|
4410 |
|
|
|
4411 |
|
|
procedure TStStringListProperties.Set_Strings(Index: Integer; const Value: WideString);
|
4412 |
|
|
begin
|
4413 |
|
|
DefaultInterface.Set_Strings(Index, Value);
|
4414 |
|
|
end;
|
4415 |
|
|
|
4416 |
|
|
function TStStringListProperties.Get_Text: WideString;
|
4417 |
|
|
begin
|
4418 |
|
|
Result := DefaultInterface.Get_Text;
|
4419 |
|
|
end;
|
4420 |
|
|
|
4421 |
|
|
procedure TStStringListProperties.Set_Text(const Value: WideString);
|
4422 |
|
|
begin
|
4423 |
|
|
DefaultInterface.Set_Text(Value);
|
4424 |
|
|
end;
|
4425 |
|
|
|
4426 |
|
|
function TStStringListProperties.Get_Values(const Name: WideString): WideString;
|
4427 |
|
|
begin
|
4428 |
|
|
Result := DefaultInterface.Get_Values(Name);
|
4429 |
|
|
end;
|
4430 |
|
|
|
4431 |
|
|
procedure TStStringListProperties.Set_Values(const Name: WideString; const Value: WideString);
|
4432 |
|
|
begin
|
4433 |
|
|
DefaultInterface.Set_Values(Name, Value);
|
4434 |
|
|
end;
|
4435 |
|
|
|
4436 |
|
|
function TStStringListProperties.Get_Stream: OleVariant;
|
4437 |
|
|
begin
|
4438 |
|
|
Result := DefaultInterface.Get_Stream;
|
4439 |
|
|
end;
|
4440 |
|
|
|
4441 |
|
|
procedure TStStringListProperties.Set_Stream(Value: OleVariant);
|
4442 |
|
|
begin
|
4443 |
|
|
DefaultInterface.Set_Stream(Value);
|
4444 |
|
|
end;
|
4445 |
|
|
|
4446 |
|
|
{$ENDIF}
|
4447 |
|
|
|
4448 |
|
|
class function CoStRegEx.Create: IStRegEx;
|
4449 |
|
|
begin
|
4450 |
|
|
Result := CreateComObject(CLASS_StRegEx) as IStRegEx;
|
4451 |
|
|
end;
|
4452 |
|
|
|
4453 |
|
|
class function CoStRegEx.CreateRemote(const MachineName: string): IStRegEx;
|
4454 |
|
|
begin
|
4455 |
|
|
Result := CreateRemoteComObject(MachineName, CLASS_StRegEx) as IStRegEx;
|
4456 |
|
|
end;
|
4457 |
|
|
|
4458 |
|
|
procedure TStRegEx.InitServerData;
|
4459 |
|
|
const
|
4460 |
|
|
CServerData: TServerData = (
|
4461 |
|
|
ClassID: '{E894200A-226E-4B27-8FB5-320BF9430046}';
|
4462 |
|
|
IntfIID: '{6498218A-2A04-4B0F-AD99-AD1D551997E8}';
|
4463 |
|
|
EventIID: '{25513E60-B981-49F8-AD17-E18E7358163A}';
|
4464 |
|
|
LicenseKey: nil;
|
4465 |
|
|
Version: 500);
|
4466 |
|
|
begin
|
4467 |
|
|
ServerData := @CServerData;
|
4468 |
|
|
end;
|
4469 |
|
|
|
4470 |
|
|
procedure TStRegEx.Connect;
|
4471 |
|
|
var
|
4472 |
|
|
punk: IUnknown;
|
4473 |
|
|
begin
|
4474 |
|
|
if FIntf = nil then
|
4475 |
|
|
begin
|
4476 |
|
|
punk := GetServer;
|
4477 |
|
|
ConnectEvents(punk);
|
4478 |
|
|
Fintf:= punk as IStRegEx;
|
4479 |
|
|
end;
|
4480 |
|
|
end;
|
4481 |
|
|
|
4482 |
|
|
procedure TStRegEx.ConnectTo(svrIntf: IStRegEx);
|
4483 |
|
|
begin
|
4484 |
|
|
Disconnect;
|
4485 |
|
|
FIntf := svrIntf;
|
4486 |
|
|
ConnectEvents(FIntf);
|
4487 |
|
|
end;
|
4488 |
|
|
|
4489 |
|
|
procedure TStRegEx.DisConnect;
|
4490 |
|
|
begin
|
4491 |
|
|
if Fintf <> nil then
|
4492 |
|
|
begin
|
4493 |
|
|
DisconnectEvents(FIntf);
|
4494 |
|
|
FIntf := nil;
|
4495 |
|
|
end;
|
4496 |
|
|
end;
|
4497 |
|
|
|
4498 |
|
|
function TStRegEx.GetDefaultInterface: IStRegEx;
|
4499 |
|
|
begin
|
4500 |
|
|
if FIntf = nil then
|
4501 |
|
|
Connect;
|
4502 |
|
|
Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
|
4503 |
|
|
Result := FIntf;
|
4504 |
|
|
end;
|
4505 |
|
|
|
4506 |
|
|
constructor TStRegEx.Create(AOwner: TComponent);
|
4507 |
|
|
begin
|
4508 |
|
|
inherited Create(AOwner);
|
4509 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
4510 |
|
|
FProps := TStRegExProperties.Create(Self);
|
4511 |
|
|
{$ENDIF}
|
4512 |
|
|
end;
|
4513 |
|
|
|
4514 |
|
|
destructor TStRegEx.Destroy;
|
4515 |
|
|
begin
|
4516 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
4517 |
|
|
FProps.Free;
|
4518 |
|
|
{$ENDIF}
|
4519 |
|
|
inherited Destroy;
|
4520 |
|
|
end;
|
4521 |
|
|
|
4522 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
4523 |
|
|
function TStRegEx.GetServerProperties: TStRegExProperties;
|
4524 |
|
|
begin
|
4525 |
|
|
Result := FProps;
|
4526 |
|
|
end;
|
4527 |
|
|
{$ENDIF}
|
4528 |
|
|
|
4529 |
|
|
procedure TStRegEx.InvokeEvent(DispID: TDispID; var Params: TVariantArray);
|
4530 |
|
|
begin
|
4531 |
|
|
case DispID of
|
4532 |
|
|
-1: Exit; // DISPID_UNKNOWN
|
4533 |
|
|
1: if Assigned(FOnProgress) then
|
4534 |
|
|
FOnProgress(Self, Params[0] {Integer});
|
4535 |
|
|
end; {case DispID}
|
4536 |
|
|
end;
|
4537 |
|
|
|
4538 |
|
|
function TStRegEx.Get_Avoid: WordBool;
|
4539 |
|
|
begin
|
4540 |
|
|
Result := DefaultInterface.Get_Avoid;
|
4541 |
|
|
end;
|
4542 |
|
|
|
4543 |
|
|
procedure TStRegEx.Set_Avoid(Value: WordBool);
|
4544 |
|
|
begin
|
4545 |
|
|
DefaultInterface.Set_Avoid(Value);
|
4546 |
|
|
end;
|
4547 |
|
|
|
4548 |
|
|
function TStRegEx.Get_IgnoreCase: WordBool;
|
4549 |
|
|
begin
|
4550 |
|
|
Result := DefaultInterface.Get_IgnoreCase;
|
4551 |
|
|
end;
|
4552 |
|
|
|
4553 |
|
|
procedure TStRegEx.Set_IgnoreCase(Value: WordBool);
|
4554 |
|
|
begin
|
4555 |
|
|
DefaultInterface.Set_IgnoreCase(Value);
|
4556 |
|
|
end;
|
4557 |
|
|
|
4558 |
|
|
function TStRegEx.Get_InFixedLineLength: Integer;
|
4559 |
|
|
begin
|
4560 |
|
|
Result := DefaultInterface.Get_InFixedLineLength;
|
4561 |
|
|
end;
|
4562 |
|
|
|
4563 |
|
|
procedure TStRegEx.Set_InFixedLineLength(Value: Integer);
|
4564 |
|
|
begin
|
4565 |
|
|
DefaultInterface.Set_InFixedLineLength(Value);
|
4566 |
|
|
end;
|
4567 |
|
|
|
4568 |
|
|
function TStRegEx.Get_InLineTermChar: WideString;
|
4569 |
|
|
begin
|
4570 |
|
|
Result := DefaultInterface.Get_InLineTermChar;
|
4571 |
|
|
end;
|
4572 |
|
|
|
4573 |
|
|
procedure TStRegEx.Set_InLineTermChar(const Value: WideString);
|
4574 |
|
|
begin
|
4575 |
|
|
DefaultInterface.Set_InLineTermChar(Value);
|
4576 |
|
|
end;
|
4577 |
|
|
|
4578 |
|
|
function TStRegEx.Get_InLineTerminator: TStLineTerminator;
|
4579 |
|
|
begin
|
4580 |
|
|
Result := DefaultInterface.Get_InLineTerminator;
|
4581 |
|
|
end;
|
4582 |
|
|
|
4583 |
|
|
procedure TStRegEx.Set_InLineTerminator(Value: TStLineTerminator);
|
4584 |
|
|
begin
|
4585 |
|
|
DefaultInterface.Set_InLineTerminator(Value);
|
4586 |
|
|
end;
|
4587 |
|
|
|
4588 |
|
|
function TStRegEx.Get_LineCount: Integer;
|
4589 |
|
|
begin
|
4590 |
|
|
Result := DefaultInterface.Get_LineCount;
|
4591 |
|
|
end;
|
4592 |
|
|
|
4593 |
|
|
function TStRegEx.Get_LineNumbers: WordBool;
|
4594 |
|
|
begin
|
4595 |
|
|
Result := DefaultInterface.Get_LineNumbers;
|
4596 |
|
|
end;
|
4597 |
|
|
|
4598 |
|
|
procedure TStRegEx.Set_LineNumbers(Value: WordBool);
|
4599 |
|
|
begin
|
4600 |
|
|
DefaultInterface.Set_LineNumbers(Value);
|
4601 |
|
|
end;
|
4602 |
|
|
|
4603 |
|
|
function TStRegEx.Get_LinesMatched: Integer;
|
4604 |
|
|
begin
|
4605 |
|
|
Result := DefaultInterface.Get_LinesMatched;
|
4606 |
|
|
end;
|
4607 |
|
|
|
4608 |
|
|
function TStRegEx.Get_LinesPerSecond: Integer;
|
4609 |
|
|
begin
|
4610 |
|
|
Result := DefaultInterface.Get_LinesPerSecond;
|
4611 |
|
|
end;
|
4612 |
|
|
|
4613 |
|
|
function TStRegEx.Get_LinesReplaced: Integer;
|
4614 |
|
|
begin
|
4615 |
|
|
Result := DefaultInterface.Get_LinesReplaced;
|
4616 |
|
|
end;
|
4617 |
|
|
|
4618 |
|
|
function TStRegEx.Get_LinesSelected: Integer;
|
4619 |
|
|
begin
|
4620 |
|
|
Result := DefaultInterface.Get_LinesSelected;
|
4621 |
|
|
end;
|
4622 |
|
|
|
4623 |
|
|
function TStRegEx.Get_MatchPattern: IStStringList;
|
4624 |
|
|
begin
|
4625 |
|
|
Result := DefaultInterface.Get_MatchPattern;
|
4626 |
|
|
end;
|
4627 |
|
|
|
4628 |
|
|
procedure TStRegEx.Set_MatchPattern(const Value: IStStringList);
|
4629 |
|
|
begin
|
4630 |
|
|
DefaultInterface.Set_MatchPattern(Value);
|
4631 |
|
|
end;
|
4632 |
|
|
|
4633 |
|
|
function TStRegEx.Get_OutFixedLineLength: Integer;
|
4634 |
|
|
begin
|
4635 |
|
|
Result := DefaultInterface.Get_OutFixedLineLength;
|
4636 |
|
|
end;
|
4637 |
|
|
|
4638 |
|
|
procedure TStRegEx.Set_OutFixedLineLength(Value: Integer);
|
4639 |
|
|
begin
|
4640 |
|
|
DefaultInterface.Set_OutFixedLineLength(Value);
|
4641 |
|
|
end;
|
4642 |
|
|
|
4643 |
|
|
function TStRegEx.Get_OutLineTermChar: WideString;
|
4644 |
|
|
begin
|
4645 |
|
|
Result := DefaultInterface.Get_OutLineTermChar;
|
4646 |
|
|
end;
|
4647 |
|
|
|
4648 |
|
|
procedure TStRegEx.Set_OutLineTermChar(const Value: WideString);
|
4649 |
|
|
begin
|
4650 |
|
|
DefaultInterface.Set_OutLineTermChar(Value);
|
4651 |
|
|
end;
|
4652 |
|
|
|
4653 |
|
|
function TStRegEx.Get_OutLineTerminitor: Integer;
|
4654 |
|
|
begin
|
4655 |
|
|
Result := DefaultInterface.Get_OutLineTerminitor;
|
4656 |
|
|
end;
|
4657 |
|
|
|
4658 |
|
|
procedure TStRegEx.Set_OutLineTerminitor(Value: Integer);
|
4659 |
|
|
begin
|
4660 |
|
|
DefaultInterface.Set_OutLineTerminitor(Value);
|
4661 |
|
|
end;
|
4662 |
|
|
|
4663 |
|
|
function TStRegEx.Get_OutputOptions: TStOutputOption;
|
4664 |
|
|
begin
|
4665 |
|
|
Result := DefaultInterface.Get_OutputOptions;
|
4666 |
|
|
end;
|
4667 |
|
|
|
4668 |
|
|
procedure TStRegEx.Set_OutputOptions(Value: TStOutputOption);
|
4669 |
|
|
begin
|
4670 |
|
|
DefaultInterface.Set_OutputOptions(Value);
|
4671 |
|
|
end;
|
4672 |
|
|
|
4673 |
|
|
function TStRegEx.Get_ReplacePattern: IStStringList;
|
4674 |
|
|
begin
|
4675 |
|
|
Result := DefaultInterface.Get_ReplacePattern;
|
4676 |
|
|
end;
|
4677 |
|
|
|
4678 |
|
|
procedure TStRegEx.Set_ReplacePattern(const Value: IStStringList);
|
4679 |
|
|
begin
|
4680 |
|
|
DefaultInterface.Set_ReplacePattern(Value);
|
4681 |
|
|
end;
|
4682 |
|
|
|
4683 |
|
|
function TStRegEx.Get_SelAvoidPattern: IStStringList;
|
4684 |
|
|
begin
|
4685 |
|
|
Result := DefaultInterface.Get_SelAvoidPattern;
|
4686 |
|
|
end;
|
4687 |
|
|
|
4688 |
|
|
procedure TStRegEx.Set_SelAvoidPattern(const Value: IStStringList);
|
4689 |
|
|
begin
|
4690 |
|
|
DefaultInterface.Set_SelAvoidPattern(Value);
|
4691 |
|
|
end;
|
4692 |
|
|
|
4693 |
|
|
function TStRegEx.Get_Stream: OleVariant;
|
4694 |
|
|
begin
|
4695 |
|
|
Result := DefaultInterface.Get_Stream;
|
4696 |
|
|
end;
|
4697 |
|
|
|
4698 |
|
|
procedure TStRegEx.Set_Stream(Value: OleVariant);
|
4699 |
|
|
begin
|
4700 |
|
|
DefaultInterface.Set_Stream(Value);
|
4701 |
|
|
end;
|
4702 |
|
|
|
4703 |
|
|
function TStRegEx.CheckString(const S: WideString; var StartPos: Integer; var EndPos: Integer;
|
4704 |
|
|
var Length: Integer): WordBool;
|
4705 |
|
|
begin
|
4706 |
|
|
Result := DefaultInterface.CheckString(S, StartPos, EndPos, Length);
|
4707 |
|
|
end;
|
4708 |
|
|
|
4709 |
|
|
function TStRegEx.DOSMaskToRegEx(const Masks: WideString): WordBool;
|
4710 |
|
|
begin
|
4711 |
|
|
Result := DefaultInterface.DOSMaskToRegEx(Masks);
|
4712 |
|
|
end;
|
4713 |
|
|
|
4714 |
|
|
function TStRegEx.Execute: WordBool;
|
4715 |
|
|
begin
|
4716 |
|
|
Result := DefaultInterface.Execute;
|
4717 |
|
|
end;
|
4718 |
|
|
|
4719 |
|
|
procedure TStRegEx.LoadFromFile(const FileName: WideString);
|
4720 |
|
|
begin
|
4721 |
|
|
DefaultInterface.LoadFromFile(FileName);
|
4722 |
|
|
end;
|
4723 |
|
|
|
4724 |
|
|
procedure TStRegEx.SaveToFile(const FileName: WideString);
|
4725 |
|
|
begin
|
4726 |
|
|
DefaultInterface.SaveToFile(FileName);
|
4727 |
|
|
end;
|
4728 |
|
|
|
4729 |
|
|
function TStRegEx.License(const Key: WideString): WordBool;
|
4730 |
|
|
begin
|
4731 |
|
|
Result := DefaultInterface.License(Key);
|
4732 |
|
|
end;
|
4733 |
|
|
|
4734 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
4735 |
|
|
constructor TStRegExProperties.Create(AServer: TStRegEx);
|
4736 |
|
|
begin
|
4737 |
|
|
inherited Create;
|
4738 |
|
|
FServer := AServer;
|
4739 |
|
|
end;
|
4740 |
|
|
|
4741 |
|
|
function TStRegExProperties.GetDefaultInterface: IStRegEx;
|
4742 |
|
|
begin
|
4743 |
|
|
Result := FServer.DefaultInterface;
|
4744 |
|
|
end;
|
4745 |
|
|
|
4746 |
|
|
function TStRegExProperties.Get_Avoid: WordBool;
|
4747 |
|
|
begin
|
4748 |
|
|
Result := DefaultInterface.Get_Avoid;
|
4749 |
|
|
end;
|
4750 |
|
|
|
4751 |
|
|
procedure TStRegExProperties.Set_Avoid(Value: WordBool);
|
4752 |
|
|
begin
|
4753 |
|
|
DefaultInterface.Set_Avoid(Value);
|
4754 |
|
|
end;
|
4755 |
|
|
|
4756 |
|
|
function TStRegExProperties.Get_IgnoreCase: WordBool;
|
4757 |
|
|
begin
|
4758 |
|
|
Result := DefaultInterface.Get_IgnoreCase;
|
4759 |
|
|
end;
|
4760 |
|
|
|
4761 |
|
|
procedure TStRegExProperties.Set_IgnoreCase(Value: WordBool);
|
4762 |
|
|
begin
|
4763 |
|
|
DefaultInterface.Set_IgnoreCase(Value);
|
4764 |
|
|
end;
|
4765 |
|
|
|
4766 |
|
|
function TStRegExProperties.Get_InFixedLineLength: Integer;
|
4767 |
|
|
begin
|
4768 |
|
|
Result := DefaultInterface.Get_InFixedLineLength;
|
4769 |
|
|
end;
|
4770 |
|
|
|
4771 |
|
|
procedure TStRegExProperties.Set_InFixedLineLength(Value: Integer);
|
4772 |
|
|
begin
|
4773 |
|
|
DefaultInterface.Set_InFixedLineLength(Value);
|
4774 |
|
|
end;
|
4775 |
|
|
|
4776 |
|
|
function TStRegExProperties.Get_InLineTermChar: WideString;
|
4777 |
|
|
begin
|
4778 |
|
|
Result := DefaultInterface.Get_InLineTermChar;
|
4779 |
|
|
end;
|
4780 |
|
|
|
4781 |
|
|
procedure TStRegExProperties.Set_InLineTermChar(const Value: WideString);
|
4782 |
|
|
begin
|
4783 |
|
|
DefaultInterface.Set_InLineTermChar(Value);
|
4784 |
|
|
end;
|
4785 |
|
|
|
4786 |
|
|
function TStRegExProperties.Get_InLineTerminator: TStLineTerminator;
|
4787 |
|
|
begin
|
4788 |
|
|
Result := DefaultInterface.Get_InLineTerminator;
|
4789 |
|
|
end;
|
4790 |
|
|
|
4791 |
|
|
procedure TStRegExProperties.Set_InLineTerminator(Value: TStLineTerminator);
|
4792 |
|
|
begin
|
4793 |
|
|
DefaultInterface.Set_InLineTerminator(Value);
|
4794 |
|
|
end;
|
4795 |
|
|
|
4796 |
|
|
function TStRegExProperties.Get_LineCount: Integer;
|
4797 |
|
|
begin
|
4798 |
|
|
Result := DefaultInterface.Get_LineCount;
|
4799 |
|
|
end;
|
4800 |
|
|
|
4801 |
|
|
function TStRegExProperties.Get_LineNumbers: WordBool;
|
4802 |
|
|
begin
|
4803 |
|
|
Result := DefaultInterface.Get_LineNumbers;
|
4804 |
|
|
end;
|
4805 |
|
|
|
4806 |
|
|
procedure TStRegExProperties.Set_LineNumbers(Value: WordBool);
|
4807 |
|
|
begin
|
4808 |
|
|
DefaultInterface.Set_LineNumbers(Value);
|
4809 |
|
|
end;
|
4810 |
|
|
|
4811 |
|
|
function TStRegExProperties.Get_LinesMatched: Integer;
|
4812 |
|
|
begin
|
4813 |
|
|
Result := DefaultInterface.Get_LinesMatched;
|
4814 |
|
|
end;
|
4815 |
|
|
|
4816 |
|
|
function TStRegExProperties.Get_LinesPerSecond: Integer;
|
4817 |
|
|
begin
|
4818 |
|
|
Result := DefaultInterface.Get_LinesPerSecond;
|
4819 |
|
|
end;
|
4820 |
|
|
|
4821 |
|
|
function TStRegExProperties.Get_LinesReplaced: Integer;
|
4822 |
|
|
begin
|
4823 |
|
|
Result := DefaultInterface.Get_LinesReplaced;
|
4824 |
|
|
end;
|
4825 |
|
|
|
4826 |
|
|
function TStRegExProperties.Get_LinesSelected: Integer;
|
4827 |
|
|
begin
|
4828 |
|
|
Result := DefaultInterface.Get_LinesSelected;
|
4829 |
|
|
end;
|
4830 |
|
|
|
4831 |
|
|
function TStRegExProperties.Get_MatchPattern: IStStringList;
|
4832 |
|
|
begin
|
4833 |
|
|
Result := DefaultInterface.Get_MatchPattern;
|
4834 |
|
|
end;
|
4835 |
|
|
|
4836 |
|
|
procedure TStRegExProperties.Set_MatchPattern(const Value: IStStringList);
|
4837 |
|
|
begin
|
4838 |
|
|
DefaultInterface.Set_MatchPattern(Value);
|
4839 |
|
|
end;
|
4840 |
|
|
|
4841 |
|
|
function TStRegExProperties.Get_OutFixedLineLength: Integer;
|
4842 |
|
|
begin
|
4843 |
|
|
Result := DefaultInterface.Get_OutFixedLineLength;
|
4844 |
|
|
end;
|
4845 |
|
|
|
4846 |
|
|
procedure TStRegExProperties.Set_OutFixedLineLength(Value: Integer);
|
4847 |
|
|
begin
|
4848 |
|
|
DefaultInterface.Set_OutFixedLineLength(Value);
|
4849 |
|
|
end;
|
4850 |
|
|
|
4851 |
|
|
function TStRegExProperties.Get_OutLineTermChar: WideString;
|
4852 |
|
|
begin
|
4853 |
|
|
Result := DefaultInterface.Get_OutLineTermChar;
|
4854 |
|
|
end;
|
4855 |
|
|
|
4856 |
|
|
procedure TStRegExProperties.Set_OutLineTermChar(const Value: WideString);
|
4857 |
|
|
begin
|
4858 |
|
|
DefaultInterface.Set_OutLineTermChar(Value);
|
4859 |
|
|
end;
|
4860 |
|
|
|
4861 |
|
|
function TStRegExProperties.Get_OutLineTerminitor: Integer;
|
4862 |
|
|
begin
|
4863 |
|
|
Result := DefaultInterface.Get_OutLineTerminitor;
|
4864 |
|
|
end;
|
4865 |
|
|
|
4866 |
|
|
procedure TStRegExProperties.Set_OutLineTerminitor(Value: Integer);
|
4867 |
|
|
begin
|
4868 |
|
|
DefaultInterface.Set_OutLineTerminitor(Value);
|
4869 |
|
|
end;
|
4870 |
|
|
|
4871 |
|
|
function TStRegExProperties.Get_OutputOptions: TStOutputOption;
|
4872 |
|
|
begin
|
4873 |
|
|
Result := DefaultInterface.Get_OutputOptions;
|
4874 |
|
|
end;
|
4875 |
|
|
|
4876 |
|
|
procedure TStRegExProperties.Set_OutputOptions(Value: TStOutputOption);
|
4877 |
|
|
begin
|
4878 |
|
|
DefaultInterface.Set_OutputOptions(Value);
|
4879 |
|
|
end;
|
4880 |
|
|
|
4881 |
|
|
function TStRegExProperties.Get_ReplacePattern: IStStringList;
|
4882 |
|
|
begin
|
4883 |
|
|
Result := DefaultInterface.Get_ReplacePattern;
|
4884 |
|
|
end;
|
4885 |
|
|
|
4886 |
|
|
procedure TStRegExProperties.Set_ReplacePattern(const Value: IStStringList);
|
4887 |
|
|
begin
|
4888 |
|
|
DefaultInterface.Set_ReplacePattern(Value);
|
4889 |
|
|
end;
|
4890 |
|
|
|
4891 |
|
|
function TStRegExProperties.Get_SelAvoidPattern: IStStringList;
|
4892 |
|
|
begin
|
4893 |
|
|
Result := DefaultInterface.Get_SelAvoidPattern;
|
4894 |
|
|
end;
|
4895 |
|
|
|
4896 |
|
|
procedure TStRegExProperties.Set_SelAvoidPattern(const Value: IStStringList);
|
4897 |
|
|
begin
|
4898 |
|
|
DefaultInterface.Set_SelAvoidPattern(Value);
|
4899 |
|
|
end;
|
4900 |
|
|
|
4901 |
|
|
function TStRegExProperties.Get_Stream: OleVariant;
|
4902 |
|
|
begin
|
4903 |
|
|
Result := DefaultInterface.Get_Stream;
|
4904 |
|
|
end;
|
4905 |
|
|
|
4906 |
|
|
procedure TStRegExProperties.Set_Stream(Value: OleVariant);
|
4907 |
|
|
begin
|
4908 |
|
|
DefaultInterface.Set_Stream(Value);
|
4909 |
|
|
end;
|
4910 |
|
|
|
4911 |
|
|
{$ENDIF}
|
4912 |
|
|
|
4913 |
|
|
class function CoStExpr.Create: IStExpr;
|
4914 |
|
|
begin
|
4915 |
|
|
Result := CreateComObject(CLASS_StExpr) as IStExpr;
|
4916 |
|
|
end;
|
4917 |
|
|
|
4918 |
|
|
class function CoStExpr.CreateRemote(const MachineName: string): IStExpr;
|
4919 |
|
|
begin
|
4920 |
|
|
Result := CreateRemoteComObject(MachineName, CLASS_StExpr) as IStExpr;
|
4921 |
|
|
end;
|
4922 |
|
|
|
4923 |
|
|
procedure TStExpr.InitServerData;
|
4924 |
|
|
const
|
4925 |
|
|
CServerData: TServerData = (
|
4926 |
|
|
ClassID: '{D0200AD9-8DE6-40C4-AACB-CC12964084FE}';
|
4927 |
|
|
IntfIID: '{C4753F38-E937-4AFE-8D35-2210305B6D19}';
|
4928 |
|
|
EventIID: '';
|
4929 |
|
|
LicenseKey: nil;
|
4930 |
|
|
Version: 500);
|
4931 |
|
|
begin
|
4932 |
|
|
ServerData := @CServerData;
|
4933 |
|
|
end;
|
4934 |
|
|
|
4935 |
|
|
procedure TStExpr.Connect;
|
4936 |
|
|
var
|
4937 |
|
|
punk: IUnknown;
|
4938 |
|
|
begin
|
4939 |
|
|
if FIntf = nil then
|
4940 |
|
|
begin
|
4941 |
|
|
punk := GetServer;
|
4942 |
|
|
Fintf:= punk as IStExpr;
|
4943 |
|
|
end;
|
4944 |
|
|
end;
|
4945 |
|
|
|
4946 |
|
|
procedure TStExpr.ConnectTo(svrIntf: IStExpr);
|
4947 |
|
|
begin
|
4948 |
|
|
Disconnect;
|
4949 |
|
|
FIntf := svrIntf;
|
4950 |
|
|
end;
|
4951 |
|
|
|
4952 |
|
|
procedure TStExpr.DisConnect;
|
4953 |
|
|
begin
|
4954 |
|
|
if Fintf <> nil then
|
4955 |
|
|
begin
|
4956 |
|
|
FIntf := nil;
|
4957 |
|
|
end;
|
4958 |
|
|
end;
|
4959 |
|
|
|
4960 |
|
|
function TStExpr.GetDefaultInterface: IStExpr;
|
4961 |
|
|
begin
|
4962 |
|
|
if FIntf = nil then
|
4963 |
|
|
Connect;
|
4964 |
|
|
Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
|
4965 |
|
|
Result := FIntf;
|
4966 |
|
|
end;
|
4967 |
|
|
|
4968 |
|
|
constructor TStExpr.Create(AOwner: TComponent);
|
4969 |
|
|
begin
|
4970 |
|
|
inherited Create(AOwner);
|
4971 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
4972 |
|
|
FProps := TStExprProperties.Create(Self);
|
4973 |
|
|
{$ENDIF}
|
4974 |
|
|
end;
|
4975 |
|
|
|
4976 |
|
|
destructor TStExpr.Destroy;
|
4977 |
|
|
begin
|
4978 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
4979 |
|
|
FProps.Free;
|
4980 |
|
|
{$ENDIF}
|
4981 |
|
|
inherited Destroy;
|
4982 |
|
|
end;
|
4983 |
|
|
|
4984 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
4985 |
|
|
function TStExpr.GetServerProperties: TStExprProperties;
|
4986 |
|
|
begin
|
4987 |
|
|
Result := FProps;
|
4988 |
|
|
end;
|
4989 |
|
|
{$ENDIF}
|
4990 |
|
|
|
4991 |
|
|
function TStExpr.AnalyzeExpr(const Expr: WideString): Double;
|
4992 |
|
|
begin
|
4993 |
|
|
Result := DefaultInterface.AnalyzeExpr(Expr);
|
4994 |
|
|
end;
|
4995 |
|
|
|
4996 |
|
|
function TStExpr.License(const Key: WideString): WordBool;
|
4997 |
|
|
begin
|
4998 |
|
|
Result := DefaultInterface.License(Key);
|
4999 |
|
|
end;
|
5000 |
|
|
|
5001 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5002 |
|
|
constructor TStExprProperties.Create(AServer: TStExpr);
|
5003 |
|
|
begin
|
5004 |
|
|
inherited Create;
|
5005 |
|
|
FServer := AServer;
|
5006 |
|
|
end;
|
5007 |
|
|
|
5008 |
|
|
function TStExprProperties.GetDefaultInterface: IStExpr;
|
5009 |
|
|
begin
|
5010 |
|
|
Result := FServer.DefaultInterface;
|
5011 |
|
|
end;
|
5012 |
|
|
|
5013 |
|
|
{$ENDIF}
|
5014 |
|
|
|
5015 |
|
|
class function CoStMime.Create: IStMime;
|
5016 |
|
|
begin
|
5017 |
|
|
Result := CreateComObject(CLASS_StMime) as IStMime;
|
5018 |
|
|
end;
|
5019 |
|
|
|
5020 |
|
|
class function CoStMime.CreateRemote(const MachineName: string): IStMime;
|
5021 |
|
|
begin
|
5022 |
|
|
Result := CreateRemoteComObject(MachineName, CLASS_StMime) as IStMime;
|
5023 |
|
|
end;
|
5024 |
|
|
|
5025 |
|
|
procedure TStMime.InitServerData;
|
5026 |
|
|
const
|
5027 |
|
|
CServerData: TServerData = (
|
5028 |
|
|
ClassID: '{0EF7D4FF-E095-4C8A-A25C-CED37FF02398}';
|
5029 |
|
|
IntfIID: '{96547B4C-ED9E-4844-8F74-5C9E0268F460}';
|
5030 |
|
|
EventIID: '{0D42F0C6-844D-4541-8BAD-E2BFB6BF6C25}';
|
5031 |
|
|
LicenseKey: nil;
|
5032 |
|
|
Version: 500);
|
5033 |
|
|
begin
|
5034 |
|
|
ServerData := @CServerData;
|
5035 |
|
|
end;
|
5036 |
|
|
|
5037 |
|
|
procedure TStMime.Connect;
|
5038 |
|
|
var
|
5039 |
|
|
punk: IUnknown;
|
5040 |
|
|
begin
|
5041 |
|
|
if FIntf = nil then
|
5042 |
|
|
begin
|
5043 |
|
|
punk := GetServer;
|
5044 |
|
|
ConnectEvents(punk);
|
5045 |
|
|
Fintf:= punk as IStMime;
|
5046 |
|
|
end;
|
5047 |
|
|
end;
|
5048 |
|
|
|
5049 |
|
|
procedure TStMime.ConnectTo(svrIntf: IStMime);
|
5050 |
|
|
begin
|
5051 |
|
|
Disconnect;
|
5052 |
|
|
FIntf := svrIntf;
|
5053 |
|
|
ConnectEvents(FIntf);
|
5054 |
|
|
end;
|
5055 |
|
|
|
5056 |
|
|
procedure TStMime.DisConnect;
|
5057 |
|
|
begin
|
5058 |
|
|
if Fintf <> nil then
|
5059 |
|
|
begin
|
5060 |
|
|
DisconnectEvents(FIntf);
|
5061 |
|
|
FIntf := nil;
|
5062 |
|
|
end;
|
5063 |
|
|
end;
|
5064 |
|
|
|
5065 |
|
|
function TStMime.GetDefaultInterface: IStMime;
|
5066 |
|
|
begin
|
5067 |
|
|
if FIntf = nil then
|
5068 |
|
|
Connect;
|
5069 |
|
|
Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
|
5070 |
|
|
Result := FIntf;
|
5071 |
|
|
end;
|
5072 |
|
|
|
5073 |
|
|
constructor TStMime.Create(AOwner: TComponent);
|
5074 |
|
|
begin
|
5075 |
|
|
inherited Create(AOwner);
|
5076 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5077 |
|
|
FProps := TStMimeProperties.Create(Self);
|
5078 |
|
|
{$ENDIF}
|
5079 |
|
|
end;
|
5080 |
|
|
|
5081 |
|
|
destructor TStMime.Destroy;
|
5082 |
|
|
begin
|
5083 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5084 |
|
|
FProps.Free;
|
5085 |
|
|
{$ENDIF}
|
5086 |
|
|
inherited Destroy;
|
5087 |
|
|
end;
|
5088 |
|
|
|
5089 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5090 |
|
|
function TStMime.GetServerProperties: TStMimeProperties;
|
5091 |
|
|
begin
|
5092 |
|
|
Result := FProps;
|
5093 |
|
|
end;
|
5094 |
|
|
{$ENDIF}
|
5095 |
|
|
|
5096 |
|
|
procedure TStMime.InvokeEvent(DispID: TDispID; var Params: TVariantArray);
|
5097 |
|
|
begin
|
5098 |
|
|
case DispID of
|
5099 |
|
|
-1: Exit; // DISPID_UNKNOWN
|
5100 |
|
|
1: if Assigned(FOnProgress) then
|
5101 |
|
|
FOnProgress(Self, Params[0] {TStConvertState}, Params[1] {Byte});
|
5102 |
|
|
2: if Assigned(FOnSaveAs) then
|
5103 |
|
|
FOnSaveAs(Self, Params[0] {var WideString});
|
5104 |
|
|
end; {case DispID}
|
5105 |
|
|
end;
|
5106 |
|
|
|
5107 |
|
|
function TStMime.Get_Attachments: IStStringList;
|
5108 |
|
|
begin
|
5109 |
|
|
Result := DefaultInterface.Get_Attachments;
|
5110 |
|
|
end;
|
5111 |
|
|
|
5112 |
|
|
function TStMime.Get_Boundry: WideString;
|
5113 |
|
|
begin
|
5114 |
|
|
Result := DefaultInterface.Get_Boundry;
|
5115 |
|
|
end;
|
5116 |
|
|
|
5117 |
|
|
procedure TStMime.Set_Boundry(const Value: WideString);
|
5118 |
|
|
begin
|
5119 |
|
|
DefaultInterface.Set_Boundry(Value);
|
5120 |
|
|
end;
|
5121 |
|
|
|
5122 |
|
|
function TStMime.Get_Encoding: WideString;
|
5123 |
|
|
begin
|
5124 |
|
|
Result := DefaultInterface.Get_Encoding;
|
5125 |
|
|
end;
|
5126 |
|
|
|
5127 |
|
|
procedure TStMime.Set_Encoding(const Value: WideString);
|
5128 |
|
|
begin
|
5129 |
|
|
DefaultInterface.Set_Encoding(Value);
|
5130 |
|
|
end;
|
5131 |
|
|
|
5132 |
|
|
function TStMime.Get_ContentDescription: WideString;
|
5133 |
|
|
begin
|
5134 |
|
|
Result := DefaultInterface.Get_ContentDescription;
|
5135 |
|
|
end;
|
5136 |
|
|
|
5137 |
|
|
procedure TStMime.Set_ContentDescription(const Value: WideString);
|
5138 |
|
|
begin
|
5139 |
|
|
DefaultInterface.Set_ContentDescription(Value);
|
5140 |
|
|
end;
|
5141 |
|
|
|
5142 |
|
|
function TStMime.Get_ContentDisposition: WideString;
|
5143 |
|
|
begin
|
5144 |
|
|
Result := DefaultInterface.Get_ContentDisposition;
|
5145 |
|
|
end;
|
5146 |
|
|
|
5147 |
|
|
procedure TStMime.Set_ContentDisposition(const Value: WideString);
|
5148 |
|
|
begin
|
5149 |
|
|
DefaultInterface.Set_ContentDisposition(Value);
|
5150 |
|
|
end;
|
5151 |
|
|
|
5152 |
|
|
function TStMime.Get_ContentType: WideString;
|
5153 |
|
|
begin
|
5154 |
|
|
Result := DefaultInterface.Get_ContentType;
|
5155 |
|
|
end;
|
5156 |
|
|
|
5157 |
|
|
procedure TStMime.Set_ContentType(const Value: WideString);
|
5158 |
|
|
begin
|
5159 |
|
|
DefaultInterface.Set_ContentType(Value);
|
5160 |
|
|
end;
|
5161 |
|
|
|
5162 |
|
|
function TStMime.Get_Directory: WideString;
|
5163 |
|
|
begin
|
5164 |
|
|
Result := DefaultInterface.Get_Directory;
|
5165 |
|
|
end;
|
5166 |
|
|
|
5167 |
|
|
procedure TStMime.Set_Directory(const Value: WideString);
|
5168 |
|
|
begin
|
5169 |
|
|
DefaultInterface.Set_Directory(Value);
|
5170 |
|
|
end;
|
5171 |
|
|
|
5172 |
|
|
function TStMime.Get_MimeHeaders: WordBool;
|
5173 |
|
|
begin
|
5174 |
|
|
Result := DefaultInterface.Get_MimeHeaders;
|
5175 |
|
|
end;
|
5176 |
|
|
|
5177 |
|
|
procedure TStMime.Set_MimeHeaders(Value: WordBool);
|
5178 |
|
|
begin
|
5179 |
|
|
DefaultInterface.Set_MimeHeaders(Value);
|
5180 |
|
|
end;
|
5181 |
|
|
|
5182 |
|
|
function TStMime.Get_Stream: OleVariant;
|
5183 |
|
|
begin
|
5184 |
|
|
Result := DefaultInterface.Get_Stream;
|
5185 |
|
|
end;
|
5186 |
|
|
|
5187 |
|
|
procedure TStMime.Set_Stream(Value: OleVariant);
|
5188 |
|
|
begin
|
5189 |
|
|
DefaultInterface.Set_Stream(Value);
|
5190 |
|
|
end;
|
5191 |
|
|
|
5192 |
|
|
procedure TStMime.AddFileAttachment(const FileName: WideString);
|
5193 |
|
|
begin
|
5194 |
|
|
DefaultInterface.AddFileAttachment(FileName);
|
5195 |
|
|
end;
|
5196 |
|
|
|
5197 |
|
|
procedure TStMime.AddStreamAttachment(Stream: OleVariant; const FileName: WideString);
|
5198 |
|
|
begin
|
5199 |
|
|
DefaultInterface.AddStreamAttachment(Stream, FileName);
|
5200 |
|
|
end;
|
5201 |
|
|
|
5202 |
|
|
procedure TStMime.ExtractAttachment(const Attachment: WideString);
|
5203 |
|
|
begin
|
5204 |
|
|
DefaultInterface.ExtractAttachment(Attachment);
|
5205 |
|
|
end;
|
5206 |
|
|
|
5207 |
|
|
procedure TStMime.ExtractAttachmentIndex(Index: Integer);
|
5208 |
|
|
begin
|
5209 |
|
|
DefaultInterface.ExtractAttachmentIndex(Index);
|
5210 |
|
|
end;
|
5211 |
|
|
|
5212 |
|
|
procedure TStMime.ExtractToStream(Index: Integer; Stream: OleVariant);
|
5213 |
|
|
begin
|
5214 |
|
|
DefaultInterface.ExtractToStream(Index, Stream);
|
5215 |
|
|
end;
|
5216 |
|
|
|
5217 |
|
|
procedure TStMime.ExtractAttachments;
|
5218 |
|
|
begin
|
5219 |
|
|
DefaultInterface.ExtractAttachments;
|
5220 |
|
|
end;
|
5221 |
|
|
|
5222 |
|
|
procedure TStMime.GetTag(const Description: WideString);
|
5223 |
|
|
begin
|
5224 |
|
|
DefaultInterface.GetTag(Description);
|
5225 |
|
|
end;
|
5226 |
|
|
|
5227 |
|
|
function TStMime.License(const Key: WideString): WordBool;
|
5228 |
|
|
begin
|
5229 |
|
|
Result := DefaultInterface.License(Key);
|
5230 |
|
|
end;
|
5231 |
|
|
|
5232 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5233 |
|
|
constructor TStMimeProperties.Create(AServer: TStMime);
|
5234 |
|
|
begin
|
5235 |
|
|
inherited Create;
|
5236 |
|
|
FServer := AServer;
|
5237 |
|
|
end;
|
5238 |
|
|
|
5239 |
|
|
function TStMimeProperties.GetDefaultInterface: IStMime;
|
5240 |
|
|
begin
|
5241 |
|
|
Result := FServer.DefaultInterface;
|
5242 |
|
|
end;
|
5243 |
|
|
|
5244 |
|
|
function TStMimeProperties.Get_Attachments: IStStringList;
|
5245 |
|
|
begin
|
5246 |
|
|
Result := DefaultInterface.Get_Attachments;
|
5247 |
|
|
end;
|
5248 |
|
|
|
5249 |
|
|
function TStMimeProperties.Get_Boundry: WideString;
|
5250 |
|
|
begin
|
5251 |
|
|
Result := DefaultInterface.Get_Boundry;
|
5252 |
|
|
end;
|
5253 |
|
|
|
5254 |
|
|
procedure TStMimeProperties.Set_Boundry(const Value: WideString);
|
5255 |
|
|
begin
|
5256 |
|
|
DefaultInterface.Set_Boundry(Value);
|
5257 |
|
|
end;
|
5258 |
|
|
|
5259 |
|
|
function TStMimeProperties.Get_Encoding: WideString;
|
5260 |
|
|
begin
|
5261 |
|
|
Result := DefaultInterface.Get_Encoding;
|
5262 |
|
|
end;
|
5263 |
|
|
|
5264 |
|
|
procedure TStMimeProperties.Set_Encoding(const Value: WideString);
|
5265 |
|
|
begin
|
5266 |
|
|
DefaultInterface.Set_Encoding(Value);
|
5267 |
|
|
end;
|
5268 |
|
|
|
5269 |
|
|
function TStMimeProperties.Get_ContentDescription: WideString;
|
5270 |
|
|
begin
|
5271 |
|
|
Result := DefaultInterface.Get_ContentDescription;
|
5272 |
|
|
end;
|
5273 |
|
|
|
5274 |
|
|
procedure TStMimeProperties.Set_ContentDescription(const Value: WideString);
|
5275 |
|
|
begin
|
5276 |
|
|
DefaultInterface.Set_ContentDescription(Value);
|
5277 |
|
|
end;
|
5278 |
|
|
|
5279 |
|
|
function TStMimeProperties.Get_ContentDisposition: WideString;
|
5280 |
|
|
begin
|
5281 |
|
|
Result := DefaultInterface.Get_ContentDisposition;
|
5282 |
|
|
end;
|
5283 |
|
|
|
5284 |
|
|
procedure TStMimeProperties.Set_ContentDisposition(const Value: WideString);
|
5285 |
|
|
begin
|
5286 |
|
|
DefaultInterface.Set_ContentDisposition(Value);
|
5287 |
|
|
end;
|
5288 |
|
|
|
5289 |
|
|
function TStMimeProperties.Get_ContentType: WideString;
|
5290 |
|
|
begin
|
5291 |
|
|
Result := DefaultInterface.Get_ContentType;
|
5292 |
|
|
end;
|
5293 |
|
|
|
5294 |
|
|
procedure TStMimeProperties.Set_ContentType(const Value: WideString);
|
5295 |
|
|
begin
|
5296 |
|
|
DefaultInterface.Set_ContentType(Value);
|
5297 |
|
|
end;
|
5298 |
|
|
|
5299 |
|
|
function TStMimeProperties.Get_Directory: WideString;
|
5300 |
|
|
begin
|
5301 |
|
|
Result := DefaultInterface.Get_Directory;
|
5302 |
|
|
end;
|
5303 |
|
|
|
5304 |
|
|
procedure TStMimeProperties.Set_Directory(const Value: WideString);
|
5305 |
|
|
begin
|
5306 |
|
|
DefaultInterface.Set_Directory(Value);
|
5307 |
|
|
end;
|
5308 |
|
|
|
5309 |
|
|
function TStMimeProperties.Get_MimeHeaders: WordBool;
|
5310 |
|
|
begin
|
5311 |
|
|
Result := DefaultInterface.Get_MimeHeaders;
|
5312 |
|
|
end;
|
5313 |
|
|
|
5314 |
|
|
procedure TStMimeProperties.Set_MimeHeaders(Value: WordBool);
|
5315 |
|
|
begin
|
5316 |
|
|
DefaultInterface.Set_MimeHeaders(Value);
|
5317 |
|
|
end;
|
5318 |
|
|
|
5319 |
|
|
function TStMimeProperties.Get_Stream: OleVariant;
|
5320 |
|
|
begin
|
5321 |
|
|
Result := DefaultInterface.Get_Stream;
|
5322 |
|
|
end;
|
5323 |
|
|
|
5324 |
|
|
procedure TStMimeProperties.Set_Stream(Value: OleVariant);
|
5325 |
|
|
begin
|
5326 |
|
|
DefaultInterface.Set_Stream(Value);
|
5327 |
|
|
end;
|
5328 |
|
|
|
5329 |
|
|
{$ENDIF}
|
5330 |
|
|
|
5331 |
|
|
class function CoStRegINI.Create: IStRegINI;
|
5332 |
|
|
begin
|
5333 |
|
|
Result := CreateComObject(CLASS_StRegINI) as IStRegINI;
|
5334 |
|
|
end;
|
5335 |
|
|
|
5336 |
|
|
class function CoStRegINI.CreateRemote(const MachineName: string): IStRegINI;
|
5337 |
|
|
begin
|
5338 |
|
|
Result := CreateRemoteComObject(MachineName, CLASS_StRegINI) as IStRegINI;
|
5339 |
|
|
end;
|
5340 |
|
|
|
5341 |
|
|
procedure TStRegINI.InitServerData;
|
5342 |
|
|
const
|
5343 |
|
|
CServerData: TServerData = (
|
5344 |
|
|
ClassID: '{856EC866-10AE-4AC7-90FF-6C7D5B153064}';
|
5345 |
|
|
IntfIID: '{37198FBE-3932-4548-A6B1-31229E83F87B}';
|
5346 |
|
|
EventIID: '';
|
5347 |
|
|
LicenseKey: nil;
|
5348 |
|
|
Version: 500);
|
5349 |
|
|
begin
|
5350 |
|
|
ServerData := @CServerData;
|
5351 |
|
|
end;
|
5352 |
|
|
|
5353 |
|
|
procedure TStRegINI.Connect;
|
5354 |
|
|
var
|
5355 |
|
|
punk: IUnknown;
|
5356 |
|
|
begin
|
5357 |
|
|
if FIntf = nil then
|
5358 |
|
|
begin
|
5359 |
|
|
punk := GetServer;
|
5360 |
|
|
Fintf:= punk as IStRegINI;
|
5361 |
|
|
end;
|
5362 |
|
|
end;
|
5363 |
|
|
|
5364 |
|
|
procedure TStRegINI.ConnectTo(svrIntf: IStRegINI);
|
5365 |
|
|
begin
|
5366 |
|
|
Disconnect;
|
5367 |
|
|
FIntf := svrIntf;
|
5368 |
|
|
end;
|
5369 |
|
|
|
5370 |
|
|
procedure TStRegINI.DisConnect;
|
5371 |
|
|
begin
|
5372 |
|
|
if Fintf <> nil then
|
5373 |
|
|
begin
|
5374 |
|
|
FIntf := nil;
|
5375 |
|
|
end;
|
5376 |
|
|
end;
|
5377 |
|
|
|
5378 |
|
|
function TStRegINI.GetDefaultInterface: IStRegINI;
|
5379 |
|
|
begin
|
5380 |
|
|
if FIntf = nil then
|
5381 |
|
|
Connect;
|
5382 |
|
|
Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
|
5383 |
|
|
Result := FIntf;
|
5384 |
|
|
end;
|
5385 |
|
|
|
5386 |
|
|
constructor TStRegINI.Create(AOwner: TComponent);
|
5387 |
|
|
begin
|
5388 |
|
|
inherited Create(AOwner);
|
5389 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5390 |
|
|
FProps := TStRegINIProperties.Create(Self);
|
5391 |
|
|
{$ENDIF}
|
5392 |
|
|
end;
|
5393 |
|
|
|
5394 |
|
|
destructor TStRegINI.Destroy;
|
5395 |
|
|
begin
|
5396 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5397 |
|
|
FProps.Free;
|
5398 |
|
|
{$ENDIF}
|
5399 |
|
|
inherited Destroy;
|
5400 |
|
|
end;
|
5401 |
|
|
|
5402 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5403 |
|
|
function TStRegINI.GetServerProperties: TStRegINIProperties;
|
5404 |
|
|
begin
|
5405 |
|
|
Result := FProps;
|
5406 |
|
|
end;
|
5407 |
|
|
{$ENDIF}
|
5408 |
|
|
|
5409 |
|
|
function TStRegINI.Get_CurrentSubKey: WideString;
|
5410 |
|
|
begin
|
5411 |
|
|
Result := DefaultInterface.Get_CurrentSubKey;
|
5412 |
|
|
end;
|
5413 |
|
|
|
5414 |
|
|
procedure TStRegINI.Set_CurrentSubKey(const Value: WideString);
|
5415 |
|
|
begin
|
5416 |
|
|
DefaultInterface.Set_CurrentSubKey(Value);
|
5417 |
|
|
end;
|
5418 |
|
|
|
5419 |
|
|
function TStRegINI.Get_IsIniFile: WordBool;
|
5420 |
|
|
begin
|
5421 |
|
|
Result := DefaultInterface.Get_IsIniFile;
|
5422 |
|
|
end;
|
5423 |
|
|
|
5424 |
|
|
function TStRegINI.Get_Primary: WideString;
|
5425 |
|
|
begin
|
5426 |
|
|
Result := DefaultInterface.Get_Primary;
|
5427 |
|
|
end;
|
5428 |
|
|
|
5429 |
|
|
procedure TStRegINI.Set_Primary(const Value: WideString);
|
5430 |
|
|
begin
|
5431 |
|
|
DefaultInterface.Set_Primary(Value);
|
5432 |
|
|
end;
|
5433 |
|
|
|
5434 |
|
|
function TStRegINI.Get_SubKeys: IStRegINISubKeys;
|
5435 |
|
|
begin
|
5436 |
|
|
Result := DefaultInterface.Get_SubKeys;
|
5437 |
|
|
end;
|
5438 |
|
|
|
5439 |
|
|
function TStRegINI.Get_Values: IStRegINIValues;
|
5440 |
|
|
begin
|
5441 |
|
|
Result := DefaultInterface.Get_Values;
|
5442 |
|
|
end;
|
5443 |
|
|
|
5444 |
|
|
procedure TStRegINI.Open(const RootName: WideString; IsIniFile: WordBool);
|
5445 |
|
|
begin
|
5446 |
|
|
DefaultInterface.Open(RootName, IsIniFile);
|
5447 |
|
|
end;
|
5448 |
|
|
|
5449 |
|
|
procedure TStRegINI.CreateKey(const KeyName: WideString);
|
5450 |
|
|
begin
|
5451 |
|
|
DefaultInterface.CreateKey(KeyName);
|
5452 |
|
|
end;
|
5453 |
|
|
|
5454 |
|
|
procedure TStRegINI.DeleteKey(const KeyName: WideString; DeleteSubKeys: WordBool);
|
5455 |
|
|
begin
|
5456 |
|
|
DefaultInterface.DeleteKey(KeyName, DeleteSubKeys);
|
5457 |
|
|
end;
|
5458 |
|
|
|
5459 |
|
|
procedure TStRegINI.DeleteValue(const ValueName: WideString);
|
5460 |
|
|
begin
|
5461 |
|
|
DefaultInterface.DeleteValue(ValueName);
|
5462 |
|
|
end;
|
5463 |
|
|
|
5464 |
|
|
function TStRegINI.KeyExists(const KeyName: WideString): WordBool;
|
5465 |
|
|
begin
|
5466 |
|
|
Result := DefaultInterface.KeyExists(KeyName);
|
5467 |
|
|
end;
|
5468 |
|
|
|
5469 |
|
|
function TStRegINI.QueryKey: IStRegINIQueryKeyInfo;
|
5470 |
|
|
begin
|
5471 |
|
|
Result := DefaultInterface.QueryKey;
|
5472 |
|
|
end;
|
5473 |
|
|
|
5474 |
|
|
function TStRegINI.ReadBoolean(const ValueName: WideString; Default: WordBool): WordBool;
|
5475 |
|
|
begin
|
5476 |
|
|
Result := DefaultInterface.ReadBoolean(ValueName, Default);
|
5477 |
|
|
end;
|
5478 |
|
|
|
5479 |
|
|
function TStRegINI.ReadDate(const ValueName: WideString; Default: TDateTime): TDateTime;
|
5480 |
|
|
begin
|
5481 |
|
|
Result := DefaultInterface.ReadDate(ValueName, Default);
|
5482 |
|
|
end;
|
5483 |
|
|
|
5484 |
|
|
function TStRegINI.ReadDateTime(const ValueName: WideString; Default: TDateTime): TDateTime;
|
5485 |
|
|
begin
|
5486 |
|
|
Result := DefaultInterface.ReadDateTime(ValueName, Default);
|
5487 |
|
|
end;
|
5488 |
|
|
|
5489 |
|
|
function TStRegINI.ReadInteger(const ValueName: WideString; Default: Integer): Integer;
|
5490 |
|
|
begin
|
5491 |
|
|
Result := DefaultInterface.ReadInteger(ValueName, Default);
|
5492 |
|
|
end;
|
5493 |
|
|
|
5494 |
|
|
function TStRegINI.ReadString(const ValueName: WideString; const Default: WideString): WideString;
|
5495 |
|
|
begin
|
5496 |
|
|
Result := DefaultInterface.ReadString(ValueName, Default);
|
5497 |
|
|
end;
|
5498 |
|
|
|
5499 |
|
|
function TStRegINI.ReadTime(const ValueName: WideString; Default: TDateTime): TDateTime;
|
5500 |
|
|
begin
|
5501 |
|
|
Result := DefaultInterface.ReadTime(ValueName, Default);
|
5502 |
|
|
end;
|
5503 |
|
|
|
5504 |
|
|
procedure TStRegINI.WriteBoolean(const ValueName: WideString; Value: WordBool);
|
5505 |
|
|
begin
|
5506 |
|
|
DefaultInterface.WriteBoolean(ValueName, Value);
|
5507 |
|
|
end;
|
5508 |
|
|
|
5509 |
|
|
procedure TStRegINI.WriteDate(const ValueName: WideString; Value: TDateTime);
|
5510 |
|
|
begin
|
5511 |
|
|
DefaultInterface.WriteDate(ValueName, Value);
|
5512 |
|
|
end;
|
5513 |
|
|
|
5514 |
|
|
procedure TStRegINI.WriteDateTime(const ValueName: WideString; Value: TDateTime);
|
5515 |
|
|
begin
|
5516 |
|
|
DefaultInterface.WriteDateTime(ValueName, Value);
|
5517 |
|
|
end;
|
5518 |
|
|
|
5519 |
|
|
procedure TStRegINI.WriteInteger(const ValueName: WideString; Value: Integer);
|
5520 |
|
|
begin
|
5521 |
|
|
DefaultInterface.WriteInteger(ValueName, Value);
|
5522 |
|
|
end;
|
5523 |
|
|
|
5524 |
|
|
procedure TStRegINI.WriteString(const ValueName: WideString; const Value: WideString);
|
5525 |
|
|
begin
|
5526 |
|
|
DefaultInterface.WriteString(ValueName, Value);
|
5527 |
|
|
end;
|
5528 |
|
|
|
5529 |
|
|
procedure TStRegINI.WriteTime(const ValueName: WideString; Value: TDateTime);
|
5530 |
|
|
begin
|
5531 |
|
|
DefaultInterface.WriteTime(ValueName, Value);
|
5532 |
|
|
end;
|
5533 |
|
|
|
5534 |
|
|
function TStRegINI.License(const Key: WideString): WordBool;
|
5535 |
|
|
begin
|
5536 |
|
|
Result := DefaultInterface.License(Key);
|
5537 |
|
|
end;
|
5538 |
|
|
|
5539 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5540 |
|
|
constructor TStRegINIProperties.Create(AServer: TStRegINI);
|
5541 |
|
|
begin
|
5542 |
|
|
inherited Create;
|
5543 |
|
|
FServer := AServer;
|
5544 |
|
|
end;
|
5545 |
|
|
|
5546 |
|
|
function TStRegINIProperties.GetDefaultInterface: IStRegINI;
|
5547 |
|
|
begin
|
5548 |
|
|
Result := FServer.DefaultInterface;
|
5549 |
|
|
end;
|
5550 |
|
|
|
5551 |
|
|
function TStRegINIProperties.Get_CurrentSubKey: WideString;
|
5552 |
|
|
begin
|
5553 |
|
|
Result := DefaultInterface.Get_CurrentSubKey;
|
5554 |
|
|
end;
|
5555 |
|
|
|
5556 |
|
|
procedure TStRegINIProperties.Set_CurrentSubKey(const Value: WideString);
|
5557 |
|
|
begin
|
5558 |
|
|
DefaultInterface.Set_CurrentSubKey(Value);
|
5559 |
|
|
end;
|
5560 |
|
|
|
5561 |
|
|
function TStRegINIProperties.Get_IsIniFile: WordBool;
|
5562 |
|
|
begin
|
5563 |
|
|
Result := DefaultInterface.Get_IsIniFile;
|
5564 |
|
|
end;
|
5565 |
|
|
|
5566 |
|
|
function TStRegINIProperties.Get_Primary: WideString;
|
5567 |
|
|
begin
|
5568 |
|
|
Result := DefaultInterface.Get_Primary;
|
5569 |
|
|
end;
|
5570 |
|
|
|
5571 |
|
|
procedure TStRegINIProperties.Set_Primary(const Value: WideString);
|
5572 |
|
|
begin
|
5573 |
|
|
DefaultInterface.Set_Primary(Value);
|
5574 |
|
|
end;
|
5575 |
|
|
|
5576 |
|
|
function TStRegINIProperties.Get_SubKeys: IStRegINISubKeys;
|
5577 |
|
|
begin
|
5578 |
|
|
Result := DefaultInterface.Get_SubKeys;
|
5579 |
|
|
end;
|
5580 |
|
|
|
5581 |
|
|
function TStRegINIProperties.Get_Values: IStRegINIValues;
|
5582 |
|
|
begin
|
5583 |
|
|
Result := DefaultInterface.Get_Values;
|
5584 |
|
|
end;
|
5585 |
|
|
|
5586 |
|
|
{$ENDIF}
|
5587 |
|
|
|
5588 |
|
|
class function CoStFin.Create: IStFin;
|
5589 |
|
|
begin
|
5590 |
|
|
Result := CreateComObject(CLASS_StFin) as IStFin;
|
5591 |
|
|
end;
|
5592 |
|
|
|
5593 |
|
|
class function CoStFin.CreateRemote(const MachineName: string): IStFin;
|
5594 |
|
|
begin
|
5595 |
|
|
Result := CreateRemoteComObject(MachineName, CLASS_StFin) as IStFin;
|
5596 |
|
|
end;
|
5597 |
|
|
|
5598 |
|
|
procedure TStFin.InitServerData;
|
5599 |
|
|
const
|
5600 |
|
|
CServerData: TServerData = (
|
5601 |
|
|
ClassID: '{8CD51FD5-514E-4CB0-9121-9B4B21B3A320}';
|
5602 |
|
|
IntfIID: '{821B289E-492C-4115-8484-A6545E281BB3}';
|
5603 |
|
|
EventIID: '';
|
5604 |
|
|
LicenseKey: nil;
|
5605 |
|
|
Version: 500);
|
5606 |
|
|
begin
|
5607 |
|
|
ServerData := @CServerData;
|
5608 |
|
|
end;
|
5609 |
|
|
|
5610 |
|
|
procedure TStFin.Connect;
|
5611 |
|
|
var
|
5612 |
|
|
punk: IUnknown;
|
5613 |
|
|
begin
|
5614 |
|
|
if FIntf = nil then
|
5615 |
|
|
begin
|
5616 |
|
|
punk := GetServer;
|
5617 |
|
|
Fintf:= punk as IStFin;
|
5618 |
|
|
end;
|
5619 |
|
|
end;
|
5620 |
|
|
|
5621 |
|
|
procedure TStFin.ConnectTo(svrIntf: IStFin);
|
5622 |
|
|
begin
|
5623 |
|
|
Disconnect;
|
5624 |
|
|
FIntf := svrIntf;
|
5625 |
|
|
end;
|
5626 |
|
|
|
5627 |
|
|
procedure TStFin.DisConnect;
|
5628 |
|
|
begin
|
5629 |
|
|
if Fintf <> nil then
|
5630 |
|
|
begin
|
5631 |
|
|
FIntf := nil;
|
5632 |
|
|
end;
|
5633 |
|
|
end;
|
5634 |
|
|
|
5635 |
|
|
function TStFin.GetDefaultInterface: IStFin;
|
5636 |
|
|
begin
|
5637 |
|
|
if FIntf = nil then
|
5638 |
|
|
Connect;
|
5639 |
|
|
Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
|
5640 |
|
|
Result := FIntf;
|
5641 |
|
|
end;
|
5642 |
|
|
|
5643 |
|
|
constructor TStFin.Create(AOwner: TComponent);
|
5644 |
|
|
begin
|
5645 |
|
|
inherited Create(AOwner);
|
5646 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5647 |
|
|
FProps := TStFinProperties.Create(Self);
|
5648 |
|
|
{$ENDIF}
|
5649 |
|
|
end;
|
5650 |
|
|
|
5651 |
|
|
destructor TStFin.Destroy;
|
5652 |
|
|
begin
|
5653 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5654 |
|
|
FProps.Free;
|
5655 |
|
|
{$ENDIF}
|
5656 |
|
|
inherited Destroy;
|
5657 |
|
|
end;
|
5658 |
|
|
|
5659 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5660 |
|
|
function TStFin.GetServerProperties: TStFinProperties;
|
5661 |
|
|
begin
|
5662 |
|
|
Result := FProps;
|
5663 |
|
|
end;
|
5664 |
|
|
{$ENDIF}
|
5665 |
|
|
|
5666 |
|
|
function TStFin.IsCardValid(const S: WideString): WordBool;
|
5667 |
|
|
begin
|
5668 |
|
|
Result := DefaultInterface.IsCardValid(S);
|
5669 |
|
|
end;
|
5670 |
|
|
|
5671 |
|
|
function TStFin.License(const Key: WideString): WordBool;
|
5672 |
|
|
begin
|
5673 |
|
|
Result := DefaultInterface.License(Key);
|
5674 |
|
|
end;
|
5675 |
|
|
|
5676 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5677 |
|
|
constructor TStFinProperties.Create(AServer: TStFin);
|
5678 |
|
|
begin
|
5679 |
|
|
inherited Create;
|
5680 |
|
|
FServer := AServer;
|
5681 |
|
|
end;
|
5682 |
|
|
|
5683 |
|
|
function TStFinProperties.GetDefaultInterface: IStFin;
|
5684 |
|
|
begin
|
5685 |
|
|
Result := FServer.DefaultInterface;
|
5686 |
|
|
end;
|
5687 |
|
|
|
5688 |
|
|
{$ENDIF}
|
5689 |
|
|
|
5690 |
|
|
class function CoStRegINIQueryKeyInfo.Create: IStRegINIQueryKeyInfo;
|
5691 |
|
|
begin
|
5692 |
|
|
Result := CreateComObject(CLASS_StRegINIQueryKeyInfo) as IStRegINIQueryKeyInfo;
|
5693 |
|
|
end;
|
5694 |
|
|
|
5695 |
|
|
class function CoStRegINIQueryKeyInfo.CreateRemote(const MachineName: string): IStRegINIQueryKeyInfo;
|
5696 |
|
|
begin
|
5697 |
|
|
Result := CreateRemoteComObject(MachineName, CLASS_StRegINIQueryKeyInfo) as IStRegINIQueryKeyInfo;
|
5698 |
|
|
end;
|
5699 |
|
|
|
5700 |
|
|
procedure TStRegINIQueryKeyInfo.InitServerData;
|
5701 |
|
|
const
|
5702 |
|
|
CServerData: TServerData = (
|
5703 |
|
|
ClassID: '{33B067CF-275F-444C-A63B-E98ADEE1D1B2}';
|
5704 |
|
|
IntfIID: '{DF09E023-FC82-4BC0-BEA8-AA5D5C0E9F2A}';
|
5705 |
|
|
EventIID: '';
|
5706 |
|
|
LicenseKey: nil;
|
5707 |
|
|
Version: 500);
|
5708 |
|
|
begin
|
5709 |
|
|
ServerData := @CServerData;
|
5710 |
|
|
end;
|
5711 |
|
|
|
5712 |
|
|
procedure TStRegINIQueryKeyInfo.Connect;
|
5713 |
|
|
var
|
5714 |
|
|
punk: IUnknown;
|
5715 |
|
|
begin
|
5716 |
|
|
if FIntf = nil then
|
5717 |
|
|
begin
|
5718 |
|
|
punk := GetServer;
|
5719 |
|
|
Fintf:= punk as IStRegINIQueryKeyInfo;
|
5720 |
|
|
end;
|
5721 |
|
|
end;
|
5722 |
|
|
|
5723 |
|
|
procedure TStRegINIQueryKeyInfo.ConnectTo(svrIntf: IStRegINIQueryKeyInfo);
|
5724 |
|
|
begin
|
5725 |
|
|
Disconnect;
|
5726 |
|
|
FIntf := svrIntf;
|
5727 |
|
|
end;
|
5728 |
|
|
|
5729 |
|
|
procedure TStRegINIQueryKeyInfo.DisConnect;
|
5730 |
|
|
begin
|
5731 |
|
|
if Fintf <> nil then
|
5732 |
|
|
begin
|
5733 |
|
|
FIntf := nil;
|
5734 |
|
|
end;
|
5735 |
|
|
end;
|
5736 |
|
|
|
5737 |
|
|
function TStRegINIQueryKeyInfo.GetDefaultInterface: IStRegINIQueryKeyInfo;
|
5738 |
|
|
begin
|
5739 |
|
|
if FIntf = nil then
|
5740 |
|
|
Connect;
|
5741 |
|
|
Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
|
5742 |
|
|
Result := FIntf;
|
5743 |
|
|
end;
|
5744 |
|
|
|
5745 |
|
|
constructor TStRegINIQueryKeyInfo.Create(AOwner: TComponent);
|
5746 |
|
|
begin
|
5747 |
|
|
inherited Create(AOwner);
|
5748 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5749 |
|
|
FProps := TStRegINIQueryKeyInfoProperties.Create(Self);
|
5750 |
|
|
{$ENDIF}
|
5751 |
|
|
end;
|
5752 |
|
|
|
5753 |
|
|
destructor TStRegINIQueryKeyInfo.Destroy;
|
5754 |
|
|
begin
|
5755 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5756 |
|
|
FProps.Free;
|
5757 |
|
|
{$ENDIF}
|
5758 |
|
|
inherited Destroy;
|
5759 |
|
|
end;
|
5760 |
|
|
|
5761 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5762 |
|
|
function TStRegINIQueryKeyInfo.GetServerProperties: TStRegINIQueryKeyInfoProperties;
|
5763 |
|
|
begin
|
5764 |
|
|
Result := FProps;
|
5765 |
|
|
end;
|
5766 |
|
|
{$ENDIF}
|
5767 |
|
|
|
5768 |
|
|
function TStRegINIQueryKeyInfo.Get_QIClassName: WideString;
|
5769 |
|
|
begin
|
5770 |
|
|
Result := DefaultInterface.Get_QIClassName;
|
5771 |
|
|
end;
|
5772 |
|
|
|
5773 |
|
|
function TStRegINIQueryKeyInfo.Get_QIFileTime: TDateTime;
|
5774 |
|
|
begin
|
5775 |
|
|
Result := DefaultInterface.Get_QIFileTime;
|
5776 |
|
|
end;
|
5777 |
|
|
|
5778 |
|
|
function TStRegINIQueryKeyInfo.Get_QIKey: Integer;
|
5779 |
|
|
begin
|
5780 |
|
|
Result := DefaultInterface.Get_QIKey;
|
5781 |
|
|
end;
|
5782 |
|
|
|
5783 |
|
|
function TStRegINIQueryKeyInfo.Get_QIMaxCNLen: Integer;
|
5784 |
|
|
begin
|
5785 |
|
|
Result := DefaultInterface.Get_QIMaxCNLen;
|
5786 |
|
|
end;
|
5787 |
|
|
|
5788 |
|
|
function TStRegINIQueryKeyInfo.Get_QIMaxDataLen: Integer;
|
5789 |
|
|
begin
|
5790 |
|
|
Result := DefaultInterface.Get_QIMaxDataLen;
|
5791 |
|
|
end;
|
5792 |
|
|
|
5793 |
|
|
function TStRegINIQueryKeyInfo.Get_QIMaxSKNLen: Integer;
|
5794 |
|
|
begin
|
5795 |
|
|
Result := DefaultInterface.Get_QIMaxSKNLen;
|
5796 |
|
|
end;
|
5797 |
|
|
|
5798 |
|
|
function TStRegINIQueryKeyInfo.Get_QIMaxVNLen: Integer;
|
5799 |
|
|
begin
|
5800 |
|
|
Result := DefaultInterface.Get_QIMaxVNLen;
|
5801 |
|
|
end;
|
5802 |
|
|
|
5803 |
|
|
function TStRegINIQueryKeyInfo.Get_QINumSubKeys: Integer;
|
5804 |
|
|
begin
|
5805 |
|
|
Result := DefaultInterface.Get_QINumSubKeys;
|
5806 |
|
|
end;
|
5807 |
|
|
|
5808 |
|
|
function TStRegINIQueryKeyInfo.Get_QINumValues: Integer;
|
5809 |
|
|
begin
|
5810 |
|
|
Result := DefaultInterface.Get_QINumValues;
|
5811 |
|
|
end;
|
5812 |
|
|
|
5813 |
|
|
function TStRegINIQueryKeyInfo.Get_QISDescLen: Integer;
|
5814 |
|
|
begin
|
5815 |
|
|
Result := DefaultInterface.Get_QISDescLen;
|
5816 |
|
|
end;
|
5817 |
|
|
|
5818 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5819 |
|
|
constructor TStRegINIQueryKeyInfoProperties.Create(AServer: TStRegINIQueryKeyInfo);
|
5820 |
|
|
begin
|
5821 |
|
|
inherited Create;
|
5822 |
|
|
FServer := AServer;
|
5823 |
|
|
end;
|
5824 |
|
|
|
5825 |
|
|
function TStRegINIQueryKeyInfoProperties.GetDefaultInterface: IStRegINIQueryKeyInfo;
|
5826 |
|
|
begin
|
5827 |
|
|
Result := FServer.DefaultInterface;
|
5828 |
|
|
end;
|
5829 |
|
|
|
5830 |
|
|
function TStRegINIQueryKeyInfoProperties.Get_QIClassName: WideString;
|
5831 |
|
|
begin
|
5832 |
|
|
Result := DefaultInterface.Get_QIClassName;
|
5833 |
|
|
end;
|
5834 |
|
|
|
5835 |
|
|
function TStRegINIQueryKeyInfoProperties.Get_QIFileTime: TDateTime;
|
5836 |
|
|
begin
|
5837 |
|
|
Result := DefaultInterface.Get_QIFileTime;
|
5838 |
|
|
end;
|
5839 |
|
|
|
5840 |
|
|
function TStRegINIQueryKeyInfoProperties.Get_QIKey: Integer;
|
5841 |
|
|
begin
|
5842 |
|
|
Result := DefaultInterface.Get_QIKey;
|
5843 |
|
|
end;
|
5844 |
|
|
|
5845 |
|
|
function TStRegINIQueryKeyInfoProperties.Get_QIMaxCNLen: Integer;
|
5846 |
|
|
begin
|
5847 |
|
|
Result := DefaultInterface.Get_QIMaxCNLen;
|
5848 |
|
|
end;
|
5849 |
|
|
|
5850 |
|
|
function TStRegINIQueryKeyInfoProperties.Get_QIMaxDataLen: Integer;
|
5851 |
|
|
begin
|
5852 |
|
|
Result := DefaultInterface.Get_QIMaxDataLen;
|
5853 |
|
|
end;
|
5854 |
|
|
|
5855 |
|
|
function TStRegINIQueryKeyInfoProperties.Get_QIMaxSKNLen: Integer;
|
5856 |
|
|
begin
|
5857 |
|
|
Result := DefaultInterface.Get_QIMaxSKNLen;
|
5858 |
|
|
end;
|
5859 |
|
|
|
5860 |
|
|
function TStRegINIQueryKeyInfoProperties.Get_QIMaxVNLen: Integer;
|
5861 |
|
|
begin
|
5862 |
|
|
Result := DefaultInterface.Get_QIMaxVNLen;
|
5863 |
|
|
end;
|
5864 |
|
|
|
5865 |
|
|
function TStRegINIQueryKeyInfoProperties.Get_QINumSubKeys: Integer;
|
5866 |
|
|
begin
|
5867 |
|
|
Result := DefaultInterface.Get_QINumSubKeys;
|
5868 |
|
|
end;
|
5869 |
|
|
|
5870 |
|
|
function TStRegINIQueryKeyInfoProperties.Get_QINumValues: Integer;
|
5871 |
|
|
begin
|
5872 |
|
|
Result := DefaultInterface.Get_QINumValues;
|
5873 |
|
|
end;
|
5874 |
|
|
|
5875 |
|
|
function TStRegINIQueryKeyInfoProperties.Get_QISDescLen: Integer;
|
5876 |
|
|
begin
|
5877 |
|
|
Result := DefaultInterface.Get_QISDescLen;
|
5878 |
|
|
end;
|
5879 |
|
|
|
5880 |
|
|
{$ENDIF}
|
5881 |
|
|
|
5882 |
|
|
class function CoStRegINISubKeys.Create: IStRegINISubKeys;
|
5883 |
|
|
begin
|
5884 |
|
|
Result := CreateComObject(CLASS_StRegINISubKeys) as IStRegINISubKeys;
|
5885 |
|
|
end;
|
5886 |
|
|
|
5887 |
|
|
class function CoStRegINISubKeys.CreateRemote(const MachineName: string): IStRegINISubKeys;
|
5888 |
|
|
begin
|
5889 |
|
|
Result := CreateRemoteComObject(MachineName, CLASS_StRegINISubKeys) as IStRegINISubKeys;
|
5890 |
|
|
end;
|
5891 |
|
|
|
5892 |
|
|
procedure TStRegINISubKeys.InitServerData;
|
5893 |
|
|
const
|
5894 |
|
|
CServerData: TServerData = (
|
5895 |
|
|
ClassID: '{A4FD4C76-1147-46C9-862B-4C3A5D246D38}';
|
5896 |
|
|
IntfIID: '{43B798DA-D2CA-4263-854D-E63FBB2F7C64}';
|
5897 |
|
|
EventIID: '';
|
5898 |
|
|
LicenseKey: nil;
|
5899 |
|
|
Version: 500);
|
5900 |
|
|
begin
|
5901 |
|
|
ServerData := @CServerData;
|
5902 |
|
|
end;
|
5903 |
|
|
|
5904 |
|
|
procedure TStRegINISubKeys.Connect;
|
5905 |
|
|
var
|
5906 |
|
|
punk: IUnknown;
|
5907 |
|
|
begin
|
5908 |
|
|
if FIntf = nil then
|
5909 |
|
|
begin
|
5910 |
|
|
punk := GetServer;
|
5911 |
|
|
Fintf:= punk as IStRegINISubKeys;
|
5912 |
|
|
end;
|
5913 |
|
|
end;
|
5914 |
|
|
|
5915 |
|
|
procedure TStRegINISubKeys.ConnectTo(svrIntf: IStRegINISubKeys);
|
5916 |
|
|
begin
|
5917 |
|
|
Disconnect;
|
5918 |
|
|
FIntf := svrIntf;
|
5919 |
|
|
end;
|
5920 |
|
|
|
5921 |
|
|
procedure TStRegINISubKeys.DisConnect;
|
5922 |
|
|
begin
|
5923 |
|
|
if Fintf <> nil then
|
5924 |
|
|
begin
|
5925 |
|
|
FIntf := nil;
|
5926 |
|
|
end;
|
5927 |
|
|
end;
|
5928 |
|
|
|
5929 |
|
|
function TStRegINISubKeys.GetDefaultInterface: IStRegINISubKeys;
|
5930 |
|
|
begin
|
5931 |
|
|
if FIntf = nil then
|
5932 |
|
|
Connect;
|
5933 |
|
|
Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
|
5934 |
|
|
Result := FIntf;
|
5935 |
|
|
end;
|
5936 |
|
|
|
5937 |
|
|
constructor TStRegINISubKeys.Create(AOwner: TComponent);
|
5938 |
|
|
begin
|
5939 |
|
|
inherited Create(AOwner);
|
5940 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5941 |
|
|
FProps := TStRegINISubKeysProperties.Create(Self);
|
5942 |
|
|
{$ENDIF}
|
5943 |
|
|
end;
|
5944 |
|
|
|
5945 |
|
|
destructor TStRegINISubKeys.Destroy;
|
5946 |
|
|
begin
|
5947 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5948 |
|
|
FProps.Free;
|
5949 |
|
|
{$ENDIF}
|
5950 |
|
|
inherited Destroy;
|
5951 |
|
|
end;
|
5952 |
|
|
|
5953 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5954 |
|
|
function TStRegINISubKeys.GetServerProperties: TStRegINISubKeysProperties;
|
5955 |
|
|
begin
|
5956 |
|
|
Result := FProps;
|
5957 |
|
|
end;
|
5958 |
|
|
{$ENDIF}
|
5959 |
|
|
|
5960 |
|
|
function TStRegINISubKeys.Get__NewEnum: IUnknown;
|
5961 |
|
|
begin
|
5962 |
|
|
Result := DefaultInterface.Get__NewEnum;
|
5963 |
|
|
end;
|
5964 |
|
|
|
5965 |
|
|
function TStRegINISubKeys.Get_Item(Index: Integer): IStRegINISubKey;
|
5966 |
|
|
begin
|
5967 |
|
|
Result := DefaultInterface.Get_Item(Index);
|
5968 |
|
|
end;
|
5969 |
|
|
|
5970 |
|
|
function TStRegINISubKeys.Get_Count: Integer;
|
5971 |
|
|
begin
|
5972 |
|
|
Result := DefaultInterface.Get_Count;
|
5973 |
|
|
end;
|
5974 |
|
|
|
5975 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
5976 |
|
|
constructor TStRegINISubKeysProperties.Create(AServer: TStRegINISubKeys);
|
5977 |
|
|
begin
|
5978 |
|
|
inherited Create;
|
5979 |
|
|
FServer := AServer;
|
5980 |
|
|
end;
|
5981 |
|
|
|
5982 |
|
|
function TStRegINISubKeysProperties.GetDefaultInterface: IStRegINISubKeys;
|
5983 |
|
|
begin
|
5984 |
|
|
Result := FServer.DefaultInterface;
|
5985 |
|
|
end;
|
5986 |
|
|
|
5987 |
|
|
function TStRegINISubKeysProperties.Get__NewEnum: IUnknown;
|
5988 |
|
|
begin
|
5989 |
|
|
Result := DefaultInterface.Get__NewEnum;
|
5990 |
|
|
end;
|
5991 |
|
|
|
5992 |
|
|
function TStRegINISubKeysProperties.Get_Item(Index: Integer): IStRegINISubKey;
|
5993 |
|
|
begin
|
5994 |
|
|
Result := DefaultInterface.Get_Item(Index);
|
5995 |
|
|
end;
|
5996 |
|
|
|
5997 |
|
|
function TStRegINISubKeysProperties.Get_Count: Integer;
|
5998 |
|
|
begin
|
5999 |
|
|
Result := DefaultInterface.Get_Count;
|
6000 |
|
|
end;
|
6001 |
|
|
|
6002 |
|
|
{$ENDIF}
|
6003 |
|
|
|
6004 |
|
|
class function CoStRegINIValue.Create: IStRegINIValue;
|
6005 |
|
|
begin
|
6006 |
|
|
Result := CreateComObject(CLASS_StRegINIValue) as IStRegINIValue;
|
6007 |
|
|
end;
|
6008 |
|
|
|
6009 |
|
|
class function CoStRegINIValue.CreateRemote(const MachineName: string): IStRegINIValue;
|
6010 |
|
|
begin
|
6011 |
|
|
Result := CreateRemoteComObject(MachineName, CLASS_StRegINIValue) as IStRegINIValue;
|
6012 |
|
|
end;
|
6013 |
|
|
|
6014 |
|
|
procedure TStRegINIValue.InitServerData;
|
6015 |
|
|
const
|
6016 |
|
|
CServerData: TServerData = (
|
6017 |
|
|
ClassID: '{C5B752C4-113B-4887-92CC-5C30B158E502}';
|
6018 |
|
|
IntfIID: '{A3E5FB23-CD5C-471B-8214-5075375DE8DF}';
|
6019 |
|
|
EventIID: '';
|
6020 |
|
|
LicenseKey: nil;
|
6021 |
|
|
Version: 500);
|
6022 |
|
|
begin
|
6023 |
|
|
ServerData := @CServerData;
|
6024 |
|
|
end;
|
6025 |
|
|
|
6026 |
|
|
procedure TStRegINIValue.Connect;
|
6027 |
|
|
var
|
6028 |
|
|
punk: IUnknown;
|
6029 |
|
|
begin
|
6030 |
|
|
if FIntf = nil then
|
6031 |
|
|
begin
|
6032 |
|
|
punk := GetServer;
|
6033 |
|
|
Fintf:= punk as IStRegINIValue;
|
6034 |
|
|
end;
|
6035 |
|
|
end;
|
6036 |
|
|
|
6037 |
|
|
procedure TStRegINIValue.ConnectTo(svrIntf: IStRegINIValue);
|
6038 |
|
|
begin
|
6039 |
|
|
Disconnect;
|
6040 |
|
|
FIntf := svrIntf;
|
6041 |
|
|
end;
|
6042 |
|
|
|
6043 |
|
|
procedure TStRegINIValue.DisConnect;
|
6044 |
|
|
begin
|
6045 |
|
|
if Fintf <> nil then
|
6046 |
|
|
begin
|
6047 |
|
|
FIntf := nil;
|
6048 |
|
|
end;
|
6049 |
|
|
end;
|
6050 |
|
|
|
6051 |
|
|
function TStRegINIValue.GetDefaultInterface: IStRegINIValue;
|
6052 |
|
|
begin
|
6053 |
|
|
if FIntf = nil then
|
6054 |
|
|
Connect;
|
6055 |
|
|
Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
|
6056 |
|
|
Result := FIntf;
|
6057 |
|
|
end;
|
6058 |
|
|
|
6059 |
|
|
constructor TStRegINIValue.Create(AOwner: TComponent);
|
6060 |
|
|
begin
|
6061 |
|
|
inherited Create(AOwner);
|
6062 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
6063 |
|
|
FProps := TStRegINIValueProperties.Create(Self);
|
6064 |
|
|
{$ENDIF}
|
6065 |
|
|
end;
|
6066 |
|
|
|
6067 |
|
|
destructor TStRegINIValue.Destroy;
|
6068 |
|
|
begin
|
6069 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
6070 |
|
|
FProps.Free;
|
6071 |
|
|
{$ENDIF}
|
6072 |
|
|
inherited Destroy;
|
6073 |
|
|
end;
|
6074 |
|
|
|
6075 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
6076 |
|
|
function TStRegINIValue.GetServerProperties: TStRegINIValueProperties;
|
6077 |
|
|
begin
|
6078 |
|
|
Result := FProps;
|
6079 |
|
|
end;
|
6080 |
|
|
{$ENDIF}
|
6081 |
|
|
|
6082 |
|
|
function TStRegINIValue.Get_Value: WideString;
|
6083 |
|
|
begin
|
6084 |
|
|
Result := DefaultInterface.Get_Value;
|
6085 |
|
|
end;
|
6086 |
|
|
|
6087 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
6088 |
|
|
constructor TStRegINIValueProperties.Create(AServer: TStRegINIValue);
|
6089 |
|
|
begin
|
6090 |
|
|
inherited Create;
|
6091 |
|
|
FServer := AServer;
|
6092 |
|
|
end;
|
6093 |
|
|
|
6094 |
|
|
function TStRegINIValueProperties.GetDefaultInterface: IStRegINIValue;
|
6095 |
|
|
begin
|
6096 |
|
|
Result := FServer.DefaultInterface;
|
6097 |
|
|
end;
|
6098 |
|
|
|
6099 |
|
|
function TStRegINIValueProperties.Get_Value: WideString;
|
6100 |
|
|
begin
|
6101 |
|
|
Result := DefaultInterface.Get_Value;
|
6102 |
|
|
end;
|
6103 |
|
|
|
6104 |
|
|
{$ENDIF}
|
6105 |
|
|
|
6106 |
|
|
class function CoStRegINIValues.Create: IStRegINIValues;
|
6107 |
|
|
begin
|
6108 |
|
|
Result := CreateComObject(CLASS_StRegINIValues) as IStRegINIValues;
|
6109 |
|
|
end;
|
6110 |
|
|
|
6111 |
|
|
class function CoStRegINIValues.CreateRemote(const MachineName: string): IStRegINIValues;
|
6112 |
|
|
begin
|
6113 |
|
|
Result := CreateRemoteComObject(MachineName, CLASS_StRegINIValues) as IStRegINIValues;
|
6114 |
|
|
end;
|
6115 |
|
|
|
6116 |
|
|
procedure TStRegINIValues.InitServerData;
|
6117 |
|
|
const
|
6118 |
|
|
CServerData: TServerData = (
|
6119 |
|
|
ClassID: '{50210282-7730-48FC-A9EC-6BBAD8B3915A}';
|
6120 |
|
|
IntfIID: '{FC9E57F0-ABC0-4B69-80A0-06CDACB61AEB}';
|
6121 |
|
|
EventIID: '';
|
6122 |
|
|
LicenseKey: nil;
|
6123 |
|
|
Version: 500);
|
6124 |
|
|
begin
|
6125 |
|
|
ServerData := @CServerData;
|
6126 |
|
|
end;
|
6127 |
|
|
|
6128 |
|
|
procedure TStRegINIValues.Connect;
|
6129 |
|
|
var
|
6130 |
|
|
punk: IUnknown;
|
6131 |
|
|
begin
|
6132 |
|
|
if FIntf = nil then
|
6133 |
|
|
begin
|
6134 |
|
|
punk := GetServer;
|
6135 |
|
|
Fintf:= punk as IStRegINIValues;
|
6136 |
|
|
end;
|
6137 |
|
|
end;
|
6138 |
|
|
|
6139 |
|
|
procedure TStRegINIValues.ConnectTo(svrIntf: IStRegINIValues);
|
6140 |
|
|
begin
|
6141 |
|
|
Disconnect;
|
6142 |
|
|
FIntf := svrIntf;
|
6143 |
|
|
end;
|
6144 |
|
|
|
6145 |
|
|
procedure TStRegINIValues.DisConnect;
|
6146 |
|
|
begin
|
6147 |
|
|
if Fintf <> nil then
|
6148 |
|
|
begin
|
6149 |
|
|
FIntf := nil;
|
6150 |
|
|
end;
|
6151 |
|
|
end;
|
6152 |
|
|
|
6153 |
|
|
function TStRegINIValues.GetDefaultInterface: IStRegINIValues;
|
6154 |
|
|
begin
|
6155 |
|
|
if FIntf = nil then
|
6156 |
|
|
Connect;
|
6157 |
|
|
Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
|
6158 |
|
|
Result := FIntf;
|
6159 |
|
|
end;
|
6160 |
|
|
|
6161 |
|
|
constructor TStRegINIValues.Create(AOwner: TComponent);
|
6162 |
|
|
begin
|
6163 |
|
|
inherited Create(AOwner);
|
6164 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
6165 |
|
|
FProps := TStRegINIValuesProperties.Create(Self);
|
6166 |
|
|
{$ENDIF}
|
6167 |
|
|
end;
|
6168 |
|
|
|
6169 |
|
|
destructor TStRegINIValues.Destroy;
|
6170 |
|
|
begin
|
6171 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
6172 |
|
|
FProps.Free;
|
6173 |
|
|
{$ENDIF}
|
6174 |
|
|
inherited Destroy;
|
6175 |
|
|
end;
|
6176 |
|
|
|
6177 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
6178 |
|
|
function TStRegINIValues.GetServerProperties: TStRegINIValuesProperties;
|
6179 |
|
|
begin
|
6180 |
|
|
Result := FProps;
|
6181 |
|
|
end;
|
6182 |
|
|
{$ENDIF}
|
6183 |
|
|
|
6184 |
|
|
function TStRegINIValues.Get__NewEnum: IUnknown;
|
6185 |
|
|
begin
|
6186 |
|
|
Result := DefaultInterface.Get__NewEnum;
|
6187 |
|
|
end;
|
6188 |
|
|
|
6189 |
|
|
function TStRegINIValues.Get_Item(Index: Integer): IStRegINIValue;
|
6190 |
|
|
begin
|
6191 |
|
|
Result := DefaultInterface.Get_Item(Index);
|
6192 |
|
|
end;
|
6193 |
|
|
|
6194 |
|
|
function TStRegINIValues.Get_Count: Integer;
|
6195 |
|
|
begin
|
6196 |
|
|
Result := DefaultInterface.Get_Count;
|
6197 |
|
|
end;
|
6198 |
|
|
|
6199 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
6200 |
|
|
constructor TStRegINIValuesProperties.Create(AServer: TStRegINIValues);
|
6201 |
|
|
begin
|
6202 |
|
|
inherited Create;
|
6203 |
|
|
FServer := AServer;
|
6204 |
|
|
end;
|
6205 |
|
|
|
6206 |
|
|
function TStRegINIValuesProperties.GetDefaultInterface: IStRegINIValues;
|
6207 |
|
|
begin
|
6208 |
|
|
Result := FServer.DefaultInterface;
|
6209 |
|
|
end;
|
6210 |
|
|
|
6211 |
|
|
function TStRegINIValuesProperties.Get__NewEnum: IUnknown;
|
6212 |
|
|
begin
|
6213 |
|
|
Result := DefaultInterface.Get__NewEnum;
|
6214 |
|
|
end;
|
6215 |
|
|
|
6216 |
|
|
function TStRegINIValuesProperties.Get_Item(Index: Integer): IStRegINIValue;
|
6217 |
|
|
begin
|
6218 |
|
|
Result := DefaultInterface.Get_Item(Index);
|
6219 |
|
|
end;
|
6220 |
|
|
|
6221 |
|
|
function TStRegINIValuesProperties.Get_Count: Integer;
|
6222 |
|
|
begin
|
6223 |
|
|
Result := DefaultInterface.Get_Count;
|
6224 |
|
|
end;
|
6225 |
|
|
|
6226 |
|
|
{$ENDIF}
|
6227 |
|
|
|
6228 |
|
|
class function CoStRegINISubKey.Create: IStRegINISubKey;
|
6229 |
|
|
begin
|
6230 |
|
|
Result := CreateComObject(CLASS_StRegINISubKey) as IStRegINISubKey;
|
6231 |
|
|
end;
|
6232 |
|
|
|
6233 |
|
|
class function CoStRegINISubKey.CreateRemote(const MachineName: string): IStRegINISubKey;
|
6234 |
|
|
begin
|
6235 |
|
|
Result := CreateRemoteComObject(MachineName, CLASS_StRegINISubKey) as IStRegINISubKey;
|
6236 |
|
|
end;
|
6237 |
|
|
|
6238 |
|
|
procedure TStRegINISubKey.InitServerData;
|
6239 |
|
|
const
|
6240 |
|
|
CServerData: TServerData = (
|
6241 |
|
|
ClassID: '{0C2EECA2-08E5-47C2-AABF-F091F71427CC}';
|
6242 |
|
|
IntfIID: '{BBA14CDE-6BDE-4E40-86DD-E04697595AF3}';
|
6243 |
|
|
EventIID: '';
|
6244 |
|
|
LicenseKey: nil;
|
6245 |
|
|
Version: 500);
|
6246 |
|
|
begin
|
6247 |
|
|
ServerData := @CServerData;
|
6248 |
|
|
end;
|
6249 |
|
|
|
6250 |
|
|
procedure TStRegINISubKey.Connect;
|
6251 |
|
|
var
|
6252 |
|
|
punk: IUnknown;
|
6253 |
|
|
begin
|
6254 |
|
|
if FIntf = nil then
|
6255 |
|
|
begin
|
6256 |
|
|
punk := GetServer;
|
6257 |
|
|
Fintf:= punk as IStRegINISubKey;
|
6258 |
|
|
end;
|
6259 |
|
|
end;
|
6260 |
|
|
|
6261 |
|
|
procedure TStRegINISubKey.ConnectTo(svrIntf: IStRegINISubKey);
|
6262 |
|
|
begin
|
6263 |
|
|
Disconnect;
|
6264 |
|
|
FIntf := svrIntf;
|
6265 |
|
|
end;
|
6266 |
|
|
|
6267 |
|
|
procedure TStRegINISubKey.DisConnect;
|
6268 |
|
|
begin
|
6269 |
|
|
if Fintf <> nil then
|
6270 |
|
|
begin
|
6271 |
|
|
FIntf := nil;
|
6272 |
|
|
end;
|
6273 |
|
|
end;
|
6274 |
|
|
|
6275 |
|
|
function TStRegINISubKey.GetDefaultInterface: IStRegINISubKey;
|
6276 |
|
|
begin
|
6277 |
|
|
if FIntf = nil then
|
6278 |
|
|
Connect;
|
6279 |
|
|
Assert(FIntf <> nil, 'DefaultInterface is NULL. Component is not connected to Server. You must call ''Connect'' or ''ConnectTo'' before this operation');
|
6280 |
|
|
Result := FIntf;
|
6281 |
|
|
end;
|
6282 |
|
|
|
6283 |
|
|
constructor TStRegINISubKey.Create(AOwner: TComponent);
|
6284 |
|
|
begin
|
6285 |
|
|
inherited Create(AOwner);
|
6286 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
6287 |
|
|
FProps := TStRegINISubKeyProperties.Create(Self);
|
6288 |
|
|
{$ENDIF}
|
6289 |
|
|
end;
|
6290 |
|
|
|
6291 |
|
|
destructor TStRegINISubKey.Destroy;
|
6292 |
|
|
begin
|
6293 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
6294 |
|
|
FProps.Free;
|
6295 |
|
|
{$ENDIF}
|
6296 |
|
|
inherited Destroy;
|
6297 |
|
|
end;
|
6298 |
|
|
|
6299 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
6300 |
|
|
function TStRegINISubKey.GetServerProperties: TStRegINISubKeyProperties;
|
6301 |
|
|
begin
|
6302 |
|
|
Result := FProps;
|
6303 |
|
|
end;
|
6304 |
|
|
{$ENDIF}
|
6305 |
|
|
|
6306 |
|
|
function TStRegINISubKey.Get_Value: WideString;
|
6307 |
|
|
begin
|
6308 |
|
|
Result := DefaultInterface.Get_Value;
|
6309 |
|
|
end;
|
6310 |
|
|
|
6311 |
|
|
{$IFDEF LIVE_SERVER_AT_DESIGN_TIME}
|
6312 |
|
|
constructor TStRegINISubKeyProperties.Create(AServer: TStRegINISubKey);
|
6313 |
|
|
begin
|
6314 |
|
|
inherited Create;
|
6315 |
|
|
FServer := AServer;
|
6316 |
|
|
end;
|
6317 |
|
|
|
6318 |
|
|
function TStRegINISubKeyProperties.GetDefaultInterface: IStRegINISubKey;
|
6319 |
|
|
begin
|
6320 |
|
|
Result := FServer.DefaultInterface;
|
6321 |
|
|
end;
|
6322 |
|
|
|
6323 |
|
|
function TStRegINISubKeyProperties.Get_Value: WideString;
|
6324 |
|
|
begin
|
6325 |
|
|
Result := DefaultInterface.Get_Value;
|
6326 |
|
|
end;
|
6327 |
|
|
|
6328 |
|
|
{$ENDIF}
|
6329 |
|
|
|
6330 |
|
|
procedure Register;
|
6331 |
|
|
begin
|
6332 |
|
|
RegisterComponents('Servers',[TStDate, TStString, TStToHTML, TStStringList,
|
6333 |
|
|
TStRegEx, TStExpr, TStMime, TStRegINI, TStFin,
|
6334 |
|
|
TStRegINIQueryKeyInfo, TStRegINISubKeys, TStRegINIValue, TStRegINIValues, TStRegINISubKey]);
|
6335 |
|
|
end;
|
6336 |
|
|
|
6337 |
|
|
end.
|