mshtml: Added IObjectWithSite stubs.
This commit is contained in:
parent
bffa74a1c3
commit
17bec80f71
|
@ -1748,6 +1748,9 @@ static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv)
|
||||||
}else if(IsEqualGUID(&IID_IMarshal, riid)) {
|
}else if(IsEqualGUID(&IID_IMarshal, riid)) {
|
||||||
TRACE("(%p)->(IID_IMarshal %p) returning NULL\n", This, ppv);
|
TRACE("(%p)->(IID_IMarshal %p) returning NULL\n", This, ppv);
|
||||||
*ppv = NULL;
|
*ppv = NULL;
|
||||||
|
}else if(IsEqualGUID(&IID_IObjectWithSite, riid)) {
|
||||||
|
TRACE("(%p)->(IID_IObjectWithSite %p)\n", This, ppv);
|
||||||
|
*ppv = OBJSITE(This);
|
||||||
}else {
|
}else {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
|
@ -323,6 +323,7 @@ struct HTMLDocument {
|
||||||
const IPersistStreamInitVtbl *lpPersistStreamInitVtbl;
|
const IPersistStreamInitVtbl *lpPersistStreamInitVtbl;
|
||||||
const IDispatchExVtbl *lpIDispatchExVtbl;
|
const IDispatchExVtbl *lpIDispatchExVtbl;
|
||||||
const ISupportErrorInfoVtbl *lpSupportErrorInfoVtbl;
|
const ISupportErrorInfoVtbl *lpSupportErrorInfoVtbl;
|
||||||
|
const IObjectWithSiteVtbl *lpObjectWithSiteVtbl;
|
||||||
|
|
||||||
IUnknown *unk_impl;
|
IUnknown *unk_impl;
|
||||||
IDispatchEx *dispex;
|
IDispatchEx *dispex;
|
||||||
|
@ -577,6 +578,7 @@ struct HTMLDocumentNode {
|
||||||
#define PERSTRINIT(x) ((IPersistStreamInit*) &(x)->lpPersistStreamInitVtbl)
|
#define PERSTRINIT(x) ((IPersistStreamInit*) &(x)->lpPersistStreamInitVtbl)
|
||||||
#define PERSISTHIST(x) ((IPersistHistory*) &(x)->lpPersistHistoryVtbl)
|
#define PERSISTHIST(x) ((IPersistHistory*) &(x)->lpPersistHistoryVtbl)
|
||||||
#define CUSTOMDOC(x) ((ICustomDoc*) &(x)->lpCustomDocVtbl)
|
#define CUSTOMDOC(x) ((ICustomDoc*) &(x)->lpCustomDocVtbl)
|
||||||
|
#define OBJSITE(x) ((IObjectWithSite*) &(x)->lpObjectWithSiteVtbl)
|
||||||
|
|
||||||
#define NSWBCHROME(x) ((nsIWebBrowserChrome*) &(x)->lpWebBrowserChromeVtbl)
|
#define NSWBCHROME(x) ((nsIWebBrowserChrome*) &(x)->lpWebBrowserChromeVtbl)
|
||||||
#define NSCML(x) ((nsIContextMenuListener*) &(x)->lpContextMenuListenerVtbl)
|
#define NSCML(x) ((nsIContextMenuListener*) &(x)->lpContextMenuListenerVtbl)
|
||||||
|
|
|
@ -732,6 +732,54 @@ static const IOleControlVtbl OleControlVtbl = {
|
||||||
OleControl_FreezeEvents
|
OleControl_FreezeEvents
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**********************************************************
|
||||||
|
* IObjectWithSite implementation
|
||||||
|
*/
|
||||||
|
|
||||||
|
#define OBJSITE_THIS(iface) DEFINE_THIS(HTMLDocument, ObjectWithSite, iface)
|
||||||
|
|
||||||
|
static HRESULT WINAPI ObjectWithSite_QueryInterface(IObjectWithSite *iface, REFIID riid, void **ppvObject)
|
||||||
|
{
|
||||||
|
HTMLDocument *This = OBJSITE_THIS(iface);
|
||||||
|
return IHTMLDocument2_QueryInterface(HTMLDOC(This), riid, ppvObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
static ULONG WINAPI ObjectWithSite_AddRef(IObjectWithSite *iface)
|
||||||
|
{
|
||||||
|
HTMLDocument *This = OBJSITE_THIS(iface);
|
||||||
|
return IHTMLDocument2_AddRef(HTMLDOC(This));
|
||||||
|
}
|
||||||
|
|
||||||
|
static ULONG WINAPI ObjectWithSite_Release(IObjectWithSite *iface)
|
||||||
|
{
|
||||||
|
HTMLDocument *This = OBJSITE_THIS(iface);
|
||||||
|
return IHTMLDocument2_Release(HTMLDOC(This));
|
||||||
|
}
|
||||||
|
|
||||||
|
static HRESULT WINAPI ObjectWithSite_SetSite(IObjectWithSite *iface, IUnknown *pUnkSite)
|
||||||
|
{
|
||||||
|
HTMLDocument *This = OBJSITE_THIS(iface);
|
||||||
|
FIXME("(%p)->(%p)\n", This, pUnkSite);
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
|
static HRESULT WINAPI ObjectWithSite_GetSite(IObjectWithSite* iface, REFIID riid, PVOID *ppvSite)
|
||||||
|
{
|
||||||
|
HTMLDocument *This = OBJSITE_THIS(iface);
|
||||||
|
FIXME("(%p)->(%p)\n", This, ppvSite);
|
||||||
|
return E_NOTIMPL;
|
||||||
|
}
|
||||||
|
|
||||||
|
#undef OBJSITE_THIS
|
||||||
|
|
||||||
|
static const IObjectWithSiteVtbl ObjectWithSiteVtbl = {
|
||||||
|
ObjectWithSite_QueryInterface,
|
||||||
|
ObjectWithSite_AddRef,
|
||||||
|
ObjectWithSite_Release,
|
||||||
|
ObjectWithSite_SetSite,
|
||||||
|
ObjectWithSite_GetSite
|
||||||
|
};
|
||||||
|
|
||||||
void HTMLDocument_LockContainer(HTMLDocumentObj *This, BOOL fLock)
|
void HTMLDocument_LockContainer(HTMLDocumentObj *This, BOOL fLock)
|
||||||
{
|
{
|
||||||
IOleContainer *container;
|
IOleContainer *container;
|
||||||
|
@ -753,4 +801,5 @@ void HTMLDocument_OleObj_Init(HTMLDocument *This)
|
||||||
This->lpOleObjectVtbl = &OleObjectVtbl;
|
This->lpOleObjectVtbl = &OleObjectVtbl;
|
||||||
This->lpOleDocumentVtbl = &OleDocumentVtbl;
|
This->lpOleDocumentVtbl = &OleDocumentVtbl;
|
||||||
This->lpOleControlVtbl = &OleControlVtbl;
|
This->lpOleControlVtbl = &OleControlVtbl;
|
||||||
|
This->lpObjectWithSiteVtbl = &ObjectWithSiteVtbl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue