mshtml: Add IMarkupContainer interface stub.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Dmitry Timoshkov 2019-05-31 17:51:03 +02:00 committed by Alexandre Julliard
parent c9edd1ca73
commit c4934ac98d
3 changed files with 46 additions and 0 deletions

View File

@ -4974,6 +4974,46 @@ static const IMarkupServicesVtbl MarkupServicesVtbl = {
MarkupServices_EndUndoUnit MarkupServices_EndUndoUnit
}; };
/**********************************************************
* IMarkupContainer implementation
*/
static inline HTMLDocument *impl_from_IMarkupContainer(IMarkupContainer *iface)
{
return CONTAINING_RECORD(iface, HTMLDocument, IMarkupContainer_iface);
}
static HRESULT WINAPI MarkupContainer_QueryInterface(IMarkupContainer *iface, REFIID riid, void **ppvObject)
{
HTMLDocument *This = impl_from_IMarkupContainer(iface);
return htmldoc_query_interface(This, riid, ppvObject);
}
static ULONG WINAPI MarkupContainer_AddRef(IMarkupContainer *iface)
{
HTMLDocument *This = impl_from_IMarkupContainer(iface);
return htmldoc_addref(This);
}
static ULONG WINAPI MarkupContainer_Release(IMarkupContainer *iface)
{
HTMLDocument *This = impl_from_IMarkupContainer(iface);
return htmldoc_release(This);
}
static HRESULT WINAPI MarkupContainer_OwningDoc(IMarkupContainer *iface, IHTMLDocument2 **ppDoc)
{
HTMLDocument *This = impl_from_IMarkupContainer(iface);
FIXME("(%p)->(%p)\n", This, ppDoc);
return E_NOTIMPL;
}
static const IMarkupContainerVtbl MarkupContainerVtbl = {
MarkupContainer_QueryInterface,
MarkupContainer_AddRef,
MarkupContainer_Release,
MarkupContainer_OwningDoc
};
static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv) static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv)
{ {
*ppv = NULL; *ppv = NULL;
@ -5054,6 +5094,8 @@ static BOOL htmldoc_qi(HTMLDocument *This, REFIID riid, void **ppv)
*ppv = &This->IProvideMultipleClassInfo_iface; *ppv = &This->IProvideMultipleClassInfo_iface;
else if(IsEqualGUID(&IID_IMarkupServices, riid)) else if(IsEqualGUID(&IID_IMarkupServices, riid))
*ppv = &This->IMarkupServices_iface; *ppv = &This->IMarkupServices_iface;
else if(IsEqualGUID(&IID_IMarkupContainer, riid))
*ppv = &This->IMarkupContainer_iface;
else if(IsEqualGUID(&CLSID_CMarkup, riid)) { else if(IsEqualGUID(&CLSID_CMarkup, riid)) {
FIXME("(%p)->(CLSID_CMarkup %p)\n", This, ppv); FIXME("(%p)->(CLSID_CMarkup %p)\n", This, ppv);
*ppv = NULL; *ppv = NULL;
@ -5102,6 +5144,7 @@ static void init_doc(HTMLDocument *doc, IUnknown *outer, IDispatchEx *dispex)
doc->ISupportErrorInfo_iface.lpVtbl = &SupportErrorInfoVtbl; doc->ISupportErrorInfo_iface.lpVtbl = &SupportErrorInfoVtbl;
doc->IProvideMultipleClassInfo_iface.lpVtbl = &ProvideMultipleClassInfoVtbl; doc->IProvideMultipleClassInfo_iface.lpVtbl = &ProvideMultipleClassInfoVtbl;
doc->IMarkupServices_iface.lpVtbl = &MarkupServicesVtbl; doc->IMarkupServices_iface.lpVtbl = &MarkupServicesVtbl;
doc->IMarkupContainer_iface.lpVtbl = &MarkupContainerVtbl;
doc->outer_unk = outer; doc->outer_unk = outer;
doc->dispex = dispex; doc->dispex = dispex;

View File

@ -624,6 +624,7 @@ struct HTMLDocument {
IObjectSafety IObjectSafety_iface; IObjectSafety IObjectSafety_iface;
IProvideMultipleClassInfo IProvideMultipleClassInfo_iface; IProvideMultipleClassInfo IProvideMultipleClassInfo_iface;
IMarkupServices IMarkupServices_iface; IMarkupServices IMarkupServices_iface;
IMarkupContainer IMarkupContainer_iface;
IUnknown *outer_unk; IUnknown *outer_unk;
IDispatchEx *dispex; IDispatchEx *dispex;

View File

@ -175,6 +175,7 @@ static const IID * const doc_node_iids[] = {
&IID_IDispatchEx, &IID_IDispatchEx,
&IID_IConnectionPointContainer, &IID_IConnectionPointContainer,
&IID_IInternetHostSecurityManager, &IID_IInternetHostSecurityManager,
&IID_IMarkupContainer,
&IID_IMarkupServices, &IID_IMarkupServices,
&IID_IOleContainer, &IID_IOleContainer,
&IID_IObjectSafety, &IID_IObjectSafety,
@ -192,6 +193,7 @@ static const IID * const doc_obj_iids[] = {
&IID_IDispatchEx, &IID_IDispatchEx,
&IID_IConnectionPointContainer, &IID_IConnectionPointContainer,
&IID_ICustomDoc, &IID_ICustomDoc,
&IID_IMarkupContainer,
&IID_IMarkupServices, &IID_IMarkupServices,
&IID_IOleContainer, &IID_IOleContainer,
&IID_IObjectSafety, &IID_IObjectSafety,