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"
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 IWebBrowserImpl *This = (IWebBrowserImpl *)iface;
34 FIXME("(%p)->(%s,%p),stub!\n", This, debugstr_guid(riid), ppobj);
38 static ULONG WINAPI WB_AddRef(IWebBrowser *iface)
40 IWebBrowserImpl *This = (IWebBrowserImpl *)iface;
46 static ULONG WINAPI WB_Release(IWebBrowser *iface)
48 IWebBrowserImpl *This = (IWebBrowserImpl *)iface;
50 /* static class, won't be freed */
55 /* IDispatch methods */
56 static HRESULT WINAPI WB_GetTypeInfoCount(IWebBrowser *iface, UINT *pctinfo)
62 static HRESULT WINAPI WB_GetTypeInfo(IWebBrowser *iface, UINT iTInfo, LCID lcid,
69 static HRESULT WINAPI WB_GetIDsOfNames(IWebBrowser *iface, REFIID riid,
70 LPOLESTR *rgszNames, UINT cNames,
71 LCID lcid, DISPID *rgDispId)
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));
86 /* IWebBrowser methods */
87 static HRESULT WINAPI WB_GoBack(IWebBrowser *iface)
93 static HRESULT WINAPI WB_GoForward(IWebBrowser *iface)
99 static HRESULT WINAPI WB_GoHome(IWebBrowser *iface)
105 static HRESULT WINAPI WB_GoSearch(IWebBrowser *iface)
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,
120 static HRESULT WINAPI WB_Refresh(IWebBrowser *iface)
126 static HRESULT WINAPI WB_Refresh2(IWebBrowser *iface, VARIANT *Level)
128 FIXME("stub: %p\n", Level);
132 static HRESULT WINAPI WB_Stop(IWebBrowser *iface)
138 static HRESULT WINAPI WB_get_Application(IWebBrowser *iface, IDispatch **ppDisp)
144 static HRESULT WINAPI WB_get_Parent(IWebBrowser *iface, IDispatch **ppDisp)
150 static HRESULT WINAPI WB_get_Container(IWebBrowser *iface, IDispatch **ppDisp)
156 static HRESULT WINAPI WB_get_Document(IWebBrowser *iface, IDispatch **ppDisp)
162 static HRESULT WINAPI WB_get_TopLevelContainer(IWebBrowser *iface, VARIANT_BOOL *pBool)
168 static HRESULT WINAPI WB_get_Type(IWebBrowser *iface, BSTR *Type)
174 static HRESULT WINAPI WB_get_Left(IWebBrowser *iface, long *pl)
180 static HRESULT WINAPI WB_put_Left(IWebBrowser *iface, long Left)
186 static HRESULT WINAPI WB_get_Top(IWebBrowser *iface, long *pl)
192 static HRESULT WINAPI WB_put_Top(IWebBrowser *iface, long Top)
198 static HRESULT WINAPI WB_get_Width(IWebBrowser *iface, long *pl)
204 static HRESULT WINAPI WB_put_Width(IWebBrowser *iface, long Width)
210 static HRESULT WINAPI WB_get_Height(IWebBrowser *iface, long *pl)
216 static HRESULT WINAPI WB_put_Height(IWebBrowser *iface, long Height)
222 static HRESULT WINAPI WB_get_LocationName(IWebBrowser *iface, BSTR *LocationName)
228 static HRESULT WINAPI WB_get_LocationURL(IWebBrowser *iface, BSTR *LocationURL)
234 static HRESULT WINAPI WB_get_Busy(IWebBrowser *iface, VARIANT_BOOL *pBool)
240 /**********************************************************************
241 * IWebBrowser virtual function table for IE Web Browser component
244 static IWebBrowserVtbl WB_Vtbl =
265 WB_get_TopLevelContainer,
280 IWebBrowserImpl SHDOCVW_WebBrowser = { &WB_Vtbl, 1 };