mshtml: Added Exec(IDM_JUSTIFYLEFT) and Exec(IDM_JUSTIFYRIGHT) implementataion.

This commit is contained in:
Jacek Caban 2006-11-09 10:49:00 +01:00 committed by Alexandre Julliard
parent 8968c399e6
commit 95cc9db828
1 changed files with 22 additions and 0 deletions

View File

@ -462,6 +462,20 @@ static HRESULT exec_justifycenter(HTMLDocument *This)
return S_OK;
}
static HRESULT exec_justifyleft(HTMLDocument *This)
{
TRACE("(%p)\n", This);
set_ns_align(This, "left");
return S_OK;
}
static HRESULT exec_justifyright(HTMLDocument *This)
{
TRACE("(%p)\n", This);
set_ns_align(This, "right");
return S_OK;
}
static HRESULT exec_underline(HTMLDocument *This)
{
TRACE("(%p)\n", This);
@ -821,6 +835,14 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
if(pvaIn || pvaOut)
FIXME("unsupported arguments\n");
return exec_justifycenter(This);
case IDM_JUSTIFYLEFT:
if(pvaIn || pvaOut)
FIXME("unsupported arguments\n");
return exec_justifyleft(This);
case IDM_JUSTIFYRIGHT:
if(pvaIn || pvaOut)
FIXME("unsupported arguments\n");
return exec_justifyright(This);
case IDM_UNDERLINE:
if(pvaIn || pvaOut)
FIXME("unsupported arguments\n");