oleaut32: Implement OleLoadPictureFile.
[wine.git] / include / mshtmhst.idl
blob6cc500ed7a9eaef1476066ac8ef852ccb25e9cbd
1 /*
2 * Copyright 2005 Jacek Caban
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.
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.
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
19 import "ocidl.idl";
20 import "objidl.idl";
21 import "oleidl.idl";
22 import "oaidl.idl";
23 import "docobj.idl";
25 cpp_quote("#define CONTEXT_MENU_DEFAULT 0")
26 cpp_quote("#define CONTEXT_MENU_IMAGE 1")
27 cpp_quote("#define CONTEXT_MENU_CONTROL 2")
28 cpp_quote("#define CONTEXT_MENU_TABLE 3")
29 cpp_quote("#define CONTEXT_MENU_TEXTSELECT 4")
30 cpp_quote("#define CONTEXT_MENU_ANCHOR 5")
31 cpp_quote("#define CONTEXT_MENU_UNKNOWN 6")
32 cpp_quote("#define CONTEXT_MENU_IMGDYNSRC 7")
33 cpp_quote("#define CONTEXT_MENU_IMGART 8")
34 cpp_quote("#define CONTEXT_MENU_DEBUG 9")
35 cpp_quote("#define CONTEXT_MENU_VSCROLL 10")
36 cpp_quote("#define CONTEXT_MENU_HSCROLL 11")
38 cpp_quote("#define MENUEXT_SHOWDIALOG 1")
40 cpp_quote("#define DOCHOSTUIFLAG_BROWSER (DOCHOSTUIFLAG_DISABLE_HELP_MENU|DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE)")
42 cpp_quote("#define HTMLDLG_NOUI 0x0010")
43 cpp_quote("#define HTMLDLG_MODAL 0x0020")
44 cpp_quote("#define HTMLDLG_MODELESS 0x0040")
45 cpp_quote("#define HTMLDLG_PRINT_TEMPLATE 0x0080")
46 cpp_quote("#define HTMLDLG_VERIFY 0x0100")
47 cpp_quote("#define HTMLDLG_ALLOW_UNKNOWN_THREAD 0x0200")
49 cpp_quote("#define PRINT_DONTBOTHERUSER 0x0001")
50 cpp_quote("#define PRINT_WAITFORCOMPLETION 0x0002")
52 cpp_quote("#define CMDID_SCRIPTSITE_URL 0")
53 cpp_quote("#define CMDID_SCRIPTSITE_HTMLDLGTRUST 1")
54 cpp_quote("#define CMDID_SCRIPTSITE_SECSTATE 2")
55 cpp_quote("#define CMDID_SCRIPTSITE_SID 3")
56 cpp_quote("#define CMDID_SCRIPTSITE_TRUSTEDDOC 4")
57 cpp_quote("#define CMDID_SCRIPTSITE_SECURITY_WINDOW 5")
58 cpp_quote("#define CMDID_SCRIPTSITE_NAMESPACE 6")
59 cpp_quote("#define CMDID_SCRIPTSITE_IURI 7")
60 cpp_quote("#define CMDID_HOSTCONTEXT_URL 8")
61 cpp_quote("#define CMDID_SCRIPTSITE_ALLOWRECOVERY 9")
62 cpp_quote("#define CMDID_SCRIPTSITE_BASEIURI 10")
64 cpp_quote("DEFINE_GUID(CGID_MSHTML, 0xde4ba900,0x59ca,0x11cf,0x95,0x92,0x44,0x45,0x53,0x54,0x00,0x00);")
65 cpp_quote("DEFINE_GUID(CGID_ScriptSite, 0x3050f3f1,0x98b5,0x11cf,0xbb,0x82,0x00,0xaa,0x00,0xbd,0xce,0x0b);")
66 cpp_quote("#define CMDSETID_Forms3 CGID_MSHTML")
68 cpp_quote("#if defined(__GNUC__)")
69 cpp_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}")
70 cpp_quote("#elif defined(_MSC_VER)")
71 cpp_quote("#define SZ_HTML_CLIENTSITE_OBJECTPARAM L\"{d4db6850-5385-11d0-89e9-00a0c90a90ac}\"")
72 cpp_quote("#else")
73 cpp_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};")
74 cpp_quote("#endif")
76 cpp_quote("#ifndef __IHTMLWindow2_FWD_DEFINED__")
77 cpp_quote("#define __IHTMLWindow2_FWD_DEFINED__")
78 cpp_quote("typedef interface IHTMLWindow2 IHTMLWindow2;")
79 cpp_quote("#endif")
81 /*****************************************************************************
82 * IHostDialogHelper interface
85 object,
86 uuid(53DEC138-A51E-11d2-861E-00C04FA35C89),
87 pointer_default(unique),
88 local
90 interface IHostDialogHelper : IUnknown
92 HRESULT ShowHTMLDialog(
93 HWND hwndParent,
94 IMoniker *pMk,
95 VARIANT *pvarArgIn,
96 WCHAR *pchOptions,
97 VARIANT *pvarArgOut,
98 IUnknown *punkHost);
101 /*****************************************************************************
102 * HostDialogHelper coclass
105 uuid(429AF92C-A51F-11d2-861E-00C04FA35C89)
107 coclass HostDialogHelper
109 [default] interface IHostDialogHelper;
112 /*****************************************************************************
113 * IDocHostUIHandler interface
116 typedef enum tagDOCHOSTUITYPE {
117 DOCHOSTUITYPE_BROWSE = 0,
118 DOCHOSTUITYPE_AUTHOR = 1
119 } DOCHOSTUITYPE;
121 typedef enum tagDOCHOSTUIDBLCLK
123 DOCHOSTUIDBLCLK_DEFAULT = 0,
124 DOCHOSTUIDBLCLK_SHOWPROPERTIES = 1,
125 DOCHOSTUIDBLCLK_SHOWCODE = 2
126 } DOCHOSTUIDBLCLK;
128 typedef enum tagDOCHOSTUIFLAG
130 DOCHOSTUIFLAG_DIALOG = 0x00000001,
131 DOCHOSTUIFLAG_DISABLE_HELP_MENU = 0x00000002,
132 DOCHOSTUIFLAG_NO3DBORDER = 0x00000004,
133 DOCHOSTUIFLAG_SCROLL_NO = 0x00000008,
134 DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE = 0x00000010,
135 DOCHOSTUIFLAG_OPENNEWWIN = 0x00000020,
136 DOCHOSTUIFLAG_DISABLE_OFFSCREEN = 0x00000040,
137 DOCHOSTUIFLAG_FLAT_SCROLLBAR = 0x00000080,
138 DOCHOSTUIFLAG_DIV_BLOCKDEFAULT = 0x00000100,
139 DOCHOSTUIFLAG_ACTIVATE_CLIENTHIT_ONLY = 0x00000200,
140 DOCHOSTUIFLAG_OVERRIDEBEHAVIORFACTORY = 0x00000400,
141 DOCHOSTUIFLAG_CODEPAGELINKEDFONTS = 0x00000800,
142 DOCHOSTUIFLAG_URL_ENCODING_DISABLE_UTF8 = 0x00001000,
143 DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8 = 0x00002000,
144 DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE = 0x00004000,
145 DOCHOSTUIFLAG_ENABLE_INPLACE_NAVIGATION = 0x00010000,
146 DOCHOSTUIFLAG_IME_ENABLE_RECONVERSION = 0x00020000,
147 DOCHOSTUIFLAG_THEME = 0x00040000,
148 DOCHOSTUIFLAG_NOTHEME = 0x00080000,
149 DOCHOSTUIFLAG_NOPICS = 0x00100000,
150 DOCHOSTUIFLAG_NO3DOUTERBORDER = 0x00200000,
151 DOCHOSTUIFLAG_DISABLE_EDIT_NS_FIXUP = 0x00400000,
152 DOCHOSTUIFLAG_LOCAL_MACHINE_ACCESS_CHECK = 0x00800000,
153 DOCHOSTUIFLAG_DISABLE_UNTRUSTEDPROTOCOL = 0x01000000,
154 DOCHOSTUIFLAG_HOST_NAVIGATES = 0x02000000,
155 DOCHOSTUIFLAG_ENABLE_REDIRECT_NOTIFICATION = 0x04000000,
156 DOCHOSTUIFLAG_USE_WINDOWLESS_SELECTCONTROL = 0x08000000,
157 DOCHOSTUIFLAG_USE_WINDOWED_SELECTCONTROL = 0x10000000,
158 DOCHOSTUIFLAG_ENABLE_ACTIVEX_INACTIVATE_MODE = 0x20000000,
159 DOCHOSTUIFLAG_DPI_AWARE = 0x40000000
160 } DOCHOSTUIFLAG;
163 object,
164 uuid(BD3F23C0-D43E-11CF-893B-00AA00BDCE1A),
165 pointer_default(unique),
166 local
168 interface IDocHostUIHandler : IUnknown
170 typedef struct _DOCHOSTUIINFO
172 ULONG cbSize;
173 DWORD dwFlags;
174 DWORD dwDoubleClick;
175 OLECHAR *pchHostCss;
176 OLECHAR *pchHostNS;
177 } DOCHOSTUIINFO;
179 HRESULT ShowContextMenu(
180 [in] DWORD dwID,
181 [in] POINT *ppt,
182 [in] IUnknown *pcmdtReserved,
183 [in] IDispatch *pdispReserved);
185 HRESULT GetHostInfo([in, out] DOCHOSTUIINFO *pInfo);
187 HRESULT ShowUI(
188 [in] DWORD dwID,
189 [in] IOleInPlaceActiveObject *pActiveObject,
190 [in] IOleCommandTarget *pCommandTarget,
191 [in] IOleInPlaceFrame *pFrame,
192 [in] IOleInPlaceUIWindow *pDoc);
194 HRESULT HideUI();
196 HRESULT UpdateUI();
198 HRESULT EnableModeless([in] BOOL fEnable);
200 HRESULT OnDocWindowActivate([in] BOOL fActivate);
202 HRESULT OnFrameWindowActivate([in] BOOL fActivate);
204 HRESULT ResizeBorder(
205 [in] LPCRECT prcBorder,
206 [in] IOleInPlaceUIWindow *pUIWindow,
207 [in] BOOL fRameWindow);
209 HRESULT TranslateAccelerator(
210 [in] LPMSG lpMsg,
211 [in] const GUID *pguidCmdGroup,
212 [in] DWORD nCmdID);
214 HRESULT GetOptionKeyPath(
215 [out] LPOLESTR *pchKey,
216 [in] DWORD dw);
218 HRESULT GetDropTarget(
219 [in] IDropTarget *pDropTarget,
220 [out] IDropTarget **ppDropTarget);
222 HRESULT GetExternal([out] IDispatch **ppDispatch);
224 HRESULT TranslateUrl(
225 [in] DWORD dwTranslate,
226 [in] OLECHAR *pchURLIn,
227 [out] OLECHAR **ppchURLOut);
229 HRESULT FilterDataObject(
230 [in] IDataObject *pDO,
231 [out] IDataObject **ppDORet);
234 cpp_quote("DEFINE_GUID(CGID_DocHostCommandHandler,0xf38bc242,0xb950,0x11d1,0x89,0x18,0x00,0xc0,0x4f,0xc2,0xc8,0x36);")
237 object,
238 uuid(3050F6D0-98b5-11CF-BB82-00AA00BDCE0B),
239 pointer_default(unique),
240 local
242 interface IDocHostUIHandler2 : IDocHostUIHandler
244 HRESULT GetOverrideKeyPath(
245 [out] LPOLESTR *pchKey,
246 [in] DWORD dw);
249 /*****************************************************************************
250 * ICustomDoc interface
253 object,
254 uuid(3050f3f0-98b5-11cf-bb82-00aa00bdce0b),
255 pointer_default(unique),
256 local
258 interface ICustomDoc : IUnknown
260 HRESULT SetUIHandler([in] IDocHostUIHandler *pUIHandler);
263 /*****************************************************************************
264 * IDocHostShowUI interface
267 object,
268 uuid(c4d244b0-d43e-11cf-893b-00aa00bdce1a),
269 pointer_default(unique),
270 local
272 interface IDocHostShowUI : IUnknown
274 HRESULT ShowMessage(
275 [in] HWND hwnd,
276 [in] LPOLESTR lpstrText,
277 [in] LPOLESTR lpstrCaption,
278 [in] DWORD dwType,
279 [in] LPOLESTR lpstrHelpFile,
280 [in] DWORD dwHelpContext,
281 [out] LRESULT *plResult);
283 HRESULT ShowHelp(
284 [in] HWND hwnd,
285 [in] LPOLESTR pszHelpFile,
286 [in] UINT uCommand,
287 [in] DWORD dwData,
288 [in] POINT ptMouse,
289 [out] IDispatch *pDispatchObjectHit);
292 /*****************************************************************************
293 * IClassFactoryEx interface
296 cpp_quote("#define IClassFactory3 IClassFactoryEx")
297 cpp_quote("#define IID_IClassFactory3 IID_IClassFactoryEx")
300 object,
301 uuid(342D1EA0-AE25-11D1-89C5-006008C3FBFC),
302 pointer_default(unique),
303 local
305 interface IClassFactoryEx : IClassFactory
307 HRESULT CreateInstanceWithContext(
308 IUnknown *punkContext,
309 IUnknown *punkOuter,
310 REFIID riid,
311 [out] void **ppv);
314 cpp_quote("typedef HRESULT WINAPI SHOWHTMLDIALOGFN(HWND,IMoniker*,VARIANT*,WCHAR*,VARIANT*);")
315 cpp_quote("typedef HRESULT WINAPI SHOWHTMLDIALOGEXFN(HWND,IMoniker*,DWORD,VARIANT*,WCHAR*,VARIANT*);")
316 cpp_quote("typedef HRESULT WINAPI SHOWMODELESSHTMLDIALOGFN(HWND,IMoniker*,VARIANT*,VARIANT*,IHTMLWindow2**);")
318 cpp_quote("EXTERN_C HRESULT WINAPI ShowHTMLDialog(HWND,IMoniker*,VARIANT*,WCHAR*,VARIANT*);")
319 cpp_quote("EXTERN_C HRESULT WINAPI ShowHTMLDialogEx(HWND,IMoniker*,DWORD,VARIANT*,WCHAR*,VARIANT*);")
320 cpp_quote("EXTERN_C HRESULT WINAPI ShowModelessHTMLDialog(HWND,IMoniker*,VARIANT*,VARIANT*,IHTMLWindow2**);")
321 cpp_quote("EXTERN_C HRESULT WINAPI RunHTMLApplication(HINSTANCE,HINSTANCE,LPSTR,int);")
322 cpp_quote("EXTERN_C HRESULT WINAPI CreateHTMLPropertyPage(IMoniker*,IPropertyPage**);")