ImageX_TLB.pas 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  1. unit ImageX_TLB;
  2. // ************************************************************************ //
  3. // WARNING
  4. // -------
  5. // The types declared in this file were generated from data read from a
  6. // Type Library. If this type library is explicitly or indirectly (via
  7. // another type library referring to this type library) re-imported, or the
  8. // 'Refresh' command of the Type Library Editor activated while editing the
  9. // Type Library, the contents of this file will be regenerated and all
  10. // manual modifications will be lost.
  11. // ************************************************************************ //
  12. // PASTLWTR : 1.2
  13. // File generated on 2006-3-22 12:34:53 from Type Library described below.
  14. // ************************************************************************ //
  15. // Type Lib: E:\RealICQ Projects For Win32\Dll\ImageX\ImageX.tlb (1)
  16. // LIBID: {E1025262-0248-4E3D-8340-1B582B83D7F2}
  17. // LCID: 0
  18. // Helpfile:
  19. // HelpString: ImageX Library
  20. // DepndLst:
  21. // (1) v2.0 stdole, (C:\WINDOWS\system32\stdole2.tlb)
  22. // ************************************************************************ //
  23. {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
  24. {$WARN SYMBOL_PLATFORM OFF}
  25. {$WRITEABLECONST ON}
  26. {$VARPROPSETTER ON}
  27. interface
  28. uses Windows, ActiveX, Classes, Graphics, OleCtrls, StdVCL, Variants;
  29. // *********************************************************************//
  30. // GUIDS declared in the TypeLibrary. Following prefixes are used:
  31. // Type Libraries : LIBID_xxxx
  32. // CoClasses : CLASS_xxxx
  33. // DISPInterfaces : DIID_xxxx
  34. // Non-DISP interfaces: IID_xxxx
  35. // *********************************************************************//
  36. const
  37. // TypeLibrary Major and minor versions
  38. ImageXMajorVersion = 1;
  39. ImageXMinorVersion = 0;
  40. LIBID_ImageX: TGUID = '{E1025262-0248-4E3D-8340-1B582B83D7F2}';
  41. IID_IRealICQImageOleX: TGUID = '{FF2B87E7-B153-4FE1-8F8D-A241D759BB44}';
  42. DIID_IRealICQImageOleXEvents: TGUID = '{D5176B7E-99F7-4BE9-8C23-F1627145C0EB}';
  43. CLASS_RealICQImageOleX: TGUID = '{57155F3A-E84B-4E14-9744-DDAB70F6F6C5}';
  44. // *********************************************************************//
  45. // Declaration of Enumerations defined in Type Library
  46. // *********************************************************************//
  47. // Constants for enum TxAlignment
  48. type
  49. TxAlignment = TOleEnum;
  50. const
  51. taLeftJustify = $00000000;
  52. taRightJustify = $00000001;
  53. taCenter = $00000002;
  54. // Constants for enum TxBevelCut
  55. type
  56. TxBevelCut = TOleEnum;
  57. const
  58. bvNone = $00000000;
  59. bvLowered = $00000001;
  60. bvRaised = $00000002;
  61. bvSpace = $00000003;
  62. // Constants for enum TxBorderStyle
  63. type
  64. TxBorderStyle = TOleEnum;
  65. const
  66. bsNone = $00000000;
  67. bsSingle = $00000001;
  68. // Constants for enum TxDragMode
  69. type
  70. TxDragMode = TOleEnum;
  71. const
  72. dmManual = $00000000;
  73. dmAutomatic = $00000001;
  74. // Constants for enum TxMouseButton
  75. type
  76. TxMouseButton = TOleEnum;
  77. const
  78. mbLeft = $00000000;
  79. mbRight = $00000001;
  80. mbMiddle = $00000002;
  81. type
  82. // *********************************************************************//
  83. // Forward declaration of types defined in TypeLibrary
  84. // *********************************************************************//
  85. IRealICQImageOleX = interface;
  86. IRealICQImageOleXDisp = dispinterface;
  87. IRealICQImageOleXEvents = dispinterface;
  88. // *********************************************************************//
  89. // Declaration of CoClasses defined in Type Library
  90. // (NOTE: Here we map each CoClass to its Default Interface)
  91. // *********************************************************************//
  92. RealICQImageOleX = IRealICQImageOleX;
  93. // *********************************************************************//
  94. // Declaration of structures, unions and aliases.
  95. // *********************************************************************//
  96. PPUserType1 = ^IFontDisp; {*}
  97. // *********************************************************************//
  98. // Interface: IRealICQImageOleX
  99. // Flags: (4416) Dual OleAutomation Dispatchable
  100. // GUID: {FF2B87E7-B153-4FE1-8F8D-A241D759BB44}
  101. // *********************************************************************//
  102. IRealICQImageOleX = interface(IDispatch)
  103. ['{FF2B87E7-B153-4FE1-8F8D-A241D759BB44}']
  104. procedure LoadFromFile(const AFileName: WideString); safecall;
  105. function Get_Picture: IPictureDisp; safecall;
  106. procedure Set_Picture(const Value: IPictureDisp); safecall;
  107. function Get_Alignment: TxAlignment; safecall;
  108. procedure Set_Alignment(Value: TxAlignment); safecall;
  109. function Get_AutoSize: WordBool; safecall;
  110. procedure Set_AutoSize(Value: WordBool); safecall;
  111. function Get_BevelInner: TxBevelCut; safecall;
  112. procedure Set_BevelInner(Value: TxBevelCut); safecall;
  113. function Get_BevelOuter: TxBevelCut; safecall;
  114. procedure Set_BevelOuter(Value: TxBevelCut); safecall;
  115. function Get_BorderStyle: TxBorderStyle; safecall;
  116. procedure Set_BorderStyle(Value: TxBorderStyle); safecall;
  117. function Get_Caption: WideString; safecall;
  118. procedure Set_Caption(const Value: WideString); safecall;
  119. function Get_Color: OLE_COLOR; safecall;
  120. procedure Set_Color(Value: OLE_COLOR); safecall;
  121. function Get_Ctl3D: WordBool; safecall;
  122. procedure Set_Ctl3D(Value: WordBool); safecall;
  123. function Get_UseDockManager: WordBool; safecall;
  124. procedure Set_UseDockManager(Value: WordBool); safecall;
  125. function Get_DockSite: WordBool; safecall;
  126. procedure Set_DockSite(Value: WordBool); safecall;
  127. function Get_DragCursor: Smallint; safecall;
  128. procedure Set_DragCursor(Value: Smallint); safecall;
  129. function Get_DragMode: TxDragMode; safecall;
  130. procedure Set_DragMode(Value: TxDragMode); safecall;
  131. function Get_Enabled: WordBool; safecall;
  132. procedure Set_Enabled(Value: WordBool); safecall;
  133. function Get_FullRepaint: WordBool; safecall;
  134. procedure Set_FullRepaint(Value: WordBool); safecall;
  135. function Get_Font: IFontDisp; safecall;
  136. procedure Set_Font(const Value: IFontDisp); safecall;
  137. procedure _Set_Font(var Value: IFontDisp); safecall;
  138. function Get_Locked: WordBool; safecall;
  139. procedure Set_Locked(Value: WordBool); safecall;
  140. function Get_ParentBackground: WordBool; safecall;
  141. procedure Set_ParentBackground(Value: WordBool); safecall;
  142. function Get_ParentColor: WordBool; safecall;
  143. procedure Set_ParentColor(Value: WordBool); safecall;
  144. function Get_ParentCtl3D: WordBool; safecall;
  145. procedure Set_ParentCtl3D(Value: WordBool); safecall;
  146. function Get_Visible: WordBool; safecall;
  147. procedure Set_Visible(Value: WordBool); safecall;
  148. function Get_DoubleBuffered: WordBool; safecall;
  149. procedure Set_DoubleBuffered(Value: WordBool); safecall;
  150. function Get_AlignDisabled: WordBool; safecall;
  151. function Get_VisibleDockClientCount: Integer; safecall;
  152. function DrawTextBiDiModeFlagsReadingOnly: Integer; safecall;
  153. procedure InitiateAction; safecall;
  154. function IsRightToLeft: WordBool; safecall;
  155. function UseRightToLeftReading: WordBool; safecall;
  156. function UseRightToLeftScrollBar: WordBool; safecall;
  157. procedure SetSubComponent(IsSubComponent: WordBool); safecall;
  158. property Picture: IPictureDisp read Get_Picture write Set_Picture;
  159. property Alignment: TxAlignment read Get_Alignment write Set_Alignment;
  160. property AutoSize: WordBool read Get_AutoSize write Set_AutoSize;
  161. property BevelInner: TxBevelCut read Get_BevelInner write Set_BevelInner;
  162. property BevelOuter: TxBevelCut read Get_BevelOuter write Set_BevelOuter;
  163. property BorderStyle: TxBorderStyle read Get_BorderStyle write Set_BorderStyle;
  164. property Caption: WideString read Get_Caption write Set_Caption;
  165. property Color: OLE_COLOR read Get_Color write Set_Color;
  166. property Ctl3D: WordBool read Get_Ctl3D write Set_Ctl3D;
  167. property UseDockManager: WordBool read Get_UseDockManager write Set_UseDockManager;
  168. property DockSite: WordBool read Get_DockSite write Set_DockSite;
  169. property DragCursor: Smallint read Get_DragCursor write Set_DragCursor;
  170. property DragMode: TxDragMode read Get_DragMode write Set_DragMode;
  171. property Enabled: WordBool read Get_Enabled write Set_Enabled;
  172. property FullRepaint: WordBool read Get_FullRepaint write Set_FullRepaint;
  173. property Font: IFontDisp read Get_Font write Set_Font;
  174. property Locked: WordBool read Get_Locked write Set_Locked;
  175. property ParentBackground: WordBool read Get_ParentBackground write Set_ParentBackground;
  176. property ParentColor: WordBool read Get_ParentColor write Set_ParentColor;
  177. property ParentCtl3D: WordBool read Get_ParentCtl3D write Set_ParentCtl3D;
  178. property Visible: WordBool read Get_Visible write Set_Visible;
  179. property DoubleBuffered: WordBool read Get_DoubleBuffered write Set_DoubleBuffered;
  180. property AlignDisabled: WordBool read Get_AlignDisabled;
  181. property VisibleDockClientCount: Integer read Get_VisibleDockClientCount;
  182. end;
  183. // *********************************************************************//
  184. // DispIntf: IRealICQImageOleXDisp
  185. // Flags: (4416) Dual OleAutomation Dispatchable
  186. // GUID: {FF2B87E7-B153-4FE1-8F8D-A241D759BB44}
  187. // *********************************************************************//
  188. IRealICQImageOleXDisp = dispinterface
  189. ['{FF2B87E7-B153-4FE1-8F8D-A241D759BB44}']
  190. procedure LoadFromFile(const AFileName: WideString); dispid 201;
  191. property Picture: IPictureDisp dispid -523;
  192. property Alignment: TxAlignment dispid 202;
  193. property AutoSize: WordBool dispid 203;
  194. property BevelInner: TxBevelCut dispid 204;
  195. property BevelOuter: TxBevelCut dispid 205;
  196. property BorderStyle: TxBorderStyle dispid 206;
  197. property Caption: WideString dispid -518;
  198. property Color: OLE_COLOR dispid -501;
  199. property Ctl3D: WordBool dispid 207;
  200. property UseDockManager: WordBool dispid 208;
  201. property DockSite: WordBool dispid 209;
  202. property DragCursor: Smallint dispid 210;
  203. property DragMode: TxDragMode dispid 211;
  204. property Enabled: WordBool dispid -514;
  205. property FullRepaint: WordBool dispid 212;
  206. property Font: IFontDisp dispid -512;
  207. property Locked: WordBool dispid 213;
  208. property ParentBackground: WordBool dispid 214;
  209. property ParentColor: WordBool dispid 215;
  210. property ParentCtl3D: WordBool dispid 216;
  211. property Visible: WordBool dispid 217;
  212. property DoubleBuffered: WordBool dispid 218;
  213. property AlignDisabled: WordBool readonly dispid 219;
  214. property VisibleDockClientCount: Integer readonly dispid 220;
  215. function DrawTextBiDiModeFlagsReadingOnly: Integer; dispid 221;
  216. procedure InitiateAction; dispid 222;
  217. function IsRightToLeft: WordBool; dispid 223;
  218. function UseRightToLeftReading: WordBool; dispid 224;
  219. function UseRightToLeftScrollBar: WordBool; dispid 225;
  220. procedure SetSubComponent(IsSubComponent: WordBool); dispid 226;
  221. end;
  222. // *********************************************************************//
  223. // DispIntf: IRealICQImageOleXEvents
  224. // Flags: (4096) Dispatchable
  225. // GUID: {D5176B7E-99F7-4BE9-8C23-F1627145C0EB}
  226. // *********************************************************************//
  227. IRealICQImageOleXEvents = dispinterface
  228. ['{D5176B7E-99F7-4BE9-8C23-F1627145C0EB}']
  229. procedure OnCanResize(var NewWidth: Integer; var NewHeight: Integer; var Resize: WordBool); dispid 201;
  230. procedure OnClick; dispid 202;
  231. procedure OnConstrainedResize(var MinWidth: Integer; var MinHeight: Integer;
  232. var MaxWidth: Integer; var MaxHeight: Integer); dispid 203;
  233. procedure OnDblClick; dispid 204;
  234. procedure OnResize; dispid 205;
  235. end;
  236. // *********************************************************************//
  237. // OLE Control Proxy class declaration
  238. // Control Name : TRealICQImageOleX
  239. // Help String : RealICQImageOleX Control
  240. // Default Interface: IRealICQImageOleX
  241. // Def. Intf. DISP? : No
  242. // Event Interface: IRealICQImageOleXEvents
  243. // TypeFlags : (38) CanCreate Licensed Control
  244. // *********************************************************************//
  245. TRealICQImageOleXOnCanResize = procedure(ASender: TObject; var NewWidth: Integer;
  246. var NewHeight: Integer;
  247. var Resize: WordBool) of object;
  248. TRealICQImageOleXOnConstrainedResize = procedure(ASender: TObject; var MinWidth: Integer;
  249. var MinHeight: Integer;
  250. var MaxWidth: Integer;
  251. var MaxHeight: Integer) of object;
  252. TRealICQImageOleX = class(TOleControl)
  253. private
  254. FOnCanResize: TRealICQImageOleXOnCanResize;
  255. FOnClick: TNotifyEvent;
  256. FOnConstrainedResize: TRealICQImageOleXOnConstrainedResize;
  257. FOnDblClick: TNotifyEvent;
  258. FOnResize: TNotifyEvent;
  259. FIntf: IRealICQImageOleX;
  260. function GetControlInterface: IRealICQImageOleX;
  261. protected
  262. procedure CreateControl;
  263. procedure InitControlData; override;
  264. public
  265. procedure LoadFromFile(const AFileName: WideString);
  266. function DrawTextBiDiModeFlagsReadingOnly: Integer;
  267. procedure InitiateAction;
  268. function IsRightToLeft: WordBool;
  269. function UseRightToLeftReading: WordBool;
  270. function UseRightToLeftScrollBar: WordBool;
  271. procedure SetSubComponent(IsSubComponent: WordBool);
  272. property ControlInterface: IRealICQImageOleX read GetControlInterface;
  273. property DefaultInterface: IRealICQImageOleX read GetControlInterface;
  274. property DoubleBuffered: WordBool index 218 read GetWordBoolProp write SetWordBoolProp;
  275. property AlignDisabled: WordBool index 219 read GetWordBoolProp;
  276. property VisibleDockClientCount: Integer index 220 read GetIntegerProp;
  277. published
  278. property Anchors;
  279. property ParentFont;
  280. property Align;
  281. property ParentShowHint;
  282. property PopupMenu;
  283. property ShowHint;
  284. property TabOrder;
  285. property OnDragDrop;
  286. property OnDragOver;
  287. property OnEndDrag;
  288. property OnEnter;
  289. property OnExit;
  290. property OnStartDrag;
  291. property Picture: TPicture index -523 read GetTPictureProp write SetTPictureProp stored False;
  292. property Alignment: TOleEnum index 202 read GetTOleEnumProp write SetTOleEnumProp stored False;
  293. property AutoSize: WordBool index 203 read GetWordBoolProp write SetWordBoolProp stored False;
  294. property BevelInner: TOleEnum index 204 read GetTOleEnumProp write SetTOleEnumProp stored False;
  295. property BevelOuter: TOleEnum index 205 read GetTOleEnumProp write SetTOleEnumProp stored False;
  296. property BorderStyle: TOleEnum index 206 read GetTOleEnumProp write SetTOleEnumProp stored False;
  297. property Caption: WideString index -518 read GetWideStringProp write SetWideStringProp stored False;
  298. property Color: TColor index -501 read GetTColorProp write SetTColorProp stored False;
  299. property Ctl3D: WordBool index 207 read GetWordBoolProp write SetWordBoolProp stored False;
  300. property UseDockManager: WordBool index 208 read GetWordBoolProp write SetWordBoolProp stored False;
  301. property DockSite: WordBool index 209 read GetWordBoolProp write SetWordBoolProp stored False;
  302. property DragCursor: Smallint index 210 read GetSmallintProp write SetSmallintProp stored False;
  303. property DragMode: TOleEnum index 211 read GetTOleEnumProp write SetTOleEnumProp stored False;
  304. property Enabled: WordBool index -514 read GetWordBoolProp write SetWordBoolProp stored False;
  305. property FullRepaint: WordBool index 212 read GetWordBoolProp write SetWordBoolProp stored False;
  306. property Font: TFont index -512 read GetTFontProp write SetTFontProp stored False;
  307. property Locked: WordBool index 213 read GetWordBoolProp write SetWordBoolProp stored False;
  308. property ParentBackground: WordBool index 214 read GetWordBoolProp write SetWordBoolProp stored False;
  309. property ParentColor: WordBool index 215 read GetWordBoolProp write SetWordBoolProp stored False;
  310. property ParentCtl3D: WordBool index 216 read GetWordBoolProp write SetWordBoolProp stored False;
  311. property Visible: WordBool index 217 read GetWordBoolProp write SetWordBoolProp stored False;
  312. property OnCanResize: TRealICQImageOleXOnCanResize read FOnCanResize write FOnCanResize;
  313. property OnClick: TNotifyEvent read FOnClick write FOnClick;
  314. property OnConstrainedResize: TRealICQImageOleXOnConstrainedResize read FOnConstrainedResize write FOnConstrainedResize;
  315. property OnDblClick: TNotifyEvent read FOnDblClick write FOnDblClick;
  316. property OnResize: TNotifyEvent read FOnResize write FOnResize;
  317. end;
  318. procedure Register;
  319. resourcestring
  320. dtlServerPage = 'Servers';
  321. dtlOcxPage = 'ActiveX';
  322. implementation
  323. uses ComObj;
  324. procedure TRealICQImageOleX.InitControlData;
  325. const
  326. CEventDispIDs: array [0..4] of DWORD = (
  327. $000000C9, $000000CA, $000000CB, $000000CC, $000000CD);
  328. CLicenseKey: array[0..38] of Word = ( $007B, $0034, $0043, $0041, $0032, $0038, $0045, $0043, $0034, $002D, $0038
  329. , $0033, $0030, $0046, $002D, $0034, $0044, $0033, $0043, $002D, $0039
  330. , $0041, $0032, $0037, $002D, $0044, $0037, $0036, $0045, $0035, $0031
  331. , $0035, $0041, $0046, $0046, $0033, $0043, $007D, $0000);
  332. CTFontIDs: array [0..0] of DWORD = (
  333. $FFFFFE00);
  334. CTPictureIDs: array [0..0] of DWORD = (
  335. $FFFFFDF5);
  336. CControlData: TControlData2 = (
  337. ClassID: '{57155F3A-E84B-4E14-9744-DDAB70F6F6C5}';
  338. EventIID: '{D5176B7E-99F7-4BE9-8C23-F1627145C0EB}';
  339. EventCount: 5;
  340. EventDispIDs: @CEventDispIDs;
  341. LicenseKey: @CLicenseKey;
  342. Flags: $0000001D;
  343. Version: 401;
  344. FontCount: 1;
  345. FontIDs: @CTFontIDs;
  346. PictureCount: 1;
  347. PictureIDs: @CTPictureIDs);
  348. begin
  349. ControlData := @CControlData;
  350. TControlData2(CControlData).FirstEventOfs := Cardinal(@@FOnCanResize) - Cardinal(Self);
  351. end;
  352. procedure TRealICQImageOleX.CreateControl;
  353. procedure DoCreate;
  354. begin
  355. FIntf := IUnknown(OleObject) as IRealICQImageOleX;
  356. end;
  357. begin
  358. if FIntf = nil then DoCreate;
  359. end;
  360. function TRealICQImageOleX.GetControlInterface: IRealICQImageOleX;
  361. begin
  362. CreateControl;
  363. Result := FIntf;
  364. end;
  365. procedure TRealICQImageOleX.LoadFromFile(const AFileName: WideString);
  366. begin
  367. DefaultInterface.LoadFromFile(AFileName);
  368. end;
  369. function TRealICQImageOleX.DrawTextBiDiModeFlagsReadingOnly: Integer;
  370. begin
  371. Result := DefaultInterface.DrawTextBiDiModeFlagsReadingOnly;
  372. end;
  373. procedure TRealICQImageOleX.InitiateAction;
  374. begin
  375. DefaultInterface.InitiateAction;
  376. end;
  377. function TRealICQImageOleX.IsRightToLeft: WordBool;
  378. begin
  379. Result := DefaultInterface.IsRightToLeft;
  380. end;
  381. function TRealICQImageOleX.UseRightToLeftReading: WordBool;
  382. begin
  383. Result := DefaultInterface.UseRightToLeftReading;
  384. end;
  385. function TRealICQImageOleX.UseRightToLeftScrollBar: WordBool;
  386. begin
  387. Result := DefaultInterface.UseRightToLeftScrollBar;
  388. end;
  389. procedure TRealICQImageOleX.SetSubComponent(IsSubComponent: WordBool);
  390. begin
  391. DefaultInterface.SetSubComponent(IsSubComponent);
  392. end;
  393. procedure Register;
  394. begin
  395. RegisterComponents(dtlOcxPage, [TRealICQImageOleX]);
  396. end;
  397. end.