mshtml: Added IHTMLDocument5 interface stub implementation.
[wine] / dlls / mshtml / htmldoc5.c
1 /*
2  * Copyright 2007 Jacek Caban for CodeWeavers
3  *
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.
8  *
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.
13  *
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
17  */
18
19 #include "config.h"
20
21 #include <stdarg.h>
22 #include <stdio.h>
23
24 #define COBJMACROS
25
26 #include "windef.h"
27 #include "winbase.h"
28 #include "winuser.h"
29 #include "ole2.h"
30
31 #include "wine/debug.h"
32
33 #include "mshtml_private.h"
34
35 WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
36
37 #define HTMLDOC5_THIS(iface) DEFINE_THIS(HTMLDocument, HTMLDocument5, iface)
38
39 static HRESULT WINAPI HTMLDocument5_QueryInterface(IHTMLDocument5 *iface,
40         REFIID riid, void **ppv)
41 {
42     HTMLDocument *This = HTMLDOC5_THIS(iface);
43     return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppv);
44 }
45
46 static ULONG WINAPI HTMLDocument5_AddRef(IHTMLDocument5 *iface)
47 {
48     HTMLDocument *This = HTMLDOC5_THIS(iface);
49     return IHTMLDocument2_AddRef(HTMLDOC(This));
50 }
51
52 static ULONG WINAPI HTMLDocument5_Release(IHTMLDocument5 *iface)
53 {
54     HTMLDocument *This = HTMLDOC5_THIS(iface);
55     return IHTMLDocument2_Release(HTMLDOC(This));
56 }
57
58 static HRESULT WINAPI HTMLDocument5_GetTypeInfoCount(IHTMLDocument5 *iface, UINT *pctinfo)
59 {
60     HTMLDocument *This = HTMLDOC5_THIS(iface);
61     FIXME("(%p)->(%p)\n", This, pctinfo);
62     return E_NOTIMPL;
63 }
64
65 static HRESULT WINAPI HTMLDocument5_GetTypeInfo(IHTMLDocument5 *iface, UINT iTInfo,
66         LCID lcid, ITypeInfo **ppTInfo)
67 {
68     HTMLDocument *This = HTMLDOC5_THIS(iface);
69     FIXME("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
70     return E_NOTIMPL;
71 }
72
73 static HRESULT WINAPI HTMLDocument5_GetIDsOfNames(IHTMLDocument5 *iface, REFIID riid,
74         LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
75 {
76     HTMLDocument *This = HTMLDOC5_THIS(iface);
77     FIXME("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
78                                         lcid, rgDispId);
79     return E_NOTIMPL;
80 }
81
82 static HRESULT WINAPI HTMLDocument5_Invoke(IHTMLDocument5 *iface, DISPID dispIdMember,
83                             REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams,
84                             VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
85 {
86     HTMLDocument *This = HTMLDOC5_THIS(iface);
87     FIXME("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
88             lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
89     return E_NOTIMPL;
90 }
91
92 static HRESULT WINAPI HTMLDocument5_put_onmousewheel(IHTMLDocument5 *iface, VARIANT v)
93 {
94     HTMLDocument *This = HTMLDOC5_THIS(iface);
95     FIXME("(%p)->(v)\n", This);
96     return E_NOTIMPL;
97 }
98
99 static HRESULT WINAPI HTMLDocument5_get_onmousewheel(IHTMLDocument5 *iface, VARIANT *p)
100 {
101     HTMLDocument *This = HTMLDOC5_THIS(iface);
102     FIXME("(%p)->(%p)\n", This, p);
103     return E_NOTIMPL;
104 }
105
106 static HRESULT WINAPI HTMLDocument5_get_doctype(IHTMLDocument5 *iface, IHTMLDOMNode **p)
107 {
108     HTMLDocument *This = HTMLDOC5_THIS(iface);
109     FIXME("(%p)->(%p)\n", This, p);
110     return E_NOTIMPL;
111 }
112
113 static HRESULT WINAPI HTMLDocument5_get_implementation(IHTMLDocument5 *iface, IHTMLDOMImplementation **p)
114 {
115     HTMLDocument *This = HTMLDOC5_THIS(iface);
116     FIXME("(%p)->(%p)\n", This, p);
117     return E_NOTIMPL;
118 }
119
120 static HRESULT WINAPI HTMLDocument5_createAttribute(IHTMLDocument5 *iface, BSTR bstrattrName,
121         IHTMLDOMAttribute **ppattribute)
122 {
123     HTMLDocument *This = HTMLDOC5_THIS(iface);
124     FIXME("(%p)->(%s %p)\n", This, debugstr_w(bstrattrName), ppattribute);
125     return E_NOTIMPL;
126 }
127
128 static HRESULT WINAPI HTMLDocument5_createComment(IHTMLDocument5 *iface, BSTR bstrdata,
129         IHTMLDOMNode **ppRetNode)
130 {
131     HTMLDocument *This = HTMLDOC5_THIS(iface);
132     FIXME("(%p)->(%s %p)\n", This, debugstr_w(bstrdata), ppRetNode);
133     return E_NOTIMPL;
134 }
135
136 static HRESULT WINAPI HTMLDocument5_put_onfocusin(IHTMLDocument5 *iface, VARIANT v)
137 {
138     HTMLDocument *This = HTMLDOC5_THIS(iface);
139     FIXME("(%p)->(v)\n", This);
140     return E_NOTIMPL;
141 }
142
143 static HRESULT WINAPI HTMLDocument5_get_onfocusin(IHTMLDocument5 *iface, VARIANT *p)
144 {
145     HTMLDocument *This = HTMLDOC5_THIS(iface);
146     FIXME("(%p)->(%p)\n", This, p);
147     return E_NOTIMPL;
148 }
149
150 static HRESULT WINAPI HTMLDocument5_put_onfocusout(IHTMLDocument5 *iface, VARIANT v)
151 {
152     HTMLDocument *This = HTMLDOC5_THIS(iface);
153     FIXME("(%p)->(v)\n", This);
154     return E_NOTIMPL;
155 }
156
157 static HRESULT WINAPI HTMLDocument5_get_onfocusout(IHTMLDocument5 *iface, VARIANT *p)
158 {
159     HTMLDocument *This = HTMLDOC5_THIS(iface);
160     FIXME("(%p)->(%p)\n", This, p);
161     return E_NOTIMPL;
162 }
163
164 static HRESULT WINAPI HTMLDocument5_put_onactivate(IHTMLDocument5 *iface, VARIANT v)
165 {
166     HTMLDocument *This = HTMLDOC5_THIS(iface);
167     FIXME("(%p)->(v)\n", This);
168     return E_NOTIMPL;
169 }
170
171 static HRESULT WINAPI HTMLDocument5_get_onactivate(IHTMLDocument5 *iface, VARIANT *p)
172 {
173     HTMLDocument *This = HTMLDOC5_THIS(iface);
174     FIXME("(%p)->(%p)\n", This, p);
175     return E_NOTIMPL;
176 }
177
178 static HRESULT WINAPI HTMLDocument5_put_ondeactivate(IHTMLDocument5 *iface, VARIANT v)
179 {
180     HTMLDocument *This = HTMLDOC5_THIS(iface);
181     FIXME("(%p)->(v)\n", This);
182     return E_NOTIMPL;
183 }
184
185 static HRESULT WINAPI HTMLDocument5_get_ondeactivate(IHTMLDocument5 *iface, VARIANT *p)
186 {
187     HTMLDocument *This = HTMLDOC5_THIS(iface);
188     FIXME("(%p)->(%p)\n", This, p);
189     return E_NOTIMPL;
190 }
191
192 static HRESULT WINAPI HTMLDocument5_put_onbeforeactivate(IHTMLDocument5 *iface, VARIANT v)
193 {
194     HTMLDocument *This = HTMLDOC5_THIS(iface);
195     FIXME("(%p)->(v)\n", This);
196     return E_NOTIMPL;
197 }
198
199 static HRESULT WINAPI HTMLDocument5_get_onbeforeactivate(IHTMLDocument5 *iface, VARIANT *p)
200 {
201     HTMLDocument *This = HTMLDOC5_THIS(iface);
202     FIXME("(%p)->(%p)\n", This, p);
203     return E_NOTIMPL;
204 }
205
206 static HRESULT WINAPI HTMLDocument5_put_onbeforedeactivate(IHTMLDocument5 *iface, VARIANT v)
207 {
208     HTMLDocument *This = HTMLDOC5_THIS(iface);
209     FIXME("(%p)->(v)\n", This);
210     return E_NOTIMPL;
211 }
212
213 static HRESULT WINAPI HTMLDocument5_get_onbeforedeactivate(IHTMLDocument5 *iface, VARIANT *p)
214 {
215     HTMLDocument *This = HTMLDOC5_THIS(iface);
216     FIXME("(%p)->(%p)\n", This, p);
217     return E_NOTIMPL;
218 }
219
220 static HRESULT WINAPI HTMLDocument5_get_compatMode(IHTMLDocument5 *iface, BSTR *p)
221 {
222     HTMLDocument *This = HTMLDOC5_THIS(iface);
223     FIXME("(%p)->(%p)\n", This, p);
224     return E_NOTIMPL;
225 }
226
227 #undef HTMLDOC5_THIS
228
229 static const IHTMLDocument5Vtbl HTMLDocument5Vtbl = {
230     HTMLDocument5_QueryInterface,
231     HTMLDocument5_AddRef,
232     HTMLDocument5_Release,
233     HTMLDocument5_GetTypeInfoCount,
234     HTMLDocument5_GetTypeInfo,
235     HTMLDocument5_GetIDsOfNames,
236     HTMLDocument5_Invoke,
237     HTMLDocument5_put_onmousewheel,
238     HTMLDocument5_get_onmousewheel,
239     HTMLDocument5_get_doctype,
240     HTMLDocument5_get_implementation,
241     HTMLDocument5_createAttribute,
242     HTMLDocument5_createComment,
243     HTMLDocument5_put_onfocusin,
244     HTMLDocument5_get_onfocusin,
245     HTMLDocument5_put_onfocusout,
246     HTMLDocument5_get_onfocusout,
247     HTMLDocument5_put_onactivate,
248     HTMLDocument5_get_onactivate,
249     HTMLDocument5_put_ondeactivate,
250     HTMLDocument5_get_ondeactivate,
251     HTMLDocument5_put_onbeforeactivate,
252     HTMLDocument5_get_onbeforeactivate,
253     HTMLDocument5_put_onbeforedeactivate,
254     HTMLDocument5_get_onbeforedeactivate,
255     HTMLDocument5_get_compatMode
256 };
257
258 void HTMLDocument_HTMLDocument5_Init(HTMLDocument *This)
259 {
260     This->lpHTMLDocument5Vtbl = &HTMLDocument5Vtbl;
261 }