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
b84626bd
Commit
b84626bd
authored
Mar 07, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLDocument2::write implementation.
parent
a32e36ae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
3 deletions
+62
-3
htmldoc.c
dlls/mshtml/htmldoc.c
+55
-2
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
nsembed.c
dlls/mshtml/nsembed.c
+6
-1
No files found.
dlls/mshtml/htmldoc.c
View file @
b84626bd
...
@@ -675,8 +675,61 @@ static HRESULT WINAPI HTMLDocument_get_nameProp(IHTMLDocument2 *iface, BSTR *p)
...
@@ -675,8 +675,61 @@ static HRESULT WINAPI HTMLDocument_get_nameProp(IHTMLDocument2 *iface, BSTR *p)
static
HRESULT
WINAPI
HTMLDocument_write
(
IHTMLDocument2
*
iface
,
SAFEARRAY
*
psarray
)
static
HRESULT
WINAPI
HTMLDocument_write
(
IHTMLDocument2
*
iface
,
SAFEARRAY
*
psarray
)
{
{
FIXME
(
"(%p)->(%p)
\n
"
,
iface
,
psarray
);
HTMLDocument
*
This
=
HTMLDOC_THIS
(
iface
);
return
E_NOTIMPL
;
nsIDOMDocument
*
domdoc
;
nsIDOMHTMLDocument
*
nsdoc
;
nsAString
nsstr
;
VARIANT
*
var
;
int
i
;
nsresult
nsres
;
HRESULT
hres
;
TRACE
(
"(%p)->(%p)
\n
"
,
iface
,
psarray
);
if
(
psarray
->
cDims
!=
1
)
{
FIXME
(
"cDims=%d
\n
"
,
psarray
->
cDims
);
return
E_INVALIDARG
;
}
if
(
!
This
->
nscontainer
)
return
S_OK
;
nsres
=
nsIWebNavigation_GetDocument
(
This
->
nscontainer
->
navigation
,
&
domdoc
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"GetDocument failed: %08x
\n
"
,
nsres
);
return
S_OK
;
}
nsres
=
nsIDOMDocument_QueryInterface
(
domdoc
,
&
IID_nsIDOMHTMLDocument
,
(
void
**
)
&
nsdoc
);
nsIDOMDocument_Release
(
domdoc
);
if
(
NS_FAILED
(
nsres
))
return
S_OK
;
hres
=
SafeArrayAccessData
(
psarray
,
(
void
**
)
&
var
);
if
(
FAILED
(
hres
))
{
WARN
(
"SafeArrayAccessData failed: %08x
\n
"
,
hres
);
nsIDOMHTMLDocument_Release
(
nsdoc
);
return
hres
;
}
nsAString_Init
(
&
nsstr
,
NULL
);
for
(
i
=
0
;
i
<
psarray
->
rgsabound
[
0
].
cElements
;
i
++
)
{
if
(
V_VT
(
var
+
i
)
==
VT_BSTR
)
{
nsAString_SetData
(
&
nsstr
,
V_BSTR
(
var
+
i
));
nsres
=
nsIDOMHTMLDocument_Write
(
nsdoc
,
&
nsstr
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"Write failed: %08x
\n
"
,
nsres
);
}
else
{
FIXME
(
"vt=%d
\n
"
,
V_VT
(
var
+
i
));
}
}
nsAString_Finish
(
&
nsstr
);
SafeArrayUnaccessData
(
psarray
);
nsIDOMHTMLDocument_Release
(
nsdoc
);
return
S_OK
;
}
}
static
HRESULT
WINAPI
HTMLDocument_writeln
(
IHTMLDocument2
*
iface
,
SAFEARRAY
*
psarray
)
static
HRESULT
WINAPI
HTMLDocument_writeln
(
IHTMLDocument2
*
iface
,
SAFEARRAY
*
psarray
)
...
...
dlls/mshtml/mshtml_private.h
View file @
b84626bd
...
@@ -415,6 +415,7 @@ PRUint32 nsACString_GetData(const nsACString*,const char**);
...
@@ -415,6 +415,7 @@ PRUint32 nsACString_GetData(const nsACString*,const char**);
void
nsACString_Finish
(
nsACString
*
);
void
nsACString_Finish
(
nsACString
*
);
void
nsAString_Init
(
nsAString
*
,
const
PRUnichar
*
);
void
nsAString_Init
(
nsAString
*
,
const
PRUnichar
*
);
void
nsAString_SetData
(
nsAString
*
,
const
PRUnichar
*
);
PRUint32
nsAString_GetData
(
const
nsAString
*
,
const
PRUnichar
**
);
PRUint32
nsAString_GetData
(
const
nsAString
*
,
const
PRUnichar
**
);
void
nsAString_Finish
(
nsAString
*
);
void
nsAString_Finish
(
nsAString
*
);
...
...
dlls/mshtml/nsembed.c
View file @
b84626bd
...
@@ -502,7 +502,12 @@ void nsAString_Init(nsAString *str, const PRUnichar *data)
...
@@ -502,7 +502,12 @@ void nsAString_Init(nsAString *str, const PRUnichar *data)
{
{
NS_StringContainerInit
(
str
);
NS_StringContainerInit
(
str
);
if
(
data
)
if
(
data
)
NS_StringSetData
(
str
,
data
,
PR_UINT32_MAX
);
nsAString_SetData
(
str
,
data
);
}
void
nsAString_SetData
(
nsAString
*
str
,
const
PRUnichar
*
data
)
{
NS_StringSetData
(
str
,
data
,
PR_UINT32_MAX
);
}
}
PRUint32
nsAString_GetData
(
const
nsAString
*
str
,
const
PRUnichar
**
data
)
PRUint32
nsAString_GetData
(
const
nsAString
*
str
,
const
PRUnichar
**
data
)
...
...
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