]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/webview_missing.h
activating DrawRectangle optimization
[wxWidgets.git] / include / wx / msw / webview_missing.h
CommitLineData
e52aec97
SL
1/////////////////////////////////////////////////////////////////////////////
2// Name: include/wx/msw/webview_missing.h
3// Purpose: Defintions / classes commonly missing used by wxWebViewIE
4// Author: Steven Lamerton
5// Id: $Id$
6// Copyright: (c) 2012 Steven Lamerton
7// Licence: wxWindows licence
8/////////////////////////////////////////////////////////////////////////////
9
10/*
11 * Classes and definitions used by wxWebViewIE vary in their
12 * completeness between compilers and versions of compilers.
13 * We implement our own versions here which should work
14 * for all compilers. The definitions are taken from the
15 * mingw-w64 headers which are public domain.
16*/
17
18/* urlmon.h */
19
20struct IHTMLElement;
21struct IHTMLDocument2;
22
23#ifndef REFRESH_NORMAL
24#define REFRESH_NORMAL 0
25#endif
26
27#ifndef REFRESH_COMPLETELY
28#define REFRESH_COMPLETELY 3
29#endif
30
31typedef enum __wxMIDL_IBindStatusCallback_0006
32{
33 wxBSCF_FIRSTDATANOTIFICATION = 0x1,
34 wxBSCF_INTERMEDIATEDATANOTIFICATION = 0x2,
35 wxBSCF_LASTDATANOTIFICATION = 0x4,
36 wxBSCF_DATAFULLYAVAILABLE = 0x8,
37 wxBSCF_AVAILABLEDATASIZEUNKNOWN = 0x10
38} wxBSCF;
39
40EXTERN_C const IID CLSID_FileProtocol;
41
42typedef struct _tagwxBINDINFO
43{
44 ULONG cbSize;
45 LPWSTR szExtraInfo;
46 STGMEDIUM stgmedData;
47 DWORD grfBindInfoF;
48 DWORD dwBindVerb;
49 LPWSTR szCustomVerb;
50 DWORD cbstgmedData;
51 DWORD dwOptions;
52 DWORD dwOptionsFlags;
53 DWORD dwCodePage;
54 SECURITY_ATTRIBUTES securityAttributes;
55 IID iid;
56 IUnknown *pUnk;
57 DWORD dwReserved;
58} wxBINDINFO;
59
60typedef struct _tagwxPROTOCOLDATA
61{
62 DWORD grfFlags;
63 DWORD dwState;
64 LPVOID pData;
65 ULONG cbData;
66} wxPROTOCOLDATA;
67
68class wxIInternetBindInfo : public IUnknown
69{
70public:
71 virtual HRESULT wxSTDCALL GetBindInfo(DWORD *grfBINDF, wxBINDINFO *pbindinfo) = 0;
72 virtual HRESULT wxSTDCALL GetBindString(ULONG ulStringType, LPOLESTR *ppwzStr,
73 ULONG cEl, ULONG *pcElFetched) = 0;
74};
75
76class wxIInternetProtocolSink : public IUnknown
77{
78public:
79 virtual HRESULT wxSTDCALL Switch(wxPROTOCOLDATA *pProtocolData) = 0;
80 virtual HRESULT wxSTDCALL ReportProgress(ULONG ulStatusCode,
81 LPCWSTR szStatusText) = 0;
82 virtual HRESULT wxSTDCALL ReportData(DWORD grfBSCF, ULONG ulProgress,
83 ULONG ulProgressMax) = 0;
84 virtual HRESULT wxSTDCALL ReportResult(HRESULT hrResult, DWORD dwError,
85 LPCWSTR szResult) = 0;
86};
87
88class wxIInternetProtocolRoot : public IUnknown
89{
90public:
91 virtual HRESULT wxSTDCALL Start(LPCWSTR szUrl, wxIInternetProtocolSink *pOIProtSink,
92 wxIInternetBindInfo *pOIBindInfo, DWORD grfPI,
93 HANDLE_PTR dwReserved) = 0;
94 virtual HRESULT wxSTDCALL Continue(wxPROTOCOLDATA *pProtocolData) = 0;
95 virtual HRESULT wxSTDCALL Abort(HRESULT hrReason, DWORD dwOptions) = 0;
96 virtual HRESULT wxSTDCALL Terminate(DWORD dwOptions) = 0;
97 virtual HRESULT wxSTDCALL Suspend(void) = 0;
98 virtual HRESULT wxSTDCALL Resume(void) = 0;
99};
100
101
102class wxIInternetProtocol : public wxIInternetProtocolRoot
103{
104public:
105 virtual HRESULT wxSTDCALL Read(void *pv, ULONG cb, ULONG *pcbRead) = 0;
106 virtual HRESULT wxSTDCALL Seek(LARGE_INTEGER dlibMove, DWORD dwOrigin,
107 ULARGE_INTEGER *plibNewPosition) = 0;
108 virtual HRESULT wxSTDCALL LockRequest(DWORD dwOptions) = 0;
109 virtual HRESULT wxSTDCALL UnlockRequest(void) = 0;
110};
111
112
113class wxIInternetSession : public IUnknown
114{
115public:
116 virtual HRESULT wxSTDCALL RegisterNameSpace(IClassFactory *pCF, REFCLSID rclsid,
117 LPCWSTR pwzProtocol,
118 ULONG cPatterns,
119 const LPCWSTR *ppwzPatterns,
120 DWORD dwReserved) = 0;
121 virtual HRESULT wxSTDCALL UnregisterNameSpace(IClassFactory *pCF,
122 LPCWSTR pszProtocol) = 0;
123 virtual HRESULT wxSTDCALL RegisterMimeFilter(IClassFactory *pCF,
124 REFCLSID rclsid,
125 LPCWSTR pwzType) = 0;
126 virtual HRESULT wxSTDCALL UnregisterMimeFilter(IClassFactory *pCF,
127 LPCWSTR pwzType) = 0;
128 virtual HRESULT wxSTDCALL CreateBinding(LPBC pBC, LPCWSTR szUrl,
129 IUnknown *pUnkOuter, IUnknown **ppUnk,
130 wxIInternetProtocol **ppOInetProt,
131 DWORD dwOption) = 0;
132 virtual HRESULT wxSTDCALL SetSessionOption(DWORD dwOption, LPVOID pBuffer,
133 DWORD dwBufferLength,
134 DWORD dwReserved) = 0;
135 virtual HRESULT wxSTDCALL GetSessionOption(DWORD dwOption, LPVOID pBuffer,
136 DWORD *pdwBufferLength,
137 DWORD dwReserved) = 0;
138};
139
140/* end of urlmon.h */
141
142/* mshtmhst.h */
143
144typedef enum _tagwxDOCHOSTUIFLAG
145{
146 DOCHOSTUIFLAG_DIALOG = 0x1,
147 DOCHOSTUIFLAG_DISABLE_HELP_MENU = 0x2,
148 DOCHOSTUIFLAG_NO3DBORDER = 0x4,
149 DOCHOSTUIFLAG_SCROLL_NO = 0x8,
150 DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE = 0x10,
151 DOCHOSTUIFLAG_OPENNEWWIN = 0x20,
152 DOCHOSTUIFLAG_DISABLE_OFFSCREEN = 0x40,
153 DOCHOSTUIFLAG_FLAT_SCROLLBAR = 0x80,
154 DOCHOSTUIFLAG_DIV_BLOCKDEFAULT = 0x100,
155 DOCHOSTUIFLAG_ACTIVATE_CLIENTHIT_ONLY = 0x200,
156 DOCHOSTUIFLAG_OVERRIDEBEHAVIORFACTORY = 0x400,
157 DOCHOSTUIFLAG_CODEPAGELINKEDFONTS = 0x800,
158 DOCHOSTUIFLAG_URL_ENCODING_DISABLE_UTF8 = 0x1000,
159 DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8 = 0x2000,
160 DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE = 0x4000,
161 DOCHOSTUIFLAG_ENABLE_INPLACE_NAVIGATION = 0x10000,
162 DOCHOSTUIFLAG_IME_ENABLE_RECONVERSION = 0x20000,
163 DOCHOSTUIFLAG_THEME = 0x40000,
164 DOCHOSTUIFLAG_NOTHEME = 0x80000,
165 DOCHOSTUIFLAG_NOPICS = 0x100000,
166 DOCHOSTUIFLAG_NO3DOUTERBORDER = 0x200000,
167 DOCHOSTUIFLAG_DISABLE_EDIT_NS_FIXUP = 0x400000,
168 DOCHOSTUIFLAG_LOCAL_MACHINE_ACCESS_CHECK = 0x800000,
169 DOCHOSTUIFLAG_DISABLE_UNTRUSTEDPROTOCOL = 0x1000000
170} DOCHOSTUIFLAG;
171
172typedef struct _tagwxDOCHOSTUIINFO
173{
174 ULONG cbSize;
175 DWORD dwFlags;
176 DWORD dwDoubleClick;
177 OLECHAR *pchHostCss;
178 OLECHAR *pchHostNS;
179} DOCHOSTUIINFO;
180
181class wxIDocHostUIHandler : public IUnknown
182{
183public:
184 virtual HRESULT wxSTDCALL ShowContextMenu(DWORD dwID, POINT *ppt,
185 IUnknown *pcmdtReserved,
186 IDispatch *pdispReserved) = 0;
187
188 virtual HRESULT wxSTDCALL GetHostInfo(DOCHOSTUIINFO *pInfo) = 0;
189
190 virtual HRESULT wxSTDCALL ShowUI(DWORD dwID,
191 IOleInPlaceActiveObject *pActiveObject,
192 IOleCommandTarget *pCommandTarget,
193 IOleInPlaceFrame *pFrame,
194 IOleInPlaceUIWindow *pDoc) = 0;
195
196 virtual HRESULT wxSTDCALL HideUI(void) = 0;
197
198 virtual HRESULT wxSTDCALL UpdateUI(void) = 0;
199
200 virtual HRESULT wxSTDCALL EnableModeless(BOOL fEnable) = 0;
201
202 virtual HRESULT wxSTDCALL OnDocWindowActivate(BOOL fActivate) = 0;
203
204 virtual HRESULT wxSTDCALL OnFrameWindowActivate(BOOL fActivate) = 0;
205
206 virtual HRESULT wxSTDCALL ResizeBorder(LPCRECT prcBorder,
207 IOleInPlaceUIWindow *pUIWindow,
208 BOOL fRameWindow) = 0;
209
210 virtual HRESULT wxSTDCALL TranslateAccelerator(LPMSG lpMsg,
211 const GUID *pguidCmdGroup,
212 DWORD nCmdID) = 0;
213
214 virtual HRESULT wxSTDCALL GetOptionKeyPath(LPOLESTR *pchKey,
215 DWORD dw) = 0;
216
217 virtual HRESULT wxSTDCALL GetDropTarget(IDropTarget *pDropTarget,
218 IDropTarget **ppDropTarget) = 0;
219
220 virtual HRESULT wxSTDCALL GetExternal(IDispatch **ppDispatch) = 0;
221
222 virtual HRESULT wxSTDCALL TranslateUrl(DWORD dwTranslate,
223 OLECHAR *pchURLIn,
224 OLECHAR **ppchURLOut) = 0;
225
226 virtual HRESULT wxSTDCALL FilterDataObject(IDataObject *pDO,
227 IDataObject **ppDORet) = 0;
228};
229
230/* end of mshtmhst.h */
231
232/* mshtml.h */
233
234#include <mshtml.h>
235
236#if defined(__MINGW32__) || defined(__VISUALC6__)
237
238typedef enum _tagwxPOINTER_GRAVITY
239{
240 POINTER_GRAVITY_Left = 0,
241 POINTER_GRAVITY_Right = 1,
242 POINTER_GRAVITY_Max = 2147483647
243} POINTER_GRAVITY;
244
245typedef enum _tagwxELEMENT_ADJACENCY
246{
247 ELEM_ADJ_BeforeBegin = 0,
248 ELEM_ADJ_AfterBegin = 1,
249 ELEM_ADJ_BeforeEnd = 2,
250 ELEM_ADJ_AfterEnd = 3,
251 ELEMENT_ADJACENCY_Max = 2147483647
252} ELEMENT_ADJACENCY;
253
254typedef enum _tagwxMARKUP_CONTEXT_TYPE
255{
256 CONTEXT_TYPE_None = 0,
257 CONTEXT_TYPE_Text = 1,
258 CONTEXT_TYPE_EnterScope = 2,
259 CONTEXT_TYPE_ExitScope = 3,
260 CONTEXT_TYPE_NoScope = 4,
261 MARKUP_CONTEXT_TYPE_Max = 2147483647
262} MARKUP_CONTEXT_TYPE;
263
264typedef enum _tagwxFINDTEXT_FLAGS
265{
266 FINDTEXT_BACKWARDS = 0x1,
267 FINDTEXT_WHOLEWORD = 0x2,
268 FINDTEXT_MATCHCASE = 0x4,
269 FINDTEXT_RAW = 0x20000,
270 FINDTEXT_MATCHDIAC = 0x20000000,
271 FINDTEXT_MATCHKASHIDA = 0x40000000,
272 FINDTEXT_MATCHALEFHAMZA = 0x80000000,
273 FINDTEXT_FLAGS_Max = 2147483647
274} FINDTEXT_FLAGS;
275
276typedef enum _tagwxMOVEUNIT_ACTION
277{
278 MOVEUNIT_PREVCHAR = 0,
279 MOVEUNIT_NEXTCHAR = 1,
280 MOVEUNIT_PREVCLUSTERBEGIN = 2,
281 MOVEUNIT_NEXTCLUSTERBEGIN = 3,
282 MOVEUNIT_PREVCLUSTEREND = 4,
283 MOVEUNIT_NEXTCLUSTEREND = 5,
284 MOVEUNIT_PREVWORDBEGIN = 6,
285 MOVEUNIT_NEXTWORDBEGIN = 7,
286 MOVEUNIT_PREVWORDEND = 8,
287 MOVEUNIT_NEXTWORDEND = 9,
288 MOVEUNIT_PREVPROOFWORD = 10,
289 MOVEUNIT_NEXTPROOFWORD = 11,
290 MOVEUNIT_NEXTURLBEGIN = 12,
291 MOVEUNIT_PREVURLBEGIN = 13,
292 MOVEUNIT_NEXTURLEND = 14,
293 MOVEUNIT_PREVURLEND = 15,
294 MOVEUNIT_PREVSENTENCE = 16,
295 MOVEUNIT_NEXTSENTENCE = 17,
296 MOVEUNIT_PREVBLOCK = 18,
297 MOVEUNIT_NEXTBLOCK = 19,
298 MOVEUNIT_ACTION_Max = 2147483647
299} MOVEUNIT_ACTION;
300
301typedef enum _tagwxELEMENT_TAG_ID
302{
303 TAGID_NULL = 0, TAGID_UNKNOWN = 1, TAGID_A = 2, TAGID_ACRONYM = 3, TAGID_ADDRESS = 4, TAGID_APPLET = 5, TAGID_AREA = 6, TAGID_B = 7, TAGID_BASE = 8,
304 TAGID_BASEFONT = 9, TAGID_BDO = 10, TAGID_BGSOUND = 11, TAGID_BIG = 12, TAGID_BLINK = 13, TAGID_BLOCKQUOTE = 14, TAGID_BODY = 15, TAGID_BR = 16,
305 TAGID_BUTTON = 17, TAGID_CAPTION = 18, TAGID_CENTER = 19, TAGID_CITE = 20, TAGID_CODE = 21, TAGID_COL = 22, TAGID_COLGROUP = 23, TAGID_COMMENT = 24,
306 TAGID_COMMENT_RAW = 25, TAGID_DD = 26, TAGID_DEL = 27, TAGID_DFN = 28, TAGID_DIR = 29, TAGID_DIV = 30, TAGID_DL = 31, TAGID_DT = 32, TAGID_EM = 33,
307 TAGID_EMBED = 34, TAGID_FIELDSET = 35, TAGID_FONT = 36, TAGID_FORM = 37, TAGID_FRAME = 38, TAGID_FRAMESET = 39, TAGID_GENERIC = 40, TAGID_H1 = 41,
308 TAGID_H2 = 42, TAGID_H3 = 43, TAGID_H4 = 44, TAGID_H5 = 45, TAGID_H6 = 46, TAGID_HEAD = 47, TAGID_HR = 48, TAGID_HTML = 49, TAGID_I = 50, TAGID_IFRAME = 51,
309 TAGID_IMG = 52, TAGID_INPUT = 53, TAGID_INS = 54, TAGID_KBD = 55, TAGID_LABEL = 56, TAGID_LEGEND = 57, TAGID_LI = 58, TAGID_LINK = 59, TAGID_LISTING = 60,
310 TAGID_MAP = 61, TAGID_MARQUEE = 62, TAGID_MENU = 63, TAGID_META = 64, TAGID_NEXTID = 65, TAGID_NOBR = 66, TAGID_NOEMBED = 67, TAGID_NOFRAMES = 68,
311 TAGID_NOSCRIPT = 69, TAGID_OBJECT = 70, TAGID_OL = 71, TAGID_OPTION = 72, TAGID_P = 73, TAGID_PARAM = 74, TAGID_PLAINTEXT = 75, TAGID_PRE = 76,
312 TAGID_Q = 77, TAGID_RP = 78, TAGID_RT = 79, TAGID_RUBY = 80, TAGID_S = 81, TAGID_SAMP = 82, TAGID_SCRIPT = 83, TAGID_SELECT = 84, TAGID_SMALL = 85,
313 TAGID_SPAN = 86, TAGID_STRIKE = 87, TAGID_STRONG = 88, TAGID_STYLE = 89, TAGID_SUB = 90, TAGID_SUP = 91, TAGID_TABLE = 92, TAGID_TBODY = 93, TAGID_TC = 94,
314 TAGID_TD = 95, TAGID_TEXTAREA = 96, TAGID_TFOOT = 97, TAGID_TH = 98, TAGID_THEAD = 99, TAGID_TITLE = 100, TAGID_TR = 101, TAGID_TT = 102, TAGID_U = 103,
315 TAGID_UL = 104, TAGID_VAR = 105, TAGID_WBR = 106, TAGID_XMP = 107, TAGID_ROOT = 108, TAGID_OPTGROUP = 109, TAGID_COUNT = 110,
316 TAGID_LAST_PREDEFINED = 10000, ELEMENT_TAG_ID_Max = 2147483647
317} ELEMENT_TAG_ID;
318
319#endif
320
321struct wxIHTMLStyle : public IDispatch
322{
323public:
324 virtual HRESULT wxSTDCALL put_fontFamily(BSTR v) = 0;
325 virtual HRESULT wxSTDCALL get_fontFamily(BSTR *p) = 0;
326 virtual HRESULT wxSTDCALL put_fontStyle(BSTR v) = 0;
327 virtual HRESULT wxSTDCALL get_fontStyle(BSTR *p) = 0;
328 virtual HRESULT wxSTDCALL put_fontVariant(BSTR v) = 0;
329 virtual HRESULT wxSTDCALL get_fontVariant(BSTR *p) = 0;
330 virtual HRESULT wxSTDCALL put_fontWeight(BSTR v) = 0;
331 virtual HRESULT wxSTDCALL get_fontWeight(BSTR *p) = 0;
332 virtual HRESULT wxSTDCALL put_fontSize(VARIANT v) = 0;
333 virtual HRESULT wxSTDCALL get_fontSize(VARIANT *p) = 0;
334 virtual HRESULT wxSTDCALL put_font(BSTR v) = 0;
335 virtual HRESULT wxSTDCALL get_font(BSTR *p) = 0;
336 virtual HRESULT wxSTDCALL put_color(VARIANT v) = 0;
337 virtual HRESULT wxSTDCALL get_color(VARIANT *p) = 0;
338 virtual HRESULT wxSTDCALL put_background(BSTR v) = 0;
339 virtual HRESULT wxSTDCALL get_background(BSTR *p) = 0;
340 virtual HRESULT wxSTDCALL put_backgroundColor(VARIANT v) = 0;
341 virtual HRESULT wxSTDCALL get_backgroundColor(VARIANT *p) = 0;
342 virtual HRESULT wxSTDCALL put_backgroundImage(BSTR v) = 0;
343 virtual HRESULT wxSTDCALL get_backgroundImage(BSTR *p) = 0;
344 virtual HRESULT wxSTDCALL put_backgroundRepeat(BSTR v) = 0;
345 virtual HRESULT wxSTDCALL get_backgroundRepeat(BSTR *p) = 0;
346 virtual HRESULT wxSTDCALL put_backgroundAttachment(BSTR v) = 0;
347 virtual HRESULT wxSTDCALL get_backgroundAttachment(BSTR *p) = 0;
348 virtual HRESULT wxSTDCALL put_backgroundPosition(BSTR v) = 0;
349 virtual HRESULT wxSTDCALL get_backgroundPosition(BSTR *p) = 0;
350 virtual HRESULT wxSTDCALL put_backgroundPositionX(VARIANT v) = 0;
351 virtual HRESULT wxSTDCALL get_backgroundPositionX(VARIANT *p) = 0;
352 virtual HRESULT wxSTDCALL put_backgroundPositionY(VARIANT v) = 0;
353 virtual HRESULT wxSTDCALL get_backgroundPositionY(VARIANT *p) = 0;
354 virtual HRESULT wxSTDCALL put_wordSpacing(VARIANT v) = 0;
355 virtual HRESULT wxSTDCALL get_wordSpacing(VARIANT *p) = 0;
356 virtual HRESULT wxSTDCALL put_letterSpacing(VARIANT v) = 0;
357 virtual HRESULT wxSTDCALL get_letterSpacing(VARIANT *p) = 0;
358 virtual HRESULT wxSTDCALL put_textDecoration(BSTR v) = 0;
359 virtual HRESULT wxSTDCALL get_textDecoration(BSTR *p) = 0;
360 virtual HRESULT wxSTDCALL put_textDecorationNone(VARIANT_BOOL v) = 0;
361 virtual HRESULT wxSTDCALL get_textDecorationNone(VARIANT_BOOL *p) = 0;
362 virtual HRESULT wxSTDCALL put_textDecorationUnderline(VARIANT_BOOL v) = 0;
363 virtual HRESULT wxSTDCALL get_textDecorationUnderline(VARIANT_BOOL *p) = 0;
364 virtual HRESULT wxSTDCALL put_textDecorationOverline(VARIANT_BOOL v) = 0;
365 virtual HRESULT wxSTDCALL get_textDecorationOverline(VARIANT_BOOL *p) = 0;
366 virtual HRESULT wxSTDCALL put_textDecorationLineThrough(VARIANT_BOOL v) = 0;
367 virtual HRESULT wxSTDCALL get_textDecorationLineThrough(VARIANT_BOOL *p) = 0;
368 virtual HRESULT wxSTDCALL put_textDecorationBlink(VARIANT_BOOL v) = 0;
369 virtual HRESULT wxSTDCALL get_textDecorationBlink(VARIANT_BOOL *p) = 0;
370 virtual HRESULT wxSTDCALL put_verticalAlign(VARIANT v) = 0;
371 virtual HRESULT wxSTDCALL get_verticalAlign(VARIANT *p) = 0;
372 virtual HRESULT wxSTDCALL put_textTransform(BSTR v) = 0;
373 virtual HRESULT wxSTDCALL get_textTransform(BSTR *p) = 0;
374 virtual HRESULT wxSTDCALL put_textAlign(BSTR v) = 0;
375 virtual HRESULT wxSTDCALL get_textAlign(BSTR *p) = 0;
376 virtual HRESULT wxSTDCALL put_textIndent(VARIANT v) = 0;
377 virtual HRESULT wxSTDCALL get_textIndent(VARIANT *p) = 0;
378 virtual HRESULT wxSTDCALL put_lineHeight(VARIANT v) = 0;
379 virtual HRESULT wxSTDCALL get_lineHeight(VARIANT *p) = 0;
380 virtual HRESULT wxSTDCALL put_marginTop(VARIANT v) = 0;
381 virtual HRESULT wxSTDCALL get_marginTop(VARIANT *p) = 0;
382 virtual HRESULT wxSTDCALL put_marginRight(VARIANT v) = 0;
383 virtual HRESULT wxSTDCALL get_marginRight(VARIANT *p) = 0;
384 virtual HRESULT wxSTDCALL put_marginBottom(VARIANT v) = 0;
385 virtual HRESULT wxSTDCALL get_marginBottom(VARIANT *p) = 0;
386 virtual HRESULT wxSTDCALL put_marginLeft(VARIANT v) = 0;
387 virtual HRESULT wxSTDCALL get_marginLeft(VARIANT *p) = 0;
388 virtual HRESULT wxSTDCALL put_margin(BSTR v) = 0;
389 virtual HRESULT wxSTDCALL get_margin(BSTR *p) = 0;
390 virtual HRESULT wxSTDCALL put_paddingTop(VARIANT v) = 0;
391 virtual HRESULT wxSTDCALL get_paddingTop(VARIANT *p) = 0;
392 virtual HRESULT wxSTDCALL put_paddingRight(VARIANT v) = 0;
393 virtual HRESULT wxSTDCALL get_paddingRight(VARIANT *p) = 0;
394 virtual HRESULT wxSTDCALL put_paddingBottom(VARIANT v) = 0;
395 virtual HRESULT wxSTDCALL get_paddingBottom(VARIANT *p) = 0;
396 virtual HRESULT wxSTDCALL put_paddingLeft(VARIANT v) = 0;
397 virtual HRESULT wxSTDCALL get_paddingLeft(VARIANT *p) = 0;
398 virtual HRESULT wxSTDCALL put_padding(BSTR v) = 0;
399 virtual HRESULT wxSTDCALL get_padding(BSTR *p) = 0;
400 virtual HRESULT wxSTDCALL put_border(BSTR v) = 0;
401 virtual HRESULT wxSTDCALL get_border(BSTR *p) = 0;
402 virtual HRESULT wxSTDCALL put_borderTop(BSTR v) = 0;
403 virtual HRESULT wxSTDCALL get_borderTop(BSTR *p) = 0;
404 virtual HRESULT wxSTDCALL put_borderRight(BSTR v) = 0;
405 virtual HRESULT wxSTDCALL get_borderRight(BSTR *p) = 0;
406 virtual HRESULT wxSTDCALL put_borderBottom(BSTR v) = 0;
407 virtual HRESULT wxSTDCALL get_borderBottom(BSTR *p) = 0;
408 virtual HRESULT wxSTDCALL put_borderLeft(BSTR v) = 0;
409 virtual HRESULT wxSTDCALL get_borderLeft(BSTR *p) = 0;
410 virtual HRESULT wxSTDCALL put_borderColor(BSTR v) = 0;
411 virtual HRESULT wxSTDCALL get_borderColor(BSTR *p) = 0;
412 virtual HRESULT wxSTDCALL put_borderTopColor(VARIANT v) = 0;
413 virtual HRESULT wxSTDCALL get_borderTopColor(VARIANT *p) = 0;
414 virtual HRESULT wxSTDCALL put_borderRightColor(VARIANT v) = 0;
415 virtual HRESULT wxSTDCALL get_borderRightColor(VARIANT *p) = 0;
416 virtual HRESULT wxSTDCALL put_borderBottomColor(VARIANT v) = 0;
417 virtual HRESULT wxSTDCALL get_borderBottomColor(VARIANT *p) = 0;
418 virtual HRESULT wxSTDCALL put_borderLeftColor(VARIANT v) = 0;
419 virtual HRESULT wxSTDCALL get_borderLeftColor(VARIANT *p) = 0;
420 virtual HRESULT wxSTDCALL put_borderWidth(BSTR v) = 0;
421 virtual HRESULT wxSTDCALL get_borderWidth(BSTR *p) = 0;
422 virtual HRESULT wxSTDCALL put_borderTopWidth(VARIANT v) = 0;
423 virtual HRESULT wxSTDCALL get_borderTopWidth(VARIANT *p) = 0;
424 virtual HRESULT wxSTDCALL put_borderRightWidth(VARIANT v) = 0;
425 virtual HRESULT wxSTDCALL get_borderRightWidth(VARIANT *p) = 0;
426 virtual HRESULT wxSTDCALL put_borderBottomWidth(VARIANT v) = 0;
427 virtual HRESULT wxSTDCALL get_borderBottomWidth(VARIANT *p) = 0;
428 virtual HRESULT wxSTDCALL put_borderLeftWidth(VARIANT v) = 0;
429 virtual HRESULT wxSTDCALL get_borderLeftWidth(VARIANT *p) = 0;
430 virtual HRESULT wxSTDCALL put_borderStyle(BSTR v) = 0;
431 virtual HRESULT wxSTDCALL get_borderStyle(BSTR *p) = 0;
432 virtual HRESULT wxSTDCALL put_borderTopStyle(BSTR v) = 0;
433 virtual HRESULT wxSTDCALL get_borderTopStyle(BSTR *p) = 0;
434 virtual HRESULT wxSTDCALL put_borderRightStyle(BSTR v) = 0;
435 virtual HRESULT wxSTDCALL get_borderRightStyle(BSTR *p) = 0;
436 virtual HRESULT wxSTDCALL put_borderBottomStyle(BSTR v) = 0;
437 virtual HRESULT wxSTDCALL get_borderBottomStyle(BSTR *p) = 0;
438 virtual HRESULT wxSTDCALL put_borderLeftStyle(BSTR v) = 0;
439 virtual HRESULT wxSTDCALL get_borderLeftStyle(BSTR *p) = 0;
440 virtual HRESULT wxSTDCALL put_width(VARIANT v) = 0;
441 virtual HRESULT wxSTDCALL get_width(VARIANT *p) = 0;
442 virtual HRESULT wxSTDCALL put_height(VARIANT v) = 0;
443 virtual HRESULT wxSTDCALL get_height(VARIANT *p) = 0;
444 virtual HRESULT wxSTDCALL put_styleFloat(BSTR v) = 0;
445 virtual HRESULT wxSTDCALL get_styleFloat(BSTR *p) = 0;
446 virtual HRESULT wxSTDCALL put_clear(BSTR v) = 0;
447 virtual HRESULT wxSTDCALL get_clear(BSTR *p) = 0;
448 virtual HRESULT wxSTDCALL put_display(BSTR v) = 0;
449 virtual HRESULT wxSTDCALL get_display(BSTR *p) = 0;
450 virtual HRESULT wxSTDCALL put_visibility(BSTR v) = 0;
451 virtual HRESULT wxSTDCALL get_visibility(BSTR *p) = 0;
452 virtual HRESULT wxSTDCALL put_listStyleType(BSTR v) = 0;
453 virtual HRESULT wxSTDCALL get_listStyleType(BSTR *p) = 0;
454 virtual HRESULT wxSTDCALL put_listStylePosition(BSTR v) = 0;
455 virtual HRESULT wxSTDCALL get_listStylePosition(BSTR *p) = 0;
456 virtual HRESULT wxSTDCALL put_listStyleImage(BSTR v) = 0;
457 virtual HRESULT wxSTDCALL get_listStyleImage(BSTR *p) = 0;
458 virtual HRESULT wxSTDCALL put_listStyle(BSTR v) = 0;
459 virtual HRESULT wxSTDCALL get_listStyle(BSTR *p) = 0;
460 virtual HRESULT wxSTDCALL put_whiteSpace(BSTR v) = 0;
461 virtual HRESULT wxSTDCALL get_whiteSpace(BSTR *p) = 0;
462 virtual HRESULT wxSTDCALL put_top(VARIANT v) = 0;
463 virtual HRESULT wxSTDCALL get_top(VARIANT *p) = 0;
464 virtual HRESULT wxSTDCALL put_left(VARIANT v) = 0;
465 virtual HRESULT wxSTDCALL get_left(VARIANT *p) = 0;
466 virtual HRESULT wxSTDCALL get_position(BSTR *p) = 0;
467 virtual HRESULT wxSTDCALL put_zIndex(VARIANT v) = 0;
468 virtual HRESULT wxSTDCALL get_zIndex(VARIANT *p) = 0;
469 virtual HRESULT wxSTDCALL put_overflow(BSTR v) = 0;
470 virtual HRESULT wxSTDCALL get_overflow(BSTR *p) = 0;
471 virtual HRESULT wxSTDCALL put_pageBreakBefore(BSTR v) = 0;
472 virtual HRESULT wxSTDCALL get_pageBreakBefore(BSTR *p) = 0;
473 virtual HRESULT wxSTDCALL put_pageBreakAfter(BSTR v) = 0;
474 virtual HRESULT wxSTDCALL get_pageBreakAfter(BSTR *p) = 0;
475 virtual HRESULT wxSTDCALL put_cssText(BSTR v) = 0;
476 virtual HRESULT wxSTDCALL get_cssText(BSTR *p) = 0;
477 virtual HRESULT wxSTDCALL put_pixelTop(long v) = 0;
478 virtual HRESULT wxSTDCALL get_pixelTop(long *p) = 0;
479 virtual HRESULT wxSTDCALL put_pixelLeft(long v) = 0;
480 virtual HRESULT wxSTDCALL get_pixelLeft(long *p) = 0;
481 virtual HRESULT wxSTDCALL put_pixelWidth(long v) = 0;
482 virtual HRESULT wxSTDCALL get_pixelWidth(long *p) = 0;
483 virtual HRESULT wxSTDCALL put_pixelHeight(long v) = 0;
484 virtual HRESULT wxSTDCALL get_pixelHeight(long *p) = 0;
485 virtual HRESULT wxSTDCALL put_posTop(float v) = 0;
486 virtual HRESULT wxSTDCALL get_posTop(float *p) = 0;
487 virtual HRESULT wxSTDCALL put_posLeft(float v) = 0;
488 virtual HRESULT wxSTDCALL get_posLeft(float *p) = 0;
489 virtual HRESULT wxSTDCALL put_posWidth(float v) = 0;
490 virtual HRESULT wxSTDCALL get_posWidth(float *p) = 0;
491 virtual HRESULT wxSTDCALL put_posHeight(float v) = 0;
492 virtual HRESULT wxSTDCALL get_posHeight(float *p) = 0;
493 virtual HRESULT wxSTDCALL put_cursor(BSTR v) = 0;
494 virtual HRESULT wxSTDCALL get_cursor(BSTR *p) = 0;
495 virtual HRESULT wxSTDCALL put_clip(BSTR v) = 0;
496 virtual HRESULT wxSTDCALL get_clip(BSTR *p) = 0;
497 virtual HRESULT wxSTDCALL put_filter(BSTR v) = 0;
498 virtual HRESULT wxSTDCALL get_filter(BSTR *p) = 0;
499 virtual HRESULT wxSTDCALL setAttribute(BSTR strAttributeName, VARIANT AttributeValue, LONG lFlags = 1) = 0;
500 virtual HRESULT wxSTDCALL getAttribute(BSTR strAttributeName, LONG lFlags, VARIANT *AttributeValue) = 0;
501 virtual HRESULT wxSTDCALL removeAttribute(BSTR strAttributeName, LONG lFlags, VARIANT_BOOL *pfSuccess) = 0;
502 virtual HRESULT wxSTDCALL toString(BSTR *String) = 0;
503};
504
505struct wxIHTMLCurrentStyle : public IDispatch
506{
507public:
508 virtual HRESULT wxSTDCALL get_position(BSTR *p) = 0;
509 virtual HRESULT wxSTDCALL get_styleFloat(BSTR *p) = 0;
510 virtual HRESULT wxSTDCALL get_color(VARIANT *p) = 0;
511 virtual HRESULT wxSTDCALL get_backgroundColor(VARIANT *p) = 0;
512 virtual HRESULT wxSTDCALL get_fontFamily(BSTR *p) = 0;
513 virtual HRESULT wxSTDCALL get_fontStyle(BSTR *p) = 0;
514 virtual HRESULT wxSTDCALL get_fontVariant(BSTR *p) = 0;
515 virtual HRESULT wxSTDCALL get_fontWeight(VARIANT *p) = 0;
516 virtual HRESULT wxSTDCALL get_fontSize(VARIANT *p) = 0;
517 virtual HRESULT wxSTDCALL get_backgroundImage(BSTR *p) = 0;
518 virtual HRESULT wxSTDCALL get_backgroundPositionX(VARIANT *p) = 0;
519 virtual HRESULT wxSTDCALL get_backgroundPositionY(VARIANT *p) = 0;
520 virtual HRESULT wxSTDCALL get_backgroundRepeat(BSTR *p) = 0;
521 virtual HRESULT wxSTDCALL get_borderLeftColor(VARIANT *p) = 0;
522 virtual HRESULT wxSTDCALL get_borderTopColor(VARIANT *p) = 0;
523 virtual HRESULT wxSTDCALL get_borderRightColor(VARIANT *p) = 0;
524 virtual HRESULT wxSTDCALL get_borderBottomColor(VARIANT *p) = 0;
525 virtual HRESULT wxSTDCALL get_borderTopStyle(BSTR *p) = 0;
526 virtual HRESULT wxSTDCALL get_borderRightStyle(BSTR *p) = 0;
527 virtual HRESULT wxSTDCALL get_borderBottomStyle(BSTR *p) = 0;
528 virtual HRESULT wxSTDCALL get_borderLeftStyle(BSTR *p) = 0;
529 virtual HRESULT wxSTDCALL get_borderTopWidth(VARIANT *p) = 0;
530 virtual HRESULT wxSTDCALL get_borderRightWidth(VARIANT *p) = 0;
531 virtual HRESULT wxSTDCALL get_borderBottomWidth(VARIANT *p) = 0;
532 virtual HRESULT wxSTDCALL get_borderLeftWidth(VARIANT *p) = 0;
533 virtual HRESULT wxSTDCALL get_left(VARIANT *p) = 0;
534 virtual HRESULT wxSTDCALL get_top(VARIANT *p) = 0;
535 virtual HRESULT wxSTDCALL get_width(VARIANT *p) = 0;
536 virtual HRESULT wxSTDCALL get_height(VARIANT *p) = 0;
537 virtual HRESULT wxSTDCALL get_paddingLeft(VARIANT *p) = 0;
538 virtual HRESULT wxSTDCALL get_paddingTop(VARIANT *p) = 0;
539 virtual HRESULT wxSTDCALL get_paddingRight(VARIANT *p) = 0;
540 virtual HRESULT wxSTDCALL get_paddingBottom(VARIANT *p) = 0;
541 virtual HRESULT wxSTDCALL get_textAlign(BSTR *p) = 0;
542 virtual HRESULT wxSTDCALL get_textDecoration(BSTR *p) = 0;
543 virtual HRESULT wxSTDCALL get_display(BSTR *p) = 0;
544 virtual HRESULT wxSTDCALL get_visibility(BSTR *p) = 0;
545 virtual HRESULT wxSTDCALL get_zIndex(VARIANT *p) = 0;
546 virtual HRESULT wxSTDCALL get_letterSpacing(VARIANT *p) = 0;
547 virtual HRESULT wxSTDCALL get_lineHeight(VARIANT *p) = 0;
548 virtual HRESULT wxSTDCALL get_textIndent(VARIANT *p) = 0;
549 virtual HRESULT wxSTDCALL get_verticalAlign(VARIANT *p) = 0;
550 virtual HRESULT wxSTDCALL get_backgroundAttachment(BSTR *p) = 0;
551 virtual HRESULT wxSTDCALL get_marginTop(VARIANT *p) = 0;
552 virtual HRESULT wxSTDCALL get_marginRight(VARIANT *p) = 0;
553 virtual HRESULT wxSTDCALL get_marginBottom(VARIANT *p) = 0;
554 virtual HRESULT wxSTDCALL get_marginLeft(VARIANT *p) = 0;
555 virtual HRESULT wxSTDCALL get_clear(BSTR *p) = 0;
556 virtual HRESULT wxSTDCALL get_listStyleType(BSTR *p) = 0;
557 virtual HRESULT wxSTDCALL get_listStylePosition(BSTR *p) = 0;
558 virtual HRESULT wxSTDCALL get_listStyleImage(BSTR *p) = 0;
559 virtual HRESULT wxSTDCALL get_clipTop(VARIANT *p) = 0;
560 virtual HRESULT wxSTDCALL get_clipRight(VARIANT *p) = 0;
561 virtual HRESULT wxSTDCALL get_clipBottom(VARIANT *p) = 0;
562 virtual HRESULT wxSTDCALL get_clipLeft(VARIANT *p) = 0;
563 virtual HRESULT wxSTDCALL get_overflow(BSTR *p) = 0;
564 virtual HRESULT wxSTDCALL get_pageBreakBefore(BSTR *p) = 0;
565 virtual HRESULT wxSTDCALL get_pageBreakAfter(BSTR *p) = 0;
566 virtual HRESULT wxSTDCALL get_cursor(BSTR *p) = 0;
567 virtual HRESULT wxSTDCALL get_tableLayout(BSTR *p) = 0;
568 virtual HRESULT wxSTDCALL get_borderCollapse(BSTR *p) = 0;
569 virtual HRESULT wxSTDCALL get_direction(BSTR *p) = 0;
570 virtual HRESULT wxSTDCALL get_behavior(BSTR *p) = 0;
571 virtual HRESULT wxSTDCALL getAttribute(BSTR strAttributeName, LONG lFlags, VARIANT *AttributeValue) = 0;
572 virtual HRESULT wxSTDCALL get_unicodeBidi(BSTR *p) = 0;
573 virtual HRESULT wxSTDCALL get_right(VARIANT *p) = 0;
574 virtual HRESULT wxSTDCALL get_bottom(VARIANT *p) = 0;
575 virtual HRESULT wxSTDCALL get_imeMode(BSTR *p) = 0;
576 virtual HRESULT wxSTDCALL get_rubyAlign(BSTR *p) = 0;
577 virtual HRESULT wxSTDCALL get_rubyPosition(BSTR *p) = 0;
578 virtual HRESULT wxSTDCALL get_rubyOverhang(BSTR *p) = 0;
579 virtual HRESULT wxSTDCALL get_textAutospace(BSTR *p) = 0;
580 virtual HRESULT wxSTDCALL get_lineBreak(BSTR *p) = 0;
581 virtual HRESULT wxSTDCALL get_wordBreak(BSTR *p) = 0;
582 virtual HRESULT wxSTDCALL get_textJustify(BSTR *p) = 0;
583 virtual HRESULT wxSTDCALL get_textJustifyTrim(BSTR *p) = 0;
584 virtual HRESULT wxSTDCALL get_textKashida(VARIANT *p) = 0;
585 virtual HRESULT wxSTDCALL get_blockDirection(BSTR *p) = 0;
586 virtual HRESULT wxSTDCALL get_layoutGridChar(VARIANT *p) = 0;
587 virtual HRESULT wxSTDCALL get_layoutGridLine(VARIANT *p) = 0;
588 virtual HRESULT wxSTDCALL get_layoutGridMode(BSTR *p) = 0;
589 virtual HRESULT wxSTDCALL get_layoutGridType(BSTR *p) = 0;
590 virtual HRESULT wxSTDCALL get_borderStyle(BSTR *p) = 0;
591 virtual HRESULT wxSTDCALL get_borderColor(BSTR *p) = 0;
592 virtual HRESULT wxSTDCALL get_borderWidth(BSTR *p) = 0;
593 virtual HRESULT wxSTDCALL get_padding(BSTR *p) = 0;
594 virtual HRESULT wxSTDCALL get_margin(BSTR *p) = 0;
595 virtual HRESULT wxSTDCALL get_accelerator(BSTR *p) = 0;
596 virtual HRESULT wxSTDCALL get_overflowX(BSTR *p) = 0;
597 virtual HRESULT wxSTDCALL get_overflowY(BSTR *p) = 0;
598 virtual HRESULT wxSTDCALL get_textTransform(BSTR *p) = 0;
599};
600
601
602struct wxIHTMLRect : public IDispatch
603{
604public:
605 virtual HRESULT wxSTDCALL put_left(long v) = 0;
606 virtual HRESULT wxSTDCALL get_left(long *p) = 0;
607 virtual HRESULT wxSTDCALL put_top(long v) = 0;
608 virtual HRESULT wxSTDCALL get_top(long *p) = 0;
609 virtual HRESULT wxSTDCALL put_right(long v) = 0;
610 virtual HRESULT wxSTDCALL get_right(long *p) = 0;
611 virtual HRESULT wxSTDCALL put_bottom(long v) = 0;
612 virtual HRESULT wxSTDCALL get_bottom(long *p) = 0;
613};
614
615struct wxIHTMLRectCollection : public IDispatch
616{
617public:
618 virtual HRESULT wxSTDCALL get_length(long *p) = 0;
619 virtual HRESULT wxSTDCALL get__newEnum(IUnknown **p) = 0;
620 virtual HRESULT wxSTDCALL item(VARIANT *pvarIndex, VARIANT *pvarResult) = 0;
621};
622
623struct wxIHTMLFiltersCollection : public IDispatch
624{
625public:
626 virtual HRESULT wxSTDCALL get_length(long *p) = 0;
627 virtual HRESULT wxSTDCALL get__newEnum(IUnknown **p) = 0;
628 virtual HRESULT wxSTDCALL item(VARIANT *pvarIndex, VARIANT *pvarResult) = 0;
629};
630
631struct wxIHTMLElementCollection : public IDispatch
632{
633public:
634 virtual HRESULT wxSTDCALL toString(BSTR *String) = 0;
635 virtual HRESULT wxSTDCALL put_length(long v) = 0;
636 virtual HRESULT wxSTDCALL get_length(long *p) = 0;
637 virtual HRESULT wxSTDCALL get__newEnum(IUnknown **p) = 0;
638 virtual HRESULT wxSTDCALL item(VARIANT name, VARIANT index, IDispatch **pdisp) = 0;
639 virtual HRESULT wxSTDCALL tags(VARIANT tagName, IDispatch **pdisp) = 0;
640};
641
642struct wxIHTMLElement2 : public IDispatch
643{
644public:
645 virtual HRESULT wxSTDCALL get_scopeName(BSTR *p) = 0;
646 virtual HRESULT wxSTDCALL setCapture(VARIANT_BOOL containerCapture = -1) = 0;
647 virtual HRESULT wxSTDCALL releaseCapture(void) = 0;
648 virtual HRESULT wxSTDCALL put_onlosecapture(VARIANT v) = 0;
649 virtual HRESULT wxSTDCALL get_onlosecapture(VARIANT *p) = 0;
650 virtual HRESULT wxSTDCALL componentFromPoint(long x, long y, BSTR *component) = 0;
651 virtual HRESULT wxSTDCALL doScroll(VARIANT component) = 0;
652 virtual HRESULT wxSTDCALL put_onscroll(VARIANT v) = 0;
653 virtual HRESULT wxSTDCALL get_onscroll(VARIANT *p) = 0;
654 virtual HRESULT wxSTDCALL put_ondrag(VARIANT v) = 0;
655 virtual HRESULT wxSTDCALL get_ondrag(VARIANT *p) = 0;
656 virtual HRESULT wxSTDCALL put_ondragend(VARIANT v) = 0;
657 virtual HRESULT wxSTDCALL get_ondragend(VARIANT *p) = 0;
658 virtual HRESULT wxSTDCALL put_ondragenter(VARIANT v) = 0;
659 virtual HRESULT wxSTDCALL get_ondragenter(VARIANT *p) = 0;
660 virtual HRESULT wxSTDCALL put_ondragover(VARIANT v) = 0;
661 virtual HRESULT wxSTDCALL get_ondragover(VARIANT *p) = 0;
662 virtual HRESULT wxSTDCALL put_ondragleave(VARIANT v) = 0;
663 virtual HRESULT wxSTDCALL get_ondragleave(VARIANT *p) = 0;
664 virtual HRESULT wxSTDCALL put_ondrop(VARIANT v) = 0;
665 virtual HRESULT wxSTDCALL get_ondrop(VARIANT *p) = 0;
666 virtual HRESULT wxSTDCALL put_onbeforecut(VARIANT v) = 0;
667 virtual HRESULT wxSTDCALL get_onbeforecut(VARIANT *p) = 0;
668 virtual HRESULT wxSTDCALL put_oncut(VARIANT v) = 0;
669 virtual HRESULT wxSTDCALL get_oncut(VARIANT *p) = 0;
670 virtual HRESULT wxSTDCALL put_onbeforecopy(VARIANT v) = 0;
671 virtual HRESULT wxSTDCALL get_onbeforecopy(VARIANT *p) = 0;
672 virtual HRESULT wxSTDCALL put_oncopy(VARIANT v) = 0;
673 virtual HRESULT wxSTDCALL get_oncopy(VARIANT *p) = 0;
674 virtual HRESULT wxSTDCALL put_onbeforepaste(VARIANT v) = 0;
675 virtual HRESULT wxSTDCALL get_onbeforepaste(VARIANT *p) = 0;
676 virtual HRESULT wxSTDCALL put_onpaste(VARIANT v) = 0;
677 virtual HRESULT wxSTDCALL get_onpaste(VARIANT *p) = 0;
678 virtual HRESULT wxSTDCALL get_currentStyle(wxIHTMLCurrentStyle **p) = 0;
679 virtual HRESULT wxSTDCALL put_onpropertychange(VARIANT v) = 0;
680 virtual HRESULT wxSTDCALL get_onpropertychange(VARIANT *p) = 0;
681 virtual HRESULT wxSTDCALL getClientRects(wxIHTMLRectCollection **pRectCol) = 0;
682 virtual HRESULT wxSTDCALL getBoundingClientRect(wxIHTMLRect **pRect) = 0;
683 virtual HRESULT wxSTDCALL setExpression(BSTR propname, BSTR expression, BSTR language = L"") = 0;
684 virtual HRESULT wxSTDCALL getExpression(BSTR propname, VARIANT *expression) = 0;
685 virtual HRESULT wxSTDCALL removeExpression(BSTR propname, VARIANT_BOOL *pfSuccess) = 0;
686 virtual HRESULT wxSTDCALL put_tabIndex(short v) = 0;
687 virtual HRESULT wxSTDCALL get_tabIndex(short *p) = 0;
688 virtual HRESULT wxSTDCALL focus(void) = 0;
689 virtual HRESULT wxSTDCALL put_accessKey(BSTR v) = 0;
690 virtual HRESULT wxSTDCALL get_accessKey(BSTR *p) = 0;
691 virtual HRESULT wxSTDCALL put_onblur(VARIANT v) = 0;
692 virtual HRESULT wxSTDCALL get_onblur(VARIANT *p) = 0;
693 virtual HRESULT wxSTDCALL put_onfocus(VARIANT v) = 0;
694 virtual HRESULT wxSTDCALL get_onfocus(VARIANT *p) = 0;
695 virtual HRESULT wxSTDCALL put_onresize(VARIANT v) = 0;
696 virtual HRESULT wxSTDCALL get_onresize(VARIANT *p) = 0;
697 virtual HRESULT wxSTDCALL blur(void) = 0;
698 virtual HRESULT wxSTDCALL addFilter(IUnknown *pUnk) = 0;
699 virtual HRESULT wxSTDCALL removeFilter(IUnknown *pUnk) = 0;
700 virtual HRESULT wxSTDCALL get_clientHeight(long *p) = 0;
701 virtual HRESULT wxSTDCALL get_clientWidth(long *p) = 0;
702 virtual HRESULT wxSTDCALL get_clientTop(long *p) = 0;
703 virtual HRESULT wxSTDCALL get_clientLeft(long *p) = 0;
704 virtual HRESULT wxSTDCALL attachEvent(BSTR event, IDispatch *pDisp, VARIANT_BOOL *pfResult) = 0;
705 virtual HRESULT wxSTDCALL detachEvent(BSTR event, IDispatch *pDisp) = 0;
706 virtual HRESULT wxSTDCALL get_readyState(VARIANT *p) = 0;
707 virtual HRESULT wxSTDCALL put_onreadystatechange(VARIANT v) = 0;
708 virtual HRESULT wxSTDCALL get_onreadystatechange(VARIANT *p) = 0;
709 virtual HRESULT wxSTDCALL put_onrowsdelete(VARIANT v) = 0;
710 virtual HRESULT wxSTDCALL get_onrowsdelete(VARIANT *p) = 0;
711 virtual HRESULT wxSTDCALL put_onrowsinserted(VARIANT v) = 0;
712 virtual HRESULT wxSTDCALL get_onrowsinserted(VARIANT *p) = 0;
713 virtual HRESULT wxSTDCALL put_oncellchange(VARIANT v) = 0;
714 virtual HRESULT wxSTDCALL get_oncellchange(VARIANT *p) = 0;
715 virtual HRESULT wxSTDCALL put_dir(BSTR v) = 0;
716 virtual HRESULT wxSTDCALL get_dir(BSTR *p) = 0;
717 virtual HRESULT wxSTDCALL createControlRange(IDispatch **range) = 0;
718 virtual HRESULT wxSTDCALL get_scrollHeight(long *p) = 0;
719 virtual HRESULT wxSTDCALL get_scrollWidth(long *p) = 0;
720 virtual HRESULT wxSTDCALL put_scrollTop(long v) = 0;
721 virtual HRESULT wxSTDCALL get_scrollTop(long *p) = 0;
722 virtual HRESULT wxSTDCALL put_scrollLeft(long v) = 0;
723 virtual HRESULT wxSTDCALL get_scrollLeft(long *p) = 0;
724 virtual HRESULT wxSTDCALL clearAttributes(void) = 0;
725 virtual HRESULT wxSTDCALL mergeAttributes(IHTMLElement *mergeThis) = 0;
726 virtual HRESULT wxSTDCALL put_oncontextmenu(VARIANT v) = 0;
727 virtual HRESULT wxSTDCALL get_oncontextmenu(VARIANT *p) = 0;
728 virtual HRESULT wxSTDCALL insertAdjacentElement(BSTR where, IHTMLElement *insertedElement, IHTMLElement **inserted) = 0;
729 virtual HRESULT wxSTDCALL applyElement(IHTMLElement *apply, BSTR where, IHTMLElement **applied) = 0;
730 virtual HRESULT wxSTDCALL getAdjacentText(BSTR where, BSTR *text) = 0;
731 virtual HRESULT wxSTDCALL replaceAdjacentText(BSTR where, BSTR newText, BSTR *oldText) = 0;
732 virtual HRESULT wxSTDCALL get_canHaveChildren(VARIANT_BOOL *p) = 0;
733 virtual HRESULT wxSTDCALL addBehavior(BSTR bstrUrl, VARIANT *pvarFactory, long *pCookie) = 0;
734 virtual HRESULT wxSTDCALL removeBehavior(long cookie, VARIANT_BOOL *pfResult) = 0;
735 virtual HRESULT wxSTDCALL get_runtimeStyle(wxIHTMLStyle **p) = 0;
736 virtual HRESULT wxSTDCALL get_behaviorUrns(IDispatch **p) = 0;
737 virtual HRESULT wxSTDCALL put_tagUrn(BSTR v) = 0;
738 virtual HRESULT wxSTDCALL get_tagUrn(BSTR *p) = 0;
739 virtual HRESULT wxSTDCALL put_onbeforeeditfocus(VARIANT v) = 0;
740 virtual HRESULT wxSTDCALL get_onbeforeeditfocus(VARIANT *p) = 0;
741 virtual HRESULT wxSTDCALL get_readyStateValue(long *p) = 0;
742 virtual HRESULT wxSTDCALL getElementsByTagName(BSTR v,
743 wxIHTMLElementCollection **pelColl) = 0;
744};
745
746struct wxIHTMLTxtRange : public IDispatch
747{
748public:
749 virtual HRESULT wxSTDCALL get_htmlText(BSTR *p) = 0;
750 virtual HRESULT wxSTDCALL put_text(BSTR v) = 0;
751 virtual HRESULT wxSTDCALL get_text(BSTR *p) = 0;
752 virtual HRESULT wxSTDCALL parentElement(IHTMLElement **parent) = 0;
753 virtual HRESULT wxSTDCALL duplicate(wxIHTMLTxtRange **Duplicate) = 0;
754 virtual HRESULT wxSTDCALL inRange(wxIHTMLTxtRange *Range, VARIANT_BOOL *InRange) = 0;
755 virtual HRESULT wxSTDCALL isEqual(wxIHTMLTxtRange *Range, VARIANT_BOOL *IsEqual) = 0;
756 virtual HRESULT wxSTDCALL scrollIntoView(VARIANT_BOOL fStart = -1) = 0;
757 virtual HRESULT wxSTDCALL collapse(VARIANT_BOOL Start = -1) = 0;
758 virtual HRESULT wxSTDCALL expand(BSTR Unit, VARIANT_BOOL *Success) = 0;
759 virtual HRESULT wxSTDCALL move(BSTR Unit, long Count, long *ActualCount) = 0;
760 virtual HRESULT wxSTDCALL moveStart(BSTR Unit, long Count, long *ActualCount) = 0;
761 virtual HRESULT wxSTDCALL moveEnd(BSTR Unit, long Count, long *ActualCount) = 0;
762 virtual HRESULT wxSTDCALL select(void) = 0;
763 virtual HRESULT wxSTDCALL pasteHTML(BSTR html) = 0;
764 virtual HRESULT wxSTDCALL moveToElementText(IHTMLElement *element) = 0;
765 virtual HRESULT wxSTDCALL setEndPoint(BSTR how, wxIHTMLTxtRange *SourceRange) = 0;
766 virtual HRESULT wxSTDCALL compareEndPoints(BSTR how, wxIHTMLTxtRange *SourceRange, long *ret) = 0;
767 virtual HRESULT wxSTDCALL findText(BSTR String, long count, long Flags, VARIANT_BOOL *Success) = 0;
768 virtual HRESULT wxSTDCALL moveToPoint(long x, long y) = 0;
769 virtual HRESULT wxSTDCALL getBookmark(BSTR *Boolmark) = 0;
770 virtual HRESULT wxSTDCALL moveToBookmark(BSTR Bookmark, VARIANT_BOOL *Success) = 0;
771 virtual HRESULT wxSTDCALL queryCommandSupported(BSTR cmdID, VARIANT_BOOL *pfRet) = 0;
772 virtual HRESULT wxSTDCALL queryCommandEnabled(BSTR cmdID, VARIANT_BOOL *pfRet) = 0;
773 virtual HRESULT wxSTDCALL queryCommandState(BSTR cmdID, VARIANT_BOOL *pfRet) = 0;
774 virtual HRESULT wxSTDCALL queryCommandIndeterm(BSTR cmdID, VARIANT_BOOL *pfRet) = 0;
775 virtual HRESULT wxSTDCALL queryCommandText(BSTR cmdID, BSTR *pcmdText) = 0;
776 virtual HRESULT wxSTDCALL queryCommandValue(BSTR cmdID, VARIANT *pcmdValue) = 0;
777 virtual HRESULT wxSTDCALL execCommand(BSTR cmdID, VARIANT_BOOL showUI, VARIANT value, VARIANT_BOOL *pfRet) = 0;
778 virtual HRESULT wxSTDCALL execCommandShowHelp(BSTR cmdID, VARIANT_BOOL *pfRet) = 0;
779};
780
781struct wxIMarkupContainer : public IUnknown
782{
783public:
784 virtual HRESULT wxSTDCALL OwningDoc(IHTMLDocument2 **ppDoc) = 0;
785};
786
787struct wxIMarkupPointer : public IUnknown
788{
789public:
790 virtual HRESULT wxSTDCALL OwningDoc(IHTMLDocument2 **ppDoc) = 0;
791 virtual HRESULT wxSTDCALL Gravity(POINTER_GRAVITY *pGravity) = 0;
792 virtual HRESULT wxSTDCALL SetGravity(POINTER_GRAVITY Gravity) = 0;
793 virtual HRESULT wxSTDCALL Cling(BOOL *pfCling) = 0;
794 virtual HRESULT wxSTDCALL SetCling(BOOL fCLing) = 0;
795 virtual HRESULT wxSTDCALL Unposition(void) = 0;
796 virtual HRESULT wxSTDCALL IsPositioned(BOOL *pfPositioned) = 0;
797 virtual HRESULT wxSTDCALL GetContainer(wxIMarkupContainer **ppContainer) = 0;
798 virtual HRESULT wxSTDCALL MoveAdjacentToElement(IHTMLElement *pElement, ELEMENT_ADJACENCY eAdj) = 0;
799 virtual HRESULT wxSTDCALL MoveToPointer(wxIMarkupPointer *pPointer) = 0;
800 virtual HRESULT wxSTDCALL MoveToContainer(wxIMarkupContainer *pContainer, BOOL fAtStart) = 0;
801 virtual HRESULT wxSTDCALL Left(BOOL fMove, MARKUP_CONTEXT_TYPE *pContext, IHTMLElement **ppElement, long *pcch, OLECHAR *pchText) = 0;
802 virtual HRESULT wxSTDCALL Right(BOOL fMove, MARKUP_CONTEXT_TYPE *pContext, IHTMLElement **ppElement, long *pcch, OLECHAR *pchText) = 0;
803 virtual HRESULT wxSTDCALL CurrentScope(IHTMLElement **ppElemCurrent) = 0;
804 virtual HRESULT wxSTDCALL IsLeftOf(wxIMarkupPointer *pPointerThat, BOOL *pfResult) = 0;
805 virtual HRESULT wxSTDCALL IsLeftOfOrEqualTo(wxIMarkupPointer *pPointerThat, BOOL *pfResult) = 0;
806 virtual HRESULT wxSTDCALL IsRightOf(wxIMarkupPointer *pPointerThat, BOOL *pfResult) = 0;
807 virtual HRESULT wxSTDCALL IsRightOfOrEqualTo(wxIMarkupPointer *pPointerThat, BOOL *pfResult) = 0;
808 virtual HRESULT wxSTDCALL IsEqualTo(wxIMarkupPointer *pPointerThat, BOOL *pfAreEqual) = 0;
809 virtual HRESULT wxSTDCALL MoveUnit(MOVEUNIT_ACTION muAction) = 0;
810 virtual HRESULT wxSTDCALL FindText(OLECHAR *pchFindText, DWORD dwFlags, wxIMarkupPointer *pIEndMatch, wxIMarkupPointer *pIEndSearch) = 0;
811};
812
813struct wxIMarkupServices : public IUnknown
814{
815public:
816 virtual HRESULT wxSTDCALL CreateMarkupPointer(wxIMarkupPointer **ppPointer) = 0;
817 virtual HRESULT wxSTDCALL CreateMarkupContainer(wxIMarkupContainer **ppMarkupContainer) = 0;
818 virtual HRESULT wxSTDCALL CreateElement(ELEMENT_TAG_ID tagID, OLECHAR *pchAttributes, IHTMLElement **ppElement) = 0;
819 virtual HRESULT wxSTDCALL CloneElement(IHTMLElement *pElemCloneThis, IHTMLElement **ppElementTheClone) = 0;
820 virtual HRESULT wxSTDCALL InsertElement(IHTMLElement *pElementInsert, wxIMarkupPointer *pPointerStart, wxIMarkupPointer *pPointerFinish) = 0;
821 virtual HRESULT wxSTDCALL RemoveElement(IHTMLElement *pElementRemove) = 0;
822 virtual HRESULT wxSTDCALL Remove(wxIMarkupPointer *pPointerStart, wxIMarkupPointer *pPointerFinish) = 0;
823 virtual HRESULT wxSTDCALL Copy(wxIMarkupPointer *pPointerSourceStart, wxIMarkupPointer *pPointerSourceFinish, wxIMarkupPointer *pPointerTarget) = 0;
824 virtual HRESULT wxSTDCALL Move(wxIMarkupPointer *pPointerSourceStart, wxIMarkupPointer *pPointerSourceFinish, wxIMarkupPointer *pPointerTarget) = 0;
825 virtual HRESULT wxSTDCALL InsertText(OLECHAR *pchText, long cch, wxIMarkupPointer *pPointerTarget) = 0;
826 virtual HRESULT wxSTDCALL ParseString(OLECHAR *pchHTML, DWORD dwFlags, wxIMarkupContainer **ppContainerResult, wxIMarkupPointer *ppPointerStart, wxIMarkupPointer *ppPointerFinish) = 0;
827 virtual HRESULT wxSTDCALL ParseGlobal(HGLOBAL hglobalHTML, DWORD dwFlags, wxIMarkupContainer **ppContainerResult, wxIMarkupPointer *pPointerStart, wxIMarkupPointer *pPointerFinish) = 0;
828 virtual HRESULT wxSTDCALL IsScopedElement(IHTMLElement *pElement, BOOL *pfScoped) = 0;
829 virtual HRESULT wxSTDCALL GetElementTagId(IHTMLElement *pElement, ELEMENT_TAG_ID *ptagId) = 0;
830 virtual HRESULT wxSTDCALL GetTagIDForName(BSTR bstrName, ELEMENT_TAG_ID *ptagId) = 0;
831 virtual HRESULT wxSTDCALL GetNameForTagID(ELEMENT_TAG_ID tagId, BSTR *pbstrName) = 0;
832 virtual HRESULT wxSTDCALL MovePointersToRange(wxIHTMLTxtRange *pIRange, wxIMarkupPointer *pPointerStart, wxIMarkupPointer *pPointerFinish) = 0;
833 virtual HRESULT wxSTDCALL MoveRangeToPointers(wxIMarkupPointer *pPointerStart, wxIMarkupPointer *pPointerFinish, wxIHTMLTxtRange *pIRange) = 0;
834 virtual HRESULT wxSTDCALL BeginUndoUnit(OLECHAR *pchTitle) = 0;
835 virtual HRESULT wxSTDCALL EndUndoUnit(void) = 0;
836};
837
838/* end of mshtml.h */