mshtml: Added IDM_ORDERLIST implementation.

This commit is contained in:
Jacek Caban 2006-11-11 15:32:49 +01:00 committed by Alexandre Julliard
parent 8d76b3deed
commit 2a78268430
2 changed files with 18 additions and 2 deletions

View File

@ -49,6 +49,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
#define NSCMD_OUTDENT "cmd_outdent"
#define NSCMD_INSERTHR "cmd_insertHR"
#define NSCMD_UL "cmd_ul"
#define NSCMD_OL "cmd_ol"
#define NSSTATE_ATTRIBUTE "state_attribute"
#define NSSTATE_ALL "state_all"
@ -630,6 +631,16 @@ static HRESULT exec_horizontalline(HTMLDocument *This)
return S_OK;
}
static HRESULT exec_orderlist(HTMLDocument *This)
{
TRACE("(%p)\n", This);
if(This->nscontainer)
do_ns_command(This->nscontainer, NSCMD_OL, NULL);
return S_OK;
}
static HRESULT exec_unorderlist(HTMLDocument *This)
{
TRACE("(%p)\n", This);
@ -827,8 +838,8 @@ static HRESULT WINAPI OleCommandTarget_QueryStatus(IOleCommandTarget *iface, con
prgCmds[i].cmdf = query_edit_status(This, NULL);
break;
case IDM_ORDERLIST:
FIXME("CGID_MSHTML: IDM_ORDERLIST\n");
prgCmds[i].cmdf = OLECMDF_SUPPORTED|OLECMDF_ENABLED;
TRACE("CGID_MSHTML: IDM_ORDERLIST\n");
prgCmds[i].cmdf = query_edit_status(This, NSCMD_OL);
break;
case IDM_UNORDERLIST:
TRACE("CGID_MSHTML: IDM_HORIZONTALLINE\n");
@ -933,6 +944,10 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
if(pvaIn || pvaOut)
FIXME("unsupported arguments\n");
return exec_horizontalline(This);
case IDM_ORDERLIST:
if(pvaIn || pvaOut)
FIXME("unsupported arguments\n");
return exec_orderlist(This);
case IDM_UNORDERLIST:
if(pvaIn || pvaOut)
FIXME("unsupported arguments\n");

View File

@ -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_ORDERLIST, 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);