Jacek Caban : mshtml: Added support for copy, paste and cut commands in execCommand.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Dec 10 15:34:08 CST 2014


Module: wine
Branch: master
Commit: 6b463d85099b8da81ea234884dea27e048e65ff3
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=6b463d85099b8da81ea234884dea27e048e65ff3

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Wed Dec 10 18:59:04 2014 +0100

mshtml: Added support for copy, paste and cut commands in execCommand.

---

 dlls/mshtml/htmldoc.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c
index 7a577d9..2d89b45 100644
--- a/dlls/mshtml/htmldoc.c
+++ b/dlls/mshtml/htmldoc.c
@@ -1096,6 +1096,10 @@ static HRESULT WINAPI HTMLDocument_clear(IHTMLDocument2 *iface)
     return S_OK;
 }
 
+static const WCHAR copyW[] =
+    {'c','o','p','y',0};
+static const WCHAR cutW[] =
+    {'c','u','t',0};
 static const WCHAR fontnameW[] =
     {'f','o','n','t','n','a','m','e',0};
 static const WCHAR indentW[] =
@@ -1106,6 +1110,8 @@ static const WCHAR insertunorderedlistW[] =
     {'i','n','s','e','r','t','u','n','o','r','d','e','r','e','d','l','i','s','t',0};
 static const WCHAR outdentW[] =
     {'o','u','t','d','e','n','t',0};
+static const WCHAR pasteW[] =
+    {'p','a','s','t','e',0};
 static const WCHAR respectvisibilityindesignW[] =
     {'r','e','s','p','e','c','t','v','i','s','i','b','i','l','i','t','y','i','n','d','e','s','i','g','n',0};
 
@@ -1113,11 +1119,14 @@ static const struct {
     const WCHAR *name;
     OLECMDID id;
 }command_names[] = {
+    {copyW, IDM_COPY},
+    {cutW, IDM_CUT},
     {fontnameW, IDM_FONTNAME},
     {indentW, IDM_INDENT},
     {insertorderedlistW, IDM_ORDERLIST},
     {insertunorderedlistW, IDM_UNORDERLIST},
     {outdentW, IDM_OUTDENT},
+    {pasteW, IDM_PASTE},
     {respectvisibilityindesignW, IDM_RESPECTVISIBILITY_INDESIGN}
 };
 




More information about the wine-cvs mailing list