| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- unit ImageOleLib_TLB;
- // ************************************************************************ //
- // WARNING
- // -------
- // The types declared in this file were generated from data read from a
- // Type Library. If this type library is explicitly or indirectly (via
- // another type library referring to this type library) re-imported, or the
- // 'Refresh' command of the Type Library Editor activated while editing the
- // Type Library, the contents of this file will be regenerated and all
- // manual modifications will be lost.
- // ************************************************************************ //
- // PASTLWTR : 1.2
- // File generated on 2006-2-21 16:36:03 from Type Library described below.
- // ************************************************************************ //
- // Type Lib: E:\RealICQ Projects For Win32\Controls\RealICQUI\GifAnimator.dll (1)
- // LIBID: {710993A2-4F87-41D7-B6FE-F5A20368465F}
- // LCID: 0
- // Helpfile:
- // HelpString: ImageOle 1.0 Type Library
- // DepndLst:
- // (1) v2.0 stdole, (C:\WINNT\system32\stdole2.tlb)
- // ************************************************************************ //
- {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
- {$WARN SYMBOL_PLATFORM OFF}
- {$WRITEABLECONST ON}
- {$VARPROPSETTER ON}
- interface
- uses Windows, ActiveX, Classes, Graphics, OleCtrls, OleServer, StdVCL, Variants;
-
- // *********************************************************************//
- // GUIDS declared in the TypeLibrary. Following prefixes are used:
- // Type Libraries : LIBID_xxxx
- // CoClasses : CLASS_xxxx
- // DISPInterfaces : DIID_xxxx
- // Non-DISP interfaces: IID_xxxx
- // *********************************************************************//
- const
- // TypeLibrary Major and minor versions
- ImageOleLibMajorVersion = 1;
- ImageOleLibMinorVersion = 0;
- LIBID_ImageOleLib: TGUID = '{710993A2-4F87-41D7-B6FE-F5A20368465F}';
- IID_IGifAnimator: TGUID = '{0C1CF2DF-05A3-4FEF-8CD4-F5CFC4355A16}';
- CLASS_GifAnimator: TGUID = '{06ADA938-0FB0-4BC0-B19B-0A38AB17F182}';
- type
- // *********************************************************************//
- // Forward declaration of types defined in TypeLibrary
- // *********************************************************************//
- IGifAnimator = interface;
- IGifAnimatorDisp = dispinterface;
- // *********************************************************************//
- // Declaration of CoClasses defined in Type Library
- // (NOTE: Here we map each CoClass to its Default Interface)
- // *********************************************************************//
- GifAnimator = IGifAnimator;
- // *********************************************************************//
- // Interface: IGifAnimator
- // Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
- // GUID: {0C1CF2DF-05A3-4FEF-8CD4-F5CFC4355A16}
- // *********************************************************************//
- IGifAnimator = interface(IDispatch)
- ['{0C1CF2DF-05A3-4FEF-8CD4-F5CFC4355A16}']
- procedure LoadFromFile(const FileName: WideString); safecall;
- function TriggerFrameChange: WordBool; safecall;
- function GetFilePath: WideString; safecall;
- procedure ShowText(const Text: WideString); safecall;
- end;
- // *********************************************************************//
- // DispIntf: IGifAnimatorDisp
- // Flags: (4544) Dual NonExtensible OleAutomation Dispatchable
- // GUID: {0C1CF2DF-05A3-4FEF-8CD4-F5CFC4355A16}
- // *********************************************************************//
- IGifAnimatorDisp = dispinterface
- ['{0C1CF2DF-05A3-4FEF-8CD4-F5CFC4355A16}']
- procedure LoadFromFile(const FileName: WideString); dispid 1;
- function TriggerFrameChange: WordBool; dispid 2;
- function GetFilePath: WideString; dispid 3;
- procedure ShowText(const Text: WideString); dispid 4;
- end;
- // *********************************************************************//
- // OLE Control Proxy class declaration
- // Control Name : TGifAnimator
- // Help String : GifAnimator Class
- // Default Interface: IGifAnimator
- // Def. Intf. DISP? : No
- // Event Interface:
- // TypeFlags : (2) CanCreate
- // *********************************************************************//
- TGifAnimator = class(TOleControl)
- private
- FIntf: IGifAnimator;
- function GetControlInterface: IGifAnimator;
- protected
- procedure CreateControl;
- procedure InitControlData; override;
- public
- procedure LoadFromFile(const FileName: WideString);
- function TriggerFrameChange: WordBool;
- function GetFilePath: WideString;
- procedure ShowText(const Text: WideString);
- property ControlInterface: IGifAnimator read GetControlInterface;
- property DefaultInterface: IGifAnimator read GetControlInterface;
- published
- property Anchors;
- end;
- resourcestring
- dtlServerPage = '(none)';
- dtlOcxPage = '(none)';
- implementation
- uses ComObj;
- procedure TGifAnimator.InitControlData;
- const
- CControlData: TControlData2 = (
- ClassID: '{06ADA938-0FB0-4BC0-B19B-0A38AB17F182}';
- EventIID: '';
- EventCount: 0;
- EventDispIDs: nil;
- LicenseKey: nil (*HR:$80004002*);
- Flags: $00000000;
- Version: 401);
- begin
- ControlData := @CControlData;
- end;
- procedure TGifAnimator.CreateControl;
- procedure DoCreate;
- begin
- FIntf := IUnknown(OleObject) as IGifAnimator;
- end;
- begin
- if FIntf = nil then DoCreate;
- end;
- function TGifAnimator.GetControlInterface: IGifAnimator;
- begin
- CreateControl;
- Result := FIntf;
- end;
- procedure TGifAnimator.LoadFromFile(const FileName: WideString);
- begin
- DefaultInterface.LoadFromFile(FileName);
- end;
- function TGifAnimator.TriggerFrameChange: WordBool;
- begin
- Result := DefaultInterface.TriggerFrameChange;
- end;
- function TGifAnimator.GetFilePath: WideString;
- begin
- Result := DefaultInterface.GetFilePath;
- end;
- procedure TGifAnimator.ShowText(const Text: WideString);
- begin
- DefaultInterface.ShowText(Text);
- end;
- end.
|