From 95cc9db8286a2a384bd5a65d38df601b0f88e959 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Thu, 9 Nov 2006 10:49:00 +0100 Subject: [PATCH] mshtml: Added Exec(IDM_JUSTIFYLEFT) and Exec(IDM_JUSTIFYRIGHT) implementataion. --- dlls/mshtml/olecmd.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/dlls/mshtml/olecmd.c b/dlls/mshtml/olecmd.c index d8a2154d4a3..ecb92e8aac7 100644 --- a/dlls/mshtml/olecmd.c +++ b/dlls/mshtml/olecmd.c @@ -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");