📄 msoaddin_tlb.pas
字号:
unit MSOAddIn_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 : $Revision: 1.88.1.0.1.0 $
// File generated on 20/01/2003 14:23:52 from Type Library described below.
// ************************************************************************ //
// Type Lib: E:\Projects\Office Add-In\MSOAddIn.tlb (1)
// IID\LCID: {35A17783-59C5-4B66-B0E3-A7BEEC7971D0}\0
// Helpfile:
// DepndLst:
// (1) v2.0 stdole, (C:\WINNT\System32\stdole2.tlb)
// (2) v4.0 StdVCL, (C:\WINNT\System32\STDVCL40.DLL)
// ************************************************************************ //
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
interface
uses Windows, ActiveX, Classes, Graphics, OleServer, OleCtrls, StdVCL;
// *********************************************************************//
// 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
MSOAddInMajorVersion = 1;
MSOAddInMinorVersion = 0;
LIBID_MSOAddIn: TGUID = '{35A17783-59C5-4B66-B0E3-A7BEEC7971D0}';
IID_IOutlookAddIn: TGUID = '{BDCDF1E4-0874-403C-A286-B00098F8EBC9}';
CLASS_OutlookAddIn: TGUID = '{9CF0B415-3F27-4C67-89AE-31D3F18ABC03}';
IID_IWordAddIn: TGUID = '{FA03D569-2213-40CA-B62E-244039FA1258}';
CLASS_WordAddIn: TGUID = '{811CC9C8-001E-407A-90B4-6B16A017C5BB}';
IID_IExcelAddIn: TGUID = '{0ED24C8C-3AFB-4DF1-9103-B65CD0069FC7}';
CLASS_ExcelAddIn: TGUID = '{5C2240AF-D37C-465E-99E7-1E604DEF7018}';
type
// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
IOutlookAddIn = interface;
IOutlookAddInDisp = dispinterface;
IWordAddIn = interface;
IWordAddInDisp = dispinterface;
IExcelAddIn = interface;
IExcelAddInDisp = dispinterface;
// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
OutlookAddIn = IOutlookAddIn;
WordAddIn = IWordAddIn;
ExcelAddIn = IExcelAddIn;
// *********************************************************************//
// Interface: IOutlookAddIn
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {BDCDF1E4-0874-403C-A286-B00098F8EBC9}
// *********************************************************************//
IOutlookAddIn = interface(IDispatch)
['{BDCDF1E4-0874-403C-A286-B00098F8EBC9}']
end;
// *********************************************************************//
// DispIntf: IOutlookAddInDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {BDCDF1E4-0874-403C-A286-B00098F8EBC9}
// *********************************************************************//
IOutlookAddInDisp = dispinterface
['{BDCDF1E4-0874-403C-A286-B00098F8EBC9}']
end;
// *********************************************************************//
// Interface: IWordAddIn
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {FA03D569-2213-40CA-B62E-244039FA1258}
// *********************************************************************//
IWordAddIn = interface(IDispatch)
['{FA03D569-2213-40CA-B62E-244039FA1258}']
end;
// *********************************************************************//
// DispIntf: IWordAddInDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {FA03D569-2213-40CA-B62E-244039FA1258}
// *********************************************************************//
IWordAddInDisp = dispinterface
['{FA03D569-2213-40CA-B62E-244039FA1258}']
end;
// *********************************************************************//
// Interface: IExcelAddIn
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {0ED24C8C-3AFB-4DF1-9103-B65CD0069FC7}
// *********************************************************************//
IExcelAddIn = interface(IDispatch)
['{0ED24C8C-3AFB-4DF1-9103-B65CD0069FC7}']
end;
// *********************************************************************//
// DispIntf: IExcelAddInDisp
// Flags: (4416) Dual OleAutomation Dispatchable
// GUID: {0ED24C8C-3AFB-4DF1-9103-B65CD0069FC7}
// *********************************************************************//
IExcelAddInDisp = dispinterface
['{0ED24C8C-3AFB-4DF1-9103-B65CD0069FC7}']
end;
// *********************************************************************//
// The Class CoOutlookAddIn provides a Create and CreateRemote method to
// create instances of the default interface IOutlookAddIn exposed by
// the CoClass OutlookAddIn. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoOutlookAddIn = class
class function Create: IOutlookAddIn;
class function CreateRemote(const MachineName: string): IOutlookAddIn;
end;
// *********************************************************************//
// The Class CoWordAddIn provides a Create and CreateRemote method to
// create instances of the default interface IWordAddIn exposed by
// the CoClass WordAddIn. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoWordAddIn = class
class function Create: IWordAddIn;
class function CreateRemote(const MachineName: string): IWordAddIn;
end;
// *********************************************************************//
// The Class CoExcelAddIn provides a Create and CreateRemote method to
// create instances of the default interface IExcelAddIn exposed by
// the CoClass ExcelAddIn. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoExcelAddIn = class
class function Create: IExcelAddIn;
class function CreateRemote(const MachineName: string): IExcelAddIn;
end;
implementation
uses ComObj;
class function CoOutlookAddIn.Create: IOutlookAddIn;
begin
Result := CreateComObject(CLASS_OutlookAddIn) as IOutlookAddIn;
end;
class function CoOutlookAddIn.CreateRemote(const MachineName: string): IOutlookAddIn;
begin
Result := CreateRemoteComObject(MachineName, CLASS_OutlookAddIn) as IOutlookAddIn;
end;
class function CoWordAddIn.Create: IWordAddIn;
begin
Result := CreateComObject(CLASS_WordAddIn) as IWordAddIn;
end;
class function CoWordAddIn.CreateRemote(const MachineName: string): IWordAddIn;
begin
Result := CreateRemoteComObject(MachineName, CLASS_WordAddIn) as IWordAddIn;
end;
class function CoExcelAddIn.Create: IExcelAddIn;
begin
Result := CreateComObject(CLASS_ExcelAddIn) as IExcelAddIn;
end;
class function CoExcelAddIn.CreateRemote(const MachineName: string): IExcelAddIn;
begin
Result := CreateRemoteComObject(MachineName, CLASS_ExcelAddIn) as IExcelAddIn;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -