1 | /*
|
---|
2 | * Implementation of miscellaneous interfaces for IE Web Browser control:
|
---|
3 | *
|
---|
4 | * - IQuickActivate
|
---|
5 | *
|
---|
6 | * 2001 John R. Sheets (for CodeWeavers)
|
---|
7 | */
|
---|
8 |
|
---|
9 | #include "debugtools.h"
|
---|
10 | #include "shdocvw.h"
|
---|
11 |
|
---|
12 | DEFAULT_DEBUG_CHANNEL(shdocvw);
|
---|
13 |
|
---|
14 | /**********************************************************************
|
---|
15 | * Implement the IQuickActivate interface
|
---|
16 | */
|
---|
17 |
|
---|
18 | static HRESULT WINAPI WBQA_QueryInterface(LPQUICKACTIVATE iface,
|
---|
19 | REFIID riid, LPVOID *ppobj)
|
---|
20 | {
|
---|
21 | ICOM_THIS(IQuickActivateImpl, iface);
|
---|
22 |
|
---|
23 | FIXME("(%p)->(%s,%p),stub!\n", This, debugstr_guid(riid), ppobj);
|
---|
24 | return E_NOINTERFACE;
|
---|
25 | }
|
---|
26 |
|
---|
27 | static ULONG WINAPI WBQA_AddRef(LPQUICKACTIVATE iface)
|
---|
28 | {
|
---|
29 | ICOM_THIS(IQuickActivateImpl, iface);
|
---|
30 |
|
---|
31 | TRACE("\n");
|
---|
32 | return ++(This->ref);
|
---|
33 | }
|
---|
34 |
|
---|
35 | static ULONG WINAPI WBQA_Release(LPQUICKACTIVATE iface)
|
---|
36 | {
|
---|
37 | ICOM_THIS(IQuickActivateImpl, iface);
|
---|
38 |
|
---|
39 | /* static class, won't be freed */
|
---|
40 | TRACE("\n");
|
---|
41 | return --(This->ref);
|
---|
42 | }
|
---|
43 |
|
---|
44 | /* Alternative interface for quicker, easier activation of a control. */
|
---|
45 | static HRESULT WINAPI WBQA_QuickActivate(LPQUICKACTIVATE iface,
|
---|
46 | QACONTAINER *pQaContainer,
|
---|
47 | QACONTROL *pQaControl)
|
---|
48 | {
|
---|
49 | FIXME("stub: QACONTAINER = %p, QACONTROL = %p\n", pQaContainer, pQaControl);
|
---|
50 | return S_OK;
|
---|
51 | }
|
---|
52 |
|
---|
53 | static HRESULT WINAPI WBQA_SetContentExtent(LPQUICKACTIVATE iface, LPSIZEL pSizel)
|
---|
54 | {
|
---|
55 | FIXME("stub: LPSIZEL = %p\n", pSizel);
|
---|
56 | return E_NOINTERFACE;
|
---|
57 | }
|
---|
58 |
|
---|
59 | static HRESULT WINAPI WBQA_GetContentExtent(LPQUICKACTIVATE iface, LPSIZEL pSizel)
|
---|
60 | {
|
---|
61 | FIXME("stub: LPSIZEL = %p\n", pSizel);
|
---|
62 | return E_NOINTERFACE;
|
---|
63 | }
|
---|
64 |
|
---|
65 | /**********************************************************************
|
---|
66 | * IQuickActivate virtual function table for IE Web Browser component
|
---|
67 | */
|
---|
68 |
|
---|
69 | static ICOM_VTABLE(IQuickActivate) WBQA_Vtbl =
|
---|
70 | {
|
---|
71 | ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
|
---|
72 | WBQA_QueryInterface,
|
---|
73 | WBQA_AddRef,
|
---|
74 | WBQA_Release,
|
---|
75 | WBQA_QuickActivate,
|
---|
76 | WBQA_SetContentExtent,
|
---|
77 | WBQA_GetContentExtent
|
---|
78 | };
|
---|
79 |
|
---|
80 | IQuickActivateImpl SHDOCVW_QuickActivate = { &WBQA_Vtbl, 1 };
|
---|