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