OWLNext    7.0
Borland's Object Windows Library for the modern age
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ocobject.h
Go to the documentation of this file.
1//----------------------------------------------------------------------------
2// ObjectComponents
3// Copyright (c) 1994, 1996 by Borland International, All Rights Reserved
4/// \file
5/// Various general OC enums and structs
6//----------------------------------------------------------------------------
7
8#if !defined(OCF_OCOBJECT_H)
9#define OCF_OCOBJECT_H
10
11#include <owl/private/defs.h>
12#if defined(BI_HAS_PRAGMA_ONCE)
13# pragma once
14#endif
15
16#include <ocf/defs.h>
17#include <ocf/oleutil.h>
18#include <ocf/ocreg.h>
19
20
21
22namespace ocf {
23
24class _ICLASS IBContainer; // forward references
25class TOcVerb;
26
38
45
51
58
61 invView = 2
62};
63
73
75 owl::ulong xN; ///< numerator in x direction
76 owl::ulong xD; ///< denominator in x direction
77 owl::ulong yN; ///< numerator in y direction
78 owl::ulong yD; ///< denominator in y direction
79};
80
86
88 pnLong = 1,
90 pnApp = 3
91};
92
99
108
110 public:
111 TOcInitInfo(IBContainer * container);
112 TOcInitInfo(TOcInitHow how, TOcInitWhere where, IBContainer * container);
113
115 return ((Where==iwDataObject) && Data) ? ((IUnknown*)Data)->Release() : 0;
116 }
117
118 private:
119 public:
123 HICON HIcon;
125 union {
126 LPCOLESTR Path; ///< where == iwFile
127 IDataObject* Data; ///< where == iwDataObject
128 owl::uint32 CId; ///< where == iwNew, iwNewOcx
129 struct { ///< where == iwHandle
130 HANDLE Data;
132 } Handle;
133 };
134};
135
137 long Width[6];
138};
139
141 HMENU HMenu;
142 int Width[6];
143};
144
151
157
165
168 union {
169 struct {
170 CLSID Current;
171 CLSID New;
173 struct {
176 struct {
177 HICON hIcon;
179 };
180};
181
186
189 OLECHAR Name[32];
190 OLECHAR ResultName[32];
191 owl::ocrMedium Medium; // BOleMedium
193};
194
195} // OCF namespace
196
197#endif // OCF_OLEOBJECT_H
IBContainer – Supported by container app's document window.
Definition ocbocole.h:398
TOcInitHow How
Definition ocobject.h:120
owl::uint32 ReleaseDataObject()
Definition ocobject.h:114
IStorage * Storage
Definition ocobject.h:124
owl::uint32 CId
where == iwNew, iwNewOcx
Definition ocobject.h:128
LPCOLESTR Path
where == iwFile
Definition ocobject.h:126
IDataObject * Data
where == iwDataObject
Definition ocobject.h:127
TOcInitWhere Where
Definition ocobject.h:121
IBContainer * Container
Definition ocobject.h:122
HANDLE Data
< where == iwHandle
Definition ocobject.h:130
owl::uint DataFormat
Definition ocobject.h:131
ocrMedium
Medium: means of data transfer.
Definition registry.h:659
Object Component Framework (COM encapsulation)
Definition appdesc.h:22
TOcAspect
Definition ocobject.h:64
@ asThumbnail
Definition ocobject.h:66
@ asDefault
Definition ocobject.h:69
@ asMaintain
Definition ocobject.h:70
@ asContent
Definition ocobject.h:65
@ asIcon
Definition ocobject.h:67
@ asDocPrint
Definition ocobject.h:68
@ asClip
Definition ocobject.h:71
TOcDialogHelp
Definition ocobject.h:27
@ dhChangeIcon
Definition ocobject.h:32
@ dhFileOpen
Definition ocobject.h:33
@ dhSourceSet
Definition ocobject.h:34
@ dhBrowseControl
Definition ocobject.h:36
@ dhConvert
Definition ocobject.h:30
@ dhBrowseClipboard
Definition ocobject.h:29
@ dhBrowseLinks
Definition ocobject.h:31
@ dhBrowse
Definition ocobject.h:28
@ dhIconFileOpen
Definition ocobject.h:35
TOcMenuEnable
Definition ocobject.h:145
@ meEnableBrowseClipboard
Definition ocobject.h:148
@ meEnableBrowseLinks
Definition ocobject.h:149
@ meEnablePasteLink
Definition ocobject.h:147
@ meEnablePaste
Definition ocobject.h:146
TOcConvertAction
Definition ocobject.h:158
@ caAspectToIcon
Definition ocobject.h:162
@ caConvertToFormat
Definition ocobject.h:160
@ caActivateAsClsid
Definition ocobject.h:161
@ caConvertToClsid
Definition ocobject.h:159
@ caAspectToContent
Definition ocobject.h:163
TOcInitWhere
Definition ocobject.h:100
@ iwDataObject
Definition ocobject.h:103
@ iwFile
Definition ocobject.h:101
@ iwHandle
Definition ocobject.h:105
@ iwStorage
Definition ocobject.h:102
@ iwNewOcx
Definition ocobject.h:106
@ iwNew
Definition ocobject.h:104
TOcInitHow
Definition ocobject.h:93
@ ihEmbed
Definition ocobject.h:95
@ ihLink
Definition ocobject.h:94
@ ihBitmap
Definition ocobject.h:97
@ ihMetafile
Definition ocobject.h:96
TOcInvalidate
Definition ocobject.h:59
@ invView
Definition ocobject.h:61
@ invData
Definition ocobject.h:60
TOcMouseAction
Definition ocobject.h:46
@ maEnter
Definition ocobject.h:47
@ maExit
Definition ocobject.h:49
@ maContained
Definition ocobject.h:48
class _ICLASS IBContainer
Definition ocbocole.h:136
TOcHelp
Definition ocobject.h:152
@ hlpEnter
Definition ocobject.h:154
@ hlpExit
Definition ocobject.h:153
@ hlpGet
Definition ocobject.h:155
TOcDropAction
Definition ocobject.h:39
@ daDropMove
Definition ocobject.h:42
@ daDropLink
Definition ocobject.h:43
@ daDropCopy
Definition ocobject.h:41
@ daDropNone
Definition ocobject.h:40
TOcScrollDir
Definition ocobject.h:52
@ sdScrollRight
Definition ocobject.h:56
@ sdScrollUp
Definition ocobject.h:53
@ sdScrollLeft
Definition ocobject.h:55
@ sdScrollDown
Definition ocobject.h:54
TOcPartName
Definition ocobject.h:87
@ pnShort
Definition ocobject.h:89
@ pnLong
Definition ocobject.h:88
@ pnApp
Definition ocobject.h:90
TOcDraw
Definition ocobject.h:81
@ drShadingOnly
Definition ocobject.h:83
@ drNone
Definition ocobject.h:82
@ drShowObjects
Definition ocobject.h:84
TOcLinkUpdate
Definition ocobject.h:182
@ luUpdateManual
Definition ocobject.h:184
@ luUpdateAuto
Definition ocobject.h:183
unsigned long ulong
Definition number.h:26
unsigned long uint32
Definition number.h:34
unsigned int uint
Definition number.h:25
interface _ICLASS IStorage
Definition ocdoc.h:25
ObjectComponents fundamental definitions.
#define _OCFCLASS
Definition defs.h:45
OLE Registration definitions.
Low level OLE Utility class definitions.
#define _ICLASS
Definition oleutil.h:25
TOcConvertAction Action
Definition ocobject.h:167
owl::uint ClipFormat
Definition ocobject.h:174
struct ocf::TOcConvertInfo::@55::@58 Format
struct ocf::TOcConvertInfo::@55::@57 Clsid
struct ocf::TOcConvertInfo::@55::@59 SwitchToIcon
OLECHAR Name[32]
Definition ocobject.h:189
owl::ocrMedium Medium
Definition ocobject.h:191
OLECHAR ResultName[32]
Definition ocobject.h:190
owl::ulong xN
numerator in x direction
Definition ocobject.h:75
owl::ulong yN
numerator in y direction
Definition ocobject.h:77
owl::ulong yD
denominator in y direction
Definition ocobject.h:78
owl::ulong xD
denominator in x direction
Definition ocobject.h:76