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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
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")
48 cpp_quote
("#define PRINT_DONTBOTHERUSER 0x0001")
49 cpp_quote
("#define PRINT_WAITFORCOMPLETION 0x0002")
51 cpp_quote
("#ifndef __IHTMLWindow2_FWD_DEFINED__")
52 cpp_quote
("#define __IHTMLWindow2_FWD_DEFINED__")
53 cpp_quote
("typedef interface IHTMLWindow2 IHTMLWindow2;")
56 /*****************************************************************************
57 * IHostDialogHelper interface
61 uuid(53DEC138
-A51E
-11d2
-861E-00C04FA35C89
),
62 pointer_default(unique),
65 interface IHostDialogHelper
: IUnknown
67 HRESULT ShowHTMLDialog
(
76 /*****************************************************************************
77 * HostDialogHelper coclass
80 uuid(429AF92C
-A51F
-11d2
-861E-00C04FA35C89
)
82 coclass HostDialogHelper
84 [default] interface IHostDialogHelper
;
87 /*****************************************************************************
88 * IDocHostUIHandler interface
91 typedef enum tagDOCHOSTUIDBLCLK
93 DOCHOSTUIDBLCLK_DEFAULT
= 0,
94 DOCHOSTUIDBLCLK_SHOWPROPERTIES
= 1,
95 DOCHOSTUIDBLCLK_SHOWCODE
= 2
98 typedef enum tagDOCHOSTUIFLAG
100 DOCHOSTUIFLAG_DIALOG
= 0x00000001,
101 DOCHOSTUIFLAG_DISABLE_HELP_MENU
= 0x00000002,
102 DOCHOSTUIFLAG_NO3DBORDER
= 0x00000004,
103 DOCHOSTUIFLAG_SCROLL_NO
= 0x00000008,
104 DOCHOSTUIFLAG_DISABLE_SCRIPT_INACTIVE
= 0x00000010,
105 DOCHOSTUIFLAG_OPENNEWWIN
= 0x00000020,
106 DOCHOSTUIFLAG_DISABLE_OFFSCREEN
= 0x00000040,
107 DOCHOSTUIFLAG_FLAT_SCROLLBAR
= 0x00000080,
108 DOCHOSTUIFLAG_DIV_BLOCKDEFAULT
= 0x00000100,
109 DOCHOSTUIFLAG_ACTIVATE_CLIENTHIT_ONLY
= 0x00000200,
110 DOCHOSTUIFLAG_OVERRIDEBEHAVIORFACTORY
= 0x00000400,
111 DOCHOSTUIFLAG_CODEPAGELINKEDFONTS
= 0x00000800,
112 DOCHOSTUIFLAG_URL_ENCODING_DISABLE_UTF8
= 0x00001000,
113 DOCHOSTUIFLAG_URL_ENCODING_ENABLE_UTF8
= 0x00002000,
114 DOCHOSTUIFLAG_ENABLE_FORMS_AUTOCOMPLETE
= 0x00004000,
115 DOCHOSTUIFLAG_ENABLE_INPLACE_NAVIGATION
= 0x00010000,
116 DOCHOSTUIFLAG_IME_ENABLE_RECONVERSION
= 0x00020000,
117 DOCHOSTUIFLAG_THEME
= 0x00040000,
118 DOCHOSTUIFLAG_NOTHEME
= 0x00080000,
119 DOCHOSTUIFLAG_NOPICS
= 0x00100000,
120 DOCHOSTUIFLAG_NO3DOUTERBORDER
= 0x00200000,
121 DOCHOSTUIFLAG_DISABLE_EDIT_NS_FIXUP
= 0x00400000,
122 DOCHOSTUIFLAG_LOCAL_MACHINE_ACCESS_CHECK
= 0x00800000,
123 DOCHOSTUIFLAG_DISABLE_UNTRUSTEDPROTOCOL
= 0x01000000
128 uuid(BD3F23C0
-D43E
-11CF
-893B
-00AA00BDCE1A
),
129 pointer_default(unique),
132 interface IDocHostUIHandler
: IUnknown
134 typedef struct _DOCHOSTUIINFO
143 HRESULT ShowContextMenu
(
146 [in] IUnknown
*pcmdtReserved
,
147 [in] IDispatch
*pdispReserved
);
149 HRESULT GetHostInfo
([in, out] DOCHOSTUIINFO
*pInfo
);
153 [in] IOleInPlaceActiveObject
*pActiveObject
,
154 [in] IOleCommandTarget
*pCommandTarget
,
155 [in] IOleInPlaceFrame
*pFrame
,
156 [in] IOleInPlaceUIWindow
*pDoc
);
162 HRESULT EnableModeless
([in] BOOL fEnable
);
164 HRESULT OnDocWindowActivate
([in] BOOL fActivate
);
166 HRESULT OnFrameWindowActivate
([in] BOOL fActivate
);
168 HRESULT ResizeBorder
(
169 [in] LPCRECT prcBorder
,
170 [in] IOleInPlaceUIWindow
*pUIWindow
,
171 [in] BOOL fRameWindow
);
173 HRESULT TranslateAccelerator
(
175 [in] const GUID
*pguidCmdGroup
,
178 HRESULT GetOptionKeyPath
(
179 [out] LPOLESTR
*pchKey
,
182 HRESULT GetDropTarget
(
183 [in] IDropTarget
*pDropTarget
,
184 [out] IDropTarget
**ppDropTarget
);
186 HRESULT GetExternal
([out] IDispatch
**ppDispatch
);
188 HRESULT TranslateUrl
(
189 [in] DWORD dwTranslate
,
190 [in] OLECHAR
*pchURLIn
,
191 [out] OLECHAR
**ppchURLOut
);
193 HRESULT FilterDataObject
(
194 [in] IDataObject
*pDO
,
195 [out] IDataObject
**ppDORet
);
200 uuid(3050F6D0
-98b5
-11CF
-BB82
-00AA00BDCE0B
),
201 pointer_default(unique),
204 interface IDocHostUIHandler2
: IDocHostUIHandler
206 HRESULT GetOverrideKeyPath
(
207 [out] LPOLESTR
*pchKey
,
211 /*****************************************************************************
212 * ICustomDoc interface
216 uuid(3050f3f0
-98b5
-11cf
-bb82
-00aa00bdce0b
),
217 pointer_default(unique),
220 interface ICustomDoc
: IUnknown
222 HRESULT SetUIHandler
([in] IDocHostUIHandler
*pUIHandler
);
225 /*****************************************************************************
226 * IDocHostShowUI interface
230 uuid(c4d244b0
-d43e
-11cf
-893b
-00aa00bdce1a
),
231 pointer_default(unique),
234 interface IDocHostShowUI
: IUnknown
238 [in] LPOLESTR lpstrText
,
239 [in] LPOLESTR lpstrCaption
,
241 [in] LPOLESTR lpstrHelpFile
,
242 [in] DWORD dwHelpContext
,
243 [out] LRESULT
*plResult
);
247 [in] LPOLESTR pszHelpFile
,
251 [out] IDispatch
*pDispatchObjectHit
);
254 /*****************************************************************************
255 * IClassFactoryEx interface
258 cpp_quote
("#define IClassFactory3 IClassFactoryEx")
259 cpp_quote
("#define IID_IClassFactory3 IID_IClassFactoryEx")
263 uuid(342D1EA0
-AE25
-11D1
-89C5
-006008C3FBFC
),
264 pointer_default(unique),
267 interface IClassFactoryEx
: IClassFactory
269 HRESULT CreateInstanceWithContext
(
270 IUnknown
*punkContext
,
276 cpp_quote
("typedef HRESULT WINAPI SHOWHTMLDIALOGFN(HWND,IMoniker*,VARIANT*,WCHAR*,VARIANT*);");
277 cpp_quote
("typedef HRESULT WINAPI SHOWHTMLDIALOGEXFN(HWND,IMoniker*,DWORD,VARIANT*,WCHAR*,VARIANT*);");
278 cpp_quote
("typedef HRESULT WINAPI SHOWMODELESSHTMLDIALOGFN(HWND,IMoniker*,VARIANT*,VARIANT*,IHTMLWindow2**);");
280 cpp_quote
("EXTERN_C HRESULT WINAPI ShowHTMLDialog(HWND,IMoniker*,VARIANT*,WCHAR*,VARIANT*);");
281 cpp_quote
("EXTERN_C HRESULT WINAPI ShowHTMLDialogEx(HWND,IMoniker*,DWORD,VARIANT*,WCHAR*,VARIANT*);");
282 cpp_quote
("EXTERN_C HRESULT WINAPI ShowModelessHTMLDialog(HWND,IMoniker*,VARIANT*,VARIANT*,IHTMLWindow2**);");
283 cpp_quote
("EXTERN_C HRESULT WINAPI RunHTMLApplication(HINSTANCE,HINSTANCE,LPSTR,int);");
284 cpp_quote
("EXTERN_C HRESULT WINAPI CreateHTMLPropertyPage(IMoniker*,IPropertyPage**);");