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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 /* At the moment, these are only empty stubs.
27 #include "wine/windef16.h"
32 #include "wine/debug.h"
34 WINE_DEFAULT_DEBUG_CHANNEL(ole);
41 OLE_ERROR_PROTECT_ONLY,
79 OLE_ERROR_ADVISE_NATIVE,
80 OLE_ERROR_ADVISE_PICT,
81 OLE_ERROR_ADVISE_RENAME,
82 OLE_ERROR_POKE_NATIVE,
83 OLE_ERROR_REQUEST_NATIVE,
84 OLE_ERROR_REQUEST_PICT,
85 OLE_ERROR_SERVER_BLOCKED,
86 OLE_ERROR_REGISTRATION,
87 OLE_ERROR_ALREADY_REGISTERED,
90 OLE_ERROR_CANT_UPDATE_CLIENT,
92 OLE_ERROR_SETDATA_FORMAT,
93 OLE_ERROR_STATIC_FROM_OTHER_OS,
94 OLE_WARN_DELETE_DATA = 1000
114 OLE_DELETE, /* delete object */
115 OLE_LNKPASTE, /* link paste */
116 OLE_EMBPASTE, /* paste(and update) */
123 OLE_SETUPDATEOPTIONS,
124 OLE_SERVERRUNLAUNCH, /* unlaunch (terminate?) server */
125 OLE_LOADFROMSTREAM, /* (auto reconnect) */
126 OLE_SETDATA, /* OleSetData */
127 OLE_REQUESTDATA, /* OleRequestData */
130 OLE_CREATEFROMTEMPLATE,
131 OLE_CREATELINKFROMFILE,
135 } OLE_RELEASE_METHOD;
137 typedef LONG LHCLIENTDOC;
138 typedef struct _OLEOBJECT *LPOLEOBJECT;
139 typedef struct _OLECLIENT *LPOLECLIENT;
140 typedef LONG OLECLIPFORMAT;/* dunno about this type, please change/add */
141 typedef OLEOPT_UPDATE *LPOLEOPT_UPDATE;
145 typedef struct _OLEOBJECTVTBL {
146 void CALLBACK *(*QueryProtocol)(LPOLEOBJECT,LPCOLESTR16);
147 OLESTATUS (CALLBACK *Release)(LPOLEOBJECT);
148 OLESTATUS (CALLBACK *Show)(LPOLEOBJECT,BOOL16);
149 OLESTATUS (CALLBACK *DoVerb)(LPOLEOBJECT,UINT16,BOOL16,BOOL16);
150 OLESTATUS (CALLBACK *GetData)(LPOLEOBJECT,OLECLIPFORMAT,HANDLE16 *);
151 OLESTATUS (CALLBACK *SetData)(LPOLEOBJECT,OLECLIPFORMAT,HANDLE16);
152 OLESTATUS (CALLBACK *SetTargetDevice)(LPOLEOBJECT,HGLOBAL16);
153 OLESTATUS (CALLBACK *SetBounds)(LPOLEOBJECT,LPRECT16);
154 OLESTATUS (CALLBACK *EnumFormats)(LPOLEOBJECT,OLECLIPFORMAT);
155 OLESTATUS (CALLBACK *SetColorScheme)(LPOLEOBJECT,struct tagLOGPALETTE*);
156 OLESTATUS (CALLBACK *Delete)(LPOLEOBJECT);
157 OLESTATUS (CALLBACK *SetHostNames)(LPOLEOBJECT,LPCOLESTR16,LPCOLESTR16);
158 OLESTATUS (CALLBACK *SaveToStream)(LPOLEOBJECT,struct _OLESTREAM*);
159 OLESTATUS (CALLBACK *Clone)(LPOLEOBJECT,LPOLECLIENT,LHCLIENTDOC,LPCOLESTR16,LPOLEOBJECT *);
160 OLESTATUS (CALLBACK *CopyFromLink)(LPOLEOBJECT,LPOLECLIENT,LHCLIENTDOC,LPCOLESTR16,LPOLEOBJECT *);
161 OLESTATUS (CALLBACK *Equal)(LPOLEOBJECT,LPOLEOBJECT);
162 OLESTATUS (CALLBACK *CopyToClipBoard)(LPOLEOBJECT);
163 OLESTATUS (CALLBACK *Draw)(LPOLEOBJECT,HDC16,LPRECT16,LPRECT16,HDC16);
164 OLESTATUS (CALLBACK *Activate)(LPOLEOBJECT,UINT16,BOOL16,BOOL16,HWND16,LPRECT16);
165 OLESTATUS (CALLBACK *Execute)(LPOLEOBJECT,HGLOBAL16,UINT16);
166 OLESTATUS (CALLBACK *Close)(LPOLEOBJECT);
167 OLESTATUS (CALLBACK *Update)(LPOLEOBJECT);
168 OLESTATUS (CALLBACK *Reconnect)(LPOLEOBJECT);
169 OLESTATUS (CALLBACK *ObjectConvert)(LPOLEOBJECT,LPCOLESTR16,LPOLECLIENT,LHCLIENTDOC,LPCOLESTR16,LPOLEOBJECT*);
170 OLESTATUS (CALLBACK *GetLinkUpdateOptions)(LPOLEOBJECT,LPOLEOPT_UPDATE);
171 OLESTATUS (CALLBACK *SetLinkUpdateOptions)(LPOLEOBJECT,OLEOPT_UPDATE);
172 OLESTATUS (CALLBACK *Rename)(LPOLEOBJECT,LPCOLESTR16);
173 OLESTATUS (CALLBACK *QueryName)(LPOLEOBJECT,LPSTR,LPUINT16);
174 OLESTATUS (CALLBACK *QueryType)(LPOLEOBJECT,LPLONG);
175 OLESTATUS (CALLBACK *QueryBounds)(LPOLEOBJECT,LPRECT16);
176 OLESTATUS (CALLBACK *QuerySize)(LPOLEOBJECT,LPDWORD);
177 OLESTATUS (CALLBACK *QueryOpen)(LPOLEOBJECT);
178 OLESTATUS (CALLBACK *QueryOutOfDate)(LPOLEOBJECT);
179 OLESTATUS (CALLBACK *QueryReleaseStatus)(LPOLEOBJECT);
180 OLESTATUS (CALLBACK *QueryReleaseError)(LPOLEOBJECT);
181 OLE_RELEASE_METHOD (CALLBACK *QueryReleaseMethod)(LPOLEOBJECT);
182 OLESTATUS (CALLBACK *RequestData)(LPOLEOBJECT,OLECLIPFORMAT);
183 OLESTATUS (CALLBACK *ObjectLong)(LPOLEOBJECT,UINT16,LPLONG);
185 typedef OLEOBJECTVTBL *LPOLEOBJECTVTBL;
187 typedef struct _OLEOBJECT
189 LPOLEOBJECTVTBL lpvtbl;
192 static LONG OLE_current_handle;
194 /******************************************************************************
195 * OleSavedClientDoc [OLECLI32.45]
197 OLESTATUS WINAPI OleSavedClientDoc(LHCLIENTDOC hDoc)
199 FIXME("(%ld: stub\n", hDoc);
203 /******************************************************************************
204 * OleRegisterClientDoc [OLECLI32.41]
206 OLESTATUS WINAPI OleRegisterClientDoc(LPCSTR classname, LPCSTR docname,
207 LONG reserved, LHCLIENTDOC *hRet )
209 FIXME("(%s,%s,...): stub\n",classname,docname);
210 *hRet=++OLE_current_handle;
214 /******************************************************************************
215 * OleRenameClientDoc [OLECLI32.43]
217 OLESTATUS WINAPI OleRenameClientDoc(LHCLIENTDOC hDoc, LPCSTR newName)
219 FIXME("(%ld,%s,...): stub\n",hDoc, newName);
223 /******************************************************************************
224 * OleRevokeClientDoc [OLECLI32.42]
226 OLESTATUS WINAPI OleRevokeClientDoc(LHCLIENTDOC hServerDoc)
228 FIXME("(%ld): stub\n",hServerDoc);
232 /******************************************************************************
233 * OleCreateLinkFromClip [OLECLI32.11]
235 OLESTATUS WINAPI OleCreateLinkFromClip(
236 LPCSTR name,LPOLECLIENT olecli,LHCLIENTDOC hclientdoc,LPCSTR xname,
237 LPOLEOBJECT *lpoleob,OLEOPT_RENDER render,OLECLIPFORMAT clipformat
239 FIXME("(%s,%p,%08lx,%s,%p,%d,%ld): stub!\n",
240 name,olecli,hclientdoc,xname,lpoleob,render,clipformat);
244 /******************************************************************************
245 * OleQueryLinkFromClip [OLECLI32.9]
247 OLESTATUS WINAPI OleQueryLinkFromClip(LPCSTR name,OLEOPT_RENDER render,OLECLIPFORMAT clipformat) {
248 FIXME("(%s,%d,%ld): stub!\n",name,render,clipformat);
252 /******************************************************************************
253 * OleQueryCreateFromClip [OLECLI32.10]
255 OLESTATUS WINAPI OleQueryCreateFromClip(LPCSTR name,OLEOPT_RENDER render,OLECLIPFORMAT clipformat) {
256 FIXME("(%s,%d,%ld): stub!\n",name,render,clipformat);
260 /******************************************************************************
261 * OleIsDcMeta [OLECLI32.60]
263 BOOL WINAPI OleIsDcMeta(HDC hdc)
266 return GetObjectType( hdc ) == OBJ_METADC;
269 /******************************************************************************
270 * OleSetHostNames [OLECLI32.15]
272 OLESTATUS WINAPI OleSetHostNames(LPOLEOBJECT oleob,LPCSTR name1,LPCSTR name2) {
273 FIXME("(%p,%s,%s): stub\n",oleob,name1,name2);
277 /******************************************************************************
278 * OleQueryType [OLECLI32.14]
280 OLESTATUS WINAPI OleQueryType(LPOLEOBJECT oleob,LONG*xlong) {
281 FIXME("(%p,%p): stub!\n",oleob,xlong);
284 TRACE("Calling OLEOBJECT.QueryType (%p) (%p,%p)\n",
285 oleob->lpvtbl->QueryType,oleob,xlong);
286 return oleob->lpvtbl->QueryType(oleob,xlong);
289 /******************************************************************************
290 * OleCreateFromClip [OLECLI32.12]
292 OLESTATUS WINAPI OleCreateFromClip(
293 LPCSTR name,LPOLECLIENT olecli,LHCLIENTDOC hclientdoc,LPCSTR xname,
294 LPOLEOBJECT *lpoleob,OLEOPT_RENDER render, OLECLIPFORMAT clipformat
296 FIXME("(%s,%p,%08lx,%s,%p,%d,%ld): stub!\n",
297 name,olecli,hclientdoc,xname,lpoleob,render,clipformat);
298 /* clipb type, object kreieren entsprechend etc. */