📄 lmviewproj1_tlb.pas
字号:
unit lmViewProj1_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-17 4:33:07 from Type Library described below.
// ************************************************************************ //
// Type Lib: F:\project\avcSDK\test\lmViewProj1.tlb (1)
// LIBID: {117C1614-2DCF-4A96-8587-C4EA7BF971B2}
// LCID: 0
// Helpfile:
// HelpString: lmViewProj1 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
lmViewProj1MajorVersion = 1;
lmViewProj1MinorVersion = 0;
LIBID_lmViewProj1: TGUID = '{117C1614-2DCF-4A96-8587-C4EA7BF971B2}';
IID_IlmView: TGUID = '{BBFD2CF3-96EE-4B57-B93E-78B7E9B44327}';
DIID_IlmViewEvents: TGUID = '{F5E620B9-93BE-4CAB-B57B-1395B3BBC4B7}';
CLASS_lmView: TGUID = '{CCF40DCA-6143-451A-B46C-C92789A007F0}';
// *********************************************************************//
// 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
// *********************************************************************//
IlmView = interface;
IlmViewDisp = dispinterface;
IlmViewEvents = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
lmView = IlmView;
// *********************************************************************//
// Interface: IlmView
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {BBFD2CF3-96EE-4B57-B93E-78B7E9B44327}
// *********************************************************************//
IlmView = interface(IDispatch)
['{BBFD2CF3-96EE-4B57-B93E-78B7E9B44327}']
function Get_Visible: WordBool; safecall;
procedure Set_Visible(Value: WordBool); safecall;
function Get_AxBorderStyle: TxActiveFormBorderStyle; safecall;
procedure Set_AxBorderStyle(Value: TxActiveFormBorderStyle); safecall;
function Get_Active: WordBool; safecall;
function Get_AlignDisabled: WordBool; safecall;
function Get_Enabled: WordBool; safecall;
procedure Set_Enabled(Value: WordBool); safecall;
procedure Init(const AEmotionPath: WideString); safecall;
procedure Navigate2(const AUrl: WideString); safecall;
procedure AddContent(const AStr: WideString); safecall;
procedure Exec_Copy; safecall;
procedure Exec_SelAll; safecall;
procedure Exec_Clear; safecall;
function Get_ScrollVisible: WordBool; safecall;
procedure Set_ScrollVisible(Value: WordBool); safecall;
function Get_View_AutoScroll: WordBool; safecall;
procedure Set_View_AutoScroll(Value: WordBool); safecall;
function Get_ViewHandle: Integer; safecall;
function GetHtml: WideString; safecall;
property Visible: WordBool read Get_Visible write Set_Visible;
property AxBorderStyle: TxActiveFormBorderStyle read Get_AxBorderStyle write Set_AxBorderStyle;
property Active: WordBool read Get_Active;
property AlignDisabled: WordBool read Get_AlignDisabled;
property Enabled: WordBool read Get_Enabled write Set_Enabled;
property ScrollVisible: WordBool read Get_ScrollVisible write Set_ScrollVisible;
property View_AutoScroll: WordBool read Get_View_AutoScroll write Set_View_AutoScroll;
property ViewHandle: Integer read Get_ViewHandle;
end;
// *********************************************************************//
// DispIntf: IlmViewDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {BBFD2CF3-96EE-4B57-B93E-78B7E9B44327}
// *********************************************************************//
IlmViewDisp = dispinterface
['{BBFD2CF3-96EE-4B57-B93E-78B7E9B44327}']
property Visible: WordBool dispid 201;
property AxBorderStyle: TxActiveFormBorderStyle dispid 204;
property Active: WordBool readonly dispid 209;
property AlignDisabled: WordBool readonly dispid 215;
property Enabled: WordBool dispid -514;
procedure Init(const AEmotionPath: WideString); dispid 202;
procedure Navigate2(const AUrl: WideString); dispid 203;
procedure AddContent(const AStr: WideString); dispid 205;
procedure Exec_Copy; dispid 206;
procedure Exec_SelAll; dispid 207;
procedure Exec_Clear; dispid 208;
property ScrollVisible: WordBool dispid 210;
property View_AutoScroll: WordBool dispid 211;
property ViewHandle: Integer readonly dispid 212;
function GetHtml: WideString; dispid 213;
end;
// *********************************************************************//
// DispIntf: IlmViewEvents
// Flags: (4096) Dispatchable
// GUID: {F5E620B9-93BE-4CAB-B57B-1395B3BBC4B7}
// *********************************************************************//
IlmViewEvents = dispinterface
['{F5E620B9-93BE-4CAB-B57B-1395B3BBC4B7}']
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;
procedure OnBeforeNavigate2(const AUrl: WideString; var cancel: WordBool); dispid 209;
end;
// *********************************************************************//
// OLE Control Proxy class declaration
// Control Name : TlmView
// Help String : lmView Control
// Default Interface: IlmView
// Def. Intf. DISP? : No
// Event Interface: IlmViewEvents
// TypeFlags : (34) CanCreate Control
// *********************************************************************//
TlmViewOnKeyPress = procedure(ASender: TObject; var Key: Smallint) of object;
TlmViewOnBeforeNavigate2 = procedure(ASender: TObject; const AUrl: WideString;
var cancel: WordBool) of object;
TlmView = class(TOleControl)
private
FOnActivate: TNotifyEvent;
FOnClick: TNotifyEvent;
FOnCreate: TNotifyEvent;
FOnDblClick: TNotifyEvent;
FOnDestroy: TNotifyEvent;
FOnDeactivate: TNotifyEvent;
FOnKeyPress: TlmViewOnKeyPress;
FOnPaint: TNotifyEvent;
FOnBeforeNavigate2: TlmViewOnBeforeNavigate2;
FIntf: IlmView;
function GetControlInterface: IlmView;
protected
procedure CreateControl;
procedure InitControlData; override;
public
procedure Init(const AEmotionPath: WideString);
procedure Navigate2(const AUrl: WideString);
procedure AddContent(const AStr: WideString);
procedure Exec_Copy;
procedure Exec_SelAll;
procedure Exec_Clear;
function GetHtml: WideString;
property ControlInterface: IlmView read GetControlInterface;
property DefaultInterface: IlmView read GetControlInterface;
property Visible: WordBool index 201 read GetWordBoolProp write SetWordBoolProp;
property Active: WordBool index 209 read GetWordBoolProp;
property AlignDisabled: WordBool index 215 read GetWordBoolProp;
property Enabled: WordBool index -514 read GetWordBoolProp write SetWordBoolProp;
property ViewHandle: Integer index 212 read GetIntegerProp;
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 ScrollVisible: WordBool index 210 read GetWordBoolProp write SetWordBoolProp stored False;
property View_AutoScroll: WordBool index 211 read GetWordBoolProp write SetWordBoolProp 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: TlmViewOnKeyPress read FOnKeyPress write FOnKeyPress;
property OnPaint: TNotifyEvent read FOnPaint write FOnPaint;
property OnBeforeNavigate2: TlmViewOnBeforeNavigate2 read FOnBeforeNavigate2 write FOnBeforeNavigate2;
end;
procedure Register;
resourcestring
dtlServerPage = 'Servers';
dtlOcxPage = 'ActiveX';
implementation
uses ComObj;
procedure TlmView.InitControlData;
const
CEventDispIDs: array [0..8] of DWORD = (
$000000C9, $000000CA, $000000CB, $000000CC, $000000CD, $000000CE,
$000000CF, $000000D0, $000000D1);
CControlData: TControlData2 = (
ClassID: '{CCF40DCA-6143-451A-B46C-C92789A007F0}';
EventIID: '{F5E620B9-93BE-4CAB-B57B-1395B3BBC4B7}';
EventCount: 9;
EventDispIDs: @CEventDispIDs;
LicenseKey: nil (*HR:$00000000*);
Flags: $00000008;
Version: 401);
begin
ControlData := @CControlData;
TControlData2(CControlData).FirstEventOfs := Cardinal(@@FOnActivate) - Cardinal(Self);
end;
procedure TlmView.CreateControl;
procedure DoCreate;
begin
FIntf := IUnknown(OleObject) as IlmView;
end;
begin
if FIntf = nil then DoCreate;
end;
function TlmView.GetControlInterface: IlmView;
begin
CreateControl;
Result := FIntf;
end;
procedure TlmView.Init(const AEmotionPath: WideString);
begin
DefaultInterface.Init(AEmotionPath);
end;
procedure TlmView.Navigate2(const AUrl: WideString);
begin
DefaultInterface.Navigate2(AUrl);
end;
procedure TlmView.AddContent(const AStr: WideString);
begin
DefaultInterface.AddContent(AStr);
end;
procedure TlmView.Exec_Copy;
begin
DefaultInterface.Exec_Copy;
end;
procedure TlmView.Exec_SelAll;
begin
DefaultInterface.Exec_SelAll;
end;
procedure TlmView.Exec_Clear;
begin
DefaultInterface.Exec_Clear;
end;
function TlmView.GetHtml: WideString;
begin
Result := DefaultInterface.GetHtml;
end;
procedure Register;
begin
RegisterComponents(dtlOcxPage, [TlmView]);
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -