Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
8968c399
Commit
8968c399
authored
Nov 09, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added Exec(IDM_JUSTIFYCENTER) implementation.
parent
40d31d86
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
olecmd.c
dlls/mshtml/olecmd.c
+27
-0
No files found.
dlls/mshtml/olecmd.c
View file @
8968c399
...
...
@@ -43,6 +43,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
#define NSCMD_ITALIC "cmd_italic"
#define NSCMD_UNDERLINE "cmd_underline"
#define NSCMD_FONTCOLOR "cmd_fontColor"
#define NSCMD_ALIGN "cmd_align"
#define NSSTATE_ATTRIBUTE "state_attribute"
...
...
@@ -323,6 +324,21 @@ static DWORD query_edit_status(HTMLDocument *This, const char *nscmd)
return
OLECMDF_SUPPORTED
|
OLECMDF_ENABLED
|
(
b
?
OLECMDF_LATCHED
:
0
);
}
static
void
set_ns_align
(
HTMLDocument
*
This
,
const
char
*
align_str
)
{
nsICommandParams
*
nsparam
;
if
(
!
This
->
nscontainer
)
return
;
nsparam
=
create_nscommand_params
();
nsICommandParams_SetCStringValue
(
nsparam
,
NSSTATE_ATTRIBUTE
,
align_str
);
do_ns_command
(
This
->
nscontainer
,
NSCMD_ALIGN
,
nsparam
);
nsICommandParams_Release
(
nsparam
);
}
static
HRESULT
exec_fontname
(
HTMLDocument
*
This
,
VARIANT
*
in
,
VARIANT
*
out
)
{
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
in
,
out
);
...
...
@@ -439,6 +455,13 @@ static HRESULT exec_italic(HTMLDocument *This)
return
S_OK
;
}
static
HRESULT
exec_justifycenter
(
HTMLDocument
*
This
)
{
TRACE
(
"(%p)
\n
"
,
This
);
set_ns_align
(
This
,
"center"
);
return
S_OK
;
}
static
HRESULT
exec_underline
(
HTMLDocument
*
This
)
{
TRACE
(
"(%p)
\n
"
,
This
);
...
...
@@ -794,6 +817,10 @@ static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID
if
(
pvaIn
||
pvaOut
)
FIXME
(
"unsupported arguments
\n
"
);
return
exec_italic
(
This
);
case
IDM_JUSTIFYCENTER
:
if
(
pvaIn
||
pvaOut
)
FIXME
(
"unsupported arguments
\n
"
);
return
exec_justifycenter
(
This
);
case
IDM_UNDERLINE
:
if
(
pvaIn
||
pvaOut
)
FIXME
(
"unsupported arguments
\n
"
);
...
...
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