4 * Copyright 1995 Martin von Loewis
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 /* At the moment, these are only empty stubs.
29 #include "wine/windef16.h"
35 #include "wine/debug.h"
37 WINE_DEFAULT_DEBUG_CHANNEL(ole
);
39 typedef struct _OLEOBJECTVTBL16
{
40 void CALLBACK
*(*QueryProtocol
)(_LPOLEOBJECT
,LPCOLESTR16
);
41 OLESTATUS (CALLBACK
*Release
)(_LPOLEOBJECT
);
42 OLESTATUS (CALLBACK
*Show
)(_LPOLEOBJECT
,BOOL16
);
43 OLESTATUS (CALLBACK
*DoVerb
)(_LPOLEOBJECT
,UINT16
,BOOL16
,BOOL16
);
44 OLESTATUS (CALLBACK
*GetData
)(_LPOLEOBJECT
,OLECLIPFORMAT
,HANDLE16
*);
45 OLESTATUS (CALLBACK
*SetData
)(_LPOLEOBJECT
,OLECLIPFORMAT
,HANDLE16
);
46 OLESTATUS (CALLBACK
*SetTargetDevice
)(_LPOLEOBJECT
,HGLOBAL16
);
47 OLESTATUS (CALLBACK
*SetBounds
)(_LPOLEOBJECT
,LPRECT16
);
48 OLESTATUS (CALLBACK
*EnumFormats
)(_LPOLEOBJECT
,OLECLIPFORMAT
);
49 OLESTATUS (CALLBACK
*SetColorScheme
)(_LPOLEOBJECT
,struct tagLOGPALETTE
*);
50 OLESTATUS (CALLBACK
*Delete
)(_LPOLEOBJECT
);
51 OLESTATUS (CALLBACK
*SetHostNames
)(_LPOLEOBJECT
,LPCOLESTR16
,LPCOLESTR16
);
52 OLESTATUS (CALLBACK
*SaveToStream
)(_LPOLEOBJECT
,struct _OLESTREAM
*);
53 OLESTATUS (CALLBACK
*Clone
)(_LPOLEOBJECT
,LPOLECLIENT
,LHCLIENTDOC
,LPCOLESTR16
,_LPOLEOBJECT
*);
54 OLESTATUS (CALLBACK
*CopyFromLink
)(_LPOLEOBJECT
,LPOLECLIENT
,LHCLIENTDOC
,LPCOLESTR16
,_LPOLEOBJECT
*);
55 OLESTATUS (CALLBACK
*Equal
)(_LPOLEOBJECT
,_LPOLEOBJECT
);
56 OLESTATUS (CALLBACK
*CopyToClipBoard
)(_LPOLEOBJECT
);
57 OLESTATUS (CALLBACK
*Draw
)(_LPOLEOBJECT
,HDC16
,LPRECT16
,LPRECT16
,HDC16
);
58 OLESTATUS (CALLBACK
*Activate
)(_LPOLEOBJECT
,UINT16
,BOOL16
,BOOL16
,HWND16
,LPRECT16
);
59 OLESTATUS (CALLBACK
*Execute
)(_LPOLEOBJECT
,HGLOBAL16
,UINT16
);
60 OLESTATUS (CALLBACK
*Close
)(_LPOLEOBJECT
);
61 OLESTATUS (CALLBACK
*Update
)(_LPOLEOBJECT
);
62 OLESTATUS (CALLBACK
*Reconnect
)(_LPOLEOBJECT
);
63 OLESTATUS (CALLBACK
*ObjectConvert
)(_LPOLEOBJECT
,LPCOLESTR16
,LPOLECLIENT
,LHCLIENTDOC
,LPCOLESTR16
,_LPOLEOBJECT
*);
64 OLESTATUS (CALLBACK
*GetLinkUpdateOptions
)(_LPOLEOBJECT
,LPOLEOPT_UPDATE
);
65 OLESTATUS (CALLBACK
*SetLinkUpdateOptions
)(_LPOLEOBJECT
,OLEOPT_UPDATE
);
66 OLESTATUS (CALLBACK
*Rename
)(_LPOLEOBJECT
,LPCOLESTR16
);
67 OLESTATUS (CALLBACK
*QueryName
)(_LPOLEOBJECT
,LPSTR
,LPUINT16
);
68 OLESTATUS (CALLBACK
*QueryType
)(_LPOLEOBJECT
,LPLONG
);
69 OLESTATUS (CALLBACK
*QueryBounds
)(_LPOLEOBJECT
,LPRECT16
);
70 OLESTATUS (CALLBACK
*QuerySize
)(_LPOLEOBJECT
,LPDWORD
);
71 OLESTATUS (CALLBACK
*QueryOpen
)(_LPOLEOBJECT
);
72 OLESTATUS (CALLBACK
*QueryOutOfDate
)(_LPOLEOBJECT
);
73 OLESTATUS (CALLBACK
*QueryReleaseStatus
)(_LPOLEOBJECT
);
74 OLESTATUS (CALLBACK
*QueryReleaseError
)(_LPOLEOBJECT
);
75 OLE_RELEASE_METHOD (CALLBACK
*QueryReleaseMethod
)(_LPOLEOBJECT
);
76 OLESTATUS (CALLBACK
*RequestData
)(_LPOLEOBJECT
,OLECLIPFORMAT
);
77 OLESTATUS (CALLBACK
*ObjectLong
)(_LPOLEOBJECT
,UINT16
,LPLONG
);
79 typedef OLEOBJECTVTBL
*LPOLEOBJECTVTBL
;
81 typedef struct _OLEOBJECT
83 const OLEOBJECTVTBL
*lpvtbl
;
86 static LONG OLE_current_handle
;
88 /******************************************************************************
89 * OleSavedClientDoc [OLECLI.45]
91 OLESTATUS WINAPI
OleSavedClientDoc16(LHCLIENTDOC hDoc
)
93 FIXME("(%d: stub\n", hDoc
);
97 /******************************************************************************
98 * OleRegisterClientDoc [OLECLI.41]
100 OLESTATUS WINAPI
OleRegisterClientDoc16(LPCSTR classname
, LPCSTR docname
,
101 LONG reserved
, LHCLIENTDOC
*hRet
)
103 FIXME("(%s,%s,...): stub\n",classname
,docname
);
104 *hRet
=++OLE_current_handle
;
108 /******************************************************************************
109 * OleRenameClientDoc [OLECLI.43]
111 OLESTATUS WINAPI
OleRenameClientDoc16(LHCLIENTDOC hDoc
, LPCSTR newName
)
113 FIXME("(%d,%s,...): stub\n",hDoc
, newName
);
117 /******************************************************************************
118 * OleRevokeClientDoc [OLECLI.42]
120 OLESTATUS WINAPI
OleRevokeClientDoc16(LHCLIENTDOC hServerDoc
)
122 FIXME("(%d): stub\n",hServerDoc
);
126 /******************************************************************************
127 * OleRevertClientDoc [OLECLI.44]
129 OLESTATUS WINAPI
OleRevertClientDoc16(LHCLIENTDOC hServerDoc
)
131 FIXME("(%d): stub\n", hServerDoc
);
135 /******************************************************************************
136 * OleEnumObjects [OLECLI.47]
138 OLESTATUS WINAPI
OleEnumObjects16(LHCLIENTDOC hServerDoc
, SEGPTR data
)
140 FIXME("(%d, %04x:%04x): stub\n", hServerDoc
, HIWORD(data
),
145 /******************************************************************************
146 * OleCreateLinkFromClip [OLECLI.11]
148 OLESTATUS WINAPI
OleCreateLinkFromClip16( LPCSTR name
, SEGPTR olecli
, LHCLIENTDOC hclientdoc
,
149 LPCSTR xname
, SEGPTR lpoleob
, UINT16 render
,
152 FIXME("(%s, %04x:%04x, %d, %s, %04x:%04x, %d, %d): stub!\n",
153 name
, HIWORD(olecli
), LOWORD(olecli
), hclientdoc
, xname
, HIWORD(lpoleob
),
154 LOWORD(lpoleob
), render
, clipformat
);
158 /******************************************************************************
159 * OleQueryLinkFromClip [OLECLI.9]
161 OLESTATUS WINAPI
OleQueryLinkFromClip16(LPCSTR name
, UINT16 render
, UINT16 clipformat
)
163 FIXME("(%s, %d, %d): stub!\n", name
, render
, clipformat
);
167 /******************************************************************************
168 * OleQueryCreateFromClip [OLECLI.10]
170 OLESTATUS WINAPI
OleQueryCreateFromClip16(LPCSTR name
, UINT16 render
, UINT16 clipformat
)
172 FIXME("(%s, %d, %d): stub!\n", name
, render
, clipformat
);
176 /******************************************************************************
177 * OleIsDcMeta [OLECLI.60]
179 BOOL16 WINAPI
OleIsDcMeta16(HDC16 hdc
)
181 return GetObjectType( HDC_32(hdc
) ) == OBJ_METADC
;
184 /******************************************************************************
185 * OleQueryType [OLECLI.14]
187 OLESTATUS WINAPI
OleQueryType16(_LPOLEOBJECT oleob
, SEGPTR xlong
) {
188 FIXME("(%p, %p): stub!\n", oleob
, MapSL(xlong
));
192 /******************************************************************************
193 * OleCreateFromClip [OLECLI.12]
195 OLESTATUS WINAPI
OleCreateFromClip16( LPCSTR name
, SEGPTR olecli
, LHCLIENTDOC hclientdoc
,
196 LPCSTR xname
, SEGPTR lpoleob
,
197 UINT16 render
, UINT16 clipformat
)
199 FIXME("(%s, %04x:%04x, %d, %s, %04x:%04x, %d, %d): stub!\n",
200 name
, HIWORD(olecli
), LOWORD(olecli
), hclientdoc
, xname
, HIWORD(lpoleob
),
201 LOWORD(lpoleob
), render
, clipformat
);