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