classes.inc 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  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 stringl.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. FindClass:=nil;
  118. end;
  119. function GetClass(const ClassName: string): TPersistentClass;
  120. begin
  121. GetClass:=nil;
  122. end;
  123. { Component registration routines }
  124. procedure RegisterComponents(const Page: string;
  125. ComponentClasses: array of TComponentClass);
  126. begin
  127. end;
  128. procedure RegisterNoIcon(ComponentClasses: array of TComponentClass);
  129. begin
  130. end;
  131. procedure RegisterNonActiveX(ComponentClasses: array of TComponentClass;
  132. AxRegType: TActiveXRegType);
  133. begin
  134. end;
  135. { Object filing routines }
  136. procedure RegisterIntegerConsts(IntegerType: Pointer; IdentToInt: TIdentToInt;
  137. IntToIdent: TIntToIdent);
  138. begin
  139. end;
  140. function IdentToInt(const Ident: string; var Int: Longint; const Map: array of TIdentMapEntry): Boolean;
  141. begin
  142. IdentToInt:=false;
  143. end;
  144. function IntToIdent(Int: Longint; var Ident: string; const Map: array of TIdentMapEntry): Boolean;
  145. begin
  146. IntToIdent:=false;
  147. end;
  148. function InitInheritedComponent(Instance: TComponent; RootAncestor: TClass): Boolean;
  149. begin
  150. InitInheritedComponent:=false;
  151. end;
  152. function InitComponentRes(const ResName: string; Instance: TComponent): Boolean;
  153. begin
  154. InitComponentRes:=false;
  155. end;
  156. function ReadComponentRes(const ResName: string; Instance: TComponent): TComponent;
  157. begin
  158. ReadComponentRes:=nil;
  159. end;
  160. function ReadComponentResEx(HInstance: THandle; const ResName: string): TComponent;
  161. begin
  162. ReadComponentResEx:=nil;
  163. end;
  164. function ReadComponentResFile(const FileName: string; Instance: TComponent): TComponent;
  165. begin
  166. ReadComponentResFile:=nil;
  167. end;
  168. procedure WriteComponentResFile(const FileName: string; Instance: TComponent);
  169. begin
  170. end;
  171. procedure GlobalFixupReferences;
  172. begin
  173. end;
  174. procedure GetFixupReferenceNames(Root: TComponent; Names: TStrings);
  175. begin
  176. end;
  177. procedure GetFixupInstanceNames(Root: TComponent;
  178. const ReferenceRootName: string; Names: TStrings);
  179. begin
  180. end;
  181. procedure RedirectFixupReferences(Root: TComponent; const OldRootName,
  182. NewRootName: string);
  183. begin
  184. end;
  185. procedure RemoveFixupReferences(Root: TComponent; const RootName: string);
  186. begin
  187. end;
  188. procedure RemoveFixups(Instance: TPersistent);
  189. begin
  190. end;
  191. procedure BeginGlobalLoading;
  192. begin
  193. end;
  194. procedure NotifyGlobalLoading;
  195. begin
  196. end;
  197. procedure EndGlobalLoading;
  198. begin
  199. end;
  200. function CollectionsEqual(C1, C2: TCollection): Boolean;
  201. begin
  202. CollectionsEqual:=false;
  203. end;
  204. { Object conversion routines }
  205. procedure ObjectBinaryToText(Input, Output: TStream);
  206. begin
  207. end;
  208. procedure ObjectTextToBinary(Input, Output: TStream);
  209. begin
  210. end;
  211. procedure ObjectResourceToText(Input, Output: TStream);
  212. begin
  213. end;
  214. procedure ObjectTextToResource(Input, Output: TStream);
  215. begin
  216. end;
  217. { Utility routines }
  218. function LineStart(Buffer, BufPos: PChar): PChar;
  219. begin
  220. LineStart:=nil;
  221. end;
  222. {
  223. $Log$
  224. Revision 1.10 1999-04-13 08:52:29 michael
  225. + Moved strings.inc to stringl.inc, to avoid conflict with strings unit
  226. Revision 1.9 1999/04/08 10:18:50 peter
  227. * makefile updates
  228. }