⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rfxmlproj1_tlb.pas

📁 一个用Delpi写的视频聊天的SDK
💻 PAS
字号:
unit rfXmlProj1_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-1-12 21:44:08 from Type Library described below.

// ************************************************************************  //
// Type Lib: F:\project\avcSDK\test\rfXmlProj1.tlb (1)
// LIBID: {9366E5F1-AA27-4AD4-B945-11F4D5FC86A0}
// LCID: 0
// Helpfile: 
// HelpString: rfXmlProj1 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, 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
  rfXmlProj1MajorVersion = 1;
  rfXmlProj1MinorVersion = 0;

  LIBID_rfXmlProj1: TGUID = '{9366E5F1-AA27-4AD4-B945-11F4D5FC86A0}';

  IID_IrfXml: TGUID = '{9A70B2F5-968B-4311-A46F-8559DBFEF62E}';
  DIID_IrfXmlEvents: TGUID = '{D3F1B1E8-482E-4891-80AE-0149C1BC0A57}';
  CLASS_rfXml: TGUID = '{17FB7888-3615-41ED-9859-A8B2700FF30E}';

// *********************************************************************//
// Declaration of Enumerations defined in Type Library                    
// *********************************************************************//
// Constants for enum TxActiveFormBorderStyle
type
  TxActiveFormBorderStyle = TOleEnum;
const
  afbNone = $00000000;
  afbSingle = $00000001;
  afbSunken = $00000002;
  afbRaised = $00000003;

// Constants for enum TxPrintScale
type
  TxPrintScale = TOleEnum;
const
  poNone = $00000000;
  poProportional = $00000001;
  poPrintToFit = $00000002;

// Constants for enum TxMouseButton
type
  TxMouseButton = TOleEnum;
const
  mbLeft = $00000000;
  mbRight = $00000001;
  mbMiddle = $00000002;

type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  IrfXml = interface;
  IrfXmlDisp = dispinterface;
  IrfXmlEvents = dispinterface;

// *********************************************************************//
// Declaration of CoClasses defined in Type Library                       
// (NOTE: Here we map each CoClass to its Default Interface)              
// *********************************************************************//
  rfXml = IrfXml;


// *********************************************************************//
// Interface: IrfXml
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {9A70B2F5-968B-4311-A46F-8559DBFEF62E}
// *********************************************************************//
  IrfXml = interface(IDispatch)
    ['{9A70B2F5-968B-4311-A46F-8559DBFEF62E}']
    function Get_Visible: WordBool; safecall;
    procedure Set_Visible(Value: WordBool); safecall;
    function Get_AxBorderStyle: TxActiveFormBorderStyle; safecall;
    procedure Set_AxBorderStyle(Value: TxActiveFormBorderStyle); safecall;
    function Get_Enabled: WordBool; safecall;
    procedure Set_Enabled(Value: WordBool); safecall;
    function Get_XmlStr: WideString; safecall;
    procedure Set_XmlStr(const Value: WideString); safecall;
    procedure Clear; safecall;
    function GetField(const AFieldName: WideString; AID: Integer): WideString; safecall;
    procedure SetField(const AFieldName: WideString; const AValue: WideString; AID: Integer); safecall;
    property Visible: WordBool read Get_Visible write Set_Visible;
    property AxBorderStyle: TxActiveFormBorderStyle read Get_AxBorderStyle write Set_AxBorderStyle;
    property Enabled: WordBool read Get_Enabled write Set_Enabled;
    property XmlStr: WideString read Get_XmlStr write Set_XmlStr;
  end;

// *********************************************************************//
// DispIntf:  IrfXmlDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {9A70B2F5-968B-4311-A46F-8559DBFEF62E}
// *********************************************************************//
  IrfXmlDisp = dispinterface
    ['{9A70B2F5-968B-4311-A46F-8559DBFEF62E}']
    property Visible: WordBool dispid 201;
    property AxBorderStyle: TxActiveFormBorderStyle dispid 204;
    property Enabled: WordBool dispid -514;
    property XmlStr: WideString dispid 202;
    procedure Clear; dispid 203;
    function GetField(const AFieldName: WideString; AID: Integer): WideString; dispid 205;
    procedure SetField(const AFieldName: WideString; const AValue: WideString; AID: Integer); dispid 206;
  end;

// *********************************************************************//
// DispIntf:  IrfXmlEvents
// Flags:     (4096) Dispatchable
// GUID:      {D3F1B1E8-482E-4891-80AE-0149C1BC0A57}
// *********************************************************************//
  IrfXmlEvents = dispinterface
    ['{D3F1B1E8-482E-4891-80AE-0149C1BC0A57}']
    procedure OnActivate; dispid 201;
    procedure OnClick; dispid 202;
    procedure OnCreate; dispid 203;
    procedure OnDblClick; dispid 204;
    procedure OnDestroy; dispid 205;
    procedure OnDeactivate; dispid 206;
    procedure OnKeyPress(var Key: Smallint); dispid 207;
    procedure OnPaint; dispid 208;
  end;


// *********************************************************************//
// OLE Control Proxy class declaration
// Control Name     : TrfXml
// Help String      : rfXml Control
// Default Interface: IrfXml
// Def. Intf. DISP? : No
// Event   Interface: IrfXmlEvents
// TypeFlags        : (34) CanCreate Control
// *********************************************************************//
  TrfXmlOnKeyPress = procedure(ASender: TObject; var Key: Smallint) of object;

  TrfXml = class(TOleControl)
  private
    FOnActivate: TNotifyEvent;
    FOnClick: TNotifyEvent;
    FOnCreate: TNotifyEvent;
    FOnDblClick: TNotifyEvent;
    FOnDestroy: TNotifyEvent;
    FOnDeactivate: TNotifyEvent;
    FOnKeyPress: TrfXmlOnKeyPress;
    FOnPaint: TNotifyEvent;
    FIntf: IrfXml;
    function  GetControlInterface: IrfXml;
  protected
    procedure CreateControl;
    procedure InitControlData; override;
  public
    procedure Clear;
    function GetField(const AFieldName: WideString; AID: Integer): WideString;
    procedure SetField(const AFieldName: WideString; const AValue: WideString; AID: Integer);
    property  ControlInterface: IrfXml read GetControlInterface;
    property  DefaultInterface: IrfXml read GetControlInterface;
    property Visible: WordBool index 201 read GetWordBoolProp write SetWordBoolProp;
    property Enabled: WordBool index -514 read GetWordBoolProp write SetWordBoolProp;
  published
    property Anchors;
    property  Align;
    property  DragCursor;
    property  DragMode;
    property  ParentShowHint;
    property  PopupMenu;
    property  ShowHint;
    property  TabOrder;
    property  OnDragDrop;
    property  OnDragOver;
    property  OnEndDrag;
    property  OnEnter;
    property  OnExit;
    property  OnStartDrag;
    property AxBorderStyle: TOleEnum index 204 read GetTOleEnumProp write SetTOleEnumProp stored False;
    property XmlStr: WideString index 202 read GetWideStringProp write SetWideStringProp stored False;
    property OnActivate: TNotifyEvent read FOnActivate write FOnActivate;
    property OnClick: TNotifyEvent read FOnClick write FOnClick;
    property OnCreate: TNotifyEvent read FOnCreate write FOnCreate;
    property OnDblClick: TNotifyEvent read FOnDblClick write FOnDblClick;
    property OnDestroy: TNotifyEvent read FOnDestroy write FOnDestroy;
    property OnDeactivate: TNotifyEvent read FOnDeactivate write FOnDeactivate;
    property OnKeyPress: TrfXmlOnKeyPress read FOnKeyPress write FOnKeyPress;
    property OnPaint: TNotifyEvent read FOnPaint write FOnPaint;
  end;

procedure Register;

resourcestring
  dtlServerPage = 'Servers';

  dtlOcxPage = 'ActiveX';

implementation

uses ComObj;

procedure TrfXml.InitControlData;
const
  CEventDispIDs: array [0..7] of DWORD = (
    $000000C9, $000000CA, $000000CB, $000000CC, $000000CD, $000000CE,
    $000000CF, $000000D0);
  CControlData: TControlData2 = (
    ClassID: '{17FB7888-3615-41ED-9859-A8B2700FF30E}';
    EventIID: '{D3F1B1E8-482E-4891-80AE-0149C1BC0A57}';
    EventCount: 8;
    EventDispIDs: @CEventDispIDs;
    LicenseKey: nil (*HR:$00000000*);
    Flags: $00000008;
    Version: 401);
begin
  ControlData := @CControlData;
  TControlData2(CControlData).FirstEventOfs := Cardinal(@@FOnActivate) - Cardinal(Self);
end;

procedure TrfXml.CreateControl;

  procedure DoCreate;
  begin
    FIntf := IUnknown(OleObject) as IrfXml;
  end;

begin
  if FIntf = nil then DoCreate;
end;

function TrfXml.GetControlInterface: IrfXml;
begin
  CreateControl;
  Result := FIntf;
end;

procedure TrfXml.Clear;
begin
  DefaultInterface.Clear;
end;

function TrfXml.GetField(const AFieldName: WideString; AID: Integer): WideString;
begin
  Result := DefaultInterface.GetField(AFieldName, AID);
end;

procedure TrfXml.SetField(const AFieldName: WideString; const AValue: WideString; AID: Integer);
begin
  DefaultInterface.SetField(AFieldName, AValue, AID);
end;

procedure Register;
begin
  RegisterComponents(dtlOcxPage, [TrfXml]);
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -