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
b0fc3115
Commit
b0fc3115
authored
Jun 11, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IDM_COMPOSESETTINGS implementation.
parent
1d428f48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
1 deletion
+59
-1
editor.c
dlls/mshtml/editor.c
+59
-1
No files found.
dlls/mshtml/editor.c
View file @
b0fc3115
...
...
@@ -864,14 +864,72 @@ static HRESULT exec_outdent(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, V
static
HRESULT
exec_composesettings
(
HTMLDocument
*
This
,
DWORD
cmdexecopt
,
VARIANT
*
in
,
VARIANT
*
out
)
{
WCHAR
*
ptr
;
if
(
out
||
!
in
||
V_VT
(
in
)
!=
VT_BSTR
)
{
WARN
(
"invalid arg
\n
"
);
return
E_INVALIDARG
;
}
FIXME
(
"%s
\n
"
,
debugstr_w
(
V_BSTR
(
in
)));
TRACE
(
"(%p)->(%x %s)
\n
"
,
This
,
cmdexecopt
,
debugstr_w
(
V_BSTR
(
in
)));
update_doc
(
This
,
UPDATE_UI
);
ptr
=
V_BSTR
(
in
);
if
(
*
ptr
==
'1'
)
exec_bold
(
This
,
cmdexecopt
,
NULL
,
NULL
);
ptr
=
strchrW
(
ptr
,
','
);
if
(
!
ptr
)
return
S_OK
;
if
(
*++
ptr
==
'1'
)
exec_italic
(
This
,
cmdexecopt
,
NULL
,
NULL
);
ptr
=
strchrW
(
ptr
,
','
);
if
(
!
ptr
)
return
S_OK
;
if
(
*++
ptr
==
'1'
)
exec_underline
(
This
,
cmdexecopt
,
NULL
,
NULL
);
ptr
=
strchrW
(
ptr
,
','
);
if
(
!
ptr
)
return
S_OK
;
if
(
isdigitW
(
*++
ptr
))
{
VARIANT
v
;
V_VT
(
&
v
)
=
VT_I4
;
V_I4
(
&
v
)
=
*
ptr
-
'0'
;
exec_fontsize
(
This
,
cmdexecopt
,
&
v
,
NULL
);
}
ptr
=
strchrW
(
ptr
,
','
);
if
(
!
ptr
)
return
S_OK
;
if
(
*++
ptr
!=
','
)
FIXME
(
"set font color
\n
"
);
ptr
=
strchrW
(
ptr
,
','
);
if
(
!
ptr
)
return
S_OK
;
if
(
*++
ptr
!=
','
)
FIXME
(
"set background color
\n
"
);
ptr
=
strchrW
(
ptr
,
','
);
if
(
!
ptr
)
return
S_OK
;
ptr
++
;
if
(
*
ptr
)
{
VARIANT
v
;
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
SysAllocString
(
ptr
);
exec_fontname
(
This
,
cmdexecopt
,
&
v
,
NULL
);
SysFreeString
(
V_BSTR
(
&
v
));
}
return
S_OK
;
}
...
...
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