2002-05-05 21:40:57 +02:00
|
|
|
/*
|
2005-09-09 12:05:40 +02:00
|
|
|
* Implementation of miscellaneous interfaces for WebBrowser control:
|
2002-05-05 21:40:57 +02:00
|
|
|
*
|
|
|
|
* - 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
|
|
|
|
*/
|
|
|
|
|
2005-09-09 12:05:40 +02:00
|
|
|
#define QUICKACT_THIS(iface) DEFINE_THIS(WebBrowser, QuickActivate, iface)
|
2002-05-05 21:40:57 +02:00
|
|
|
|
2005-09-09 12:05:40 +02:00
|
|
|
static HRESULT WINAPI QuickActivate_QueryInterface(IQuickActivate *iface,
|
|
|
|
REFIID riid, LPVOID *ppobj)
|
|
|
|
{
|
|
|
|
WebBrowser *This = QUICKACT_THIS(iface);
|
|
|
|
return IWebBrowser_QueryInterface(WEBBROWSER(This), riid, ppobj);
|
2002-05-05 21:40:57 +02:00
|
|
|
}
|
|
|
|
|
2005-09-09 12:05:40 +02:00
|
|
|
static ULONG WINAPI QuickActivate_AddRef(IQuickActivate *iface)
|
2002-05-05 21:40:57 +02:00
|
|
|
{
|
2005-09-09 12:05:40 +02:00
|
|
|
WebBrowser *This = QUICKACT_THIS(iface);
|
|
|
|
return IWebBrowser_AddRef(WEBBROWSER(This));
|
2002-05-05 21:40:57 +02:00
|
|
|
}
|
|
|
|
|
2005-09-09 12:05:40 +02:00
|
|
|
static ULONG WINAPI QuickActivate_Release(IQuickActivate *iface)
|
2002-05-05 21:40:57 +02:00
|
|
|
{
|
2005-09-09 12:05:40 +02:00
|
|
|
WebBrowser *This = QUICKACT_THIS(iface);
|
|
|
|
return IWebBrowser_Release(WEBBROWSER(This));
|
2002-05-05 21:40:57 +02:00
|
|
|
}
|
|
|
|
|
2005-09-09 12:05:40 +02:00
|
|
|
static HRESULT WINAPI QuickActivate_QuickActivate(IQuickActivate *iface,
|
|
|
|
QACONTAINER *pQaContainer, QACONTROL *pQaControl)
|
2002-05-05 21:40:57 +02:00
|
|
|
{
|
2005-09-09 12:05:40 +02:00
|
|
|
WebBrowser *This = QUICKACT_THIS(iface);
|
|
|
|
FIXME("(%p)->(%p %p)\n", This, pQaContainer, pQaControl);
|
|
|
|
return E_NOTIMPL;
|
2002-05-05 21:40:57 +02:00
|
|
|
}
|
|
|
|
|
2005-09-09 12:05:40 +02:00
|
|
|
static HRESULT WINAPI QuickActivate_SetContentExtent(IQuickActivate *iface, LPSIZEL pSizel)
|
2002-05-05 21:40:57 +02:00
|
|
|
{
|
2005-09-09 12:05:40 +02:00
|
|
|
WebBrowser *This = QUICKACT_THIS(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, pSizel);
|
|
|
|
return E_NOTIMPL;
|
2002-05-05 21:40:57 +02:00
|
|
|
}
|
|
|
|
|
2005-09-09 12:05:40 +02:00
|
|
|
static HRESULT WINAPI QuickActivate_GetContentExtent(IQuickActivate *iface, LPSIZEL pSizel)
|
2002-05-05 21:40:57 +02:00
|
|
|
{
|
2005-09-09 12:05:40 +02:00
|
|
|
WebBrowser *This = QUICKACT_THIS(iface);
|
|
|
|
FIXME("(%p)->(%p)\n", This, pSizel);
|
|
|
|
return E_NOTIMPL;
|
2002-05-05 21:40:57 +02:00
|
|
|
}
|
|
|
|
|
2005-09-09 12:05:40 +02:00
|
|
|
#undef QUICKACT_THIS
|
2002-05-05 21:40:57 +02:00
|
|
|
|
2005-09-09 12:05:40 +02:00
|
|
|
static const IQuickActivateVtbl QuickActivateVtbl =
|
2002-05-05 21:40:57 +02:00
|
|
|
{
|
2005-09-09 12:05:40 +02:00
|
|
|
QuickActivate_QueryInterface,
|
|
|
|
QuickActivate_AddRef,
|
|
|
|
QuickActivate_Release,
|
|
|
|
QuickActivate_QuickActivate,
|
|
|
|
QuickActivate_SetContentExtent,
|
|
|
|
QuickActivate_GetContentExtent
|
2002-05-05 21:40:57 +02:00
|
|
|
};
|
|
|
|
|
2005-09-09 12:05:40 +02:00
|
|
|
void WebBrowser_Misc_Init(WebBrowser *This)
|
|
|
|
{
|
|
|
|
This->lpQuickActivateVtbl = &QuickActivateVtbl;
|
|
|
|
}
|
2005-01-19 20:06:35 +01: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);
|
|
|
|
}
|