forked from mobileFX/WebKitX
-
Notifications
You must be signed in to change notification settings - Fork 1
/
WebKitX.idl
130 lines (118 loc) · 3.86 KB
/
WebKitX.idl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#include <olectl.h>
#include <idispids.h>
import "ocidl.idl";
import "oaidl.idl";
[ uuid(7493F856-8B5B-47C2-8336-71D5CA8433D9), version(1.0),
control ]
library WebKitXLib
{
importlib(STDOLE_TLB);
typedef enum EDIT_COMMAND
{
EDIT_CMD_BACKCOLOR,
EDIT_CMD_BOLD,
EDIT_CMD_CONTENTREADONLY,
EDIT_CMD_COPY,
EDIT_CMD_CREATELINK,
EDIT_CMD_CUT,
EDIT_CMD_DECREASEFONTSIZE,
EDIT_CMD_DELETE,
EDIT_CMD_ENABLEINLINETABLEEDITING,
EDIT_CMD_ENABLEOBJECTRESIZING,
EDIT_CMD_FONTNAME,
EDIT_CMD_FONTSIZE,
EDIT_CMD_FORECOLOR,
EDIT_CMD_FORMATBLOCK,
EDIT_CMD_FORWARDDELETE,
EDIT_CMD_HEADING,
EDIT_CMD_HILITECOLOR,
EDIT_CMD_INCREASEFONTSIZE,
EDIT_CMD_INDENT,
EDIT_CMD_INSERTBRONRETURN,
EDIT_CMD_INSERTHORIZONTALRULE,
EDIT_CMD_INSERTHTML,
EDIT_CMD_INSERTIMAGE,
EDIT_CMD_INSERTORDEREDLIST,
EDIT_CMD_INSERTUNORDEREDLIST,
EDIT_CMD_INSERTPARAGRAPH,
EDIT_CMD_INSERTTEXT,
EDIT_CMD_ITALIC,
EDIT_CMD_JUSTIFYCENTER,
EDIT_CMD_JUSTIFYFULL,
EDIT_CMD_JUSTIFYLEFT,
EDIT_CMD_JUSTIFYRIGHT,
EDIT_CMD_OUTDENT,
EDIT_CMD_PASTE,
EDIT_CMD_REDO,
EDIT_CMD_REMOVEFORMAT,
EDIT_CMD_SELECTALL,
EDIT_CMD_STRIKETHROUGH,
EDIT_CMD_SUBSCRIPT,
EDIT_CMD_SUPERSCRIPT,
EDIT_CMD_UNDERLINE,
EDIT_CMD_UNDO,
EDIT_CMD_UNLINK,
EDIT_CMD_USECSS,
EDIT_CMD_STYLEWITHCSS
} EDIT_COMMAND;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Primary dispatch interface for CWebKitXCtrl
[
uuid(ECEC4ADA-DE49-4358-B708-C3410F8CDDDA)
]
dispinterface _DWebKitX
{
properties:
[id(2)] BSTR HTML;
[id(0)] BSTR _HTML;
[id(DISPID_HWND)] OLE_HANDLE hWnd;
methods:
[id(1)] void OpenURL([in] BSTR URL);
[id(3)] void Edit(void);
[id(4)] void Preview(void);
[id(5)] VARIANT_BOOL Modified(void);
[id(6)] void Reload(void);
[id(7)] void addEventListener([in] BSTR Selector,[in] BSTR Event,[in] LONG AddressOfEventHandler, [in] VARIANT_BOOL UseCapture);
[id(8)] void addEventListenerEx([in] BSTR Selector, [in] BSTR Event, [in] IDispatch* vbObject, [in] BSTR vbObjectFunctionName, [in] VARIANT_BOOL UseCapture);
[id(10)] void Repaint(void);
[id(11)] void SetStyle([in] BSTR Selector, [in] BSTR StyleName, [in] BSTR StyleValue);
[id(13)] void SelectElement([in] BSTR Selector, [in] VARIANT_BOOL MoveCaret, [in] VARIANT_BOOL SelectContents);
[id(14)] OLE_HANDLE hBrowserHWND(void);
[id(15)] void LoadHTML(BSTR HTML, BSTR URL);
[id(16)] VARIANT_BOOL Created(void);
[id(17)] BSTR SelectedHTML([in] VARIANT_BOOL FullHTML);
[id(18)] BSTR ExecJavaScript([in] BSTR Code);
[id(19)] BSTR ExecCommand([in] EDIT_COMMAND id, [in, optional] VARIANT Params);
[id(20)] BSTR TidyHTML(BSTR HTML);
[id(21)] VARIANT_BOOL Editable(void);
[id(22)] BSTR CleanHTML(BSTR HTML);
[id(23)] void Find(BSTR RegularExpression);
};
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Event dispatch interface for CWebKitXCtrl
[
uuid(3EE33618-BC27-40E9-B73D-87A49DEF0C8A)
]
dispinterface _DWebKitXEvents
{
properties:
// Event interface has no properties
methods:
[id(1)] void OnReady(void);
[id(2)] void OnCreate();
[id(3)] void OnFocus(BSTR NodePath, BSTR SelectionHTML);
[id(4)] void OnModified(void);
[id(DISPID_MOUSEDOWN)] void MouseDown(SHORT Button, SHORT Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);
[id(5)] void OnSelectionChanged(BSTR DocumentHTML, BSTR SelectionHTML);
};
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Class information for CWebKitXCtrl
[
uuid(D9EA077F-4E5F-4BBD-9ACD-02E7021CDEFE)
]
coclass WebKitX
{
[default] dispinterface _DWebKitX;
[default, source] dispinterface _DWebKitXEvents;
};
};