ImageOleLib_TLB.pas 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. unit ImageOleLib_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-2-21 16:36:03 from Type Library described below.
  14. // ************************************************************************ //
  15. // Type Lib: E:\RealICQ Projects For Win32\Controls\RealICQUI\GifAnimator.dll (1)
  16. // LIBID: {710993A2-4F87-41D7-B6FE-F5A20368465F}
  17. // LCID: 0
  18. // Helpfile:
  19. // HelpString: ImageOle 1.0 Type Library
  20. // DepndLst:
  21. // (1) v2.0 stdole, (C:\WINNT\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, OleServer, 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. ImageOleLibMajorVersion = 1;
  39. ImageOleLibMinorVersion = 0;
  40. LIBID_ImageOleLib: TGUID = '{710993A2-4F87-41D7-B6FE-F5A20368465F}';
  41. IID_IGifAnimator: TGUID = '{0C1CF2DF-05A3-4FEF-8CD4-F5CFC4355A16}';
  42. CLASS_GifAnimator: TGUID = '{06ADA938-0FB0-4BC0-B19B-0A38AB17F182}';
  43. type
  44. // *********************************************************************//
  45. // Forward declaration of types defined in TypeLibrary
  46. // *********************************************************************//
  47. IGifAnimator = interface;
  48. IGifAnimatorDisp = dispinterface;
  49. // *********************************************************************//
  50. // Declaration of CoClasses defined in Type Library
  51. // (NOTE: Here we map each CoClass to its Default Interface)
  52. // *********************************************************************//
  53. GifAnimator = IGifAnimator;
  54. // *********************************************************************//
  55. // Interface: IGifAnimator
  56. // Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
  57. // GUID: {0C1CF2DF-05A3-4FEF-8CD4-F5CFC4355A16}
  58. // *********************************************************************//
  59. IGifAnimator = interface(IDispatch)
  60. ['{0C1CF2DF-05A3-4FEF-8CD4-F5CFC4355A16}']
  61. procedure LoadFromFile(const FileName: WideString); safecall;
  62. function TriggerFrameChange: WordBool; safecall;
  63. function GetFilePath: WideString; safecall;
  64. procedure ShowText(const Text: WideString); safecall;
  65. end;
  66. // *********************************************************************//
  67. // DispIntf: IGifAnimatorDisp
  68. // Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
  69. // GUID: {0C1CF2DF-05A3-4FEF-8CD4-F5CFC4355A16}
  70. // *********************************************************************//
  71. IGifAnimatorDisp = dispinterface
  72. ['{0C1CF2DF-05A3-4FEF-8CD4-F5CFC4355A16}']
  73. procedure LoadFromFile(const FileName: WideString); dispid 1;
  74. function TriggerFrameChange: WordBool; dispid 2;
  75. function GetFilePath: WideString; dispid 3;
  76. procedure ShowText(const Text: WideString); dispid 4;
  77. end;
  78. // *********************************************************************//
  79. // OLE Control Proxy class declaration
  80. // Control Name : TGifAnimator
  81. // Help String : GifAnimator Class
  82. // Default Interface: IGifAnimator
  83. // Def. Intf. DISP? : No
  84. // Event Interface:
  85. // TypeFlags : (2) CanCreate
  86. // *********************************************************************//
  87. TGifAnimator = class(TOleControl)
  88. private
  89. FIntf: IGifAnimator;
  90. function GetControlInterface: IGifAnimator;
  91. protected
  92. procedure CreateControl;
  93. procedure InitControlData; override;
  94. public
  95. procedure LoadFromFile(const FileName: WideString);
  96. function TriggerFrameChange: WordBool;
  97. function GetFilePath: WideString;
  98. procedure ShowText(const Text: WideString);
  99. property ControlInterface: IGifAnimator read GetControlInterface;
  100. property DefaultInterface: IGifAnimator read GetControlInterface;
  101. published
  102. property Anchors;
  103. end;
  104. resourcestring
  105. dtlServerPage = '(none)';
  106. dtlOcxPage = '(none)';
  107. implementation
  108. uses ComObj;
  109. procedure TGifAnimator.InitControlData;
  110. const
  111. CControlData: TControlData2 = (
  112. ClassID: '{06ADA938-0FB0-4BC0-B19B-0A38AB17F182}';
  113. EventIID: '';
  114. EventCount: 0;
  115. EventDispIDs: nil;
  116. LicenseKey: nil (*HR:$80004002*);
  117. Flags: $00000000;
  118. Version: 401);
  119. begin
  120. ControlData := @CControlData;
  121. end;
  122. procedure TGifAnimator.CreateControl;
  123. procedure DoCreate;
  124. begin
  125. FIntf := IUnknown(OleObject) as IGifAnimator;
  126. end;
  127. begin
  128. if FIntf = nil then DoCreate;
  129. end;
  130. function TGifAnimator.GetControlInterface: IGifAnimator;
  131. begin
  132. CreateControl;
  133. Result := FIntf;
  134. end;
  135. procedure TGifAnimator.LoadFromFile(const FileName: WideString);
  136. begin
  137. DefaultInterface.LoadFromFile(FileName);
  138. end;
  139. function TGifAnimator.TriggerFrameChange: WordBool;
  140. begin
  141. Result := DefaultInterface.TriggerFrameChange;
  142. end;
  143. function TGifAnimator.GetFilePath: WideString;
  144. begin
  145. Result := DefaultInterface.GetFilePath;
  146. end;
  147. procedure TGifAnimator.ShowText(const Text: WideString);
  148. begin
  149. DefaultInterface.ShowText(Text);
  150. end;
  151. end.