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

📄 superwkspmanagerlib_tlb.pas

📁 GIS开发源代码。 SuperMax5.0+Delphi,用Delphi编写的控件工具包
💻 PAS
字号:
unit SuperWkspManagerLib_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 2005-2-25 10:07:21 from Type Library described below.

// ************************************************************************  //
// Type Lib: D:\Program Files\SuperMap\5.0.2\SuperWkspManager.ocx (1)
// LIBID: {A61255F7-0A20-431C-86CE-78C14314BE9E}
// LCID: 0
// Helpfile: d:\Program Files\SuperMap\SuperMap Objects 5.0\help\SmProRef.chm
// HelpString: SuperMap Objects 5.0 Workspace Manager Control
// DepndLst: 
//   (1) v2.0 stdole, (C:\WINDOWS\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
  SuperWkspManagerLibMajorVersion = 5;
  SuperWkspManagerLibMinorVersion = 0;

  LIBID_SuperWkspManagerLib: TGUID = '{A61255F7-0A20-431C-86CE-78C14314BE9E}';

  DIID__DSuperWkspManager: TGUID = '{D9D0EAC9-F5A1-471E-99FC-E1A744DAAFF2}';
  DIID__DSuperWkspManagerEvents: TGUID = '{09A0DD8A-8629-4FF7-BDAA-36FEC7E06CB7}';
  CLASS_SuperWkspManager: TGUID = '{99C36A15-6CAC-4032-9E69-76D841ADDA3C}';

// *********************************************************************//
// Declaration of Enumerations defined in Type Library                    
// *********************************************************************//
// Constants for enum seSelectedItemFlag
type
  seSelectedItemFlag = TOleEnum;
const
  scsDatasource = $00000000;
  scsDataset = $00000001;
  scsMap = $00000004;
  scsLayout = $00000008;
  scsSymbolLib = $00000010;
  scsLineStyleLib = $00000014;
  scsFillStyleLib = $00000024;
  scsNothing = $00000064;

// Constants for enum seTabLocation
type
  seTabLocation = TOleEnum;
const
  sclLeft = $00000000;
  sclRight = $00000001;
  sclTop = $00000002;
  sclBottom = $00000003;

// Constants for enum seSortOrder
type
  seSortOrder = TOleEnum;
const
  scNameAscending = $00000001;
  scNameDescending = $00000002;
  scDatasetType = $00000005;

type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  _DSuperWkspManager = dispinterface;
  _DSuperWkspManagerEvents = dispinterface;

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


// *********************************************************************//
// DispIntf:  _DSuperWkspManager
// Flags:     (4112) Hidden Dispatchable
// GUID:      {D9D0EAC9-F5A1-471E-99FC-E1A744DAAFF2}
// *********************************************************************//
  _DSuperWkspManager = dispinterface
    ['{D9D0EAC9-F5A1-471E-99FC-E1A744DAAFF2}']
    procedure AboutBox; dispid -552;
    procedure Refresh; dispid 7;
    procedure Disconnect; dispid 6;
    function Connect(const objSuperworkspace: IDispatch): WordBool; dispid 5;
    property LayoutTab: WordBool dispid 3;
    property TapLocation: seTabLocation dispid 8;
    property ResourceTab: WordBool dispid 4;
    property DataTab: WordBool dispid 1;
    property SortOrder: seSortOrder dispid 10;
    property ActiveTab: Integer dispid 9;
    property MapTab: WordBool dispid 2;
  end;

// *********************************************************************//
// DispIntf:  _DSuperWkspManagerEvents
// Flags:     (4096) Dispatchable
// GUID:      {09A0DD8A-8629-4FF7-BDAA-36FEC7E06CB7}
// *********************************************************************//
  _DSuperWkspManagerEvents = dispinterface
    ['{09A0DD8A-8629-4FF7-BDAA-36FEC7E06CB7}']
    procedure LClick(nFlag: seSelectedItemFlag; const strSelected: WideString; 
                     const strParent: WideString); dispid 1;
    procedure RClick(nFlag: seSelectedItemFlag; const strSelected: WideString; 
                     const strParent: WideString); dispid 2;
    procedure LDbClick(nFlag: seSelectedItemFlag; const strSelected: WideString; 
                       const strParent: WideString); dispid 3;
    procedure ActiveTabChanged(Index: Integer); dispid 4;
  end;


// *********************************************************************//
// OLE Control Proxy class declaration
// Control Name     : TSuperWkspManager
// Help String      : SuperWorkspaceManager Control
// Default Interface: _DSuperWkspManager
// Def. Intf. DISP? : Yes
// Event   Interface: _DSuperWkspManagerEvents
// TypeFlags        : (38) CanCreate Licensed Control
// *********************************************************************//
  TSuperWkspManagerLClick = procedure(ASender: TObject; nFlag: seSelectedItemFlag; 
                                                        const strSelected: WideString; 
                                                        const strParent: WideString) of object;
  TSuperWkspManagerRClick = procedure(ASender: TObject; nFlag: seSelectedItemFlag; 
                                                        const strSelected: WideString; 
                                                        const strParent: WideString) of object;
  TSuperWkspManagerLDbClick = procedure(ASender: TObject; nFlag: seSelectedItemFlag; 
                                                          const strSelected: WideString; 
                                                          const strParent: WideString) of object;
  TSuperWkspManagerActiveTabChanged = procedure(ASender: TObject; Index: Integer) of object;

  TSuperWkspManager = class(TOleControl)
  private
    FOnLClick: TSuperWkspManagerLClick;
    FOnRClick: TSuperWkspManagerRClick;
    FOnLDbClick: TSuperWkspManagerLDbClick;
    FOnActiveTabChanged: TSuperWkspManagerActiveTabChanged;
    FIntf: _DSuperWkspManager;
    function  GetControlInterface: _DSuperWkspManager;
  protected
    procedure CreateControl;
    procedure InitControlData; override;
  public
    procedure AboutBox;
    procedure Refresh;
    procedure Disconnect;
    function Connect(const objSuperworkspace: IDispatch): WordBool;
    property  ControlInterface: _DSuperWkspManager read GetControlInterface;
    property  DefaultInterface: _DSuperWkspManager read GetControlInterface;
  published
    property Anchors;
    property  TabStop;
    property  Align;
    property  DragCursor;
    property  DragMode;
    property  ParentShowHint;
    property  PopupMenu;
    property  ShowHint;
    property  TabOrder;
    property  Visible;
    property  OnDragDrop;
    property  OnDragOver;
    property  OnEndDrag;
    property  OnEnter;
    property  OnExit;
    property  OnStartDrag;
    property LayoutTab: WordBool index 3 read GetWordBoolProp write SetWordBoolProp stored False;
    property TapLocation: TOleEnum index 8 read GetTOleEnumProp write SetTOleEnumProp stored False;
    property ResourceTab: WordBool index 4 read GetWordBoolProp write SetWordBoolProp stored False;
    property DataTab: WordBool index 1 read GetWordBoolProp write SetWordBoolProp stored False;
    property SortOrder: TOleEnum index 10 read GetTOleEnumProp write SetTOleEnumProp stored False;
    property ActiveTab: Integer index 9 read GetIntegerProp write SetIntegerProp stored False;
    property MapTab: WordBool index 2 read GetWordBoolProp write SetWordBoolProp stored False;
    property OnLClick: TSuperWkspManagerLClick read FOnLClick write FOnLClick;
    property OnRClick: TSuperWkspManagerRClick read FOnRClick write FOnRClick;
    property OnLDbClick: TSuperWkspManagerLDbClick read FOnLDbClick write FOnLDbClick;
    property OnActiveTabChanged: TSuperWkspManagerActiveTabChanged read FOnActiveTabChanged write FOnActiveTabChanged;
  end;

procedure Register;

resourcestring
  dtlServerPage = 'ActiveX';

  dtlOcxPage = 'ActiveX';

implementation

uses ComObj;

procedure TSuperWkspManager.InitControlData;
const
  CEventDispIDs: array [0..3] of DWORD = (
    $00000001, $00000002, $00000003, $00000004);
  CLicenseKey: array[0..39] of Word = ( $0043, $006F, $0070, $0079, $0072, $0069, $0067, $0068, $0074, $0020, $0028
    , $0063, $0029, $0020, $0032, $0030, $0030, $0030, $0020, $0053, $0075
    , $0070, $0065, $0072, $004D, $0061, $0070, $0020, $0043, $006F, $0072
    , $0070, $006F, $0072, $0061, $0074, $0069, $006F, $006E, $0000);
  CControlData: TControlData2 = (
    ClassID: '{99C36A15-6CAC-4032-9E69-76D841ADDA3C}';
    EventIID: '{09A0DD8A-8629-4FF7-BDAA-36FEC7E06CB7}';
    EventCount: 4;
    EventDispIDs: @CEventDispIDs;
    LicenseKey: @CLicenseKey;
    Flags: $00000000;
    Version: 401);
begin
  ControlData := @CControlData;
  TControlData2(CControlData).FirstEventOfs := Cardinal(@@FOnLClick) - Cardinal(Self);
end;

procedure TSuperWkspManager.CreateControl;

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

begin
  if FIntf = nil then DoCreate;
end;

function TSuperWkspManager.GetControlInterface: _DSuperWkspManager;
begin
  CreateControl;
  Result := FIntf;
end;

procedure TSuperWkspManager.AboutBox;
begin
  DefaultInterface.AboutBox;
end;

procedure TSuperWkspManager.Refresh;
begin
  DefaultInterface.Refresh;
end;

procedure TSuperWkspManager.Disconnect;
begin
  DefaultInterface.Disconnect;
end;

function TSuperWkspManager.Connect(const objSuperworkspace: IDispatch): WordBool;
begin
  Result := DefaultInterface.Connect(objSuperworkspace);
end;

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

end.

⌨️ 快捷键说明

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