Set version to 9.
[wine/wine64.git] / dlls / shdocvw / webbrowser.c
blobe37285423b92953fba443c742e8d65f4395968a3
1 /*
2 * Implementation of IWebBrowser interface for IE Web Browser control
4 * Copyright 2001 John R. Sheets (for CodeWeavers)
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 #include "wine/debug.h"
22 #include "shdocvw.h"
24 WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
26 /**********************************************************************
27 * Implement the IWebBrowser interface
30 static HRESULT WINAPI WB_QueryInterface(IWebBrowser *iface, REFIID riid, LPVOID *ppobj)
32 ICOM_THIS(IWebBrowserImpl, iface);
34 FIXME("(%p)->(%s,%p),stub!\n", This, debugstr_guid(riid), ppobj);
35 return E_NOINTERFACE;
38 static ULONG WINAPI WB_AddRef(IWebBrowser *iface)
40 ICOM_THIS(IWebBrowserImpl, iface);
42 TRACE("\n");
43 return ++(This->ref);
46 static ULONG WINAPI WB_Release(IWebBrowser *iface)
48 ICOM_THIS(IWebBrowserImpl, iface);
50 /* static class, won't be freed */
51 TRACE("\n");
52 return --(This->ref);
55 /* IDispatch methods */
56 static HRESULT WINAPI WB_GetTypeInfoCount(IWebBrowser *iface, UINT *pctinfo)
58 FIXME("stub \n");
59 return S_OK;
62 static HRESULT WINAPI WB_GetTypeInfo(IWebBrowser *iface, UINT iTInfo, LCID lcid,
63 LPTYPEINFO *ppTInfo)
65 FIXME("stub \n");
66 return S_OK;
69 static HRESULT WINAPI WB_GetIDsOfNames(IWebBrowser *iface, REFIID riid,
70 LPOLESTR *rgszNames, UINT cNames,
71 LCID lcid, DISPID *rgDispId)
73 FIXME("stub \n");
74 return S_OK;
77 static HRESULT WINAPI WB_Invoke(IWebBrowser *iface, DISPID dispIdMember,
78 REFIID riid, LCID lcid, WORD wFlags,
79 DISPPARAMS *pDispParams, VARIANT *pVarResult,
80 EXCEPINFO *pExepInfo, UINT *puArgErr)
82 FIXME("stub dispIdMember = %d, IID = %s\n", (int)dispIdMember, debugstr_guid(riid));
83 return S_OK;
86 /* IWebBrowser methods */
87 static HRESULT WINAPI WB_GoBack(IWebBrowser *iface)
89 FIXME("stub \n");
90 return S_OK;
93 static HRESULT WINAPI WB_GoForward(IWebBrowser *iface)
95 FIXME("stub \n");
96 return S_OK;
99 static HRESULT WINAPI WB_GoHome(IWebBrowser *iface)
101 FIXME("stub \n");
102 return S_OK;
105 static HRESULT WINAPI WB_GoSearch(IWebBrowser *iface)
107 FIXME("stub \n");
108 return S_OK;
111 static HRESULT WINAPI WB_Navigate(IWebBrowser *iface, BSTR URL,
112 VARIANT *Flags, VARIANT *TargetFrameName,
113 VARIANT *PostData, VARIANT *Headers)
115 FIXME("stub: URL = %p (%p, %p, %p, %p)\n", URL, Flags, TargetFrameName,
116 PostData, Headers);
117 return S_OK;
120 static HRESULT WINAPI WB_Refresh(IWebBrowser *iface)
122 FIXME("stub \n");
123 return S_OK;
126 static HRESULT WINAPI WB_Refresh2(IWebBrowser *iface, VARIANT *Level)
128 FIXME("stub: %p\n", Level);
129 return S_OK;
132 static HRESULT WINAPI WB_Stop(IWebBrowser *iface)
134 FIXME("stub \n");
135 return S_OK;
138 static HRESULT WINAPI WB_get_Application(IWebBrowser *iface, IDispatch **ppDisp)
140 FIXME("stub \n");
141 return S_OK;
144 static HRESULT WINAPI WB_get_Parent(IWebBrowser *iface, IDispatch **ppDisp)
146 FIXME("stub \n");
147 return S_OK;
150 static HRESULT WINAPI WB_get_Container(IWebBrowser *iface, IDispatch **ppDisp)
152 FIXME("stub \n");
153 return S_OK;
156 static HRESULT WINAPI WB_get_Document(IWebBrowser *iface, IDispatch **ppDisp)
158 FIXME("stub \n");
159 return S_OK;
162 static HRESULT WINAPI WB_get_TopLevelContainer(IWebBrowser *iface, VARIANT_BOOL *pBool)
164 FIXME("stub \n");
165 return S_OK;
168 static HRESULT WINAPI WB_get_Type(IWebBrowser *iface, BSTR *Type)
170 FIXME("stub \n");
171 return S_OK;
174 static HRESULT WINAPI WB_get_Left(IWebBrowser *iface, long *pl)
176 FIXME("stub \n");
177 return S_OK;
180 static HRESULT WINAPI WB_put_Left(IWebBrowser *iface, long Left)
182 FIXME("stub \n");
183 return S_OK;
186 static HRESULT WINAPI WB_get_Top(IWebBrowser *iface, long *pl)
188 FIXME("stub \n");
189 return S_OK;
192 static HRESULT WINAPI WB_put_Top(IWebBrowser *iface, long Top)
194 FIXME("stub \n");
195 return S_OK;
198 static HRESULT WINAPI WB_get_Width(IWebBrowser *iface, long *pl)
200 FIXME("stub \n");
201 return S_OK;
204 static HRESULT WINAPI WB_put_Width(IWebBrowser *iface, long Width)
206 FIXME("stub \n");
207 return S_OK;
210 static HRESULT WINAPI WB_get_Height(IWebBrowser *iface, long *pl)
212 FIXME("stub \n");
213 return S_OK;
216 static HRESULT WINAPI WB_put_Height(IWebBrowser *iface, long Height)
218 FIXME("stub \n");
219 return S_OK;
222 static HRESULT WINAPI WB_get_LocationName(IWebBrowser *iface, BSTR *LocationName)
224 FIXME("stub \n");
225 return S_OK;
228 static HRESULT WINAPI WB_get_LocationURL(IWebBrowser *iface, BSTR *LocationURL)
230 FIXME("stub \n");
231 return S_OK;
234 static HRESULT WINAPI WB_get_Busy(IWebBrowser *iface, VARIANT_BOOL *pBool)
236 FIXME("stub \n");
237 return S_OK;
240 /**********************************************************************
241 * IWebBrowser virtual function table for IE Web Browser component
244 static ICOM_VTABLE(IWebBrowser) WB_Vtbl =
246 ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
247 WB_QueryInterface,
248 WB_AddRef,
249 WB_Release,
250 WB_GetTypeInfoCount,
251 WB_GetTypeInfo,
252 WB_GetIDsOfNames,
253 WB_Invoke,
254 WB_GoBack,
255 WB_GoForward,
256 WB_GoHome,
257 WB_GoSearch,
258 WB_Navigate,
259 WB_Refresh,
260 WB_Refresh2,
261 WB_Stop,
262 WB_get_Application,
263 WB_get_Parent,
264 WB_get_Container,
265 WB_get_Document,
266 WB_get_TopLevelContainer,
267 WB_get_Type,
268 WB_get_Left,
269 WB_put_Left,
270 WB_get_Top,
271 WB_put_Top,
272 WB_get_Width,
273 WB_put_Width,
274 WB_get_Height,
275 WB_put_Height,
276 WB_get_LocationName,
277 WB_get_LocationURL,
278 WB_get_Busy
281 IWebBrowserImpl SHDOCVW_WebBrowser = { &WB_Vtbl, 1 };