Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6f537c4d
Commit
6f537c4d
authored
Nov 22, 2010
by
Adam Martinson
Committed by
Alexandre Julliard
Nov 24, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Implement domtext dt-related functions.
These should always be handled by the parent node.
parent
643cbafa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
88 additions
and
8 deletions
+88
-8
node.c
dlls/msxml3/node.c
+1
-1
text.c
dlls/msxml3/text.c
+87
-7
No files found.
dlls/msxml3/node.c
View file @
6f537c4d
...
...
@@ -852,7 +852,7 @@ static HRESULT WINAPI xmlnode_get_nodeTypedValue(
V_VT
(
typedValue
)
=
VT_NULL
;
if
(
This
->
node
->
type
==
XML_
TEXT_NODE
||
This
->
node
->
type
==
XML_
ENTITY_REF_NODE
)
if
(
This
->
node
->
type
==
XML_ENTITY_REF_NODE
)
{
VariantInit
(
&
type
);
hres
=
IXMLDOMNode_get_dataType
(
This
->
iface
,
&
type
);
...
...
dlls/msxml3/text.c
View file @
6f537c4d
...
...
@@ -435,7 +435,29 @@ static HRESULT WINAPI domtext_get_nodeTypedValue(
VARIANT
*
var1
)
{
domtext
*
This
=
impl_from_IXMLDOMText
(
iface
);
return
IXMLDOMNode_get_nodeTypedValue
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
var1
);
IXMLDOMNode
*
parent
=
NULL
;
HRESULT
hr
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
var1
);
if
(
!
var1
)
return
E_INVALIDARG
;
hr
=
domtext_get_parentNode
(
iface
,
&
parent
);
if
(
hr
==
S_OK
)
{
hr
=
IXMLDOMNode_get_nodeTypedValue
(
parent
,
var1
);
IXMLDOMNode_Release
(
parent
);
}
else
{
V_VT
(
var1
)
=
VT_NULL
;
V_BSTR
(
var1
)
=
NULL
;
hr
=
S_FALSE
;
}
return
hr
;
}
static
HRESULT
WINAPI
domtext_put_nodeTypedValue
(
...
...
@@ -443,24 +465,82 @@ static HRESULT WINAPI domtext_put_nodeTypedValue(
VARIANT
var1
)
{
domtext
*
This
=
impl_from_IXMLDOMText
(
iface
);
return
IXMLDOMNode_put_nodeTypedValue
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
var1
);
IXMLDOMNode
*
parent
=
NULL
;
HRESULT
hr
;
TRACE
(
"(%p)->(VARIANT)
\n
"
,
This
);
hr
=
domtext_get_parentNode
(
iface
,
&
parent
);
if
(
hr
==
S_OK
)
{
hr
=
IXMLDOMNode_put_nodeTypedValue
(
parent
,
var1
);
IXMLDOMNode_Release
(
parent
);
}
else
{
hr
=
S_FALSE
;
}
return
hr
;
}
static
HRESULT
WINAPI
domtext_get_dataType
(
IXMLDOMText
*
iface
,
VARIANT
*
typen
ame
)
VARIANT
*
dtN
ame
)
{
domtext
*
This
=
impl_from_IXMLDOMText
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
typename
);
return
return_null_var
(
typename
);
IXMLDOMNode
*
parent
=
NULL
;
HRESULT
hr
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
dtName
);
if
(
!
dtName
)
return
E_INVALIDARG
;
hr
=
domtext_get_parentNode
(
iface
,
&
parent
);
if
(
hr
==
S_OK
)
{
hr
=
IXMLDOMNode_get_dataType
(
parent
,
dtName
);
IXMLDOMNode_Release
(
parent
);
}
else
{
V_VT
(
dtName
)
=
VT_NULL
;
V_BSTR
(
dtName
)
=
NULL
;
hr
=
S_FALSE
;
}
return
hr
;
}
static
HRESULT
WINAPI
domtext_put_dataType
(
IXMLDOMText
*
iface
,
BSTR
p
)
BSTR
dtName
)
{
domtext
*
This
=
impl_from_IXMLDOMText
(
iface
);
return
IXMLDOMNode_put_dataType
(
IXMLDOMNode_from_impl
(
&
This
->
node
),
p
);
IXMLDOMNode
*
parent
=
NULL
;
HRESULT
hr
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
dtName
);
if
(
!
dtName
)
return
E_INVALIDARG
;
hr
=
domtext_get_parentNode
(
iface
,
&
parent
);
if
(
hr
==
S_OK
)
{
hr
=
IXMLDOMNode_put_dataType
(
parent
,
dtName
);
IXMLDOMNode_Release
(
parent
);
}
else
{
hr
=
S_FALSE
;
}
return
hr
;
}
static
HRESULT
WINAPI
domtext_get_xml
(
...
...
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