VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/mshtmhst.idl@ 33252

Last change on this file since 33252 was 19678, checked in by vboxsync, 16 years ago

opengl: update wine to 1.1.21, add d3d9.dll to build list

  • Property svn:eol-style set to native
File size: 10.3 KB
Line 
1/*
2 * Copyright 2005 Jacek Caban
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19/*
20 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28import "ocidl.idl";
29import "objidl.idl";
30import "oleidl.idl";
31import "oaidl.idl";
32import "docobj.idl";
33
34cpp_quote("#define CONTEXT_MENU_DEFAULT 0")
35cpp_quote("#define CONTEXT_MENU_IMAGE 1")
36cpp_quote("#define CONTEXT_MENU_CONTROL 2")
37cpp_quote("#define CONTEXT_MENU_TABLE 3")
38cpp_quote("#define CONTEXT_MENU_TEXTSELECT 4")
39cpp_quote("#define CONTEXT_MENU_ANCHOR 5")
40cpp_quote("#define CONTEXT_MENU_UNKNOWN 6")
41cpp_quote("#define CONTEXT_MENU_IMGDYNSRC 7")
42cpp_quote("#define CONTEXT_MENU_IMGART 8")
43cpp_quote("#define CONTEXT_MENU_DEBUG 9")
44cpp_quote("#define CONTEXT_MENU_VSCROLL 10")
45cpp_quote("#define CONTEXT_MENU_HSCROLL 11")
46
47cpp_quote("#define MENUEXT_SHOWDIALOG 1")
48
49cpp_quote("#define DOCHOSTUIFLAG_BROWSER (DOCHOSTUIFLAG_DISABLE_HELP_MENU|DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE)")
50
51cpp_quote("#define HTMLDLG_NOUI 0x0010")
52cpp_quote("#define HTMLDLG_MODAL 0x0020")
53cpp_quote("#define HTMLDLG_MODELESS 0x0040")
54cpp_quote("#define HTMLDLG_PRINT_TEMPLATE 0x0080")
55cpp_quote("#define HTMLDLG_VERIFY 0x0100")
56
57cpp_quote("#define PRINT_DONTBOTHERUSER 0x0001")
58cpp_quote("#define PRINT_WAITFORCOMPLETION 0x0002")
59
60cpp_quote("DEFINE_GUID(CGID_MSHTML, 0xde4ba900,0x59ca,0x11cf,0x95,0x92,0x44,0x45,0x53,0x54,0x00,0x00);")
61cpp_quote("#define CMDSETID_Forms3 CGID_MSHTML")
62
63cpp_quote("#if defined(__GNUC__)")
64cpp_quote("#define SZ_HTML_CLIENTSITE_OBJECTPARAM (const WCHAR[]) {'{','d','4','d','b','6','8','5','0','-','5','3','8','5','-','1','1','d','0','-','8','9','e','9','-','0','0','a','0','c','9','0','a','9','0','a','c','}',0}")
65cpp_quote("#elif defined(_MSC_VER)")
66cpp_quote("#define SZ_HTML_CLIENTSITE_OBJECTPARAM L\"{d4db6850-5385-11d0-89e9-00a0c90a90ac}\"")
67cpp_quote("#else")
68cpp_quote("static const WCHAR SZ_HTML_CLIENTSITE_OBJECTPARAM[] = {'{','d','4','d','b','6','8','5','0','-','5','3','8','5','-','1','1','d','0','-','8','9','e','9','-','0','0','a','0','c','9','0','a','9','0','a','c','}',0};")
69cpp_quote("#endif")
70
71cpp_quote("#ifndef __IHTMLWindow2_FWD_DEFINED__")
72cpp_quote("#define __IHTMLWindow2_FWD_DEFINED__")
73cpp_quote("typedef interface IHTMLWindow2 IHTMLWindow2;")
74cpp_quote("#endif")
75
76/*****************************************************************************
77 * IHostDialogHelper interface
78 */
79[
80 object,
81 uuid(53DEC138-A51E-11d2-861E-00C04FA35C89),
82 pointer_default(unique),
83 local
84]
85interface IHostDialogHelper : IUnknown
86{
87 HRESULT ShowHTMLDialog(
88 HWND hwndParent,
89 IMoniker *pMk,
90 VARIANT *pvarArgIn,
91 WCHAR *pchOptions,
92 VARIANT *pvarArgOut,
93 IUnknown *punkHost);
94}
95
96/*****************************************************************************
97 * HostDialogHelper coclass
98 */
99[
100 uuid(429AF92C-A51F-11d2-861E-00C04FA35C89)
101]
102coclass HostDialogHelper
103{
104 [default] interface IHostDialogHelper;
105}
106
107/*****************************************************************************
108 * IDocHostUIHandler interface
109 */
110
111typedef enum tagDOCHOSTUITYPE {
112 DOCHOSTUITYPE_BROWSE = 0,
113 DOCHOSTUITYPE_AUTHOR = 1
114} DOCHOSTUITYPE;
115
116typedef enum tagDOCHOSTUIDBLCLK
117{
118 DOCHOSTUIDBLCLK_DEFAULT = 0,
119 DOCHOSTUIDBLCLK_SHOWPROPERTIES = 1,
120 DOCHOSTUIDBLCLK_SHOWCODE = 2
121} DOCHOSTUIDBLCLK;
122
123typedef enum tagDOCHOSTUIFLAG
124{
125 DOCHOSTUIFLAG_DIALOG = 0x00000001,
126 DOCHOSTUIFLAG_DISABLE_HELP_MENU = 0x00000002,
127 DOCHOSTUIFLAG_NO3DBORDER = 0x00000004,
128 DOCHOSTUIFLAG_SCROLL_NO = 0x00000008,
129 DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE = 0x00000010,
130 DOCHOSTUIFLAG_OPENNEWWIN = 0x00000020,
131 DOCHOSTUIFLAG_DISABLE_OFFSCREEN = 0x00000040,
132 DOCHOSTUIFLAG_FLAT_SCROLLBAR = 0x00000080,
133 DOCHOSTUIFLAG_DIV_BLOCKDEFAULT = 0x00000100,
134 DOCHOSTUIFLAG_ACTIVATE_CLIENTHIT_ONLY = 0x00000200,
135 DOCHOSTUIFLAG_OVERRIDEBEHAVIORFACTORY = 0x00000400,
136 DOCHOSTUIFLAG_CODEPAGELINKEDFONTS = 0x00000800,
137 DOCHOSTUIFLAG_URL_ENCODING_DISABLE_UTF8 = 0x00001000,
138 DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8 = 0x00002000,
139 DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE = 0x00004000,
140 DOCHOSTUIFLAG_ENABLE_INPLACE_NAVIGATION = 0x00010000,
141 DOCHOSTUIFLAG_IME_ENABLE_RECONVERSION = 0x00020000,
142 DOCHOSTUIFLAG_THEME = 0x00040000,
143 DOCHOSTUIFLAG_NOTHEME = 0x00080000,
144 DOCHOSTUIFLAG_NOPICS = 0x00100000,
145 DOCHOSTUIFLAG_NO3DOUTERBORDER = 0x00200000,
146 DOCHOSTUIFLAG_DISABLE_EDIT_NS_FIXUP = 0x00400000,
147 DOCHOSTUIFLAG_LOCAL_MACHINE_ACCESS_CHECK = 0x00800000,
148 DOCHOSTUIFLAG_DISABLE_UNTRUSTEDPROTOCOL = 0x01000000
149} DOCHOSTUIFLAG;
150
151[
152 object,
153 uuid(BD3F23C0-D43E-11CF-893B-00AA00BDCE1A),
154 pointer_default(unique),
155 local
156]
157interface IDocHostUIHandler : IUnknown
158{
159 typedef struct _DOCHOSTUIINFO
160 {
161 ULONG cbSize;
162 DWORD dwFlags;
163 DWORD dwDoubleClick;
164 OLECHAR *pchHostCss;
165 OLECHAR *pchHostNS;
166 } DOCHOSTUIINFO;
167
168 HRESULT ShowContextMenu(
169 [in] DWORD dwID,
170 [in] POINT *ppt,
171 [in] IUnknown *pcmdtReserved,
172 [in] IDispatch *pdispReserved);
173
174 HRESULT GetHostInfo([in, out] DOCHOSTUIINFO *pInfo);
175
176 HRESULT ShowUI(
177 [in] DWORD dwID,
178 [in] IOleInPlaceActiveObject *pActiveObject,
179 [in] IOleCommandTarget *pCommandTarget,
180 [in] IOleInPlaceFrame *pFrame,
181 [in] IOleInPlaceUIWindow *pDoc);
182
183 HRESULT HideUI();
184
185 HRESULT UpdateUI();
186
187 HRESULT EnableModeless([in] BOOL fEnable);
188
189 HRESULT OnDocWindowActivate([in] BOOL fActivate);
190
191 HRESULT OnFrameWindowActivate([in] BOOL fActivate);
192
193 HRESULT ResizeBorder(
194 [in] LPCRECT prcBorder,
195 [in] IOleInPlaceUIWindow *pUIWindow,
196 [in] BOOL fRameWindow);
197
198 HRESULT TranslateAccelerator(
199 [in] LPMSG lpMsg,
200 [in] const GUID *pguidCmdGroup,
201 [in] DWORD nCmdID);
202
203 HRESULT GetOptionKeyPath(
204 [out] LPOLESTR *pchKey,
205 [in] DWORD dw);
206
207 HRESULT GetDropTarget(
208 [in] IDropTarget *pDropTarget,
209 [out] IDropTarget **ppDropTarget);
210
211 HRESULT GetExternal([out] IDispatch **ppDispatch);
212
213 HRESULT TranslateUrl(
214 [in] DWORD dwTranslate,
215 [in] OLECHAR *pchURLIn,
216 [out] OLECHAR **ppchURLOut);
217
218 HRESULT FilterDataObject(
219 [in] IDataObject *pDO,
220 [out] IDataObject **ppDORet);
221}
222
223cpp_quote("DEFINE_GUID(CGID_DocHostCommandHandler,0xf38bc242,0xb950,0x11d1,0x89,0x18,0x00,0xc0,0x4f,0xc2,0xc8,0x36);")
224
225[
226 object,
227 uuid(3050F6D0-98b5-11CF-BB82-00AA00BDCE0B),
228 pointer_default(unique),
229 local
230]
231interface IDocHostUIHandler2 : IDocHostUIHandler
232{
233 HRESULT GetOverrideKeyPath(
234 [out] LPOLESTR *pchKey,
235 [in] DWORD dw);
236}
237
238/*****************************************************************************
239 * ICustomDoc interface
240 */
241[
242 object,
243 uuid(3050f3f0-98b5-11cf-bb82-00aa00bdce0b),
244 pointer_default(unique),
245 local
246]
247interface ICustomDoc : IUnknown
248{
249 HRESULT SetUIHandler([in] IDocHostUIHandler *pUIHandler);
250}
251
252/*****************************************************************************
253 * IDocHostShowUI interface
254 */
255[
256 object,
257 uuid(c4d244b0-d43e-11cf-893b-00aa00bdce1a),
258 pointer_default(unique),
259 local
260]
261interface IDocHostShowUI : IUnknown
262{
263 HRESULT ShowMessage(
264 [in] HWND hwnd,
265 [in] LPOLESTR lpstrText,
266 [in] LPOLESTR lpstrCaption,
267 [in] DWORD dwType,
268 [in] LPOLESTR lpstrHelpFile,
269 [in] DWORD dwHelpContext,
270 [out] LRESULT *plResult);
271
272 HRESULT ShowHelp(
273 [in] HWND hwnd,
274 [in] LPOLESTR pszHelpFile,
275 [in] UINT uCommand,
276 [in] DWORD dwData,
277 [in] POINT ptMouse,
278 [out] IDispatch *pDispatchObjectHit);
279}
280
281/*****************************************************************************
282 * IClassFactoryEx interface
283 */
284
285cpp_quote("#define IClassFactory3 IClassFactoryEx")
286cpp_quote("#define IID_IClassFactory3 IID_IClassFactoryEx")
287
288[
289 object,
290 uuid(342D1EA0-AE25-11D1-89C5-006008C3FBFC),
291 pointer_default(unique),
292 local
293]
294interface IClassFactoryEx : IClassFactory
295{
296 HRESULT CreateInstanceWithContext(
297 IUnknown *punkContext,
298 IUnknown *punkOuter,
299 REFIID riid,
300 [out] void **ppv);
301}
302
303cpp_quote("typedef HRESULT WINAPI SHOWHTMLDIALOGFN(HWND,IMoniker*,VARIANT*,WCHAR*,VARIANT*);")
304cpp_quote("typedef HRESULT WINAPI SHOWHTMLDIALOGEXFN(HWND,IMoniker*,DWORD,VARIANT*,WCHAR*,VARIANT*);")
305cpp_quote("typedef HRESULT WINAPI SHOWMODELESSHTMLDIALOGFN(HWND,IMoniker*,VARIANT*,VARIANT*,IHTMLWindow2**);")
306
307cpp_quote("EXTERN_C HRESULT WINAPI ShowHTMLDialog(HWND,IMoniker*,VARIANT*,WCHAR*,VARIANT*);")
308cpp_quote("EXTERN_C HRESULT WINAPI ShowHTMLDialogEx(HWND,IMoniker*,DWORD,VARIANT*,WCHAR*,VARIANT*);")
309cpp_quote("EXTERN_C HRESULT WINAPI ShowModelessHTMLDialog(HWND,IMoniker*,VARIANT*,VARIANT*,IHTMLWindow2**);")
310cpp_quote("EXTERN_C HRESULT WINAPI RunHTMLApplication(HINSTANCE,HINSTANCE,LPSTR,int);")
311cpp_quote("EXTERN_C HRESULT WINAPI CreateHTMLPropertyPage(IMoniker*,IPropertyPage**);")
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette