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
8bfc6f75
Commit
8bfc6f75
authored
Oct 14, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IHTMLOptionElementFactory::create implementation.
parent
0466542a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
2 deletions
+49
-2
htmloption.c
dlls/mshtml/htmloption.c
+49
-2
No files found.
dlls/mshtml/htmloption.c
View file @
8bfc6f75
...
...
@@ -442,8 +442,55 @@ static HRESULT WINAPI HTMLOptionElementFactory_create(IHTMLOptionElementFactory
IHTMLOptionElement
**
optelem
)
{
HTMLOptionElementFactory
*
This
=
HTMLOPTFACTORY_THIS
(
iface
);
FIXME
(
"(%p)->(v v v v %p)
\n
"
,
This
,
optelem
);
return
E_NOTIMPL
;
nsIDOMDocument
*
nsdoc
;
nsIDOMElement
*
nselem
;
nsAString
option_str
;
nsresult
nsres
;
HRESULT
hres
;
static
const
PRUnichar
optionW
[]
=
{
'O'
,
'P'
,
'T'
,
'I'
,
'O'
,
'N'
,
0
};
TRACE
(
"(%p)->(v v v v %p)
\n
"
,
This
,
optelem
);
*
optelem
=
NULL
;
if
(
!
This
->
doc
->
nscontainer
)
return
E_FAIL
;
nsres
=
nsIWebNavigation_GetDocument
(
This
->
doc
->
nscontainer
->
navigation
,
&
nsdoc
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"GetDocument failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
nsAString_Init
(
&
option_str
,
optionW
);
nsres
=
nsIDOMDocument_CreateElement
(
nsdoc
,
&
option_str
,
&
nselem
);
nsIDOMDocument_Release
(
nsdoc
);
nsAString_Finish
(
&
option_str
);
if
(
NS_FAILED
(
nsres
))
{
ERR
(
"CreateElement failed: %08x
\n
"
,
nsres
);
return
E_FAIL
;
}
hres
=
IHTMLDOMNode_QueryInterface
(
HTMLDOMNODE
(
get_node
(
This
->
doc
,
(
nsIDOMNode
*
)
nselem
)),
&
IID_IHTMLOptionElement
,
(
void
**
)
optelem
);
nsIDOMElement_Release
(
nselem
);
if
(
V_VT
(
&
text
)
==
VT_BSTR
)
IHTMLOptionElement_put_text
(
*
optelem
,
V_BSTR
(
&
text
));
else
if
(
V_VT
(
&
text
)
!=
VT_EMPTY
)
FIXME
(
"Unsupported text vt=%d
\n
"
,
V_VT
(
&
text
));
if
(
V_VT
(
&
value
)
==
VT_BSTR
)
IHTMLOptionElement_put_value
(
*
optelem
,
V_BSTR
(
&
value
));
else
if
(
V_VT
(
&
value
)
!=
VT_EMPTY
)
FIXME
(
"Unsupported value vt=%d
\n
"
,
V_VT
(
&
value
));
if
(
V_VT
(
&
defaultselected
)
!=
VT_EMPTY
)
FIXME
(
"Unsupported defaultselected vt=%d
\n
"
,
V_VT
(
&
defaultselected
));
if
(
V_VT
(
&
selected
)
!=
VT_EMPTY
)
FIXME
(
"Unsupported selected vt=%d
\n
"
,
V_VT
(
&
selected
));
return
S_OK
;
}
#undef HTMLOPTFACTORY_THIS
...
...
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