Uunjiang第一版
26667c62Add on 19 hours agoHistory
unit uuComWordAddIn_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 2026/12/1 22:17:02 from Type Library described below.

// ************************************************************************  //
// Type Lib: E:\Delphi\uuProject\Com\uu word test D7-2\uuComWordAddIn.tlb (1)
// LIBID: {C889FB37-48D7-4742-A5D2-579173BC37E7}
// LCID: 0
// Helpfile: 
// HelpString: uuComWordAddIn Library
// DepndLst: 
//   (1) v2.0 stdole, (C:\Windows\SysWOW64\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, 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
  uuComWordAddInMajorVersion = 1;
  uuComWordAddInMinorVersion = 0;

  LIBID_uuComWordAddIn: TGUID = '{C889FB37-48D7-4742-A5D2-579173BC37E7}';

  IID_IuuComWordAddInObject: TGUID = '{5AE8A174-9C18-438A-AEB0-EA648AD0FBA5}';
  CLASS_uuComWordAddInObject: TGUID = '{91B65AE1-4595-41FA-B41B-32B99E70578E}';
type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary                    
// *********************************************************************//
  IuuComWordAddInObject = interface;
  IuuComWordAddInObjectDisp = dispinterface;

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


// *********************************************************************//
// Interface: IuuComWordAddInObject
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {5AE8A174-9C18-438A-AEB0-EA648AD0FBA5}
// *********************************************************************//
  IuuComWordAddInObject = interface(IDispatch)
    ['{5AE8A174-9C18-438A-AEB0-EA648AD0FBA5}']
    procedure uuBtn1Click(const btnControl: IDispatch); safecall;
    procedure uuBtn2Click(const btnControl: IDispatch); safecall;
    function uuBtn2GetImage(const btnControl: IDispatch): IPictureDisp; safecall;
    procedure uuBtn3Click(const btnControl: IDispatch); safecall;
    procedure uuInsertText; safecall;
  end;

// *********************************************************************//
// DispIntf:  IuuComWordAddInObjectDisp
// Flags:     (4416) Dual OleAutomation Dispatchable
// GUID:      {5AE8A174-9C18-438A-AEB0-EA648AD0FBA5}
// *********************************************************************//
  IuuComWordAddInObjectDisp = dispinterface
    ['{5AE8A174-9C18-438A-AEB0-EA648AD0FBA5}']
    procedure uuBtn1Click(const btnControl: IDispatch); dispid 201;
    procedure uuBtn2Click(const btnControl: IDispatch); dispid 202;
    function uuBtn2GetImage(const btnControl: IDispatch): IPictureDisp; dispid 203;
    procedure uuBtn3Click(const btnControl: IDispatch); dispid 204;
    procedure uuInsertText; dispid 205;
  end;

// *********************************************************************//
// The Class CouuComWordAddInObject provides a Create and CreateRemote method to          
// create instances of the default interface IuuComWordAddInObject exposed by              
// the CoClass uuComWordAddInObject. The functions are intended to be used by             
// clients wishing to automate the CoClass objects exposed by the         
// server of this typelibrary.                                            
// *********************************************************************//
  CouuComWordAddInObject = class
    class function Create: IuuComWordAddInObject;
    class function CreateRemote(const MachineName: string): IuuComWordAddInObject;
  end;

implementation

uses ComObj;

class function CouuComWordAddInObject.Create: IuuComWordAddInObject;
begin
  Result := CreateComObject(CLASS_uuComWordAddInObject) as IuuComWordAddInObject;
end;

class function CouuComWordAddInObject.CreateRemote(const MachineName: string): IuuComWordAddInObject;
begin
  Result := CreateRemoteComObject(MachineName, CLASS_uuComWordAddInObject) as IuuComWordAddInObject;
end;

end.