msxml3: Get rid of ::get_baseName() forward.
This commit is contained in:
parent
6556ad57f3
commit
1e998bfc3f
|
@ -506,10 +506,11 @@ static HRESULT WINAPI domattr_get_prefix(
|
||||||
|
|
||||||
static HRESULT WINAPI domattr_get_baseName(
|
static HRESULT WINAPI domattr_get_baseName(
|
||||||
IXMLDOMAttribute *iface,
|
IXMLDOMAttribute *iface,
|
||||||
BSTR* p)
|
BSTR* name)
|
||||||
{
|
{
|
||||||
domattr *This = impl_from_IXMLDOMAttribute( iface );
|
domattr *This = impl_from_IXMLDOMAttribute( iface );
|
||||||
return IXMLDOMNode_get_baseName( IXMLDOMNode_from_impl(&This->node), p );
|
TRACE("(%p)->(%p)\n", This, name);
|
||||||
|
return node_get_base_name( &This->node, name );
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI domattr_transformNodeToObject(
|
static HRESULT WINAPI domattr_transformNodeToObject(
|
||||||
|
|
|
@ -517,10 +517,11 @@ static HRESULT WINAPI domcdata_get_prefix(
|
||||||
|
|
||||||
static HRESULT WINAPI domcdata_get_baseName(
|
static HRESULT WINAPI domcdata_get_baseName(
|
||||||
IXMLDOMCDATASection *iface,
|
IXMLDOMCDATASection *iface,
|
||||||
BSTR* p)
|
BSTR* name)
|
||||||
{
|
{
|
||||||
domcdata *This = impl_from_IXMLDOMCDATASection( iface );
|
domcdata *This = impl_from_IXMLDOMCDATASection( iface );
|
||||||
return IXMLDOMNode_get_baseName( IXMLDOMNode_from_impl(&This->node), p );
|
FIXME("(%p)->(%p): needs test\n", This, name);
|
||||||
|
return return_null_bstr( name );
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI domcdata_transformNodeToObject(
|
static HRESULT WINAPI domcdata_transformNodeToObject(
|
||||||
|
|
|
@ -510,10 +510,11 @@ static HRESULT WINAPI domcomment_get_prefix(
|
||||||
|
|
||||||
static HRESULT WINAPI domcomment_get_baseName(
|
static HRESULT WINAPI domcomment_get_baseName(
|
||||||
IXMLDOMComment *iface,
|
IXMLDOMComment *iface,
|
||||||
BSTR* p)
|
BSTR* name)
|
||||||
{
|
{
|
||||||
domcomment *This = impl_from_IXMLDOMComment( iface );
|
domcomment *This = impl_from_IXMLDOMComment( iface );
|
||||||
return IXMLDOMNode_get_baseName( IXMLDOMNode_from_impl(&This->node), p );
|
TRACE("(%p)->(%p)\n", This, name);
|
||||||
|
return return_null_bstr( name );
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI domcomment_transformNodeToObject(
|
static HRESULT WINAPI domcomment_transformNodeToObject(
|
||||||
|
|
|
@ -514,10 +514,11 @@ static HRESULT WINAPI domfrag_get_prefix(
|
||||||
|
|
||||||
static HRESULT WINAPI domfrag_get_baseName(
|
static HRESULT WINAPI domfrag_get_baseName(
|
||||||
IXMLDOMDocumentFragment *iface,
|
IXMLDOMDocumentFragment *iface,
|
||||||
BSTR* p)
|
BSTR* name)
|
||||||
{
|
{
|
||||||
domfrag *This = impl_from_IXMLDOMDocumentFragment( iface );
|
domfrag *This = impl_from_IXMLDOMDocumentFragment( iface );
|
||||||
return IXMLDOMNode_get_baseName( IXMLDOMNode_from_impl(&This->node), p );
|
FIXME("(%p)->(%p): needs test\n", This, name);
|
||||||
|
return return_null_bstr( name );
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI domfrag_transformNodeToObject(
|
static HRESULT WINAPI domfrag_transformNodeToObject(
|
||||||
|
|
|
@ -1341,10 +1341,11 @@ static HRESULT WINAPI domdoc_get_prefix(
|
||||||
|
|
||||||
static HRESULT WINAPI domdoc_get_baseName(
|
static HRESULT WINAPI domdoc_get_baseName(
|
||||||
IXMLDOMDocument3 *iface,
|
IXMLDOMDocument3 *iface,
|
||||||
BSTR* nameString )
|
BSTR* name )
|
||||||
{
|
{
|
||||||
domdoc *This = impl_from_IXMLDOMDocument3( iface );
|
domdoc *This = impl_from_IXMLDOMDocument3( iface );
|
||||||
return IXMLDOMNode_get_baseName( IXMLDOMNode_from_impl(&This->node), nameString );
|
TRACE("(%p)->(%p)\n", This, name);
|
||||||
|
return return_null_bstr( name );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -562,10 +562,11 @@ static HRESULT WINAPI domelem_get_prefix(
|
||||||
|
|
||||||
static HRESULT WINAPI domelem_get_baseName(
|
static HRESULT WINAPI domelem_get_baseName(
|
||||||
IXMLDOMElement *iface,
|
IXMLDOMElement *iface,
|
||||||
BSTR* p)
|
BSTR* name)
|
||||||
{
|
{
|
||||||
domelem *This = impl_from_IXMLDOMElement( iface );
|
domelem *This = impl_from_IXMLDOMElement( iface );
|
||||||
return IXMLDOMNode_get_baseName( IXMLDOMNode_from_impl(&This->node), p );
|
TRACE("(%p)->(%p)\n", This, name);
|
||||||
|
return node_get_base_name( &This->node, name );
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI domelem_transformNodeToObject(
|
static HRESULT WINAPI domelem_transformNodeToObject(
|
||||||
|
|
|
@ -508,10 +508,11 @@ static HRESULT WINAPI entityref_get_prefix(
|
||||||
|
|
||||||
static HRESULT WINAPI entityref_get_baseName(
|
static HRESULT WINAPI entityref_get_baseName(
|
||||||
IXMLDOMEntityReference *iface,
|
IXMLDOMEntityReference *iface,
|
||||||
BSTR* p)
|
BSTR* name)
|
||||||
{
|
{
|
||||||
entityref *This = impl_from_IXMLDOMEntityReference( iface );
|
entityref *This = impl_from_IXMLDOMEntityReference( iface );
|
||||||
return IXMLDOMNode_get_baseName( IXMLDOMNode_from_impl(&This->node), p );
|
FIXME("(%p)->(%p): needs test\n", This, name);
|
||||||
|
return return_null_bstr( name );
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI entityref_transformNodeToObject(
|
static HRESULT WINAPI entityref_transformNodeToObject(
|
||||||
|
|
|
@ -194,6 +194,7 @@ extern HRESULT node_put_text(xmlnode*,BSTR);
|
||||||
extern HRESULT node_get_xml(xmlnode*,BOOL,BOOL,BSTR*);
|
extern HRESULT node_get_xml(xmlnode*,BOOL,BOOL,BSTR*);
|
||||||
extern HRESULT node_clone(xmlnode*,VARIANT_BOOL,IXMLDOMNode**);
|
extern HRESULT node_clone(xmlnode*,VARIANT_BOOL,IXMLDOMNode**);
|
||||||
extern HRESULT node_get_prefix(xmlnode*,BSTR*);
|
extern HRESULT node_get_prefix(xmlnode*,BSTR*);
|
||||||
|
extern HRESULT node_get_base_name(xmlnode*,BSTR*);
|
||||||
|
|
||||||
extern HRESULT DOMDocument_create_from_xmldoc(xmlDocPtr xmldoc, IXMLDOMDocument3 **document);
|
extern HRESULT DOMDocument_create_from_xmldoc(xmlDocPtr xmldoc, IXMLDOMDocument3 **document);
|
||||||
|
|
||||||
|
|
|
@ -1170,40 +1170,16 @@ HRESULT node_get_prefix(xmlnode *This, BSTR *prefix)
|
||||||
return *prefix ? S_OK : S_FALSE;
|
return *prefix ? S_OK : S_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI xmlnode_get_baseName(
|
HRESULT node_get_base_name(xmlnode *This, BSTR *name)
|
||||||
IXMLDOMNode *iface,
|
|
||||||
BSTR* nameString)
|
|
||||||
{
|
{
|
||||||
xmlnode *This = impl_from_IXMLDOMNode( iface );
|
if (!name) return E_INVALIDARG;
|
||||||
BSTR str = NULL;
|
|
||||||
HRESULT r = S_FALSE;
|
|
||||||
|
|
||||||
TRACE("(%p)->(%p)\n", This, nameString );
|
*name = bstr_from_xmlChar(This->node->name);
|
||||||
|
if (!*name) return E_OUTOFMEMORY;
|
||||||
|
|
||||||
if ( !nameString )
|
TRACE("returning %s\n", debugstr_w(*name));
|
||||||
return E_INVALIDARG;
|
|
||||||
|
|
||||||
switch ( This->node->type )
|
return S_OK;
|
||||||
{
|
|
||||||
case XML_ELEMENT_NODE:
|
|
||||||
case XML_ATTRIBUTE_NODE:
|
|
||||||
case XML_PI_NODE:
|
|
||||||
str = bstr_from_xmlChar( This->node->name );
|
|
||||||
r = S_OK;
|
|
||||||
break;
|
|
||||||
case XML_TEXT_NODE:
|
|
||||||
case XML_COMMENT_NODE:
|
|
||||||
case XML_DOCUMENT_NODE:
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
ERR("Unhandled type %d\n", This->node->type );
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
TRACE("returning %08x str = %s\n", r, debugstr_w( str ) );
|
|
||||||
|
|
||||||
*nameString = str;
|
|
||||||
return r;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI xmlnode_transformNodeToObject(
|
static HRESULT WINAPI xmlnode_transformNodeToObject(
|
||||||
|
@ -1259,7 +1235,7 @@ static const struct IXMLDOMNodeVtbl xmlnode_vtbl =
|
||||||
NULL,
|
NULL,
|
||||||
xmlnode_get_namespaceURI,
|
xmlnode_get_namespaceURI,
|
||||||
NULL,
|
NULL,
|
||||||
xmlnode_get_baseName,
|
NULL,
|
||||||
xmlnode_transformNodeToObject,
|
xmlnode_transformNodeToObject,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -524,10 +524,11 @@ static HRESULT WINAPI dom_pi_get_prefix(
|
||||||
|
|
||||||
static HRESULT WINAPI dom_pi_get_baseName(
|
static HRESULT WINAPI dom_pi_get_baseName(
|
||||||
IXMLDOMProcessingInstruction *iface,
|
IXMLDOMProcessingInstruction *iface,
|
||||||
BSTR* p)
|
BSTR* name)
|
||||||
{
|
{
|
||||||
dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
|
dom_pi *This = impl_from_IXMLDOMProcessingInstruction( iface );
|
||||||
return IXMLDOMNode_get_baseName( IXMLDOMNode_from_impl(&This->node), p );
|
TRACE("(%p)->(%p)\n", This, name);
|
||||||
|
return node_get_base_name( &This->node, name );
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI dom_pi_transformNodeToObject(
|
static HRESULT WINAPI dom_pi_transformNodeToObject(
|
||||||
|
|
|
@ -523,10 +523,11 @@ static HRESULT WINAPI domtext_get_prefix(
|
||||||
|
|
||||||
static HRESULT WINAPI domtext_get_baseName(
|
static HRESULT WINAPI domtext_get_baseName(
|
||||||
IXMLDOMText *iface,
|
IXMLDOMText *iface,
|
||||||
BSTR* p)
|
BSTR* name)
|
||||||
{
|
{
|
||||||
domtext *This = impl_from_IXMLDOMText( iface );
|
domtext *This = impl_from_IXMLDOMText( iface );
|
||||||
return IXMLDOMNode_get_baseName( IXMLDOMNode_from_impl(&This->node), p );
|
TRACE("(%p)->(%p)\n", This, name);
|
||||||
|
return return_null_bstr( name );
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI domtext_transformNodeToObject(
|
static HRESULT WINAPI domtext_transformNodeToObject(
|
||||||
|
|
Loading…
Reference in New Issue