Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0670d092
Commit
0670d092
authored
Sep 04, 2010
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Added node_query_inerface function for common xmlnode child objects implementation.
parent
f5348b25
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
42 additions
and
2 deletions
+42
-2
attribute.c
dlls/msxml3/attribute.c
+4
-0
cdata.c
dlls/msxml3/cdata.c
+4
-0
comment.c
dlls/msxml3/comment.c
+4
-0
docfrag.c
dlls/msxml3/docfrag.c
+4
-0
domdoc.c
dlls/msxml3/domdoc.c
+1
-1
element.c
dlls/msxml3/element.c
+1
-1
entityref.c
dlls/msxml3/entityref.c
+4
-0
msxml_private.h
dlls/msxml3/msxml_private.h
+1
-0
node.c
dlls/msxml3/node.c
+11
-0
pi.c
dlls/msxml3/pi.c
+4
-0
text.c
dlls/msxml3/text.c
+4
-0
No files found.
dlls/msxml3/attribute.c
View file @
0670d092
...
...
@@ -67,6 +67,10 @@ static HRESULT WINAPI domattr_QueryInterface(
{
*
ppvObject
=
IXMLDOMNode_from_impl
(
&
This
->
node
);
}
else
if
(
node_query_interface
(
&
This
->
node
,
riid
,
ppvObject
))
{
return
*
ppvObject
?
S_OK
:
E_NOINTERFACE
;
}
else
{
FIXME
(
"Unsupported interface %s
\n
"
,
debugstr_guid
(
riid
));
...
...
dlls/msxml3/cdata.c
View file @
0670d092
...
...
@@ -74,6 +74,10 @@ static HRESULT WINAPI domcdata_QueryInterface(
TRACE
(
"Unsupported interface
\n
"
);
return
E_NOINTERFACE
;
}
else
if
(
node_query_interface
(
&
This
->
node
,
riid
,
ppvObject
))
{
return
*
ppvObject
?
S_OK
:
E_NOINTERFACE
;
}
else
{
FIXME
(
"Unsupported interface %s
\n
"
,
debugstr_guid
(
riid
));
...
...
dlls/msxml3/comment.c
View file @
0670d092
...
...
@@ -68,6 +68,10 @@ static HRESULT WINAPI domcomment_QueryInterface(
{
*
ppvObject
=
IXMLDOMNode_from_impl
(
&
This
->
node
);
}
else
if
(
node_query_interface
(
&
This
->
node
,
riid
,
ppvObject
))
{
return
*
ppvObject
?
S_OK
:
E_NOINTERFACE
;
}
else
{
FIXME
(
"Unsupported interface %s
\n
"
,
debugstr_guid
(
riid
));
...
...
dlls/msxml3/docfrag.c
View file @
0670d092
...
...
@@ -67,6 +67,10 @@ static HRESULT WINAPI domfrag_QueryInterface(
{
*
ppvObject
=
IXMLDOMNode_from_impl
(
&
This
->
node
);
}
else
if
(
node_query_interface
(
&
This
->
node
,
riid
,
ppvObject
))
{
return
*
ppvObject
?
S_OK
:
E_NOINTERFACE
;
}
else
{
FIXME
(
"Unsupported interface %s
\n
"
,
debugstr_guid
(
riid
));
...
...
dlls/msxml3/domdoc.c
View file @
0670d092
...
...
@@ -545,7 +545,7 @@ static HRESULT WINAPI domdoc_QueryInterface( IXMLDOMDocument3 *iface, REFIID rii
{
*
ppvObject
=
&
This
->
lpvtblISupportErrorInfo
;
}
else
if
(
dispex_query_interface
(
&
This
->
node
.
dispex
,
riid
,
ppvObject
))
else
if
(
node_query_interface
(
&
This
->
node
,
riid
,
ppvObject
))
{
return
*
ppvObject
?
S_OK
:
E_NOINTERFACE
;
}
...
...
dlls/msxml3/element.c
View file @
0670d092
...
...
@@ -74,7 +74,7 @@ static HRESULT WINAPI domelem_QueryInterface(
{
*
ppvObject
=
IXMLDOMNode_from_impl
(
&
This
->
node
);
}
else
if
(
dispex_query_interface
(
&
This
->
node
.
dispex
,
riid
,
ppvObject
))
else
if
(
node_query_interface
(
&
This
->
node
,
riid
,
ppvObject
))
{
return
*
ppvObject
?
S_OK
:
E_NOINTERFACE
;
}
...
...
dlls/msxml3/entityref.c
View file @
0670d092
...
...
@@ -67,6 +67,10 @@ static HRESULT WINAPI entityref_QueryInterface(
{
*
ppvObject
=
IXMLDOMNode_from_impl
(
&
This
->
node
);
}
else
if
(
node_query_interface
(
&
This
->
node
,
riid
,
ppvObject
))
{
return
*
ppvObject
?
S_OK
:
E_NOINTERFACE
;
}
else
{
FIXME
(
"Unsupported interface %s
\n
"
,
debugstr_guid
(
riid
));
...
...
dlls/msxml3/msxml_private.h
View file @
0670d092
...
...
@@ -162,6 +162,7 @@ static inline IXMLDOMNode *IXMLDOMNode_from_impl(xmlnode *This)
extern
void
init_xmlnode
(
xmlnode
*
,
xmlNodePtr
,
IXMLDOMNode
*
,
dispex_static_data_t
*
);
extern
void
destroy_xmlnode
(
xmlnode
*
);
extern
BOOL
node_query_interface
(
xmlnode
*
,
REFIID
,
void
**
);
extern
HRESULT
DOMDocument_create_from_xmldoc
(
xmlDocPtr
xmldoc
,
IXMLDOMDocument3
**
document
);
...
...
dlls/msxml3/node.c
View file @
0670d092
...
...
@@ -80,6 +80,13 @@ xmlNodePtr xmlNodePtr_from_domnode( IXMLDOMNode *iface, xmlElementType type )
return
This
->
node
;
}
BOOL
node_query_interface
(
xmlnode
*
This
,
REFIID
riid
,
void
**
ppv
)
{
if
(
This
->
dispex
.
outer
)
return
dispex_query_interface
(
&
This
->
dispex
,
riid
,
ppv
);
return
FALSE
;
}
static
HRESULT
WINAPI
xmlnode_QueryInterface
(
IXMLDOMNode
*
iface
,
REFIID
riid
,
...
...
@@ -97,6 +104,8 @@ static HRESULT WINAPI xmlnode_QueryInterface(
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IDispatch
)
||
IsEqualGUID
(
riid
,
&
IID_IXMLDOMNode
))
{
*
ppvObject
=
&
This
->
lpVtbl
;
}
else
if
(
node_query_interface
(
This
,
riid
,
ppvObject
))
{
return
*
ppvObject
?
S_OK
:
E_NOINTERFACE
;
}
else
{
FIXME
(
"interface %s not implemented
\n
"
,
debugstr_guid
(
riid
));
*
ppvObject
=
NULL
;
...
...
@@ -1725,6 +1734,8 @@ void init_xmlnode(xmlnode *This, xmlNodePtr node, IXMLDOMNode *node_iface, dispe
if
(
dispex_data
)
init_dispex
(
&
This
->
dispex
,
(
IUnknown
*
)
This
->
iface
,
dispex_data
);
else
This
->
dispex
.
outer
=
NULL
;
}
IXMLDOMNode
*
create_node
(
xmlNodePtr
node
)
...
...
dlls/msxml3/pi.c
View file @
0670d092
...
...
@@ -67,6 +67,10 @@ static HRESULT WINAPI dom_pi_QueryInterface(
{
*
ppvObject
=
IXMLDOMNode_from_impl
(
&
This
->
node
);
}
else
if
(
node_query_interface
(
&
This
->
node
,
riid
,
ppvObject
))
{
return
*
ppvObject
?
S_OK
:
E_NOINTERFACE
;
}
else
{
FIXME
(
"Unsupported interface %s
\n
"
,
debugstr_guid
(
riid
));
...
...
dlls/msxml3/text.c
View file @
0670d092
...
...
@@ -69,6 +69,10 @@ static HRESULT WINAPI domtext_QueryInterface(
{
*
ppvObject
=
IXMLDOMNode_from_impl
(
&
This
->
node
);
}
else
if
(
node_query_interface
(
&
This
->
node
,
riid
,
ppvObject
))
{
return
*
ppvObject
?
S_OK
:
E_NOINTERFACE
;
}
else
if
(
IsEqualGUID
(
riid
,
&
IID_IXMLDOMElement
)
||
IsEqualGUID
(
riid
,
&
IID_IXMLDOMCDATASection
)
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment