#include <webchild.h>
Public Types | |
typedef IPCtrlWindow < ChildWindow, SIfacePtr < IWebBrowser2 > > | super |
typedef DWebBrowserEvents2Impl | web_super |
Public Member Functions | |
WebChildWindow (HWND hwnd, const WebChildWndInfo &info) | |
void | BeforeNavigate2 (IDispatch *pDisp, const Variant &url, const Variant &flags, const Variant &targetFrameName, const Variant &postData, const Variant &headers, VARIANT_BOOL &cancel) |
void | NavigateComplete2 (IDispatch *pDisp, const Variant &url) |
void | StatusTextChange (const BStr &text) |
void | ProgressChange (long Progress, long ProgressMax) |
void | WindowMove () |
void | WindowResize () |
void | WindowActivate () |
void | PropertyChange (const BStr &Property) |
void | CommandStateChange (long command, bool enable) |
void | DownloadBegin () |
void | NewWindow2 (IDispatch **ppDisp, VARIANT_BOOL &cancel) |
void | TitleChange (const BStr &text) |
void | TitleIconChange (const BStr &text) |
void | FrameBeforeNavigate (const BStr &url, long flags, const BStr &targetFrameName, VARIANT *postData, const BStr &headers, VARIANT_BOOL &cancel) |
void | FrameNavigateComplete (const BStr &url) |
void | FrameNewWindow (const BStr &url, long flags, const BStr &targetFrameName, VARIANT *postData, const BStr &headers, VARIANT_BOOL &processed) |
void | OnQuit () |
void | OnVisible (bool Visible) |
void | OnToolbar (bool Visible) |
void | OnMenubar (bool Visible) |
void | OnStatusbar (bool Visible) |
void | OnFullscreen (bool Visible) |
void | DocumentComplete () |
void | OnTheatermode (bool Visible) |
void | OnAddressbar (bool Visible) |
void | WindowSetResizable (bool Visible) |
void | WindowClosing (VARIANT_BOOL IsChildWindow, VARIANT_BOOL &cancel) |
void | WindowSetLeft (long Left) |
void | WindowSetTop (long Top) |
void | WindowSetWidth (long Width) |
void | WindowSetHeight (long Height) |
void | ClientToHostWindow (long &CX, long &CY) |
void | SetSecureLockIcon (long SecureLockIcon) |
void | FileDownload (Variant &cancel) |
void | NavigateError (IDispatch *pDisp, const Variant &url, const Variant &Frame, const Variant &StatusCode, VARIANT_BOOL &cancel) |
void | PrivacyImpactedStateChange (bool bImpacted) |
Static Public Member Functions | |
static WebChildWindow * | create (const WebChildWndInfo &info) |
Protected Member Functions | |
LRESULT | WndProc (UINT nmsg, WPARAM wparam, LPARAM lparam) |
virtual String | jump_to_int (LPCTSTR url) |
Protected Attributes | |
BrowserNavigator | _navigator |
auto_ptr< EventConnector > | _connector |
Definition at line 913 of file webchild.h.
typedef IPCtrlWindow<ChildWindow, SIfacePtr<IWebBrowser2> > WebChildWindow::super |
Definition at line 917 of file webchild.h.
WebChildWindow::WebChildWindow | ( | HWND | hwnd, | |
const WebChildWndInfo & | info | |||
) |
static WebChildWindow* WebChildWindow::create | ( | const WebChildWndInfo & | info | ) | [inline, static] |
Definition at line 921 of file webchild.h.
References CLASSNAME_CHILDWND, ChildWindow::create(), and WINDOW_CREATOR_INFO.
00922 { 00923 ChildWindow* child = ChildWindow::create(info, 00924 WINDOW_CREATOR_INFO(WebChildWindow,WebChildWndInfo), CLASSNAME_CHILDWND, NULL, WS_CHILD|WS_VISIBLE); 00925 00926 return static_cast<WebChildWindow*>(child); 00927 }
void WebChildWindow::BeforeNavigate2 | ( | IDispatch * | pDisp, | |
const Variant & | url, | |||
const Variant & | flags, | |||
const Variant & | targetFrameName, | |||
const Variant & | postData, | |||
const Variant & | headers, | |||
VARIANT_BOOL & | cancel | |||
) | [inline, virtual] |
void WebChildWindow::NavigateComplete2 | ( | IDispatch * | pDisp, | |
const Variant & | url | |||
) | [inline, virtual] |
Reimplemented from DWebBrowserEvents2Impl.
Definition at line 939 of file webchild.h.
References DWebBrowserEvents2Impl::NavigateComplete2(), and ChildWindow::set_url().
00940 { 00941 web_super::NavigateComplete2(pDisp, url); 00942 00943 set_url(String(BStr(url))); 00944 }
void WebChildWindow::StatusTextChange | ( | const BStr & | text | ) | [inline, virtual] |
Reimplemented from DWebBrowserEvents2IF.
Definition at line 946 of file webchild.h.
References ChildWindow::_hwndFrame, ChildWindow::_statusText, and PM_SETSTATUSTEXT.
00947 { 00948 _statusText = text; 00949 SendMessage(_hwndFrame, PM_SETSTATUSTEXT, 0, (LPARAM)_statusText.c_str()); 00950 }
void WebChildWindow::ProgressChange | ( | long | Progress, | |
long | ProgressMax | |||
) | [inline, virtual] |
Reimplemented from DWebBrowserEvents2IF.
Definition at line 952 of file webchild.h.
References ChildWindow::_hwndFrame, and PM_SETSTATUSTEXT.
00953 { 00954 String txt; 00955 00956 if (Progress>=0 && Progress<ProgressMax) 00957 txt.printf(TEXT("%3d %%"), (int)(100.*Progress/ProgressMax+.5)); 00958 00959 SendMessage(_hwndFrame, PM_SETSTATUSTEXT, 1, (LPARAM)txt.c_str()); 00960 }
void WebChildWindow::WindowMove | ( | ) | [inline, virtual] |
void WebChildWindow::WindowResize | ( | ) | [inline, virtual] |
void WebChildWindow::WindowActivate | ( | ) | [inline, virtual] |
void WebChildWindow::PropertyChange | ( | const BStr & | Property | ) | [inline, virtual] |
Reimplemented from DWebBrowserEvents2IF.
Definition at line 974 of file webchild.h.
References IPCtrlWindow< ChildWindow, SIfacePtr< IWebBrowser2 > >::_control.
00975 { 00976 Variant value; 00977 _control->GetProperty(Property, &value); 00978 }
void WebChildWindow::CommandStateChange | ( | long | command, | |
bool | enable | |||
) | [inline, virtual] |
void WebChildWindow::DownloadBegin | ( | ) | [inline, virtual] |
void WebChildWindow::NewWindow2 | ( | IDispatch ** | ppDisp, | |
VARIANT_BOOL & | cancel | |||
) | [inline, virtual] |
void WebChildWindow::TitleChange | ( | const BStr & | text | ) | [inline, virtual] |
void WebChildWindow::TitleIconChange | ( | const BStr & | text | ) | [inline, virtual] |
void WebChildWindow::FrameBeforeNavigate | ( | const BStr & | url, | |
long | flags, | |||
const BStr & | targetFrameName, | |||
VARIANT * | postData, | |||
const BStr & | headers, | |||
VARIANT_BOOL & | cancel | |||
) | [inline, virtual] |
void WebChildWindow::FrameNavigateComplete | ( | const BStr & | url | ) | [inline, virtual] |
void WebChildWindow::FrameNewWindow | ( | const BStr & | url, | |
long | flags, | |||
const BStr & | targetFrameName, | |||
VARIANT * | postData, | |||
const BStr & | headers, | |||
VARIANT_BOOL & | processed | |||
) | [inline, virtual] |
void WebChildWindow::OnQuit | ( | ) | [inline, virtual] |
void WebChildWindow::OnVisible | ( | bool | Visible | ) | [inline, virtual] |
void WebChildWindow::OnToolbar | ( | bool | Visible | ) | [inline, virtual] |
void WebChildWindow::OnMenubar | ( | bool | Visible | ) | [inline, virtual] |
void WebChildWindow::OnStatusbar | ( | bool | Visible | ) | [inline, virtual] |
void WebChildWindow::OnFullscreen | ( | bool | Visible | ) | [inline, virtual] |
void WebChildWindow::DocumentComplete | ( | ) | [inline, virtual] |
void WebChildWindow::OnTheatermode | ( | bool | Visible | ) | [inline, virtual] |
void WebChildWindow::OnAddressbar | ( | bool | Visible | ) | [inline, virtual] |
void WebChildWindow::WindowSetResizable | ( | bool | Visible | ) | [inline, virtual] |
void WebChildWindow::WindowClosing | ( | VARIANT_BOOL | IsChildWindow, | |
VARIANT_BOOL & | cancel | |||
) | [inline, virtual] |
void WebChildWindow::WindowSetLeft | ( | long | Left | ) | [inline, virtual] |
void WebChildWindow::WindowSetTop | ( | long | Top | ) | [inline, virtual] |
void WebChildWindow::WindowSetWidth | ( | long | Width | ) | [inline, virtual] |
void WebChildWindow::WindowSetHeight | ( | long | Height | ) | [inline, virtual] |
void WebChildWindow::ClientToHostWindow | ( | long & | CX, | |
long & | CY | |||
) | [inline, virtual] |
void WebChildWindow::SetSecureLockIcon | ( | long | SecureLockIcon | ) | [inline, virtual] |
void WebChildWindow::FileDownload | ( | Variant & | cancel | ) | [inline, virtual] |
void WebChildWindow::NavigateError | ( | IDispatch * | pDisp, | |
const Variant & | url, | |||
const Variant & | Frame, | |||
const Variant & | StatusCode, | |||
VARIANT_BOOL & | cancel | |||
) | [inline, virtual] |
void WebChildWindow::PrivacyImpactedStateChange | ( | bool | bImpacted | ) | [inline, virtual] |
LRESULT WebChildWindow::WndProc | ( | UINT | nmsg, | |
WPARAM | wparam, | |||
LPARAM | lparam | |||
) | [protected, virtual] |
Reimplemented from IPCtrlWindow< ChildWindow, SIfacePtr< IWebBrowser2 > >.
virtual String WebChildWindow::jump_to_int | ( | LPCTSTR | url | ) | [protected, virtual] |
Implements ChildWindow.
BrowserNavigator WebChildWindow::_navigator [protected] |
auto_ptr<EventConnector> WebChildWindow::_connector [protected] |
Definition at line 1098 of file webchild.h.
IBrowser Source Code Documentation
generated on 18.09.2008 by |