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
630e5f81
Commit
630e5f81
authored
May 07, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Support indent() property.
parent
2dfa1bff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
7 deletions
+26
-7
mxwriter.c
dlls/msxml3/mxwriter.c
+18
-7
saxreader.c
dlls/msxml3/tests/saxreader.c
+8
-0
No files found.
dlls/msxml3/mxwriter.c
View file @
630e5f81
...
@@ -44,7 +44,8 @@ static const char crlfA[] = "\r\n";
...
@@ -44,7 +44,8 @@ static const char crlfA[] = "\r\n";
typedef
enum
typedef
enum
{
{
MXWriter_OmitXmlDecl
=
0
,
MXWriter_Indent
=
0
,
MXWriter_OmitXmlDecl
,
MXWriter_Standalone
,
MXWriter_Standalone
,
MXWriter_LastProp
MXWriter_LastProp
}
MXWRITER_PROPS
;
}
MXWRITER_PROPS
;
...
@@ -308,18 +309,27 @@ static HRESULT WINAPI mxwriter_get_byteOrderMark(IMXWriter *iface, VARIANT_BOOL
...
@@ -308,18 +309,27 @@ static HRESULT WINAPI mxwriter_get_byteOrderMark(IMXWriter *iface, VARIANT_BOOL
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
mxwriter_put_indent
(
IMXWriter
*
iface
,
VARIANT_BOOL
indent
)
static
HRESULT
WINAPI
mxwriter_put_indent
(
IMXWriter
*
iface
,
VARIANT_BOOL
value
)
{
{
mxwriter
*
This
=
impl_from_IMXWriter
(
iface
);
mxwriter
*
This
=
impl_from_IMXWriter
(
iface
);
FIXME
(
"(%p)->(%d)
\n
"
,
This
,
indent
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
value
);
This
->
props
[
MXWriter_Indent
]
=
value
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
mxwriter_get_indent
(
IMXWriter
*
iface
,
VARIANT_BOOL
*
indent
)
static
HRESULT
WINAPI
mxwriter_get_indent
(
IMXWriter
*
iface
,
VARIANT_BOOL
*
value
)
{
{
mxwriter
*
This
=
impl_from_IMXWriter
(
iface
);
mxwriter
*
This
=
impl_from_IMXWriter
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
indent
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
value
);
if
(
!
value
)
return
E_POINTER
;
*
value
=
This
->
props
[
MXWriter_Indent
];
return
S_OK
;
}
}
static
HRESULT
WINAPI
mxwriter_put_standalone
(
IMXWriter
*
iface
,
VARIANT_BOOL
value
)
static
HRESULT
WINAPI
mxwriter_put_standalone
(
IMXWriter
*
iface
,
VARIANT_BOOL
value
)
...
@@ -698,6 +708,7 @@ HRESULT MXWriter_create(IUnknown *pUnkOuter, void **ppObj)
...
@@ -698,6 +708,7 @@ HRESULT MXWriter_create(IUnknown *pUnkOuter, void **ppObj)
This
->
ISAXContentHandler_iface
.
lpVtbl
=
&
mxwriter_saxcontent_vtbl
;
This
->
ISAXContentHandler_iface
.
lpVtbl
=
&
mxwriter_saxcontent_vtbl
;
This
->
ref
=
1
;
This
->
ref
=
1
;
This
->
props
[
MXWriter_Indent
]
=
VARIANT_FALSE
;
This
->
props
[
MXWriter_OmitXmlDecl
]
=
VARIANT_FALSE
;
This
->
props
[
MXWriter_OmitXmlDecl
]
=
VARIANT_FALSE
;
This
->
props
[
MXWriter_Standalone
]
=
VARIANT_FALSE
;
This
->
props
[
MXWriter_Standalone
]
=
VARIANT_FALSE
;
This
->
encoding
=
SysAllocString
(
utf16W
);
This
->
encoding
=
SysAllocString
(
utf16W
);
...
...
dlls/msxml3/tests/saxreader.c
View file @
630e5f81
...
@@ -936,6 +936,14 @@ static void test_mxwriter_properties(void)
...
@@ -936,6 +936,14 @@ static void test_mxwriter_properties(void)
&
IID_IMXWriter
,
(
void
**
)
&
writer
);
&
IID_IMXWriter
,
(
void
**
)
&
writer
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
hr
=
IMXWriter_get_indent
(
writer
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got %08x
\n
"
,
hr
);
b
=
VARIANT_TRUE
;
hr
=
IMXWriter_get_indent
(
writer
,
&
b
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
b
==
VARIANT_FALSE
,
"got %d
\n
"
,
b
);
hr
=
IMXWriter_get_omitXMLDeclaration
(
writer
,
NULL
);
hr
=
IMXWriter_get_omitXMLDeclaration
(
writer
,
NULL
);
ok
(
hr
==
E_POINTER
,
"got %08x
\n
"
,
hr
);
ok
(
hr
==
E_POINTER
,
"got %08x
\n
"
,
hr
);
...
...
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