ReactOS 0.4.16-dev-2208-g6350669
docfrag.c File Reference
#include <stdarg.h>
#include <libxml/parser.h>
#include <libxml/xmlerror.h>
#include "windef.h"
#include "winbase.h"
#include "winuser.h"
#include "ole2.h"
#include "msxml6.h"
#include "msxml_private.h"
#include "wine/debug.h"
Include dependency graph for docfrag.c:

Go to the source code of this file.

Classes

struct  _domfrag
 

Macros

#define COBJMACROS
 

Typedefs

typedef struct _domfrag domfrag
 

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (msxml)
 
static domfragimpl_from_IXMLDOMDocumentFragment (IXMLDOMDocumentFragment *iface)
 
static HRESULT WINAPI domfrag_QueryInterface (IXMLDOMDocumentFragment *iface, REFIID riid, void **ppvObject)
 
static ULONG WINAPI domfrag_AddRef (IXMLDOMDocumentFragment *iface)
 
static ULONG WINAPI domfrag_Release (IXMLDOMDocumentFragment *iface)
 
static HRESULT WINAPI domfrag_GetTypeInfoCount (IXMLDOMDocumentFragment *iface, UINT *pctinfo)
 
static HRESULT WINAPI domfrag_GetTypeInfo (IXMLDOMDocumentFragment *iface, UINT iTInfo, LCID lcid, ITypeInfo **ppTInfo)
 
static HRESULT WINAPI domfrag_GetIDsOfNames (IXMLDOMDocumentFragment *iface, REFIID riid, LPOLESTR *rgszNames, UINT cNames, LCID lcid, DISPID *rgDispId)
 
static HRESULT WINAPI domfrag_Invoke (IXMLDOMDocumentFragment *iface, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS *pDispParams, VARIANT *pVarResult, EXCEPINFO *pExcepInfo, UINT *puArgErr)
 
static HRESULT WINAPI domfrag_get_nodeName (IXMLDOMDocumentFragment *iface, BSTR *p)
 
static HRESULT WINAPI domfrag_get_nodeValue (IXMLDOMDocumentFragment *iface, VARIANT *value)
 
static HRESULT WINAPI domfrag_put_nodeValue (IXMLDOMDocumentFragment *iface, VARIANT value)
 
static HRESULT WINAPI domfrag_get_nodeType (IXMLDOMDocumentFragment *iface, DOMNodeType *domNodeType)
 
static HRESULT WINAPI domfrag_get_parentNode (IXMLDOMDocumentFragment *iface, IXMLDOMNode **parent)
 
static HRESULT WINAPI domfrag_get_childNodes (IXMLDOMDocumentFragment *iface, IXMLDOMNodeList **outList)
 
static HRESULT WINAPI domfrag_get_firstChild (IXMLDOMDocumentFragment *iface, IXMLDOMNode **domNode)
 
static HRESULT WINAPI domfrag_get_lastChild (IXMLDOMDocumentFragment *iface, IXMLDOMNode **domNode)
 
static HRESULT WINAPI domfrag_get_previousSibling (IXMLDOMDocumentFragment *iface, IXMLDOMNode **domNode)
 
static HRESULT WINAPI domfrag_get_nextSibling (IXMLDOMDocumentFragment *iface, IXMLDOMNode **domNode)
 
static HRESULT WINAPI domfrag_get_attributes (IXMLDOMDocumentFragment *iface, IXMLDOMNamedNodeMap **attributeMap)
 
static HRESULT WINAPI domfrag_insertBefore (IXMLDOMDocumentFragment *iface, IXMLDOMNode *newNode, VARIANT refChild, IXMLDOMNode **outOldNode)
 
static HRESULT WINAPI domfrag_replaceChild (IXMLDOMDocumentFragment *iface, IXMLDOMNode *newNode, IXMLDOMNode *oldNode, IXMLDOMNode **outOldNode)
 
static HRESULT WINAPI domfrag_removeChild (IXMLDOMDocumentFragment *iface, IXMLDOMNode *child, IXMLDOMNode **oldChild)
 
static HRESULT WINAPI domfrag_appendChild (IXMLDOMDocumentFragment *iface, IXMLDOMNode *child, IXMLDOMNode **outChild)
 
static HRESULT WINAPI domfrag_hasChildNodes (IXMLDOMDocumentFragment *iface, VARIANT_BOOL *ret)
 
static HRESULT WINAPI domfrag_get_ownerDocument (IXMLDOMDocumentFragment *iface, IXMLDOMDocument **doc)
 
static HRESULT WINAPI domfrag_cloneNode (IXMLDOMDocumentFragment *iface, VARIANT_BOOL deep, IXMLDOMNode **outNode)
 
static HRESULT WINAPI domfrag_get_nodeTypeString (IXMLDOMDocumentFragment *iface, BSTR *p)
 
static HRESULT WINAPI domfrag_get_text (IXMLDOMDocumentFragment *iface, BSTR *p)
 
static HRESULT WINAPI domfrag_put_text (IXMLDOMDocumentFragment *iface, BSTR p)
 
static HRESULT WINAPI domfrag_get_specified (IXMLDOMDocumentFragment *iface, VARIANT_BOOL *isSpecified)
 
static HRESULT WINAPI domfrag_get_definition (IXMLDOMDocumentFragment *iface, IXMLDOMNode **definitionNode)
 
static HRESULT WINAPI domfrag_get_nodeTypedValue (IXMLDOMDocumentFragment *iface, VARIANT *v)
 
static HRESULT WINAPI domfrag_put_nodeTypedValue (IXMLDOMDocumentFragment *iface, VARIANT typedValue)
 
static HRESULT WINAPI domfrag_get_dataType (IXMLDOMDocumentFragment *iface, VARIANT *typename)
 
static HRESULT WINAPI domfrag_put_dataType (IXMLDOMDocumentFragment *iface, BSTR p)
 
static HRESULT WINAPI domfrag_get_xml (IXMLDOMDocumentFragment *iface, BSTR *p)
 
static HRESULT WINAPI domfrag_transformNode (IXMLDOMDocumentFragment *iface, IXMLDOMNode *node, BSTR *p)
 
static HRESULT WINAPI domfrag_selectNodes (IXMLDOMDocumentFragment *iface, BSTR p, IXMLDOMNodeList **outList)
 
static HRESULT WINAPI domfrag_selectSingleNode (IXMLDOMDocumentFragment *iface, BSTR p, IXMLDOMNode **outNode)
 
static HRESULT WINAPI domfrag_get_parsed (IXMLDOMDocumentFragment *iface, VARIANT_BOOL *isParsed)
 
static HRESULT WINAPI domfrag_get_namespaceURI (IXMLDOMDocumentFragment *iface, BSTR *p)
 
static HRESULT WINAPI domfrag_get_prefix (IXMLDOMDocumentFragment *iface, BSTR *prefix)
 
static HRESULT WINAPI domfrag_get_baseName (IXMLDOMDocumentFragment *iface, BSTR *name)
 
static HRESULT WINAPI domfrag_transformNodeToObject (IXMLDOMDocumentFragment *iface, IXMLDOMNode *domNode, VARIANT var1)
 
IUnknowncreate_doc_fragment (xmlNodePtr fragment)
 

Variables

static const tid_t domfrag_se_tids []
 
static const struct IXMLDOMDocumentFragmentVtbl domfrag_vtbl
 
static const tid_t domfrag_iface_tids []
 
static dispex_static_data_t domfrag_dispex
 

Macro Definition Documentation

◆ COBJMACROS

#define COBJMACROS

Definition at line 21 of file docfrag.c.

Typedef Documentation

◆ domfrag

Function Documentation

◆ create_doc_fragment()

IUnknown * create_doc_fragment ( xmlNodePtr  fragment)

Definition at line 580 of file docfrag.c.

581{
582 domfrag *This;
583
584 This = malloc(sizeof(*This));
585 if ( !This )
586 return NULL;
587
588 This->IXMLDOMDocumentFragment_iface.lpVtbl = &domfrag_vtbl;
589 This->ref = 1;
590
591 init_xmlnode(&This->node, fragment, (IXMLDOMNode*)&This->IXMLDOMDocumentFragment_iface, &domfrag_dispex);
592
593 return (IUnknown*)&This->IXMLDOMDocumentFragment_iface;
594}
#define malloc
Definition: debug_ros.c:4
#define NULL
Definition: types.h:112
static const struct IXMLDOMDocumentFragmentVtbl domfrag_vtbl
Definition: docfrag.c:521
static dispex_static_data_t domfrag_dispex
Definition: docfrag.c:573
void init_xmlnode(xmlnode *, xmlNodePtr, IXMLDOMNode *, dispex_static_data_t *)
Definition: node.c:1647

Referenced by create_node().

◆ domfrag_AddRef()

static ULONG WINAPI domfrag_AddRef ( IXMLDOMDocumentFragment iface)
static

Definition at line 91 of file docfrag.c.

92{
95 TRACE("%p, refcount %lu.\n", iface, ref);
96 return ref;
97}
#define InterlockedIncrement
Definition: armddk.h:53
static domfrag * impl_from_IXMLDOMDocumentFragment(IXMLDOMDocumentFragment *iface)
Definition: docfrag.c:52
#define TRACE(s)
Definition: solgame.cpp:4
LONG ref
Definition: docfrag.c:43
Definition: send.c:48
uint32_t ULONG
Definition: typedefs.h:59

◆ domfrag_appendChild()

static HRESULT WINAPI domfrag_appendChild ( IXMLDOMDocumentFragment iface,
IXMLDOMNode child,
IXMLDOMNode **  outChild 
)
static

Definition at line 311 of file docfrag.c.

314{
316 TRACE("(%p)->(%p %p)\n", This, child, outChild);
317 return node_append_child(&This->node, child, outChild);
318}
static HWND child
Definition: cursoricon.c:298
HRESULT node_append_child(xmlnode *, IXMLDOMNode *, IXMLDOMNode **)
Definition: node.c:639

◆ domfrag_cloneNode()

static HRESULT WINAPI domfrag_cloneNode ( IXMLDOMDocumentFragment iface,
VARIANT_BOOL  deep,
IXMLDOMNode **  outNode 
)
static

Definition at line 338 of file docfrag.c.

341{
343 TRACE("(%p)->(%d %p)\n", This, deep, outNode);
344 return node_clone( &This->node, deep, outNode );
345}
HRESULT node_clone(xmlnode *, VARIANT_BOOL, IXMLDOMNode **)
Definition: node.c:679

◆ domfrag_get_attributes()

static HRESULT WINAPI domfrag_get_attributes ( IXMLDOMDocumentFragment iface,
IXMLDOMNamedNodeMap **  attributeMap 
)
static

Definition at line 264 of file docfrag.c.

267{
269
270 TRACE("(%p)->(%p)\n", This, attributeMap);
271
272 return return_null_ptr((void**)attributeMap);
273}
static HRESULT return_null_ptr(void **p)

◆ domfrag_get_baseName()

static HRESULT WINAPI domfrag_get_baseName ( IXMLDOMDocumentFragment iface,
BSTR name 
)
static

Definition at line 503 of file docfrag.c.

506{
508 FIXME("(%p)->(%p): needs test\n", This, name);
509 return return_null_bstr( name );
510}
#define FIXME(fmt,...)
Definition: precomp.h:53
static HRESULT return_null_bstr(BSTR *p)
Definition: name.c:39

◆ domfrag_get_childNodes()

static HRESULT WINAPI domfrag_get_childNodes ( IXMLDOMDocumentFragment iface,
IXMLDOMNodeList **  outList 
)
static

Definition at line 209 of file docfrag.c.

212{
214
215 TRACE("(%p)->(%p)\n", This, outList);
216
217 return node_get_child_nodes(&This->node, outList);
218}
HRESULT node_get_child_nodes(xmlnode *, IXMLDOMNodeList **)
Definition: node.c:353

◆ domfrag_get_dataType()

static HRESULT WINAPI domfrag_get_dataType ( IXMLDOMDocumentFragment iface,
VARIANT typename 
)
static

Definition at line 414 of file docfrag.c.

417{
419 TRACE("(%p)->(%p)\n", This, typename);
420 return return_null_var( typename );
421}
static HRESULT return_null_var(VARIANT *p)

◆ domfrag_get_definition()

static HRESULT WINAPI domfrag_get_definition ( IXMLDOMDocumentFragment iface,
IXMLDOMNode **  definitionNode 
)
static

Definition at line 387 of file docfrag.c.

390{
392 FIXME("(%p)->(%p)\n", This, definitionNode);
393 return E_NOTIMPL;
394}
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ domfrag_get_firstChild()

static HRESULT WINAPI domfrag_get_firstChild ( IXMLDOMDocumentFragment iface,
IXMLDOMNode **  domNode 
)
static

Definition at line 220 of file docfrag.c.

223{
225
226 TRACE("(%p)->(%p)\n", This, domNode);
227
228 return node_get_first_child(&This->node, domNode);
229}
HRESULT node_get_first_child(xmlnode *, IXMLDOMNode **)
Definition: node.c:365

◆ domfrag_get_lastChild()

static HRESULT WINAPI domfrag_get_lastChild ( IXMLDOMDocumentFragment iface,
IXMLDOMNode **  domNode 
)
static

Definition at line 231 of file docfrag.c.

234{
236
237 TRACE("(%p)->(%p)\n", This, domNode);
238
239 return node_get_last_child(&This->node, domNode);
240}
HRESULT node_get_last_child(xmlnode *, IXMLDOMNode **)
Definition: node.c:370

◆ domfrag_get_namespaceURI()

static HRESULT WINAPI domfrag_get_namespaceURI ( IXMLDOMDocumentFragment iface,
BSTR p 
)
static

Definition at line 485 of file docfrag.c.

488{
490 TRACE("(%p)->(%p)\n", This, p);
491 return node_get_namespaceURI(&This->node, p);
492}
GLfloat GLfloat p
Definition: glext.h:8902
HRESULT node_get_namespaceURI(xmlnode *, BSTR *)
Definition: node.c:1589

◆ domfrag_get_nextSibling()

static HRESULT WINAPI domfrag_get_nextSibling ( IXMLDOMDocumentFragment iface,
IXMLDOMNode **  domNode 
)
static

Definition at line 253 of file docfrag.c.

256{
258
259 TRACE("(%p)->(%p)\n", This, domNode);
260
261 return return_null_node(domNode);
262}
static HRESULT return_null_node(IXMLDOMNode **p)

◆ domfrag_get_nodeName()

static HRESULT WINAPI domfrag_get_nodeName ( IXMLDOMDocumentFragment iface,
BSTR p 
)
static

Definition at line 154 of file docfrag.c.

157{
159
160 static const WCHAR document_fragmentW[] =
161 {'#','d','o','c','u','m','e','n','t','-','f','r','a','g','m','e','n','t',0};
162
163 TRACE("(%p)->(%p)\n", This, p);
164
165 return return_bstr(document_fragmentW, p);
166}
static HRESULT return_bstr(const WCHAR *value, BSTR *p)
Definition: msxml_dispex.h:115
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ domfrag_get_nodeType()

static HRESULT WINAPI domfrag_get_nodeType ( IXMLDOMDocumentFragment iface,
DOMNodeType domNodeType 
)
static

Definition at line 186 of file docfrag.c.

189{
191
192 TRACE("(%p)->(%p)\n", This, domNodeType);
193
194 *domNodeType = NODE_DOCUMENT_FRAGMENT;
195 return S_OK;
196}
#define S_OK
Definition: intsafe.h:52
@ NODE_DOCUMENT_FRAGMENT
Definition: msxml6.idl:123

◆ domfrag_get_nodeTypedValue()

static HRESULT WINAPI domfrag_get_nodeTypedValue ( IXMLDOMDocumentFragment iface,
VARIANT v 
)
static

Definition at line 396 of file docfrag.c.

399{
401 TRACE("(%p)->(%p)\n", This, v);
402 return return_null_var(v);
403}
const GLdouble * v
Definition: gl.h:2040

◆ domfrag_get_nodeTypeString()

static HRESULT WINAPI domfrag_get_nodeTypeString ( IXMLDOMDocumentFragment iface,
BSTR p 
)
static

Definition at line 347 of file docfrag.c.

350{
352 static const WCHAR documentfragmentW[] = {'d','o','c','u','m','e','n','t','f','r','a','g','m','e','n','t',0};
353
354 TRACE("(%p)->(%p)\n", This, p);
355
356 return return_bstr(documentfragmentW, p);
357}

◆ domfrag_get_nodeValue()

static HRESULT WINAPI domfrag_get_nodeValue ( IXMLDOMDocumentFragment iface,
VARIANT value 
)
static

Definition at line 168 of file docfrag.c.

171{
173 TRACE("(%p)->(%p)\n", This, value);
174 return return_null_var(value);
175}
Definition: pdh_main.c:96

◆ domfrag_get_ownerDocument()

static HRESULT WINAPI domfrag_get_ownerDocument ( IXMLDOMDocumentFragment iface,
IXMLDOMDocument **  doc 
)
static

Definition at line 329 of file docfrag.c.

332{
334 TRACE("(%p)->(%p)\n", This, doc);
335 return node_get_owner_doc(&This->node, doc);
336}
HRESULT node_get_owner_doc(const xmlnode *, IXMLDOMDocument **)
Definition: node.c:672

◆ domfrag_get_parentNode()

static HRESULT WINAPI domfrag_get_parentNode ( IXMLDOMDocumentFragment iface,
IXMLDOMNode **  parent 
)
static

Definition at line 198 of file docfrag.c.

201{
203
204 TRACE("(%p)->(%p)\n", This, parent);
205
206 return node_get_parent(&This->node, parent);
207}
r parent
Definition: btrfs.c:3010
HRESULT node_get_parent(xmlnode *, IXMLDOMNode **)
Definition: node.c:348

◆ domfrag_get_parsed()

static HRESULT WINAPI domfrag_get_parsed ( IXMLDOMDocumentFragment iface,
VARIANT_BOOL isParsed 
)
static

Definition at line 475 of file docfrag.c.

478{
480 FIXME("(%p)->(%p) stub!\n", This, isParsed);
481 *isParsed = VARIANT_TRUE;
482 return S_OK;
483}

◆ domfrag_get_prefix()

static HRESULT WINAPI domfrag_get_prefix ( IXMLDOMDocumentFragment iface,
BSTR prefix 
)
static

Definition at line 494 of file docfrag.c.

497{
499 TRACE("(%p)->(%p)\n", This, prefix);
500 return return_null_bstr( prefix );
501}
Character const *const prefix
Definition: tempnam.cpp:195

◆ domfrag_get_previousSibling()

static HRESULT WINAPI domfrag_get_previousSibling ( IXMLDOMDocumentFragment iface,
IXMLDOMNode **  domNode 
)
static

Definition at line 242 of file docfrag.c.

245{
247
248 TRACE("(%p)->(%p)\n", This, domNode);
249
250 return return_null_node(domNode);
251}

◆ domfrag_get_specified()

static HRESULT WINAPI domfrag_get_specified ( IXMLDOMDocumentFragment iface,
VARIANT_BOOL isSpecified 
)
static

Definition at line 377 of file docfrag.c.

380{
382 FIXME("(%p)->(%p) stub!\n", This, isSpecified);
383 *isSpecified = VARIANT_TRUE;
384 return S_OK;
385}

◆ domfrag_get_text()

static HRESULT WINAPI domfrag_get_text ( IXMLDOMDocumentFragment iface,
BSTR p 
)
static

Definition at line 359 of file docfrag.c.

362{
364 TRACE("(%p)->(%p)\n", This, p);
365 return node_get_text(&This->node, p);
366}
HRESULT node_get_text(const xmlnode *, BSTR *)
Definition: node.c:842

◆ domfrag_get_xml()

static HRESULT WINAPI domfrag_get_xml ( IXMLDOMDocumentFragment iface,
BSTR p 
)
static

Definition at line 437 of file docfrag.c.

440{
442
443 TRACE("(%p)->(%p)\n", This, p);
444
445 return node_get_xml(&This->node, FALSE, p);
446}
#define FALSE
Definition: types.h:117
HRESULT node_get_xml(xmlnode *, BOOL, BSTR *)
Definition: node.c:936

◆ domfrag_GetIDsOfNames()

static HRESULT WINAPI domfrag_GetIDsOfNames ( IXMLDOMDocumentFragment iface,
REFIID  riid,
LPOLESTR rgszNames,
UINT  cNames,
LCID  lcid,
DISPID rgDispId 
)
static

Definition at line 133 of file docfrag.c.

137{
139 return IDispatchEx_GetIDsOfNames(&This->node.dispex.IDispatchEx_iface,
140 riid, rgszNames, cNames, lcid, rgDispId);
141}
LCID lcid
Definition: locale.c:5656
REFIID riid
Definition: atlbase.h:39

◆ domfrag_GetTypeInfo()

static HRESULT WINAPI domfrag_GetTypeInfo ( IXMLDOMDocumentFragment iface,
UINT  iTInfo,
LCID  lcid,
ITypeInfo **  ppTInfo 
)
static

Definition at line 123 of file docfrag.c.

127{
129 return IDispatchEx_GetTypeInfo(&This->node.dispex.IDispatchEx_iface,
130 iTInfo, lcid, ppTInfo);
131}

◆ domfrag_GetTypeInfoCount()

static HRESULT WINAPI domfrag_GetTypeInfoCount ( IXMLDOMDocumentFragment iface,
UINT pctinfo 
)
static

Definition at line 115 of file docfrag.c.

118{
120 return IDispatchEx_GetTypeInfoCount(&This->node.dispex.IDispatchEx_iface, pctinfo);
121}

◆ domfrag_hasChildNodes()

static HRESULT WINAPI domfrag_hasChildNodes ( IXMLDOMDocumentFragment iface,
VARIANT_BOOL ret 
)
static

Definition at line 320 of file docfrag.c.

323{
325 TRACE("(%p)->(%p)\n", This, ret);
326 return node_has_childnodes(&This->node, ret);
327}
return ret
Definition: mutex.c:146
HRESULT node_has_childnodes(const xmlnode *, VARIANT_BOOL *)
Definition: node.c:658

◆ domfrag_insertBefore()

static HRESULT WINAPI domfrag_insertBefore ( IXMLDOMDocumentFragment iface,
IXMLDOMNode newNode,
VARIANT  refChild,
IXMLDOMNode **  outOldNode 
)
static

Definition at line 275 of file docfrag.c.

279{
281
282 TRACE("(%p)->(%p %s %p)\n", This, newNode, debugstr_variant(&refChild), outOldNode);
283
284 /* TODO: test */
285 return node_insert_before(&This->node, newNode, &refChild, outOldNode);
286}
static const char * debugstr_variant(const VARIANT *var)
Definition: container.c:46
HRESULT node_insert_before(xmlnode *, IXMLDOMNode *, const VARIANT *, IXMLDOMNode **)
Definition: node.c:432

◆ domfrag_Invoke()

static HRESULT WINAPI domfrag_Invoke ( IXMLDOMDocumentFragment iface,
DISPID  dispIdMember,
REFIID  riid,
LCID  lcid,
WORD  wFlags,
DISPPARAMS *  pDispParams,
VARIANT pVarResult,
EXCEPINFO *  pExcepInfo,
UINT puArgErr 
)
static

Definition at line 143 of file docfrag.c.

148{
150 return IDispatchEx_Invoke(&This->node.dispex.IDispatchEx_iface,
151 dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
152}
WINBASEAPI _In_ DWORD _Out_ _In_ WORD wFlags
Definition: wincon_undoc.h:337

◆ domfrag_put_dataType()

static HRESULT WINAPI domfrag_put_dataType ( IXMLDOMDocumentFragment iface,
BSTR  p 
)
static

Definition at line 423 of file docfrag.c.

426{
428
429 TRACE("(%p)->(%s)\n", This, debugstr_w(p));
430
431 if(!p)
432 return E_INVALIDARG;
433
434 return E_FAIL;
435}
#define E_INVALIDARG
Definition: ddrawi.h:101
#define E_FAIL
Definition: ddrawi.h:102
#define debugstr_w
Definition: kernel32.h:32

◆ domfrag_put_nodeTypedValue()

static HRESULT WINAPI domfrag_put_nodeTypedValue ( IXMLDOMDocumentFragment iface,
VARIANT  typedValue 
)
static

Definition at line 405 of file docfrag.c.

408{
410 FIXME("(%p)->(%s)\n", This, debugstr_variant(&typedValue));
411 return E_NOTIMPL;
412}

◆ domfrag_put_nodeValue()

static HRESULT WINAPI domfrag_put_nodeValue ( IXMLDOMDocumentFragment iface,
VARIANT  value 
)
static

Definition at line 177 of file docfrag.c.

180{
182 TRACE("(%p)->(%s)\n", This, debugstr_variant(&value));
183 return E_FAIL;
184}

◆ domfrag_put_text()

static HRESULT WINAPI domfrag_put_text ( IXMLDOMDocumentFragment iface,
BSTR  p 
)
static

Definition at line 368 of file docfrag.c.

371{
373 TRACE("(%p)->(%s)\n", This, debugstr_w(p));
374 return node_put_text( &This->node, p );
375}
HRESULT node_put_text(xmlnode *, BSTR)
Definition: node.c:867

◆ domfrag_QueryInterface()

static HRESULT WINAPI domfrag_QueryInterface ( IXMLDOMDocumentFragment iface,
REFIID  riid,
void **  ppvObject 
)
static

Definition at line 57 of file docfrag.c.

61{
63 TRACE("(%p)->(%s %p)\n", This, debugstr_guid(riid), ppvObject);
64
65 if ( IsEqualGUID( riid, &IID_IXMLDOMDocumentFragment ) ||
66 IsEqualGUID( riid, &IID_IXMLDOMNode ) ||
69 {
70 *ppvObject = iface;
71 }
72 else if(node_query_interface(&This->node, riid, ppvObject))
73 {
74 return *ppvObject ? S_OK : E_NOINTERFACE;
75 }
76 else if(IsEqualGUID( riid, &IID_ISupportErrorInfo ))
77 {
79 }
80 else
81 {
82 TRACE("Unsupported interface %s\n", debugstr_guid(riid));
83 *ppvObject = NULL;
84 return E_NOINTERFACE;
85 }
86
87 IXMLDOMDocumentFragment_AddRef(iface);
88 return S_OK;
89}
const GUID IID_IUnknown
static const tid_t domfrag_se_tids[]
Definition: docfrag.c:46
#define debugstr_guid
Definition: kernel32.h:35
BOOL node_query_interface(xmlnode *, REFIID, void **)
Definition: node.c:66
HRESULT node_create_supporterrorinfo(const tid_t *, void **)
const GUID IID_IDispatch
#define IsEqualGUID(rguid1, rguid2)
Definition: guiddef.h:147
#define E_NOINTERFACE
Definition: winerror.h:3479

◆ domfrag_Release()

static ULONG WINAPI domfrag_Release ( IXMLDOMDocumentFragment iface)
static

Definition at line 99 of file docfrag.c.

100{
103
104 TRACE("%p, refcount %lu.\n", iface, ref);
105
106 if (!ref)
107 {
109 free(domfrag);
110 }
111
112 return ref;
113}
#define InterlockedDecrement
Definition: armddk.h:52
#define free
Definition: debug_ros.c:5
void destroy_xmlnode(xmlnode *)
Definition: node.c:1638
xmlnode node
Definition: docfrag.c:41

◆ domfrag_removeChild()

static HRESULT WINAPI domfrag_removeChild ( IXMLDOMDocumentFragment iface,
IXMLDOMNode child,
IXMLDOMNode **  oldChild 
)
static

Definition at line 302 of file docfrag.c.

305{
307 TRACE("(%p)->(%p %p)\n", This, child, oldChild);
308 return node_remove_child(&This->node, child, oldChild);
309}
HRESULT node_remove_child(xmlnode *, IXMLDOMNode *, IXMLDOMNode **)
Definition: node.c:608

◆ domfrag_replaceChild()

static HRESULT WINAPI domfrag_replaceChild ( IXMLDOMDocumentFragment iface,
IXMLDOMNode newNode,
IXMLDOMNode oldNode,
IXMLDOMNode **  outOldNode 
)
static

Definition at line 288 of file docfrag.c.

293{
295
296 TRACE("(%p)->(%p %p %p)\n", This, newNode, oldNode, outOldNode);
297
298 /* TODO: test */
299 return node_replace_child(&This->node, newNode, oldNode, outOldNode);
300}
HRESULT node_replace_child(xmlnode *, IXMLDOMNode *, IXMLDOMNode *, IXMLDOMNode **)
Definition: node.c:543

◆ domfrag_selectNodes()

static HRESULT WINAPI domfrag_selectNodes ( IXMLDOMDocumentFragment iface,
BSTR  p,
IXMLDOMNodeList **  outList 
)
static

Definition at line 457 of file docfrag.c.

460{
462 TRACE("(%p)->(%s %p)\n", This, debugstr_w(p), outList);
463 return node_select_nodes(&This->node, p, outList);
464}
HRESULT node_select_nodes(const xmlnode *, BSTR, IXMLDOMNodeList **)
Definition: node.c:1558

◆ domfrag_selectSingleNode()

static HRESULT WINAPI domfrag_selectSingleNode ( IXMLDOMDocumentFragment iface,
BSTR  p,
IXMLDOMNode **  outNode 
)
static

Definition at line 466 of file docfrag.c.

469{
471 TRACE("(%p)->(%s %p)\n", This, debugstr_w(p), outNode);
472 return node_select_singlenode(&This->node, p, outNode);
473}
HRESULT node_select_singlenode(const xmlnode *, BSTR, IXMLDOMNode **)
Definition: node.c:1572

◆ domfrag_transformNode()

static HRESULT WINAPI domfrag_transformNode ( IXMLDOMDocumentFragment iface,
IXMLDOMNode node,
BSTR p 
)
static

Definition at line 448 of file docfrag.c.

451{
453 TRACE("(%p)->(%p %p)\n", This, node, p);
454 return node_transform_node(&This->node, node, p);
455}
HRESULT node_transform_node(const xmlnode *, IXMLDOMNode *, BSTR *)
Definition: node.c:1553
Definition: dlist.c:348

◆ domfrag_transformNodeToObject()

static HRESULT WINAPI domfrag_transformNodeToObject ( IXMLDOMDocumentFragment iface,
IXMLDOMNode domNode,
VARIANT  var1 
)
static

Definition at line 512 of file docfrag.c.

515{
517 FIXME("(%p)->(%p %s)\n", This, domNode, debugstr_variant(&var1));
518 return E_NOTIMPL;
519}

◆ impl_from_IXMLDOMDocumentFragment()

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( msxml  )

Variable Documentation

◆ domfrag_dispex

dispex_static_data_t domfrag_dispex
static
Initial value:
= {
}
static const tid_t domfrag_iface_tids[]
Definition: docfrag.c:568
@ IXMLDOMDocumentFragment_tid
Definition: msxml_dispex.h:45

Definition at line 573 of file docfrag.c.

Referenced by create_doc_fragment().

◆ domfrag_iface_tids

const tid_t domfrag_iface_tids[]
static
Initial value:

Definition at line 568 of file docfrag.c.

◆ domfrag_se_tids

const tid_t domfrag_se_tids[]
static
Initial value:

Definition at line 46 of file docfrag.c.

Referenced by domfrag_QueryInterface().

◆ domfrag_vtbl

const struct IXMLDOMDocumentFragmentVtbl domfrag_vtbl
static

Definition at line 521 of file docfrag.c.

Referenced by create_doc_fragment().