wined3d: Unified float constant register mapping between ARB pixel and vertex shaders.
[wine.git] / dlls / mshtml / htmldoc3.c
blob73cc24f449dd86fb74977ed575f5af4a8337486f
1 /*
2 * Copyright 2005 Jacek Caban for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #include "config.h"
21 #include <stdarg.h>
22 #include <stdio.h>
24 #define COBJMACROS
26 #include "windef.h"
27 #include "winbase.h"
28 #include "winuser.h"
29 #include "ole2.h"
31 #include "wine/debug.h"
33 #include "mshtml_private.h"
35 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
37 #define HTMLDOC3_THIS(iface) DEFINE_THIS(HTMLDocument, HTMLDocument3, iface)
39 static HRESULT WINAPI HTMLDocument3_QueryInterface(IHTMLDocument3 *iface,
40 REFIID riid, void **ppv)
42 HTMLDocument *This = HTMLDOC3_THIS(iface);
43 return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppv);
46 static ULONG WINAPI HTMLDocument3_AddRef(IHTMLDocument3 *iface)
48 HTMLDocument *This = HTMLDOC3_THIS(iface);
49 return IHTMLDocument2_AddRef(HTMLDOC(This));
52 static ULONG WINAPI HTMLDocument3_Release(IHTMLDocument3 *iface)
54 HTMLDocument *This = HTMLDOC3_THIS(iface);
55 return IHTMLDocument2_Release(HTMLDOC(This));
58 static HRESULT WINAPI HTMLDocument3_GetTypeInfoCount(IHTMLDocument3 *iface, UINT *pctinfo)
60 HTMLDocument *This = HTMLDOC3_THIS(iface);
61 FIXME("(%p)->(%p)\n", This, pctinfo);
62 return E_NOTIMPL;
65 static HRESULT WINAPI HTMLDocument3_GetTypeInfo(IHTMLDocument3 *iface, UINT iTInfo,
66 LCID lcid, ITypeInfo **ppTInfo)
68 HTMLDocument *This = HTMLDOC3_THIS(iface);
69 FIXME("(%p)->(%u %lu %p)\n", This, iTInfo, lcid, ppTInfo);
70 return E_NOTIMPL;
73 static HRESULT WINAPI HTMLDocument3_GetIDsOfNames(IHTMLDocument3 *iface, REFIID riid,
74 LPOLESTR *rgszNames, UINT cNames,
75 LCID lcid, DISPID *rgDispId)
77 HTMLDocument *This = HTMLDOC3_THIS(iface);
78 FIXME("(%p)->(%s %p %u %lu %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
79 lcid, rgDispId);
80 return E_NOTIMPL;
83 static HRESULT WINAPI HTMLDocument3_Invoke(IHTMLDocument3 *iface, DISPID dispIdMember,
84 REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
85 VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
87 HTMLDocument *This = HTMLDOC3_THIS(iface);
88 FIXME("(%p)->(%ld %s %ld %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
89 lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
90 return E_NOTIMPL;
93 static HRESULT WINAPI HTMLDocument3_releaseCapture(IHTMLDocument3 *iface)
95 HTMLDocument *This = HTMLDOC3_THIS(iface);
96 FIXME("(%p)\n", This);
97 return E_NOTIMPL;
100 static HRESULT WINAPI HTMLDocument3_recalc(IHTMLDocument3 *iface, VARIANT_BOOL fForce)
102 HTMLDocument *This = HTMLDOC3_THIS(iface);
103 FIXME("(%p)->(%x)\n", This, fForce);
104 return E_NOTIMPL;
107 static HRESULT WINAPI HTMLDocument3_createTextNode(IHTMLDocument3 *iface, BSTR text,
108 IHTMLDOMNode **newTextNode)
110 HTMLDocument *This = HTMLDOC3_THIS(iface);
111 FIXME("(%p)->(%s %p)\n", This, debugstr_w(text), newTextNode);
112 return E_NOTIMPL;
115 static HRESULT WINAPI HTMLDocument3_get_documentElement(IHTMLDocument3 *iface, IHTMLElement **p)
117 HTMLDocument *This = HTMLDOC3_THIS(iface);
118 nsIDOMDocument *nsdoc;
119 HTMLDOMNode *node;
120 nsresult nsres;
122 TRACE("(%p)->(%p)\n", This, p);
124 if(!This->nscontainer) {
125 *p = NULL;
126 return S_OK;
129 nsres = nsIWebNavigation_GetDocument(This->nscontainer->navigation, &nsdoc);
130 if(NS_FAILED(nsres))
131 ERR("GetDocument failed: %08lx\n", nsres);
133 if(nsdoc) {
134 node = get_node(This, (nsIDOMNode*)nsdoc);
135 nsIDOMDocument_Release(nsdoc);
137 IHTMLDOMNode_QueryInterface(HTMLDOMNODE(node), &IID_IHTMLElement, (void**)p);
138 }else {
139 *p = NULL;
142 return S_OK;
145 static HRESULT WINAPI HTMLDocument3_uniqueID(IHTMLDocument3 *iface, BSTR *p)
147 HTMLDocument *This = HTMLDOC3_THIS(iface);
148 FIXME("(%p)->(%p)\n", This, p);
149 return E_NOTIMPL;
152 static HRESULT WINAPI HTMLDocument3_attachEvent(IHTMLDocument3 *iface, BSTR event,
153 IDispatch* pDisp, VARIANT_BOOL *pfResult)
155 HTMLDocument *This = HTMLDOC3_THIS(iface);
156 FIXME("(%p)->(%s %p %p)\n", This, debugstr_w(event), pDisp, pfResult);
157 return E_NOTIMPL;
160 static HRESULT WINAPI HTMLDocument3_detachEvent(IHTMLDocument3 *iface, BSTR event,
161 IDispatch *pDisp)
163 HTMLDocument *This = HTMLDOC3_THIS(iface);
164 FIXME("(%p)->(%s %p)\n", This, debugstr_w(event), pDisp);
165 return E_NOTIMPL;
168 static HRESULT WINAPI HTMLDocument3_put_onrowsdelete(IHTMLDocument3 *iface, VARIANT v)
170 HTMLDocument *This = HTMLDOC3_THIS(iface);
171 FIXME("(%p)->()\n", This);
172 return E_NOTIMPL;
175 static HRESULT WINAPI HTMLDocument3_get_onrowsdelete(IHTMLDocument3 *iface, VARIANT *p)
177 HTMLDocument *This = HTMLDOC3_THIS(iface);
178 FIXME("(%p)->(%p)\n", This, p);
179 return E_NOTIMPL;
182 static HRESULT WINAPI HTMLDocument3_put_onrowsinserted(IHTMLDocument3 *iface, VARIANT v)
184 HTMLDocument *This = HTMLDOC3_THIS(iface);
185 FIXME("(%p)->()\n", This);
186 return E_NOTIMPL;
189 static HRESULT WINAPI HTMLDocument3_get_onrowsinserted(IHTMLDocument3 *iface, VARIANT *p)
191 HTMLDocument *This = HTMLDOC3_THIS(iface);
192 FIXME("(%p)->(%p)\n", This, p);
193 return E_NOTIMPL;
196 static HRESULT WINAPI HTMLDocument3_put_oncellchange(IHTMLDocument3 *iface, VARIANT v)
198 HTMLDocument *This = HTMLDOC3_THIS(iface);
199 FIXME("(%p)->()\n", This);
200 return E_NOTIMPL;
203 static HRESULT WINAPI HTMLDocument3_get_oncellchange(IHTMLDocument3 *iface, VARIANT *p)
205 HTMLDocument *This = HTMLDOC3_THIS(iface);
206 FIXME("(%p)->(%p)\n", This, p);
207 return E_NOTIMPL;
210 static HRESULT WINAPI HTMLDocument3_put_ondatasetchanged(IHTMLDocument3 *iface, VARIANT v)
212 HTMLDocument *This = HTMLDOC3_THIS(iface);
213 FIXME("(%p)->()\n", This);
214 return E_NOTIMPL;
217 static HRESULT WINAPI HTMLDocument3_get_ondatasetchanged(IHTMLDocument3 *iface, VARIANT *p)
219 HTMLDocument *This = HTMLDOC3_THIS(iface);
220 FIXME("(%p)->(%p)\n", This, p);
221 return E_NOTIMPL;
224 static HRESULT WINAPI HTMLDocument3_put_ondataavailable(IHTMLDocument3 *iface, VARIANT v)
226 HTMLDocument *This = HTMLDOC3_THIS(iface);
227 FIXME("(%p)->()\n", This);
228 return E_NOTIMPL;
231 static HRESULT WINAPI HTMLDocument3_get_ondataavailable(IHTMLDocument3 *iface, VARIANT *p)
233 HTMLDocument *This = HTMLDOC3_THIS(iface);
234 FIXME("(%p)->(%p)\n", This, p);
235 return E_NOTIMPL;
238 static HRESULT WINAPI HTMLDocument3_put_ondatasetcomplete(IHTMLDocument3 *iface, VARIANT v)
240 HTMLDocument *This = HTMLDOC3_THIS(iface);
241 FIXME("(%p)->()\n", This);
242 return E_NOTIMPL;
245 static HRESULT WINAPI HTMLDocument3_get_ondatasetcomplete(IHTMLDocument3 *iface, VARIANT *p)
247 HTMLDocument *This = HTMLDOC3_THIS(iface);
248 FIXME("(%p)->(%p)\n", This, p);
249 return E_NOTIMPL;
252 static HRESULT WINAPI HTMLDocument3_put_onpropertychange(IHTMLDocument3 *iface, VARIANT v)
254 HTMLDocument *This = HTMLDOC3_THIS(iface);
255 FIXME("(%p)->()\n", This);
256 return E_NOTIMPL;
259 static HRESULT WINAPI HTMLDocument3_get_onpropertychange(IHTMLDocument3 *iface, VARIANT *p)
261 HTMLDocument *This = HTMLDOC3_THIS(iface);
262 FIXME("(%p)->(%p)\n", This, p);
263 return E_NOTIMPL;
266 static HRESULT WINAPI HTMLDocument3_put_dir(IHTMLDocument3 *iface, BSTR v)
268 HTMLDocument *This = HTMLDOC3_THIS(iface);
269 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
270 return E_NOTIMPL;
273 static HRESULT WINAPI HTMLDocument3_get_dir(IHTMLDocument3 *iface, BSTR *p)
275 HTMLDocument *This = HTMLDOC3_THIS(iface);
276 FIXME("(%p)->(%p)\n", This, p);
277 return E_NOTIMPL;
280 static HRESULT WINAPI HTMLDocument3_put_oncontextmenu(IHTMLDocument3 *iface, VARIANT v)
282 HTMLDocument *This = HTMLDOC3_THIS(iface);
283 FIXME("(%p)->()\n", This);
284 return E_NOTIMPL;
287 static HRESULT WINAPI HTMLDocument3_get_oncontextmenu(IHTMLDocument3 *iface, VARIANT *p)
289 HTMLDocument *This = HTMLDOC3_THIS(iface);
290 FIXME("(%p)->(%p)\n", This, p);
291 return E_NOTIMPL;
294 static HRESULT WINAPI HTMLDocument3_put_onstop(IHTMLDocument3 *iface, VARIANT v)
296 HTMLDocument *This = HTMLDOC3_THIS(iface);
297 FIXME("(%p)->()\n", This);
298 return E_NOTIMPL;
301 static HRESULT WINAPI HTMLDocument3_get_onstop(IHTMLDocument3 *iface, VARIANT *p)
303 HTMLDocument *This = HTMLDOC3_THIS(iface);
304 FIXME("(%p)->(%p)\n", This, p);
305 return E_NOTIMPL;
308 static HRESULT WINAPI HTMLDocument3_createDocumentFragment(IHTMLDocument3 *iface,
309 IHTMLDocument2 **ppNewDoc)
311 HTMLDocument *This = HTMLDOC3_THIS(iface);
312 FIXME("(%p)->(%p)\n", This, ppNewDoc);
313 return E_NOTIMPL;
316 static HRESULT WINAPI HTMLDocument3_get_parentDocument(IHTMLDocument3 *iface,
317 IHTMLDocument2 **p)
319 HTMLDocument *This = HTMLDOC3_THIS(iface);
320 FIXME("(%p)->(%p)\n", This, p);
321 return E_NOTIMPL;
324 static HRESULT WINAPI HTMLDocument3_put_enableDownload(IHTMLDocument3 *iface,
325 VARIANT_BOOL v)
327 HTMLDocument *This = HTMLDOC3_THIS(iface);
328 FIXME("(%p)->(%x)\n", This, v);
329 return E_NOTIMPL;
332 static HRESULT WINAPI HTMLDocument3_get_enableDownload(IHTMLDocument3 *iface,
333 VARIANT_BOOL *p)
335 HTMLDocument *This = HTMLDOC3_THIS(iface);
336 FIXME("(%p)->(%p)\n", This, p);
337 return E_NOTIMPL;
340 static HRESULT WINAPI HTMLDocument3_put_baseUrl(IHTMLDocument3 *iface, BSTR v)
342 HTMLDocument *This = HTMLDOC3_THIS(iface);
343 FIXME("(%p)->(%s)\n", This, debugstr_w(v));
344 return E_NOTIMPL;
347 static HRESULT WINAPI HTMLDocument3_get_baseUrl(IHTMLDocument3 *iface, BSTR *p)
349 HTMLDocument *This = HTMLDOC3_THIS(iface);
350 FIXME("(%p)->(%p)\n", This, p);
351 return E_NOTIMPL;
354 static HRESULT WINAPI HTMLDocument3_get_childNodes(IHTMLDocument3 *iface, IDispatch **p)
356 HTMLDocument *This = HTMLDOC3_THIS(iface);
357 FIXME("(%p)->(%p)\n", This, p);
358 return E_NOTIMPL;
361 static HRESULT WINAPI HTMLDocument3_put_inheritStyleSheets(IHTMLDocument3 *iface,
362 VARIANT_BOOL v)
364 HTMLDocument *This = HTMLDOC3_THIS(iface);
365 FIXME("(%p)->()\n", This);
366 return E_NOTIMPL;
369 static HRESULT WINAPI HTMLDocument3_get_inheritStyleSheets(IHTMLDocument3 *iface,
370 VARIANT_BOOL *p)
372 HTMLDocument *This = HTMLDOC3_THIS(iface);
373 FIXME("(%p)->(%p)\n", This, p);
374 return E_NOTIMPL;
377 static HRESULT WINAPI HTMLDocument3_put_onbeforeeditfocus(IHTMLDocument3 *iface, VARIANT v)
379 HTMLDocument *This = HTMLDOC3_THIS(iface);
380 FIXME("(%p)->()\n", This);
381 return E_NOTIMPL;
384 static HRESULT WINAPI HTMLDocument3_get_onbeforeeditfocus(IHTMLDocument3 *iface, VARIANT *p)
386 HTMLDocument *This = HTMLDOC3_THIS(iface);
387 FIXME("(%p)->(%p)\n", This, p);
388 return E_NOTIMPL;
391 static HRESULT WINAPI HTMLDocument3_getElementsByName(IHTMLDocument3 *iface, BSTR v,
392 IHTMLElementCollection **ppelColl)
394 HTMLDocument *This = HTMLDOC3_THIS(iface);
395 FIXME("(%p)->(%s %p)\n", This, debugstr_w(v), ppelColl);
396 return E_NOTIMPL;
400 static HRESULT WINAPI HTMLDocument3_getElementById(IHTMLDocument3 *iface, BSTR v,
401 IHTMLElement **pel)
403 HTMLDocument *This = HTMLDOC3_THIS(iface);
404 FIXME("(%p)->(%s %p)\n", This, debugstr_w(v), pel);
405 return E_NOTIMPL;
409 static HRESULT WINAPI HTMLDocument3_getElementsByTagName(IHTMLDocument3 *iface, BSTR v,
410 IHTMLElementCollection **pelColl)
412 HTMLDocument *This = HTMLDOC3_THIS(iface);
413 FIXME("(%p)->(%s %p)\n", This, debugstr_w(v), pelColl);
414 return E_NOTIMPL;
417 static const IHTMLDocument3Vtbl HTMLDocument3Vtbl = {
418 HTMLDocument3_QueryInterface,
419 HTMLDocument3_AddRef,
420 HTMLDocument3_Release,
421 HTMLDocument3_GetTypeInfoCount,
422 HTMLDocument3_GetTypeInfo,
423 HTMLDocument3_GetIDsOfNames,
424 HTMLDocument3_Invoke,
425 HTMLDocument3_releaseCapture,
426 HTMLDocument3_recalc,
427 HTMLDocument3_createTextNode,
428 HTMLDocument3_get_documentElement,
429 HTMLDocument3_uniqueID,
430 HTMLDocument3_attachEvent,
431 HTMLDocument3_detachEvent,
432 HTMLDocument3_put_onrowsdelete,
433 HTMLDocument3_get_onrowsdelete,
434 HTMLDocument3_put_onrowsinserted,
435 HTMLDocument3_get_onrowsinserted,
436 HTMLDocument3_put_oncellchange,
437 HTMLDocument3_get_oncellchange,
438 HTMLDocument3_put_ondatasetchanged,
439 HTMLDocument3_get_ondatasetchanged,
440 HTMLDocument3_put_ondataavailable,
441 HTMLDocument3_get_ondataavailable,
442 HTMLDocument3_put_ondatasetcomplete,
443 HTMLDocument3_get_ondatasetcomplete,
444 HTMLDocument3_put_onpropertychange,
445 HTMLDocument3_get_onpropertychange,
446 HTMLDocument3_put_dir,
447 HTMLDocument3_get_dir,
448 HTMLDocument3_put_oncontextmenu,
449 HTMLDocument3_get_oncontextmenu,
450 HTMLDocument3_put_onstop,
451 HTMLDocument3_get_onstop,
452 HTMLDocument3_createDocumentFragment,
453 HTMLDocument3_get_parentDocument,
454 HTMLDocument3_put_enableDownload,
455 HTMLDocument3_get_enableDownload,
456 HTMLDocument3_put_baseUrl,
457 HTMLDocument3_get_baseUrl,
458 HTMLDocument3_get_childNodes,
459 HTMLDocument3_put_inheritStyleSheets,
460 HTMLDocument3_get_inheritStyleSheets,
461 HTMLDocument3_put_onbeforeeditfocus,
462 HTMLDocument3_get_onbeforeeditfocus,
463 HTMLDocument3_getElementsByName,
464 HTMLDocument3_getElementById,
465 HTMLDocument3_getElementsByTagName
468 void HTMLDocument_HTMLDocument3_Init(HTMLDocument *This)
470 This->lpHTMLDocument3Vtbl = &HTMLDocument3Vtbl;