1 /**
2  * Windows API header module
3  *
4  * Translated from MinGW Windows headers
5  *
6  * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
7  * Source: $(DRUNTIMESRC core/sys/windows/_exdisp.d)
8  */
9 module core.sys.windows.exdisp;
10 version (Windows):
11 
12 import core.sys.windows.docobj, core.sys.windows.oaidl, core.sys.windows.ocidl;
13 import core.sys.windows.basetyps, core.sys.windows.windef, core.sys.windows.wtypes;
14 
15 
16 enum BrowserNavConstants {
17     navOpenInNewWindow = 0x01,
18     navNoHistory       = 0x02,
19     navNoReadFromCache = 0x04,
20     navNoWriteTocache  = 0x08,
21     navAllowAutosearch = 0x10,
22     navBrowserBar      = 0x20,
23     navHyperLink       = 0x40
24 }
25 
26 interface IWebBrowser : IDispatch {
27     HRESULT GoBack();
28     HRESULT GoForward();
29     HRESULT GoHome();
30     HRESULT GoSearch();
31     HRESULT Navigate(BSTR, VARIANT*, VARIANT*, VARIANT*, VARIANT*);
32     HRESULT Refresh();
33     HRESULT Refresh2(VARIANT*);
34     HRESULT Stop();
35     HRESULT get_Application(IDispatch* ppDisp);
36     HRESULT get_Parent(IDispatch* ppDisp);
37     HRESULT get_Container(IDispatch* ppDisp);
38     HRESULT get_Document(IDispatch* ppDisp);
39     HRESULT get_TopLevelContainer(VARIANT_BOOL*);
40     HRESULT get_Type(BSTR*);
41     HRESULT get_Left(LONG*);
42     HRESULT put_Left(LONG);
43     HRESULT get_Top(LONG*);
44     HRESULT put_Top(LONG);
45     HRESULT get_Width(LONG*);
46     HRESULT put_Width(LONG);
47     HRESULT get_Height(LONG*);
48     HRESULT put_Height(LONG);
49     HRESULT get_LocationName(BSTR*);
50     HRESULT get_LocationURL(BSTR*);
51     HRESULT get_Busy(VARIANT_BOOL*);
52 }
53 
54 interface IWebBrowserApp : IWebBrowser {
55     HRESULT Quit();
56     HRESULT ClientToWindow(int*, int*);
57     HRESULT PutProperty(BSTR, VARIANT);
58     HRESULT GetProperty(BSTR, VARIANT*);
59     HRESULT get_Name(BSTR*);
60     HRESULT get_HWND(LONG*);
61     HRESULT get_FullName(BSTR*);
62     HRESULT get_Path(BSTR*);
63     HRESULT get_Visible(VARIANT_BOOL*);
64     HRESULT put_Visible(VARIANT_BOOL);
65     HRESULT get_StatusBar(VARIANT_BOOL*);
66     HRESULT put_StatusBar(VARIANT_BOOL);
67     HRESULT get_StatusText(BSTR*);
68     HRESULT put_StatusText(BSTR);
69     HRESULT get_ToolBar(int*);
70     HRESULT put_ToolBar(int);
71     HRESULT get_MenuBar(VARIANT_BOOL*);
72     HRESULT put_MenuBar(VARIANT_BOOL);
73     HRESULT get_FullScreen(VARIANT_BOOL*);
74     HRESULT put_FullScreen(VARIANT_BOOL);
75 }
76 
77 interface IWebBrowser2 : IWebBrowserApp {
78     HRESULT Navigate2(VARIANT*, VARIANT*, VARIANT*, VARIANT*, VARIANT*);
79     HRESULT QueryStatusWB(OLECMDID, OLECMDF*);
80     HRESULT ExecWB(OLECMDID, OLECMDEXECOPT, VARIANT*, VARIANT*);
81     HRESULT ShowBrowserBar(VARIANT*, VARIANT*, VARIANT*);
82     HRESULT get_ReadyState(READYSTATE*);
83     HRESULT get_Offline(VARIANT_BOOL*);
84     HRESULT put_Offline(VARIANT_BOOL);
85     HRESULT get_Silent(VARIANT_BOOL*);
86     HRESULT put_Silent(VARIANT_BOOL);
87     HRESULT get_RegistaerAsBrowser(VARIANT_BOOL*);
88     HRESULT put_RegisterAsBrowser(VARIANT_BOOL);
89     HRESULT get_RegistaerAsDropTarget(VARIANT_BOOL*);
90     HRESULT put_RegisterAsDropTarget(VARIANT_BOOL);
91     HRESULT get_TheaterMode(VARIANT_BOOL*);
92     HRESULT put_TheaterMode(VARIANT_BOOL);
93     HRESULT get_AddressBar(VARIANT_BOOL*);
94     HRESULT put_AddressBar(VARIANT_BOOL);
95     HRESULT get_Resizable(VARIANT_BOOL*);
96     HRESULT put_Resizable(VARIANT_BOOL);
97 }
98 
99 interface DWebBrowserEvents2 : IDispatch {
100     void StatusTextChange(BSTR);
101     void ProgressChange(LONG, LONG);
102     void CommandStateChange(LONG, VARIANT_BOOL);
103     void DownloadBegin();
104     void DownloadComplete();
105     void TitleChange(BSTR);
106     void PropertyChange(BSTR);
107     void BeforeNavigate2(IDispatch pDisp, VARIANT*, VARIANT*, VARIANT*, VARIANT*, VARIANT*, VARIANT_BOOL*);
108     void NewWindow2(IDispatch* ppDisp, VARIANT_BOOL*);
109     void NavigateComplete(IDispatch pDisp, VARIANT*);
110     void DocumentComplete(IDispatch pDisp, VARIANT*);
111     void OnQuit();
112     void OnVisible(VARIANT_BOOL);
113     void OnToolBar(VARIANT_BOOL);
114     void OnMenuBar(VARIANT_BOOL);
115     void OnStatusBar(VARIANT_BOOL);
116     void OnFullScreen(VARIANT_BOOL);
117     void OnTheaterMode(VARIANT_BOOL);
118     void WindowSetResizable(VARIANT_BOOL);
119     void WindowSetLeft(LONG);
120     void WindowSetTop(LONG);
121     void WindowSetWidth(LONG);
122     void WindowSetHeight(LONG);
123     void WindowClosing(VARIANT_BOOL, VARIANT_BOOL*);
124     void ClientToHostWindow(LONG*, LONG*);
125     void SetSecureLockIcon(LONG);
126     void FileDownload(VARIANT_BOOL*);
127 }