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
371b0edb
Commit
371b0edb
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 edit mode IDM_CUT implementation.
parent
775425b2
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
editor.c
dlls/mshtml/editor.c
+12
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-0
olecmd.c
dlls/mshtml/olecmd.c
+6
-1
No files found.
dlls/mshtml/editor.c
View file @
371b0edb
...
@@ -42,6 +42,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
...
@@ -42,6 +42,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(mshtml);
#define NSCMD_CHARNEXT "cmd_charNext"
#define NSCMD_CHARNEXT "cmd_charNext"
#define NSCMD_CHARPREVIOUS "cmd_charPrevious"
#define NSCMD_CHARPREVIOUS "cmd_charPrevious"
#define NSCMD_COPY "cmd_copy"
#define NSCMD_COPY "cmd_copy"
#define NSCMD_CUT "cmd_cut"
#define NSCMD_FONTCOLOR "cmd_fontColor"
#define NSCMD_FONTCOLOR "cmd_fontColor"
#define NSCMD_FONTFACE "cmd_fontFace"
#define NSCMD_FONTFACE "cmd_fontFace"
#define NSCMD_INDENT "cmd_indent"
#define NSCMD_INDENT "cmd_indent"
...
@@ -946,6 +947,17 @@ HRESULT editor_exec_copy(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARI
...
@@ -946,6 +947,17 @@ HRESULT editor_exec_copy(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in, VARI
return
S_OK
;
return
S_OK
;
}
}
HRESULT
editor_exec_cut
(
HTMLDocument
*
This
,
DWORD
cmdexecopt
,
VARIANT
*
in
,
VARIANT
*
out
)
{
update_doc
(
This
,
UPDATE_UI
);
if
(
!
This
->
nscontainer
)
return
E_FAIL
;
do_ns_editor_command
(
This
->
nscontainer
,
NSCMD_CUT
);
return
S_OK
;
}
HRESULT
editor_exec_paste
(
HTMLDocument
*
This
,
DWORD
cmdexecopt
,
VARIANT
*
in
,
VARIANT
*
out
)
HRESULT
editor_exec_paste
(
HTMLDocument
*
This
,
DWORD
cmdexecopt
,
VARIANT
*
in
,
VARIANT
*
out
)
{
{
update_doc
(
This
,
UPDATE_UI
);
update_doc
(
This
,
UPDATE_UI
);
...
...
dlls/mshtml/mshtml_private.h
View file @
371b0edb
...
@@ -399,6 +399,7 @@ void init_editor(HTMLDocument*);
...
@@ -399,6 +399,7 @@ void init_editor(HTMLDocument*);
void
set_ns_editmode
(
NSContainer
*
);
void
set_ns_editmode
(
NSContainer
*
);
void
handle_edit_event
(
HTMLDocument
*
,
nsIDOMEvent
*
);
void
handle_edit_event
(
HTMLDocument
*
,
nsIDOMEvent
*
);
HRESULT
editor_exec_copy
(
HTMLDocument
*
,
DWORD
,
VARIANT
*
,
VARIANT
*
);
HRESULT
editor_exec_copy
(
HTMLDocument
*
,
DWORD
,
VARIANT
*
,
VARIANT
*
);
HRESULT
editor_exec_cut
(
HTMLDocument
*
,
DWORD
,
VARIANT
*
,
VARIANT
*
);
HRESULT
editor_exec_paste
(
HTMLDocument
*
,
DWORD
,
VARIANT
*
,
VARIANT
*
);
HRESULT
editor_exec_paste
(
HTMLDocument
*
,
DWORD
,
VARIANT
*
,
VARIANT
*
);
extern
DWORD
mshtml_tls
;
extern
DWORD
mshtml_tls
;
...
...
dlls/mshtml/olecmd.c
View file @
371b0edb
...
@@ -487,7 +487,12 @@ static HRESULT query_mshtml_cut(HTMLDocument *This, OLECMD *cmd)
...
@@ -487,7 +487,12 @@ static HRESULT query_mshtml_cut(HTMLDocument *This, OLECMD *cmd)
static
HRESULT
exec_mshtml_cut
(
HTMLDocument
*
This
,
DWORD
cmdexecopt
,
VARIANT
*
in
,
VARIANT
*
out
)
static
HRESULT
exec_mshtml_cut
(
HTMLDocument
*
This
,
DWORD
cmdexecopt
,
VARIANT
*
in
,
VARIANT
*
out
)
{
{
FIXME
(
"(%p)->(%08x %p %p)
\n
"
,
This
,
cmdexecopt
,
in
,
out
);
TRACE
(
"(%p)->(%08x %p %p)
\n
"
,
This
,
cmdexecopt
,
in
,
out
);
if
(
This
->
usermode
==
EDITMODE
)
return
editor_exec_cut
(
This
,
cmdexecopt
,
in
,
out
);
FIXME
(
"Unimplemented in browse mode
\n
"
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
...
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