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
50868fe7
Commit
50868fe7
authored
Aug 12, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added IDM_SELECTALL implementation.
parent
464121bc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
editor.c
dlls/mshtml/editor.c
+24
-0
htmldoc.c
dlls/mshtml/tests/htmldoc.c
+1
-0
No files found.
dlls/mshtml/editor.c
View file @
50868fe7
...
...
@@ -62,6 +62,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
#define NSCMD_OL "cmd_ol"
#define NSCMD_OUTDENT "cmd_outdent"
#define NSCMD_PASTE "cmd_paste"
#define NSCMD_SELECTALL "cmd_selectAll"
#define NSCMD_SELECTBEGINLINE "cmd_selectBeginLine"
#define NSCMD_SELECTBOTTOM "cmd_selectBottom"
#define NSCMD_SELECTCHARNEXT "cmd_selectCharNext"
...
...
@@ -778,6 +779,20 @@ static HRESULT exec_fontsize(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
return
S_OK
;
}
static
HRESULT
exec_selectall
(
HTMLDocument
*
This
,
DWORD
cmdexecopt
,
VARIANT
*
in
,
VARIANT
*
out
)
{
TRACE
(
"(%p)
\n
"
,
This
);
if
(
in
||
out
)
FIXME
(
"unsupported args
\n
"
);
if
(
This
->
nscontainer
)
do_ns_command
(
This
->
nscontainer
,
NSCMD_SELECTALL
,
NULL
);
update_doc
(
This
,
UPDATE_UI
);
return
S_OK
;
}
static
HRESULT
exec_bold
(
HTMLDocument
*
This
,
DWORD
cmdexecopt
,
VARIANT
*
in
,
VARIANT
*
out
)
{
TRACE
(
"(%p)
\n
"
,
This
);
...
...
@@ -1110,10 +1125,19 @@ static HRESULT query_edit_status(HTMLDocument *This, OLECMD *cmd)
return
S_OK
;
}
static
HRESULT
query_selall_status
(
HTMLDocument
*
This
,
OLECMD
*
cmd
)
{
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
cmd
);
cmd
->
cmdf
=
OLECMDF_SUPPORTED
|
OLECMDF_ENABLED
;
return
S_OK
;
}
const
cmdtable_t
editmode_cmds
[]
=
{
{
IDM_DELETE
,
query_edit_status
,
exec_delete
},
{
IDM_FONTNAME
,
query_edit_status
,
exec_fontname
},
{
IDM_FONTSIZE
,
query_edit_status
,
exec_fontsize
},
{
IDM_SELECTALL
,
query_selall_status
,
exec_selectall
},
{
IDM_FORECOLOR
,
query_edit_status
,
exec_forecolor
},
{
IDM_BOLD
,
query_edit_status
,
exec_bold
},
{
IDM_ITALIC
,
query_edit_status
,
exec_italic
},
...
...
dlls/mshtml/tests/htmldoc.c
View file @
50868fe7
...
...
@@ -2727,6 +2727,7 @@ static void test_MSHTML_QueryStatus(IUnknown *unk, DWORD cmdf)
test_QueryStatus
(
unk
,
&
CGID_MSHTML
,
IDM_FONTNAME
,
cmdf
);
test_QueryStatus
(
unk
,
&
CGID_MSHTML
,
IDM_FONTSIZE
,
cmdf
);
test_QueryStatus
(
unk
,
&
CGID_MSHTML
,
IDM_SELECTALL
,
cmdf
|
OLECMDF_ENABLED
);
test_QueryStatus
(
unk
,
&
CGID_MSHTML
,
IDM_BOLD
,
cmdf
);
test_QueryStatus
(
unk
,
&
CGID_MSHTML
,
IDM_FORECOLOR
,
cmdf
);
test_QueryStatus
(
unk
,
&
CGID_MSHTML
,
IDM_JUSTIFYCENTER
,
cmdf
);
...
...
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