home *** CD-ROM | disk | FTP | other *** search
-
- {*******************************************************}
- { }
- { Delphi Visual Component Library }
- { }
- { Copyright (c) 1995 Borland International }
- { }
- {*******************************************************}
-
- unit BoleDefs;
-
- interface
-
- uses WinTypes, Ole2, ToUnk, BCom;
-
- type PCharOle = PChar;
-
- const
- BoleDll = 'Bole16D.DLL'; {16d.dll}
- BoleName = 'Bole16D'; {16d.dll}
- BoleBind = 'CREATECLASSMGR';
-
- type
- TRectl = record
- Left, Top, Right, Bottom: LongInt;
- end;
- PSize = ^TSize;
- TSize = record
- cx, cy: Integer;
- end;
-
- {------------------------ More BOLEDEFS.H----------------------}
-
- { OLE2 opaque pass throughs }
- type
- IMoniker = class (IUnknown)
- public
- end;
-
- IDataObject = class (IUnknown)
- public
- end;
-
- IMalloc = class (IUnknown)
- public
- end;
-
- type Coord = LongInt;
- const HIMETRIC_PER_INCH: LongInt = 2540;
-
-
- const
- IID_IBPart : GUID = (
- Data1 : $2A104;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBSite : GUID = (
- Data1 : $2A105;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBContainer : GUID = (
- Data1 : $2A106;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBDocument : GUID = (
- Data1 : $2A107;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBService : GUID = (
- Data1 : $2A108;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBApplication : GUID = (
- Data1 : $2A109;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBClassMgr : GUID = (
- Data1 : $2A10A;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBLinkInfo : GUID = (
- Data1 : $2A10B;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBLinkable : GUID = (
- Data1 : $2A10C;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBRootLinkable : GUID = (
- Data1 : $2A10D;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBContains : GUID = (
- Data1 : $2A10E;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_BOleDocument : GUID = (
- Data1 : $2A10F;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_BOlePart : GUID = (
- Data1 : $2A110;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBDataConsumer : GUID = (
- Data1 : $2A111;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBDataProvider : GUID = (
- Data1 : $2A112;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBWindow : GUID = (
- Data1 : $2A113;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBDataNegotiator : GUID = (
- Data1 : $2A114;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBDropDest : GUID = (
- Data1 : $2A115;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_BOleShadowData : GUID = (
- Data1 : $2A116;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBClass : GUID = (
- Data1 : $2A117;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBOverrideBrowseLinks : GUID = (
- Data1 : $2A118;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_BOleSite : GUID = (
- Data1 : $2A119;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBSite2 : GUID = (
- Data1 : $2A11A;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
- IID_IBOverrideHelpButton : GUID = (
- Data1 : $2A11B;
- Data2 : $0; Data3 : $0;
- Data4 : ($C0,$0,$0,$0,$0,$0,$0,$46));
-
-
-
-
- { Bolero helper object ids }
-
- type
- BCID = LongInt;
-
- const
- cidBOleService: BCID = 1; { }
- cidBOleDocument: BCID = 2; { helper for containers }
- cidBOlePart: BCID = 3; { helper for sites }
- cidBOleSite: BCID = 4; { helper for parts }
- cidBOleInProcSite: BCID = 5; { helper for parts }
- cidBOleContainer: BCID = 6; { helper for part documents }
- cidBOleData: BCID = 7; { helper for data transfer }
- cidBOleFactory: BCID = 8; { helper for class factory }
- cidBOleShadowData: BCID = 9; { helper for non-delayed render }
- cidBOleInProcHandler: BCID = 10; { helper for dll handler parts}
-
-
- type BoleMedium = Integer;
- const
- BOLE_MED_NULL = 0;
- BOLE_MED_HGLOBAL = 1; { used for most non-ole2 formats }
- BOLE_MED_FILE = 2;
- BOLE_MED_STREAM = 4; { used for ole2 linked objects }
- BOLE_MED_STORAGE = 8; { used for ole2 embedded objects }
- BOLE_MED_GDI = 16; { used for bitmaps and other gdi formats }
- BOLE_MED_MFPICT = 32; { used for metafile format }
- BOLE_MED_STATIC = 1024;
-
- type BOleHelp = Integer;
- const
- BOLE_HELP_EXIT = 0;
- BOLE_HELP_ENTER = 1;
- BOLE_HELP_GET = 2;
-
- type BOleMouseAction = Integer;
- const
- BOLE_MOUSEENTER = 1;
- BOLE_MOUSECONTAINED = 2;
- BOLE_MOUSEEXIT = 3;
-
- type BOleDropAction = Integer;
- const
- BOLE_DROP_NONE = 0;
- BOLE_DROP_COPY = 1;
- BOLE_DROP_MOVE = 2;
- BOLE_DROP_LINK = 4;
-
- type BOleAspect = Integer;
- const
- BOLE_CONTENT = 1;
- BOLE_THUMBNAIL = 2;
- BOLE_ICON = 4;
- BOLE_DOCPRINT = 8;
- BOLE_DEFAULT = 16;
- BOLE_ASPECT_MAINTAIN = 32;
- BOLE_CLIP = 64;
-
- type BOleDraw = Integer;
- const
- BOLE_DRAW_NONE = 0;
- BOLE_DRAW_SHADINGONLY = 1;
- BOLE_DRAW_SHOWOBJECTS = 2;
-
- type BOleScroll = Integer;
- const
- BOLE_SCROLL_UP = 1;
- BOLE_SCROLL_DOWN = 2;
- BOLE_SCROLL_LEFT = 4;
- BOLE_SCROLL_RIGHT = 8;
-
- type BOlePartName = Integer;
- const
- BOLE_NAME_LONG = 1;
- BOLE_NAME_SHORT = 2;
- BOLE_NAME_APP = 3;
-
- type BOleDialogHelp = Integer;
- const
- BOLE_HELP_BROWSE = 0;
- BOLE_HELP_BROWSECLIPBOARD = 1;
- BOLE_HELP_CONVERT = 2;
- BOLE_HELP_BROWSELINKS = 3;
- BOLE_HELP_CHANGEICON = 4;
- BOLE_HELP_FILEOPEN = 5;
- BOLE_HELP_SOURCESET = 6;
- BOLE_HELP_ICONFILEOPEN = 7;
-
- type BOleMenuEnable = Integer;
- const
- BOLE_ENABLE_PASTE = 1;
- BOLE_ENABLE_PASTELINK = 2;
- BOLE_ENABLE_BROWSECLIPBOARD = 4;
- BOLE_ENABLE_BROWSELINKS = 8;
-
- type BOleInvalidate = Integer;
- const
- BOLE_INVAL_DATA = 1;
- BOLE_INVAL_VIEW = 2;
- BOLE_INVAL_PERSISTENT = 4;
-
- type BOleVerb = record
- typeName: PCharOle;
- verbName: PCharOle;
- verbIndex: Word;
- fCanDirty: Bool;
- end;
-
- type BOleMenuWidths = record
- width: array [0..5] of LongInt;
- end;
-
- type BOleFormat = Record
- fmtId: Word; { clipboard format id }
- fmtName: array [0..31] of char; { for paste special listbox - %s if ole fmt }
- fmtResultName: array [0..31] of char; { for paste special results box - %s if ole fmt}
- fmtMedium: BOleMedium; { based upon clip format id }
- fmtIsLinkable: Bool;
- end;
-
- type BOleConvertAction = Integer;
- const
- BOLE_CONVERT_TO_CLSID = 1;
- BOLE_CONVERT_TO_FORMAT = 2;
- BOLE_ACTIVATE_AS_CLSID = 4;
- BOLE_ASPECT_TO_ICON = 8;
- BOLE_ASPECT_TO_CONTENT = 16;
-
- type InitHow = Integer;
- const
- BOLE_LINK = 0;
- BOLE_EMBED = 1;
- BOLE_EMBED_ASMETAFILE = 2;
- BOLE_EMBED_ASBITMAP = 3;
-
- type InitWhere = Integer;
- const
- BOLE_FILE = 0;
- BOLE_STORAGE = 1;
- BOLE_DATAOBJECT = 2;
- BOLE_NEW = 3;
- BOLE_HANDLE = 4;
-
- type BoleInitInfo = Record
- How: InitHow;
- Where: InitWhere;
- pContainer: IUnknown;
- hIcon: HICON;
- Storage: IStorage;
- case Integer of
- BOLE_FILE: (Path: PCharOle);
- BOLE_DATAOBJECT: (Data: IDataObject);
- BOLE_NEW: (cid: BCID);
- BOLE_HANDLE: (DataHandle: THandle; DataFormat: Word);
- end;
-
- type BOleConvertInfo = Record
- action : BOleConvertAction;
- clsid : CLSID;
- hIcon : THandle; {really an HGLOBAL containing a metafile}
- end;
-
- function ReleaseDataObject (InitInfo : BoleInitInfo) : LongInt;
- { ReleaseDataObj needed in paste cases to free IDataObject from InitInfo }
- { Not necessary in drop cases }
-
- type BOleLinkUpdate = Integer;
- const
- BOLE_UPDATE_AUTO = 1;
- BOLE_UPDATE_MANUAL = 3;
-
- type BOleScaleFactor = Record
- xN: LongInt; {numerator in x direction}
- xD: LongInt; {denominator in x direction}
- yN: LongInt; {numerator in y direction}
- yD: LongInt; {denominator in y direction}
- end;
-
- function CreateClassMgr (var pCM: IUnknown; pOut: IUnknown; Mem: IMalloc): HRESULT;
-
- implementation
-