classes.inc 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  1. {
  2. $Id$
  3. This file is part of the Free Component Library (FCL)
  4. Copyright (c) 1998 by Michael Van Canneyt and Florian Klaempfl
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. {**********************************************************************
  12. * Class implementations are in separate files. *
  13. **********************************************************************}
  14. {
  15. Include all message strings
  16. Add a language with IFDEF LANG_NAME
  17. just befor the final ELSE. This way English will always be the default.
  18. }
  19. {$IFDEF LANG_GERMAN}
  20. {$i constsg.inc}
  21. {$ELSE}
  22. {$IFDEF LANG_SPANISH}
  23. {$i constss.inc}
  24. {$ELSE}
  25. {$i constse.inc}
  26. {$ENDIF}
  27. {$ENDIF}
  28. { Utility routines }
  29. {$i util.inc}
  30. { TBits implementation }
  31. {$i bits.inc}
  32. { TReader implementation }
  33. {$i reader.inc}
  34. { TWriter implementation }
  35. {$i writer.inc}
  36. { TFiler implementation }
  37. {$i filer.inc}
  38. { All streams implementations: }
  39. { Tstreams THandleStream TFileStream TResourcseStreams TStringStream }
  40. { TCustomMemoryStream TMemoryStream }
  41. {$i streams.inc}
  42. { TParser implementation}
  43. {$i parser.inc}
  44. { TCollection and TCollectionItem implementations }
  45. {$i collect.inc}
  46. { TList and TThreadList implementations }
  47. {$i lists.inc}
  48. { TStrings and TStringList implementations }
  49. {$i strings.inc}
  50. { TThread implementation }
  51. {$i thread.inc}
  52. { TPersistent implementation }
  53. {$i persist.inc }
  54. { TComponent implementation }
  55. {$i compon.inc}
  56. {**********************************************************************
  57. * Miscellaneous procedures and functions *
  58. **********************************************************************}
  59. { Point and rectangle constructors }
  60. function Point(AX, AY: Integer): TPoint;
  61. begin
  62. with Result do
  63. begin
  64. X := AX;
  65. Y := AY;
  66. end;
  67. end;
  68. function SmallPoint(AX, AY: SmallInt): TSmallPoint;
  69. begin
  70. with Result do
  71. begin
  72. X := AX;
  73. Y := AY;
  74. end;
  75. end;
  76. function Rect(ALeft, ATop, ARight, ABottom: Integer): TRect;
  77. begin
  78. with Result do
  79. begin
  80. Left := ALeft;
  81. Top := ATop;
  82. Right := ARight;
  83. Bottom := ABottom;
  84. end;
  85. end;
  86. function Bounds(ALeft, ATop, AWidth, AHeight: Integer): TRect;
  87. begin
  88. with Result do
  89. begin
  90. Left := ALeft;
  91. Top := ATop;
  92. Right := ALeft + AWidth;
  93. Bottom := ATop + AHeight;
  94. end;
  95. end;
  96. { Class registration routines }
  97. procedure RegisterClass(AClass: TPersistentClass);
  98. begin
  99. end;
  100. procedure RegisterClasses(AClasses: array of TPersistentClass);
  101. begin
  102. end;
  103. procedure RegisterClassAlias(AClass: TPersistentClass; const Alias: string);
  104. begin
  105. end;
  106. procedure UnRegisterClass(AClass: TPersistentClass);
  107. begin
  108. end;
  109. procedure UnRegisterClasses(AClasses: array of TPersistentClass);
  110. begin
  111. end;
  112. procedure UnRegisterModuleClasses(Module: HMODULE);
  113. begin
  114. end;
  115. function FindClass(const ClassName: string): TPersistentClass;
  116. begin
  117. end;
  118. function GetClass(const ClassName: string): TPersistentClass;
  119. begin
  120. end;
  121. { Component registration routines }
  122. procedure RegisterComponents(const Page: string;
  123. ComponentClasses: array of TComponentClass);
  124. begin
  125. end;
  126. procedure RegisterNoIcon(ComponentClasses: array of TComponentClass);
  127. begin
  128. end;
  129. procedure RegisterNonActiveX(ComponentClasses: array of TComponentClass;
  130. AxRegType: TActiveXRegType);
  131. begin
  132. end;
  133. { Object filing routines }
  134. procedure RegisterIntegerConsts(IntegerType: Pointer; IdentToInt: TIdentToInt;
  135. IntToIdent: TIntToIdent);
  136. begin
  137. end;
  138. function IdentToInt(const Ident: string; var Int: Longint; const Map: array of TIdentMapEntry): Boolean;
  139. begin
  140. end;
  141. function IntToIdent(Int: Longint; var Ident: string; const Map: array of TIdentMapEntry): Boolean;
  142. begin
  143. end;
  144. function InitInheritedComponent(Instance: TComponent; RootAncestor: TClass): Boolean;
  145. begin
  146. end;
  147. function InitComponentRes(const ResName: string; Instance: TComponent): Boolean;
  148. begin
  149. end;
  150. function ReadComponentRes(const ResName: string; Instance: TComponent): TComponent;
  151. begin
  152. end;
  153. function ReadComponentResEx(HInstance: THandle; const ResName: string): TComponent;
  154. begin
  155. end;
  156. function ReadComponentResFile(const FileName: string; Instance: TComponent): TComponent;
  157. begin
  158. end;
  159. procedure WriteComponentResFile(const FileName: string; Instance: TComponent);
  160. begin
  161. end;
  162. procedure GlobalFixupReferences;
  163. begin
  164. end;
  165. procedure GetFixupReferenceNames(Root: TComponent; Names: TStrings);
  166. begin
  167. end;
  168. procedure GetFixupInstanceNames(Root: TComponent;
  169. const ReferenceRootName: string; Names: TStrings);
  170. begin
  171. end;
  172. procedure RedirectFixupReferences(Root: TComponent; const OldRootName,
  173. NewRootName: string);
  174. begin
  175. end;
  176. procedure RemoveFixupReferences(Root: TComponent; const RootName: string);
  177. begin
  178. end;
  179. procedure RemoveFixups(Instance: TPersistent);
  180. begin
  181. end;
  182. procedure BeginGlobalLoading;
  183. begin
  184. end;
  185. procedure NotifyGlobalLoading;
  186. begin
  187. end;
  188. procedure EndGlobalLoading;
  189. begin
  190. end;
  191. function CollectionsEqual(C1, C2: TCollection): Boolean;
  192. begin
  193. end;
  194. { Object conversion routines }
  195. procedure ObjectBinaryToText(Input, Output: TStream);
  196. begin
  197. end;
  198. procedure ObjectTextToBinary(Input, Output: TStream);
  199. begin
  200. end;
  201. procedure ObjectResourceToText(Input, Output: TStream);
  202. begin
  203. end;
  204. procedure ObjectTextToResource(Input, Output: TStream);
  205. begin
  206. end;
  207. { Utility routines }
  208. function LineStart(Buffer, BufPos: PChar): PChar;
  209. begin
  210. end;
  211. {
  212. $Log$
  213. Revision 1.8 1999-02-10 13:45:19 michael
  214. + Added spanish language
  215. Revision 1.7 1998/10/30 14:52:48 michael
  216. + Added format in interface
  217. + Some errors in parser fixed, it uses exceptions now
  218. + Strings now has no more syntax errors.
  219. Revision 1.6 1998/10/29 12:47:14 michael
  220. + Implementation of tpoint by WYB
  221. Revision 1.5 1998/09/23 08:41:55 michael
  222. Added switch to select language
  223. Revision 1.4 1998/09/23 07:47:40 michael
  224. + Some changes by TSE
  225. Revision 1.3 1998/06/03 15:10:20 michael
  226. + added include of util.inc
  227. Revision 1.2 1998/05/04 14:30:11 michael
  228. * Split file according to Class; implemented dummys for all methods, so unit compiles.
  229. Revision 1.9 1998/05/04 12:16:01 florian
  230. + Initial revisions after making a new directory structure
  231. Revision 1.8 1998/05/04 11:20:13 florian
  232. + Write* and Read* methods to TStream added
  233. * small problems solved
  234. Revision 1.7 1998/05/04 09:39:51 michael
  235. + Started implementation of TList
  236. Revision 1.6 1998/05/01 22:17:19 florian
  237. + TBits implemented
  238. + TStream partial implemented
  239. Revision 1.5 1998/05/01 17:53:12 florian
  240. * now it compiles with FPC
  241. Revision 1.4 1998/04/28 11:47:00 florian
  242. * more adaptions to FPC
  243. Revision 1.3 1998/04/27 12:55:57 florian
  244. + uses objpas added
  245. Revision 1.2 1998/04/27 09:09:49 michael
  246. + Added log at the end
  247. }
  248. {
  249. $Log$
  250. Revision 1.8 1999-02-10 13:45:19 michael
  251. + Added spanish language
  252. Revision 1.7 1998/10/30 14:52:48 michael
  253. + Added format in interface
  254. + Some errors in parser fixed, it uses exceptions now
  255. + Strings now has no more syntax errors.
  256. Revision 1.6 1998/10/29 12:47:14 michael
  257. + Implementation of tpoint by WYB
  258. Revision 1.5 1998/09/23 08:41:55 michael
  259. Added switch to select language
  260. Revision 1.4 1998/09/23 07:47:40 michael
  261. + Some changes by TSE
  262. Revision 1.3 1998/06/03 15:10:20 michael
  263. + added include of util.inc
  264. Revision 1.2 1998/05/04 14:30:11 michael
  265. * Split file according to Class; implemented dummys for all methods, so unit compiles.
  266. Revision 1.1 1998/05/04 12:16:01 florian
  267. + Initial revisions after making a new directory structure
  268. }