Commit 8d76b3de authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Added IDM_UNORDERLIST implementation.

parent 80db1476
......@@ -48,6 +48,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
#define NSCMD_INDENT "cmd_indent"
#define NSCMD_OUTDENT "cmd_outdent"
#define NSCMD_INSERTHR "cmd_insertHR"
#define NSCMD_UL "cmd_ul"
#define NSSTATE_ATTRIBUTE "state_attribute"
#define NSSTATE_ALL "state_all"
......@@ -629,6 +630,16 @@ static HRESULT exec_horizontalline(HTMLDocument *This)
return S_OK;
}
static HRESULT exec_unorderlist(HTMLDocument *This)
{
TRACE("(%p)\n", This);
if(This->nscontainer)
do_ns_command(This->nscontainer, NSCMD_UL, NULL);
return S_OK;
}
static HRESULT exec_indent(HTMLDocument *This)
{
TRACE("(%p)\n", This);
......@@ -820,8 +831,8 @@ static HRESULT WINAPI OleCommandTarget_QueryStatus(IOleCommandTarget *iface, con
prgCmds[i].cmdf = OLECMDF_SUPPORTED|OLECMDF_ENABLED;
break;
case IDM_UNORDERLIST:
FIXME("CGID_MSHTML: IDM_UNORDERLIST\n");
prgCmds[i].cmdf = OLECMDF_SUPPORTED|OLECMDF_ENABLED;
TRACE("CGID_MSHTML: IDM_HORIZONTALLINE\n");
prgCmds[i].cmdf = query_edit_status(This, NSCMD_UL);
break;
case IDM_INDENT:
TRACE("CGID_MSHTML: IDM_INDENT\n");
......@@ -922,6 +933,10 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
if(pvaIn || pvaOut)
FIXME("unsupported arguments\n");
return exec_horizontalline(This);
case IDM_UNORDERLIST:
if(pvaIn || pvaOut)
FIXME("unsupported arguments\n");
return exec_unorderlist(This);
case IDM_INDENT:
if(pvaIn || pvaOut)
FIXME("unsupported arguments\n");
......
......@@ -2049,6 +2049,7 @@ static void test_MSHTML_QueryStatus(IUnknown *unk, DWORD cmdf)
test_QueryStatus(unk, &CGID_MSHTML, IDM_ITALIC, cmdf);
test_QueryStatus(unk, &CGID_MSHTML, IDM_UNDERLINE, cmdf);
test_QueryStatus(unk, &CGID_MSHTML, IDM_HORIZONTALLINE, cmdf);
test_QueryStatus(unk, &CGID_MSHTML, IDM_UNORDERLIST, cmdf);
test_QueryStatus(unk, &CGID_MSHTML, IDM_INDENT, cmdf);
test_QueryStatus(unk, &CGID_MSHTML, IDM_OUTDENT, cmdf);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment