2002-05-05 19:40:57 +00:00
|
|
|
/*
|
|
|
|
* Implementation of miscellaneous interfaces for IE Web Browser control:
|
|
|
|
*
|
|
|
|
* - IQuickActivate
|
|
|
|
*
|
|
|
|
* Copyright 2001 John R. Sheets (for CodeWeavers)
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "wine/debug.h"
|
|
|
|
#include "shdocvw.h"
|
|
|
|
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(shdocvw);
|
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
* Implement the IQuickActivate interface
|
|
|
|
*/
|
|
|
|
|
|
|
|
static HRESULT WINAPI WBQA_QueryInterface(LPQUICKACTIVATE iface,
|
|
|
|
REFIID riid, LPVOID *ppobj)
|
|
|
|
{
|
2005-01-27 10:43:53 +00:00
|
|
|
FIXME("- no interface\n\tIID:\t%s\n", debugstr_guid(riid));
|
2002-05-05 19:40:57 +00:00
|
|
|
|
2005-01-27 10:43:53 +00:00
|
|
|
if (ppobj == NULL) return E_POINTER;
|
|
|
|
|
2002-05-05 19:40:57 +00:00
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI WBQA_AddRef(LPQUICKACTIVATE iface)
|
|
|
|
{
|
2005-01-27 10:43:53 +00:00
|
|
|
SHDOCVW_LockModule();
|
2002-05-05 19:40:57 +00:00
|
|
|
|
2005-01-27 10:43:53 +00:00
|
|
|
return 2; /* non-heap based object */
|
2002-05-05 19:40:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
static ULONG WINAPI WBQA_Release(LPQUICKACTIVATE iface)
|
|
|
|
{
|
2005-01-27 10:43:53 +00:00
|
|
|
SHDOCVW_UnlockModule();
|
2005-01-14 16:02:20 +00:00
|
|
|
|
2005-01-27 10:43:53 +00:00
|
|
|
return 1; /* non-heap based object */
|
2002-05-05 19:40:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Alternative interface for quicker, easier activation of a control. */
|
|
|
|
static HRESULT WINAPI WBQA_QuickActivate(LPQUICKACTIVATE iface,
|
|
|
|
QACONTAINER *pQaContainer,
|
|
|
|
QACONTROL *pQaControl)
|
|
|
|
{
|
|
|
|
FIXME("stub: QACONTAINER = %p, QACONTROL = %p\n", pQaContainer, pQaControl);
|
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI WBQA_SetContentExtent(LPQUICKACTIVATE iface, LPSIZEL pSizel)
|
|
|
|
{
|
|
|
|
FIXME("stub: LPSIZEL = %p\n", pSizel);
|
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI WBQA_GetContentExtent(LPQUICKACTIVATE iface, LPSIZEL pSizel)
|
|
|
|
{
|
|
|
|
FIXME("stub: LPSIZEL = %p\n", pSizel);
|
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
* IQuickActivate virtual function table for IE Web Browser component
|
|
|
|
*/
|
|
|
|
|
2005-06-06 19:50:35 +00:00
|
|
|
static const IQuickActivateVtbl WBQA_Vtbl =
|
2002-05-05 19:40:57 +00:00
|
|
|
{
|
|
|
|
WBQA_QueryInterface,
|
|
|
|
WBQA_AddRef,
|
|
|
|
WBQA_Release,
|
|
|
|
WBQA_QuickActivate,
|
|
|
|
WBQA_SetContentExtent,
|
|
|
|
WBQA_GetContentExtent
|
|
|
|
};
|
|
|
|
|
2005-01-27 10:43:53 +00:00
|
|
|
IQuickActivateImpl SHDOCVW_QuickActivate = {&WBQA_Vtbl};
|
2005-01-19 19:06:35 +00:00
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
* OpenURL (SHDOCVW.@)
|
|
|
|
*/
|
|
|
|
void WINAPI OpenURL(HWND hWnd, HINSTANCE hInst, LPCSTR lpcstrUrl, int nShowCmd)
|
|
|
|
{
|
|
|
|
FIXME("%p %p %s %d\n", hWnd, hInst, debugstr_a(lpcstrUrl), nShowCmd);
|
|
|
|
}
|