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
a7ba7647
Commit
a7ba7647
authored
Feb 24, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLBodyElement::put_link implementation.
parent
9af30c79
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
2 deletions
+38
-2
htmlbody.c
dlls/mshtml/htmlbody.c
+38
-2
No files found.
dlls/mshtml/htmlbody.c
View file @
a7ba7647
...
@@ -47,6 +47,30 @@ typedef struct {
...
@@ -47,6 +47,30 @@ typedef struct {
#define HTMLBODY(x) ((IHTMLBodyElement*) &(x)->lpHTMLBodyElementVtbl)
#define HTMLBODY(x) ((IHTMLBodyElement*) &(x)->lpHTMLBodyElementVtbl)
static
BOOL
variant_to_nscolor
(
const
VARIANT
*
v
,
nsAString
*
nsstr
)
{
switch
(
V_VT
(
v
))
{
case
VT_BSTR
:
nsAString_Init
(
nsstr
,
V_BSTR
(
v
));
return
TRUE
;
case
VT_I4
:
{
PRUnichar
buf
[
10
];
static
const
WCHAR
formatW
[]
=
{
'#'
,
'%'
,
'x'
,
0
};
wsprintfW
(
buf
,
formatW
,
V_I4
(
v
));
nsAString_Init
(
nsstr
,
buf
);
return
TRUE
;
}
default:
FIXME
(
"invalid vt=%d
\n
"
,
V_VT
(
v
));
}
return
FALSE
;
}
#define HTMLBODY_THIS(iface) DEFINE_THIS(HTMLBodyElement, HTMLBodyElement, iface)
#define HTMLBODY_THIS(iface) DEFINE_THIS(HTMLBodyElement, HTMLBodyElement, iface)
static
HRESULT
WINAPI
HTMLBodyElement_QueryInterface
(
IHTMLBodyElement
*
iface
,
static
HRESULT
WINAPI
HTMLBodyElement_QueryInterface
(
IHTMLBodyElement
*
iface
,
...
@@ -254,8 +278,20 @@ static HRESULT WINAPI HTMLBodyElement_get_text(IHTMLBodyElement *iface, VARIANT
...
@@ -254,8 +278,20 @@ static HRESULT WINAPI HTMLBodyElement_get_text(IHTMLBodyElement *iface, VARIANT
static
HRESULT
WINAPI
HTMLBodyElement_put_link
(
IHTMLBodyElement
*
iface
,
VARIANT
v
)
static
HRESULT
WINAPI
HTMLBodyElement_put_link
(
IHTMLBodyElement
*
iface
,
VARIANT
v
)
{
{
HTMLBodyElement
*
This
=
HTMLBODY_THIS
(
iface
);
HTMLBodyElement
*
This
=
HTMLBODY_THIS
(
iface
);
FIXME
(
"(%p)->()
\n
"
,
This
);
nsAString
link_str
;
return
E_NOTIMPL
;
nsresult
nsres
;
TRACE
(
"(%p)->(v%d)
\n
"
,
This
,
V_VT
(
&
v
));
if
(
!
variant_to_nscolor
(
&
v
,
&
link_str
))
return
S_OK
;
nsres
=
nsIDOMHTMLBodyElement_SetLink
(
This
->
nsbody
,
&
link_str
);
nsAString_Finish
(
&
link_str
);
if
(
NS_FAILED
(
nsres
))
ERR
(
"SetLink failed: %08x
\n
"
,
nsres
);
return
S_OK
;
}
}
static
HRESULT
WINAPI
HTMLBodyElement_get_link
(
IHTMLBodyElement
*
iface
,
VARIANT
*
p
)
static
HRESULT
WINAPI
HTMLBodyElement_get_link
(
IHTMLBodyElement
*
iface
,
VARIANT
*
p
)
...
...
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