static HRESULT WINAPI domattr_get_parentNode( IXMLDOMAttribute *iface, IXMLDOMNode** parent ) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_get_parentNode( This->node, parent ); }
static HRESULT WINAPI domattr_put_dataType( IXMLDOMAttribute *iface, BSTR p) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_put_dataType( This->node, p ); }
static HRESULT WINAPI domattr_transformNode( IXMLDOMAttribute *iface, IXMLDOMNode* domNode, BSTR* p) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_transformNode( This->node, domNode, p ); }
static HRESULT WINAPI domattr_insertBefore( IXMLDOMAttribute *iface, IXMLDOMNode* newNode, VARIANT refChild, IXMLDOMNode** old_node) { domattr *This = impl_from_IXMLDOMAttribute( iface ); DOMNodeType type; HRESULT hr; FIXME("(%p)->(%p %s %p) needs test\n", This, newNode, debugstr_variant(&refChild), old_node); if (!newNode) return E_INVALIDARG; hr = IXMLDOMNode_get_nodeType(newNode, &type); if (hr != S_OK) return hr; TRACE("new node type %d\n", type); switch (type) { case NODE_ATTRIBUTE: case NODE_CDATA_SECTION: case NODE_COMMENT: case NODE_ELEMENT: case NODE_PROCESSING_INSTRUCTION: if (old_node) *old_node = NULL; return E_FAIL; default: return node_insert_before(&This->node, newNode, &refChild, old_node); } }
static HRESULT WINAPI domattr_get_dataType( IXMLDOMAttribute *iface, VARIANT* var1) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_get_dataType( This->node, var1 ); }
static HRESULT WINAPI domattr_get_baseName( IXMLDOMAttribute *iface, BSTR* p) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_get_baseName( This->node, p ); }
static HRESULT WINAPI domattr_QueryInterface( IXMLDOMAttribute *iface, REFIID riid, void** ppvObject ) { domattr *This = impl_from_IXMLDOMAttribute( iface ); TRACE("%p %s %p\n", This, debugstr_guid(riid), ppvObject); if ( IsEqualGUID( riid, &IID_IXMLDOMAttribute ) || IsEqualGUID( riid, &IID_IUnknown ) ) { *ppvObject = iface; } else if ( IsEqualGUID( riid, &IID_IDispatch ) || IsEqualGUID( riid, &IID_IXMLDOMNode ) ) { return IUnknown_QueryInterface(This->node_unk, riid, ppvObject); } else { FIXME("Unsupported inteferace %s\n", debugstr_guid(riid)); return E_NOINTERFACE; } IXMLDOMAttribute_AddRef( iface ); return S_OK; }
static HRESULT WINAPI domattr_hasChildNodes( IXMLDOMAttribute *iface, VARIANT_BOOL* pbool) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_hasChildNodes( This->node, pbool ); }
static HRESULT WINAPI domattr_get_ownerDocument( IXMLDOMAttribute *iface, IXMLDOMDocument** domDocument) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_get_ownerDocument( This->node, domDocument ); }
static HRESULT WINAPI domattr_removeChild( IXMLDOMAttribute *iface, IXMLDOMNode* domNode, IXMLDOMNode** oldNode) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_removeChild( This->node, domNode, oldNode ); }
static HRESULT WINAPI domattr_appendChild( IXMLDOMAttribute *iface, IXMLDOMNode* newNode, IXMLDOMNode** outNewNode) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_appendChild( This->node, newNode, outNewNode ); }
static HRESULT WINAPI domattr_get_attributes( IXMLDOMAttribute *iface, IXMLDOMNamedNodeMap** attributeMap) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_get_attributes( This->node, attributeMap ); }
static HRESULT WINAPI domattr_get_previousSibling( IXMLDOMAttribute *iface, IXMLDOMNode** domNode) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_get_previousSibling( This->node, domNode ); }
static HRESULT WINAPI domattr_get_childNodes( IXMLDOMAttribute *iface, IXMLDOMNodeList** outList) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_get_childNodes( This->node, outList ); }
static HRESULT WINAPI domattr_selectSingleNode( IXMLDOMAttribute *iface, BSTR p, IXMLDOMNode** outNode) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_selectSingleNode( This->node, p, outNode ); }
static HRESULT WINAPI domattr_cloneNode( IXMLDOMAttribute *iface, VARIANT_BOOL pbool, IXMLDOMNode** outNode) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_cloneNode( This->node, pbool, outNode ); }
static HRESULT WINAPI domattr_get_parsed( IXMLDOMAttribute *iface, VARIANT_BOOL* pbool) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_get_parsed( This->node, pbool ); }
static HRESULT WINAPI domattr_get_definition( IXMLDOMAttribute *iface, IXMLDOMNode** domNode) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_get_definition( This->node, domNode ); }
static HRESULT WINAPI domattr_transformNodeToObject( IXMLDOMAttribute *iface, IXMLDOMNode* domNode, VARIANT var1) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_transformNodeToObject( This->node, domNode, var1 ); }
static HRESULT WINAPI domattr_put_nodeTypedValue( IXMLDOMAttribute *iface, VARIANT var1) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_put_nodeTypedValue( This->node, var1 ); }
static HRESULT WINAPI domattr_GetTypeInfoCount( IXMLDOMAttribute *iface, UINT* pctinfo ) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IDispatchEx_GetTypeInfoCount(&This->node.dispex.IDispatchEx_iface, pctinfo); }
static HRESULT WINAPI domattr_selectNodes( IXMLDOMAttribute *iface, BSTR p, IXMLDOMNodeList** outList) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_selectNodes( This->node, p, outList ); }
static HRESULT WINAPI domattr_get_nodeType( IXMLDOMAttribute *iface, DOMNodeType* domNodeType ) { domattr *This = impl_from_IXMLDOMAttribute( iface ); return IXMLDOMNode_get_nodeType( This->node, domNodeType ); }
static HRESULT WINAPI domattr_QueryInterface( IXMLDOMAttribute *iface, REFIID riid, void** ppvObject ) { domattr *This = impl_from_IXMLDOMAttribute( iface ); TRACE("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppvObject); if ( IsEqualGUID( riid, &IID_IXMLDOMAttribute ) || IsEqualGUID( riid, &IID_IXMLDOMNode ) || IsEqualGUID( riid, &IID_IDispatch ) || IsEqualGUID( riid, &IID_IUnknown ) ) { *ppvObject = iface; } else if(node_query_interface(&This->node, riid, ppvObject)) { return *ppvObject ? S_OK : E_NOINTERFACE; } else if(IsEqualGUID( riid, &IID_ISupportErrorInfo )) { return node_create_supporterrorinfo(domattr_se_tids, ppvObject); } else { TRACE("Unsupported interface %s\n", debugstr_guid(riid)); *ppvObject = NULL; return E_NOINTERFACE; } IXMLDOMAttribute_AddRef(iface); return S_OK; }
static ULONG WINAPI domattr_AddRef( IXMLDOMAttribute *iface ) { domattr *This = impl_from_IXMLDOMAttribute( iface ); ULONG ref = InterlockedIncrement( &This->ref ); TRACE("(%p)->(%d)\n", This, ref); return ref; }
static HRESULT WINAPI domattr_put_nodeTypedValue( IXMLDOMAttribute *iface, VARIANT typedValue) { domattr *This = impl_from_IXMLDOMAttribute( iface ); FIXME("(%p)->(%s)\n", This, debugstr_variant(&typedValue)); return E_NOTIMPL; }
static HRESULT WINAPI domattr_get_definition( IXMLDOMAttribute *iface, IXMLDOMNode** definitionNode) { domattr *This = impl_from_IXMLDOMAttribute( iface ); FIXME("(%p)->(%p)\n", This, definitionNode); return E_NOTIMPL; }
static HRESULT WINAPI domattr_put_text( IXMLDOMAttribute *iface, BSTR p) { domattr *This = impl_from_IXMLDOMAttribute( iface ); TRACE("(%p)->(%s)\n", This, debugstr_w(p)); return node_put_text( &This->node, p ); }
static HRESULT WINAPI domattr_get_text( IXMLDOMAttribute *iface, BSTR* p) { domattr *This = impl_from_IXMLDOMAttribute( iface ); TRACE("(%p)->(%p)\n", This, p); return node_get_text(&This->node, p); }
static HRESULT WINAPI domattr_cloneNode( IXMLDOMAttribute *iface, VARIANT_BOOL deep, IXMLDOMNode** outNode) { domattr *This = impl_from_IXMLDOMAttribute( iface ); TRACE("(%p)->(%d %p)\n", This, deep, outNode); return node_clone( &This->node, deep, outNode ); }