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