msxml3: Implemented IDispatch for IXMLDOMEntityReference.

This commit is contained in:
Alistair Leslie-Hughes 2008-02-19 12:20:45 +11:00 committed by Alexandre Julliard
parent fb08f209e1
commit b0783a3d94

View File

@ -106,8 +106,12 @@ static HRESULT WINAPI entityref_GetTypeInfoCount(
IXMLDOMEntityReference *iface, IXMLDOMEntityReference *iface,
UINT* pctinfo ) UINT* pctinfo )
{ {
FIXME("\n"); entityref *This = impl_from_IXMLDOMEntityReference( iface );
return E_NOTIMPL; TRACE("(%p)->(%p)\n", This, pctinfo);
*pctinfo = 1;
return S_OK;
} }
static HRESULT WINAPI entityref_GetTypeInfo( static HRESULT WINAPI entityref_GetTypeInfo(
@ -115,8 +119,14 @@ static HRESULT WINAPI entityref_GetTypeInfo(
UINT iTInfo, LCID lcid, UINT iTInfo, LCID lcid,
ITypeInfo** ppTInfo ) ITypeInfo** ppTInfo )
{ {
FIXME("\n"); entityref *This = impl_from_IXMLDOMEntityReference( iface );
return E_NOTIMPL; HRESULT hr;
TRACE("(%p)->(%u %u %p)\n", This, iTInfo, lcid, ppTInfo);
hr = get_typeinfo(IXMLDOMEntityReference_tid, ppTInfo);
return hr;
} }
static HRESULT WINAPI entityref_GetIDsOfNames( static HRESULT WINAPI entityref_GetIDsOfNames(
@ -124,8 +134,24 @@ static HRESULT WINAPI entityref_GetIDsOfNames(
REFIID riid, LPOLESTR* rgszNames, REFIID riid, LPOLESTR* rgszNames,
UINT cNames, LCID lcid, DISPID* rgDispId ) UINT cNames, LCID lcid, DISPID* rgDispId )
{ {
FIXME("\n"); entityref *This = impl_from_IXMLDOMEntityReference( iface );
return E_NOTIMPL; ITypeInfo *typeinfo;
HRESULT hr;
TRACE("(%p)->(%s %p %u %u %p)\n", This, debugstr_guid(riid), rgszNames, cNames,
lcid, rgDispId);
if(!rgszNames || cNames == 0 || !rgDispId)
return E_INVALIDARG;
hr = get_typeinfo(IXMLDOMEntityReference_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_GetIDsOfNames(typeinfo, rgszNames, cNames, rgDispId);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI entityref_Invoke( static HRESULT WINAPI entityref_Invoke(
@ -134,8 +160,22 @@ static HRESULT WINAPI entityref_Invoke(
WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarResult, WORD wFlags, DISPPARAMS* pDispParams, VARIANT* pVarResult,
EXCEPINFO* pExcepInfo, UINT* puArgErr ) EXCEPINFO* pExcepInfo, UINT* puArgErr )
{ {
FIXME("\n"); entityref *This = impl_from_IXMLDOMEntityReference( iface );
return E_NOTIMPL; ITypeInfo *typeinfo;
HRESULT hr;
TRACE("(%p)->(%d %s %d %d %p %p %p %p)\n", This, dispIdMember, debugstr_guid(riid),
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(IXMLDOMEntityReference_tid, &typeinfo);
if(SUCCEEDED(hr))
{
hr = ITypeInfo_Invoke(typeinfo, &(This->lpVtbl), dispIdMember, wFlags, pDispParams,
pVarResult, pExcepInfo, puArgErr);
ITypeInfo_Release(typeinfo);
}
return hr;
} }
static HRESULT WINAPI entityref_get_nodeName( static HRESULT WINAPI entityref_get_nodeName(