user: Moved Get/SetClassLong16 to wnd16.c.
[wine] / include / mshtmhst.idl
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 import "ocidl.idl";
20 import "objidl.idl";
21 import "oleidl.idl";
22 import "oaidl.idl";
23 import "docobj.idl";
24
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")
37
38 cpp_quote("#define MENUEXT_SHOWDIALOG 1")
39
40 cpp_quote("#define DOCHOSTUIFLAG_BROWSER (DOCHOSTUIFLAG_DISABLE_HELP_MENU|DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE)")
41
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
48 cpp_quote("#define PRINT_DONTBOTHERUSER     0x0001")
49 cpp_quote("#define PRINT_WAITFORCOMPLETION  0x0002")
50
51 cpp_quote("DEFINE_GUID(CGID_MSHTML, 0xde4ba900,0x59ca,0x11cf,0x95,0x92,0x44,0x45,0x53,0x54,0x00,0x00);")
52 cpp_quote("#define CMDSETID_Forms3 CGID_MSHTML")
53
54 cpp_quote("#if defined(__GNUC__)")
55 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}")
56 cpp_quote("#elif defined(_MSC_VER)")
57 cpp_quote("#define SZ_HTML_CLIENTSITE_OBJECTPARAM L\"{d4db6850-5385-11d0-89e9-00a0c90a90ac}\"")
58 cpp_quote("#else")
59 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};")
60 cpp_quote("#endif")
61
62 cpp_quote("#ifndef __IHTMLWindow2_FWD_DEFINED__")
63 cpp_quote("#define __IHTMLWindow2_FWD_DEFINED__")
64 cpp_quote("typedef interface IHTMLWindow2 IHTMLWindow2;")
65 cpp_quote("#endif")
66
67 /*****************************************************************************
68  *    IHostDialogHelper interface
69  */
70 [
71     object,
72     uuid(53DEC138-A51E-11d2-861E-00C04FA35C89),
73     pointer_default(unique),
74     local
75 ]
76 interface IHostDialogHelper : IUnknown
77 {
78     HRESULT ShowHTMLDialog(
79         HWND hwndParent,
80         IMoniker *pMk,
81         VARIANT *pvarArgIn,
82         WCHAR *pchOptions,
83         VARIANT *pvarArgOut,
84         IUnknown *punkHost);
85 }
86
87 /*****************************************************************************
88  *    HostDialogHelper coclass
89  */
90 [
91     uuid(429AF92C-A51F-11d2-861E-00C04FA35C89)
92 ]
93 coclass HostDialogHelper
94 {
95     [default] interface IHostDialogHelper;
96 };
97
98 /*****************************************************************************
99  *    IDocHostUIHandler interface
100  */
101
102 typedef enum tagDOCHOSTUIDBLCLK
103 {
104     DOCHOSTUIDBLCLK_DEFAULT         = 0,
105     DOCHOSTUIDBLCLK_SHOWPROPERTIES  = 1,
106     DOCHOSTUIDBLCLK_SHOWCODE        = 2
107 } DOCHOSTUIDBLCLK;
108
109 typedef enum tagDOCHOSTUIFLAG
110 {
111     DOCHOSTUIFLAG_DIALOG                      = 0x00000001,
112     DOCHOSTUIFLAG_DISABLE_HELP_MENU           = 0x00000002,
113     DOCHOSTUIFLAG_NO3DBORDER                  = 0x00000004,
114     DOCHOSTUIFLAG_SCROLL_NO                   = 0x00000008,
115     DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE     = 0x00000010,
116     DOCHOSTUIFLAG_OPENNEWWIN                  = 0x00000020,
117     DOCHOSTUIFLAG_DISABLE_OFFSCREEN           = 0x00000040,
118     DOCHOSTUIFLAG_FLAT_SCROLLBAR              = 0x00000080,
119     DOCHOSTUIFLAG_DIV_BLOCKDEFAULT            = 0x00000100,
120     DOCHOSTUIFLAG_ACTIVATE_CLIENTHIT_ONLY     = 0x00000200,
121     DOCHOSTUIFLAG_OVERRIDEBEHAVIORFACTORY     = 0x00000400,
122     DOCHOSTUIFLAG_CODEPAGELINKEDFONTS         = 0x00000800,
123     DOCHOSTUIFLAG_URL_ENCODING_DISABLE_UTF8   = 0x00001000,
124     DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8    = 0x00002000,
125     DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE   = 0x00004000,
126     DOCHOSTUIFLAG_ENABLE_INPLACE_NAVIGATION   = 0x00010000,
127     DOCHOSTUIFLAG_IME_ENABLE_RECONVERSION     = 0x00020000,
128     DOCHOSTUIFLAG_THEME                       = 0x00040000,
129     DOCHOSTUIFLAG_NOTHEME                     = 0x00080000,
130     DOCHOSTUIFLAG_NOPICS                      = 0x00100000,
131     DOCHOSTUIFLAG_NO3DOUTERBORDER             = 0x00200000,
132     DOCHOSTUIFLAG_DISABLE_EDIT_NS_FIXUP       = 0x00400000,
133     DOCHOSTUIFLAG_LOCAL_MACHINE_ACCESS_CHECK  = 0x00800000,
134     DOCHOSTUIFLAG_DISABLE_UNTRUSTEDPROTOCOL   = 0x01000000
135 } DOCHOSTUIFLAG;
136
137 [
138     object,
139     uuid(BD3F23C0-D43E-11CF-893B-00AA00BDCE1A),
140     pointer_default(unique),
141     local
142 ]
143 interface IDocHostUIHandler : IUnknown
144 {
145     typedef struct _DOCHOSTUIINFO
146     {
147         ULONG cbSize;
148         DWORD dwFlags;
149         DWORD dwDoubleClick;
150         OLECHAR *pchHostCss;
151         OLECHAR *pchHostNS;
152     } DOCHOSTUIINFO;
153
154     HRESULT ShowContextMenu(
155         [in] DWORD dwID, 
156         [in] POINT *ppt, 
157         [in] IUnknown *pcmdtReserved,  
158         [in] IDispatch *pdispReserved);
159
160     HRESULT GetHostInfo([in, out] DOCHOSTUIINFO *pInfo);
161
162     HRESULT ShowUI(
163         [in] DWORD dwID,
164         [in] IOleInPlaceActiveObject *pActiveObject,
165         [in] IOleCommandTarget *pCommandTarget,
166         [in] IOleInPlaceFrame *pFrame,
167         [in] IOleInPlaceUIWindow *pDoc);
168
169     HRESULT HideUI();
170
171     HRESULT UpdateUI();
172
173     HRESULT EnableModeless([in] BOOL fEnable);
174
175     HRESULT OnDocWindowActivate([in] BOOL fActivate);
176
177     HRESULT OnFrameWindowActivate([in] BOOL fActivate);
178
179     HRESULT ResizeBorder(
180         [in] LPCRECT prcBorder,
181         [in] IOleInPlaceUIWindow *pUIWindow,
182         [in] BOOL fRameWindow);
183
184     HRESULT TranslateAccelerator(
185         [in] LPMSG lpMsg,
186         [in] const GUID *pguidCmdGroup, 
187         [in] DWORD nCmdID);
188
189     HRESULT GetOptionKeyPath(
190         [out] LPOLESTR *pchKey,
191         [in] DWORD dw);
192
193     HRESULT GetDropTarget(
194         [in] IDropTarget *pDropTarget, 
195         [out] IDropTarget **ppDropTarget);
196
197     HRESULT GetExternal([out] IDispatch **ppDispatch);
198
199     HRESULT TranslateUrl(
200         [in] DWORD dwTranslate,
201         [in] OLECHAR *pchURLIn,
202         [out] OLECHAR **ppchURLOut);
203
204     HRESULT FilterDataObject(
205         [in] IDataObject *pDO,
206         [out] IDataObject **ppDORet);
207 }
208
209 cpp_quote("DEFINE_GUID(CGID_DocHostCommandHandler,0xf38bc242,0xb950,0x11d1,0x89,0x18,0x00,0xc0,0x4f,0xc2,0xc8,0x36);")
210
211 [
212     object,
213     uuid(3050F6D0-98b5-11CF-BB82-00AA00BDCE0B),
214     pointer_default(unique),
215     local
216 ]
217 interface IDocHostUIHandler2 : IDocHostUIHandler
218 {
219     HRESULT GetOverrideKeyPath(
220         [out] LPOLESTR *pchKey,
221         [in] DWORD dw);
222 }
223
224 /*****************************************************************************
225  *    ICustomDoc interface
226  */
227 [
228     object,
229     uuid(3050f3f0-98b5-11cf-bb82-00aa00bdce0b),
230     pointer_default(unique),
231     local
232 ]
233 interface ICustomDoc : IUnknown
234 {
235     HRESULT SetUIHandler([in] IDocHostUIHandler *pUIHandler);
236 }
237
238 /*****************************************************************************
239  *    IDocHostShowUI interface
240  */
241 [
242     object,
243     uuid(c4d244b0-d43e-11cf-893b-00aa00bdce1a),
244     pointer_default(unique),
245     local
246 ]
247 interface IDocHostShowUI : IUnknown
248 {
249     HRESULT ShowMessage(
250         [in] HWND hwnd,
251         [in] LPOLESTR lpstrText,
252         [in] LPOLESTR lpstrCaption,
253         [in] DWORD dwType,
254         [in] LPOLESTR lpstrHelpFile,
255         [in] DWORD dwHelpContext,
256         [out] LRESULT *plResult);
257
258     HRESULT ShowHelp(
259         [in] HWND hwnd,
260         [in] LPOLESTR pszHelpFile,
261         [in] UINT uCommand,
262         [in] DWORD dwData,
263         [in] POINT ptMouse,
264         [out] IDispatch *pDispatchObjectHit);
265 }
266
267 /*****************************************************************************
268  *    IClassFactoryEx interface
269  */
270
271 cpp_quote("#define IClassFactory3 IClassFactoryEx")
272 cpp_quote("#define IID_IClassFactory3 IID_IClassFactoryEx")
273
274 [
275     object,
276     uuid(342D1EA0-AE25-11D1-89C5-006008C3FBFC),
277     pointer_default(unique),
278     local
279 ]
280 interface IClassFactoryEx : IClassFactory
281 {
282     HRESULT CreateInstanceWithContext(
283         IUnknown *punkContext,
284         IUnknown *punkOuter,
285         REFIID riid,
286         [out] void **ppv);
287 };
288
289 cpp_quote("typedef HRESULT WINAPI SHOWHTMLDIALOGFN(HWND,IMoniker*,VARIANT*,WCHAR*,VARIANT*);");
290 cpp_quote("typedef HRESULT WINAPI SHOWHTMLDIALOGEXFN(HWND,IMoniker*,DWORD,VARIANT*,WCHAR*,VARIANT*);");
291 cpp_quote("typedef HRESULT WINAPI SHOWMODELESSHTMLDIALOGFN(HWND,IMoniker*,VARIANT*,VARIANT*,IHTMLWindow2**);");
292
293 cpp_quote("EXTERN_C HRESULT WINAPI ShowHTMLDialog(HWND,IMoniker*,VARIANT*,WCHAR*,VARIANT*);");
294 cpp_quote("EXTERN_C HRESULT WINAPI ShowHTMLDialogEx(HWND,IMoniker*,DWORD,VARIANT*,WCHAR*,VARIANT*);");
295 cpp_quote("EXTERN_C HRESULT WINAPI ShowModelessHTMLDialog(HWND,IMoniker*,VARIANT*,VARIANT*,IHTMLWindow2**);");
296 cpp_quote("EXTERN_C HRESULT WINAPI RunHTMLApplication(HINSTANCE,HINSTANCE,LPSTR,int);");
297 cpp_quote("EXTERN_C HRESULT WINAPI CreateHTMLPropertyPage(IMoniker*,IPropertyPage**);");