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

📄 kso_tlb.pas

📁 wps office Delphi 开发示例
💻 PAS
📖 第 1 页 / 共 5 页
字号:
unit KSO_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-8-31 10:00:43 from Type Library described below.

// ************************************************************************  //
// Type Lib: C:\Program Files\Kingsoft\Kingsoft Office 2007\office6\kso10.dll (1)
// LIBID: {4A1D9D13-2EC6-495B-A5B5-848228E0A1CE}
// LCID: 0
// Helpfile: C:\Program Files\Kingsoft\Kingsoft Office 2007\office6\kso10.dll\ksoapi.chm
// HelpString: Kingsoft Office 1.0 Object Library
// DepndLst: 
//   (1) v2.0 stdole, (C:\WINDOWS\system32\STDOLE2.TLB)
// Parent TypeLibrary:
//   (0) v2.0 WPS, (C:\Program Files\Kingsoft\Kingsoft Office 2007\office6\wpscore.dll)
// Errors:
//   Hint: Member 'AdaptiveMenus' of '_CommandBars' changed to 'AdaptiveMenus1'
//   Hint: Member 'DisplayFonts' of '_CommandBars' changed to 'DisplayFonts1'
//   Hint: Member 'DisableCustomize' of '_CommandBars' changed to 'DisableCustomize1'
//   Hint: Member 'DisableAskAQuestionDropdown' of '_CommandBars' changed to 'DisableAskAQuestionDropdown1'
//   Hint: Member 'Extended' of 'KsoScript' changed to 'Extended1'
//   Hint: Member 'Id' of 'KsoScript' changed to 'Id1'
//   Hint: Member 'Language' of 'KsoScript' changed to 'Language1'
//   Hint: Parameter 'Type' of _CommandBars.FindControl changed to 'Type_'
//   Hint: Parameter 'Type' of _CommandBars.FindControls changed to 'Type_'
//   Hint: Symbol 'Type' renamed to 'type_'
//   Hint: Parameter 'Type' of CommandBar.FindControl changed to 'Type_'
//   Hint: Symbol 'Type' renamed to 'type_'
//   Hint: Parameter 'Type' of CommandBarControls.Add changed to 'Type_'
//   Hint: Symbol 'Type' renamed to 'type_'
//   Hint: Parameter 'Type' of _KsoDiagram.Type changed to 'Type_'
//   Hint: Parameter 'Type' of _KsoDiagram.Convert changed to 'Type_'
//   Hint: Member 'Parent' of '_KsoDiagramNode' changed to 'Parent_'
//   Hint: Parameter 'Type' of _KsoDiagramNode.Layout changed to 'Type_'
//   Hint: Parameter 'Type' of _KsoDiagramNode.Layout changed to 'Type_'
//   Hint: Member 'Parent' of '_KsoDiagramNodeChildren' changed to 'Parent_'
//   Hint: Parameter 'Type' of KsoShape._Type changed to 'Type_'
//   Hint: Parameter 'Type' of KsoShapeRange._Type changed to 'Type_'
//   Hint: Symbol 'Type' renamed to 'type_'
//   Hint: Parameter 'Type' of KsoCalloutFormat.Type changed to 'Type_'
//   Hint: Symbol 'Type' renamed to 'type_'
//   Hint: Parameter 'Type' of KsoCalloutFormat.Type changed to 'Type_'
//   Hint: Symbol 'Type' renamed to 'type_'
//   Hint: Parameter 'Type' of KsoConnectorFormat.Type changed to 'Type_'
//   Hint: Symbol 'Type' renamed to 'type_'
//   Hint: Parameter 'Type' of KsoConnectorFormat.Type changed to 'Type_'
//   Hint: Symbol 'Type' renamed to 'type_'
//   Hint: Parameter 'Type' of KsoFillFormat.Type changed to 'Type_'
//   Hint: Symbol 'Type' renamed to 'type_'
//   Hint: Parameter 'Type' of KsoColorFormat.Type changed to 'Type_'
//   Hint: Symbol 'Type' renamed to 'type_'
//   Hint: Parameter 'Type' of KsoShadowFormat.Type changed to 'Type_'
//   Hint: Symbol 'Type' renamed to 'type_'
//   Hint: Parameter 'Type' of KsoShadowFormat.Type changed to 'Type_'
//   Hint: Parameter 'Object' of KsoScript.Shape changed to 'Object_'
//   Hint: Parameter 'Type' of KsoCanvasShapes._AddCallout changed to 'Type_'
//   Hint: Parameter 'Type' of KsoCanvasShapes._AddConnector changed to 'Type_'
//   Hint: Parameter 'Label' of KsoCanvasShapes._AddLabel changed to 'Label_'
//   Hint: Parameter 'Type' of KsoCanvasShapes._AddShape changed to 'Type_'
//   Hint: Parameter 'Type' of KsoShapes._AddCallout changed to 'Type_'
//   Hint: Parameter 'Type' of KsoShapes._AddConnector changed to 'Type_'
//   Hint: Parameter 'Label' of KsoShapes._AddLabel changed to 'Label_'
//   Hint: Parameter 'Type' of KsoShapes._AddShape changed to 'Type_'
//   Hint: Parameter 'Type' of KsoShapes._AddDiagram changed to 'Type_'
//   Hint: Symbol 'Type' renamed to 'type_'
//   Hint: Symbol 'Type' renamed to 'type_'
//   Hint: Parameter 'Type' of DocumentProperties.Add changed to 'Type_'
//   Hint: Member 'Object' of 'COMAddIn' changed to 'Object_'
//   Hint: Member 'Protected' of 'KeyBinding' changed to 'Protected_'
// ************************************************************************ //
// *************************************************************************//
// NOTE:                                                                      
// Items guarded by $IFDEF_LIVE_SERVER_AT_DESIGN_TIME are used by properties  
// which return objects that may need to be explicitly created via a function 
// call prior to any access via the property. These items have been disabled  
// in order to prevent accidental use from within the object inspector. You   
// may enable them by defining LIVE_SERVER_AT_DESIGN_TIME or by selectively   
// removing them from the $IFDEF blocks. However, such items must still be    
// programmatically created via a method of the appropriate CoClass before    
// they can be used.                                                          
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers. 
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}
interface

uses Windows, ActiveX, Classes, Graphics, 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
  KSOMajorVersion = 1;
  KSOMinorVersion = 0;

  LIBID_KSO: TGUID = '{4A1D9D13-2EC6-495B-A5B5-848228E0A1CE}';

  IID_IKsoDispObj: TGUID = '{000C0300-FFFF-0000-C000-000000000046}';
  IID_Collection: TGUID = '{000C0301-FFFF-0000-C000-000000000046}';
  IID__CommandBars: TGUID = '{0002EB0D-FFFE-0000-C000-000000111146}';
  IID_CommandBarControl: TGUID = '{0002C882-FFFE-0000-C000-000000111146}';
  IID_CommandBar: TGUID = '{00023F42-FFFE-0000-C000-000000111146}';
  IID_CommandBarControls: TGUID = '{0002448B-FFFE-0000-C000-000000111146}';
  IID__CommandBarButton: TGUID = '{00023C90-FFFE-0000-C000-000000111146}';
  IID_CommandBarPopup: TGUID = '{0002BF47-FFFE-0000-C000-000000111146}';
  IID__CommandBarComboBox: TGUID = '{0002ABB5-FFFE-0000-C000-000000111146}';
  IID_ICommandBarsEvents: TGUID = '{000205F4-FFFE-0000-C000-000000111146}';
  DIID__CommandBarsEvents: TGUID = '{10227926-9CB9-45B9-ADF2-803D8358EC6A}';
  IID_ICommandBarComboBoxEvents: TGUID = '{0002861A-FFFE-0000-C000-000000111146}';
  DIID__CommandBarComboBoxEvents: TGUID = '{2AC87A8B-FABC-4F54-8234-B637DFEC5528}';
  CLASS_CommandBarComboBox: TGUID = '{BD7A5BD8-B94E-4EEB-9217-C9A8375CE30B}';
  DIID__CommandBarButtonEvents: TGUID = '{B480CA3F-0571-458A-82E4-FEDE4CB3FF96}';
  CLASS_CommandBarButton: TGUID = '{264C279A-9BB9-4565-BA1E-353C0A4903C7}';
  IID_ICommandBarButtonEvents: TGUID = '{000258F0-FFFE-0000-C000-000000111146}';
  CLASS_CommandBars: TGUID = '{D4D7D5A3-E8B0-414A-B266-69CBBB27699F}';
  IID__KsoDiagram: TGUID = '{000C036D-FFFF-0000-C000-000000000046}';
  IID__KsoDiagramNodes: TGUID = '{000C036E-FFFF-0000-C000-000000000046}';
  IID__KsoDiagramNode: TGUID = '{000C0370-FFFF-0000-C000-000000000046}';
  IID__KsoDiagramNodeChildren: TGUID = '{000C036F-FFFF-0000-C000-000000000046}';
  IID_KsoShape: TGUID = '{000C031C-FFFF-0000-C000-000000000046}';
  IID_KsoShapeRange: TGUID = '{000C031D-FFFF-0000-C000-000000000046}';
  IID_KsoAdjustments: TGUID = '{000C0310-FFFF-0000-C000-000000000046}';
  IID_KsoCalloutFormat: TGUID = '{000C0311-FFFF-0000-C000-000000000046}';
  IID_KsoConnectorFormat: TGUID = '{000C0313-FFFF-0000-C000-000000000046}';
  IID_KsoFillFormat: TGUID = '{000C0314-FFFF-0000-C000-000000000046}';
  IID_KsoColorFormat: TGUID = '{000C0312-FFFF-0000-C000-000000000046}';
  IID_KsoGroupShapes: TGUID = '{000C0316-FFFF-0000-C000-000000000046}';
  IID_KsoLineFormat: TGUID = '{000C0317-FFFF-0000-C000-000000000046}';
  IID_KsoShapeNodes: TGUID = '{000C0319-FFFF-0000-C000-000000000046}';
  IID_KsoShapeNode: TGUID = '{000C0318-FFFF-0000-C000-000000000046}';
  IID_KsoPictureFormat: TGUID = '{000C031A-FFFF-0000-C000-000000000046}';
  IID_KsoShadowFormat: TGUID = '{000C031B-FFFF-0000-C000-000000000046}';
  IID_KsoTextEffectFormat: TGUID = '{000C031F-FFFF-0000-C000-000000000046}';
  IID_KsoTextFrame: TGUID = '{000C3484-FFFF-0000-C000-000000000046}';
  IID_KsoThreeDFormat: TGUID = '{000C0321-FFFF-0000-C000-000000000046}';
  IID_KsoScript: TGUID = '{000C0341-FFFF-0000-C000-000000000046}';
  IID_KsoCanvasShapes: TGUID = '{000C0371-FFFF-0000-C000-000000000046}';
  IID_KsoFreeformBuilder: TGUID = '{000C0315-FFFF-0000-C000-000000000046}';
  IID_KsoShapes: TGUID = '{000C031E-FFFF-0000-C000-000000000046}';
  IID_DocumentProperty: TGUID = '{CA2A9BB6-76E4-4509-835A-EAC029FBC7EF}';
  IID_DocumentProperties: TGUID = '{8CC27FD1-177E-4527-B03B-30A07962D256}';
  IID_COMAddIn: TGUID = '{0002033A-FFFE-0000-C000-000000111146}';
  IID_COMAddIns: TGUID = '{00020339-FFFE-0000-C000-000000111146}';
  IID_KeyBinding: TGUID = '{00020998-FFFE-0000-C000-000000111146}';
  IID_KeyBindings: TGUID = '{00020996-FFFE-0000-C000-000000111146}';
  IID_KeysBoundTo: TGUID = '{00020997-FFFE-0000-C000-000000111146}';

// *********************************************************************//
// Declaration of Enumerations defined in Type Library                    
// *********************************************************************//
// Constants for enum KsoControlOLEUsage
type
  KsoControlOLEUsage = TOleEnum;
const
  ksoControlOLEUsageNeither = $00000000;
  ksoControlOLEUsageServer = $00000001;
  ksoControlOLEUsageClient = $00000002;
  ksoControlOLEUsageBoth = $00000003;

// Constants for enum KsoControlType
type
  KsoControlType = TOleEnum;
const
  ksoControlCustom = $00000000;
  ksoControlButton = $00000001;
  ksoControlEdit = $00000002;
  ksoControlDropdown = $00000003;
  ksoControlComboBox = $00000004;
  ksoControlButtonDropdown = $00000005;
  ksoControlSplitDropdown = $00000006;
  ksoControlOCXDropdown = $00000007;
  ksoControlGenericDropdown = $00000008;
  ksoControlGraphicDropdown = $00000009;
  ksoControlPopup = $0000000A;
  ksoControlGraphicPopup = $0000000B;
  ksoControlButtonPopup = $0000000C;
  ksoControlSplitButtonPopup = $0000000D;
  ksoControlSplitButtonMRUPopup = $0000000E;
  ksoControlLabel = $0000000F;
  ksoControlExpandingGrid = $00000010;
  ksoControlSplitExpandingGrid = $00000011;
  ksoControlGrid = $00000012;
  ksoControlGauge = $00000013;
  ksoControlGraphicCombo = $00000014;
  ksoControlPane = $00000015;
  ksoControlActiveX = $00000016;
  ksoControlSpinner = $00000017;
  ksoControlLabelEx = $00000018;
  ksoControlWorkPane = $00000019;
  ksoControlAutoCompleteCombo = $0000001A;

// Constants for enum KsoBarPosition
type
  KsoBarPosition = TOleEnum;
const
  ksoBarLeft = $00000000;
  ksoBarTop = $00000001;
  ksoBarRight = $00000002;
  ksoBarBottom = $00000003;
  ksoBarFloating = $00000004;
  ksoBarPopup = $00000005;
  ksoBarMenuBar = $00000006;

// Constants for enum KsoBarProtection
type
  KsoBarProtection = TOleEnum;
const
  ksoBarNoProtection = $00000000;
  ksoBarNoCustomize = $00000001;
  ksoBarNoResize = $00000002;
  ksoBarNoMove = $00000004;
  ksoBarNoChangeVisible = $00000008;
  ksoBarNoChangeDock = $00000010;
  ksoBarNoVerticalDock = $00000020;
  ksoBarNoHorizontalDock = $00000040;

// Constants for enum KsoBarType
type
  KsoBarType = TOleEnum;
const
  ksoBarTypeNormal = $00000000;
  ksoBarTypeMenuBar = $00000001;
  ksoBarTypePopup = $00000002;

// Constants for enum KsoMenuAnimation
type
  KsoMenuAnimation = TOleEnum;
const
  ksoMenuAnimationNone = $00000000;
  ksoMenuAnimationRandom = $00000001;
  ksoMenuAnimationUnfold = $00000002;
  ksoMenuAnimationSlide = $00000003;

// Constants for enum KsoButtonState
type
  KsoButtonState = TOleEnum;
const
  ksoButtonUp = $00000000;
  ksoButtonDown = $FFFFFFFF;
  ksoButtonMixed = $00000002;

// Constants for enum KsoButtonStyle
type
  KsoButtonStyle = TOleEnum;
const
  ksoButtonAutomatic = $00000000;
  ksoButtonIcon = $00000001;
  ksoButtonCaption = $00000002;
  ksoButtonIconAndCaption = $00000003;
  ksoButtonIconAndWrapCaption = $00000007;
  ksoButtonIconAndCaptionBelow = $0000000B;
  ksoButtonWrapCaption = $0000000E;
  ksoButtonIconAndWrapCaptionBelow = $0000000F;

// Constants for enum KsoCommandBarButtonHyperlinkType
type
  KsoCommandBarButtonHyperlinkType = TOleEnum;
const
  ksoCommandBarButtonHyperlinkNone = $00000000;
  ksoCommandBarButtonHyperlinkOpen = $00000001;
  ksoCommandBarButtonHyperlinkInsertPicture = $00000002;

// Constants for enum KsoOLEMenuGroup
type
  KsoOLEMenuGroup = TOleEnum;
const
  ksoOLEMenuGroupNone = $FFFFFFFF;
  ksoOLEMenuGroupFile = $00000000;
  ksoOLEMenuGroupEdit = $00000001;
  ksoOLEMenuGroupContainer = $00000002;
  ksoOLEMenuGroupObject = $00000003;
  ksoOLEMenuGroupWindow = $00000004;
  ksoOLEMenuGroupHelp = $00000005;

// Constants for enum KsoComboStyle
type
  KsoComboStyle = TOleEnum;
const
  ksoComboNormal = $00000000;
  ksoComboLabel = $00000001;

// Constants for enum KsoKeyCategory
type
  KsoKeyCategory = TOleEnum;
const
  ksoKeyCategoryNil = $FFFFFFFF;
  ksoKeyCategoryDisable = $00000000;
  ksoKeyCategoryCommand = $00000001;
  ksoKeyCategoryMacro = $00000002;
  ksoKeyCategoryFont = $00000003;
  ksoKeyCategoryAutoText = $00000004;
  ksoKeyCategoryStyle = $00000005;
  ksoKeyCategorySymbol = $00000006;
  ksoKeyCategoryPrefix = $00000007;

// Constants for enum KsoKey
type
  KsoKey = TOleEnum;
const
  ksoNoKey = $000000FF;
  ksoKeyShift = $00000100;
  ksoKeyControl = $00000200;
  ksoKeyCommand = $00000200;
  ksoKeyAlt = $00000400;
  ksoKeyOption = $00000400;
  ksoKeyA = $00000041;
  ksoKeyB = $00000042;
  ksoKeyC = $00000043;
  ksoKeyD = $00000044;
  ksoKeyE = $00000045;
  ksoKeyF = $00000046;
  ksoKeyG = $00000047;
  ksoKeyH = $00000048;
  ksoKeyI = $00000049;
  ksoKeyJ = $0000004A;
  ksoKeyK = $0000004B;
  ksoKeyL = $0000004C;
  ksoKeyM = $0000004D;
  ksoKeyN = $0000004E;
  ksoKeyO = $0000004F;
  ksoKeyP = $00000050;
  ksoKeyQ = $00000051;
  ksoKeyR = $00000052;
  ksoKeyS = $00000053;
  ksoKeyT = $00000054;
  ksoKeyU = $00000055;
  ksoKeyV = $00000056;
  ksoKeyW = $00000057;
  ksoKeyX = $00000058;
  ksoKeyY = $00000059;
  ksoKeyZ = $0000005A;
  ksoKey0 = $00000030;
  ksoKey1 = $00000031;
  ksoKey2 = $00000032;
  ksoKey3 = $00000033;
  ksoKey4 = $00000034;
  ksoKey5 = $00000035;
  ksoKey6 = $00000036;
  ksoKey7 = $00000037;
  ksoKey8 = $00000038;
  ksoKey9 = $00000039;
  ksoKeyBackspace = $00000008;
  ksoKeyTab = $00000009;
  ksoKeyNumeric5Special = $0000000C;
  ksoKeyReturn = $0000000D;
  ksoKeyPause = $00000013;
  ksoKeyEsc = $0000001B;
  ksoKeySpacebar = $00000020;
  ksoKeyPageUp = $00000021;

⌨️ 快捷键说明

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