* Implement <autoregister>
[reactos.git] / reactos / lib / shdocvw / misc.c
1 /*
2 * Implementation of miscellaneous interfaces for WebBrowser control:
3 *
4 * - IQuickActivate
5 *
6 * Copyright 2001 John R. Sheets (for CodeWeavers)
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23 #include "wine/debug.h"
24 #include "shdocvw.h"
25
26 WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
27
28 /**********************************************************************
29 * Implement the IQuickActivate interface
30 */
31
32 #define QUICKACT_THIS(iface) DEFINE_THIS(WebBrowser, QuickActivate, iface)
33
34 static HRESULT WINAPI QuickActivate_QueryInterface(IQuickActivate *iface,
35 REFIID riid, LPVOID *ppobj)
36 {
37 WebBrowser *This = QUICKACT_THIS(iface);
38 return IWebBrowser_QueryInterface(WEBBROWSER(This), riid, ppobj);
39 }
40
41 static ULONG WINAPI QuickActivate_AddRef(IQuickActivate *iface)
42 {
43 WebBrowser *This = QUICKACT_THIS(iface);
44 return IWebBrowser_AddRef(WEBBROWSER(This));
45 }
46
47 static ULONG WINAPI QuickActivate_Release(IQuickActivate *iface)
48 {
49 WebBrowser *This = QUICKACT_THIS(iface);
50 return IWebBrowser_Release(WEBBROWSER(This));
51 }
52
53 static HRESULT WINAPI QuickActivate_QuickActivate(IQuickActivate *iface,
54 QACONTAINER *pQaContainer, QACONTROL *pQaControl)
55 {
56 WebBrowser *This = QUICKACT_THIS(iface);
57 FIXME("(%p)->(%p %p)\n", This, pQaContainer, pQaControl);
58 return E_NOTIMPL;
59 }
60
61 static HRESULT WINAPI QuickActivate_SetContentExtent(IQuickActivate *iface, LPSIZEL pSizel)
62 {
63 WebBrowser *This = QUICKACT_THIS(iface);
64 FIXME("(%p)->(%p)\n", This, pSizel);
65 return E_NOTIMPL;
66 }
67
68 static HRESULT WINAPI QuickActivate_GetContentExtent(IQuickActivate *iface, LPSIZEL pSizel)
69 {
70 WebBrowser *This = QUICKACT_THIS(iface);
71 FIXME("(%p)->(%p)\n", This, pSizel);
72 return E_NOTIMPL;
73 }
74
75 #undef QUICKACT_THIS
76
77 static const IQuickActivateVtbl QuickActivateVtbl =
78 {
79 QuickActivate_QueryInterface,
80 QuickActivate_AddRef,
81 QuickActivate_Release,
82 QuickActivate_QuickActivate,
83 QuickActivate_SetContentExtent,
84 QuickActivate_GetContentExtent
85 };
86
87 void WebBrowser_Misc_Init(WebBrowser *This)
88 {
89 This->lpQuickActivateVtbl = &QuickActivateVtbl;
90 }
91
92 /**********************************************************************
93 * OpenURL (SHDOCVW.@)
94 */
95 void WINAPI OpenURL(HWND hWnd, HINSTANCE hInst, LPCSTR lpcstrUrl, int nShowCmd)
96 {
97 FIXME("%p %p %s %d\n", hWnd, hInst, debugstr_a(lpcstrUrl), nShowCmd);
98 }