WebChildWindow Struct Reference

encapsulation of the Web control More...

#include <webchild.h>

Inheritance diagram for WebChildWindow:

Inheritance graph
[legend]
Collaboration diagram for WebChildWindow:

Collaboration graph
[legend]

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 WebChildWindowcreate (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

Detailed Description

encapsulation of the Web control

Definition at line 913 of file webchild.h.


Member Typedef Documentation

typedef IPCtrlWindow<ChildWindow, SIfacePtr<IWebBrowser2> > WebChildWindow::super

Reimplemented from DWebBrowserEvents2Impl.

Definition at line 916 of file webchild.h.

typedef DWebBrowserEvents2Impl WebChildWindow::web_super

Definition at line 917 of file webchild.h.


Constructor & Destructor Documentation

WebChildWindow::WebChildWindow ( HWND  hwnd,
const WebChildWndInfo info 
)


Member Function Documentation

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     }

Here is the call graph for this function:

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]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 932 of file webchild.h.

00935     {
00936         //String adr = (BStr)url;
00937     }

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     }

Here is the call graph for this function:

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]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 962 of file webchild.h.

00963     {
00964     }

void WebChildWindow::WindowResize (  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 966 of file webchild.h.

00967     {
00968     }

void WebChildWindow::WindowActivate (  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 970 of file webchild.h.

00971     {
00972     }

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]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 980 of file webchild.h.

00981     {
00982     }

void WebChildWindow::DownloadBegin (  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 984 of file webchild.h.

00985     {
00986     }

void WebChildWindow::NewWindow2 ( IDispatch **  ppDisp,
VARIANT_BOOL &  cancel 
) [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 988 of file webchild.h.

00989     {
00990         //*ppDisp = ;
00991         //cancel = TRUE;
00992     }

void WebChildWindow::TitleChange ( const BStr &  text  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 994 of file webchild.h.

00995     {
00996         SetWindowText(_hwnd, String(text));
00997     }

void WebChildWindow::TitleIconChange ( const BStr &  text  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 999 of file webchild.h.

01000     {
01001     }

void WebChildWindow::FrameBeforeNavigate ( const BStr &  url,
long  flags,
const BStr &  targetFrameName,
VARIANT *  postData,
const BStr &  headers,
VARIANT_BOOL &  cancel 
) [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1003 of file webchild.h.

01004     {
01005     }

void WebChildWindow::FrameNavigateComplete ( const BStr &  url  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1007 of file webchild.h.

01008     {
01009     }

void WebChildWindow::FrameNewWindow ( const BStr &  url,
long  flags,
const BStr &  targetFrameName,
VARIANT *  postData,
const BStr &  headers,
VARIANT_BOOL &  processed 
) [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1011 of file webchild.h.

01012     {
01013     }

void WebChildWindow::OnQuit (  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1015 of file webchild.h.

01016     {
01017     }

void WebChildWindow::OnVisible ( bool  Visible  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1019 of file webchild.h.

01020     {
01021     }

void WebChildWindow::OnToolbar ( bool  Visible  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1023 of file webchild.h.

01024     {
01025     }

void WebChildWindow::OnMenubar ( bool  Visible  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1027 of file webchild.h.

01028     {
01029     }

void WebChildWindow::OnStatusbar ( bool  Visible  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1031 of file webchild.h.

01032     {
01033     }

void WebChildWindow::OnFullscreen ( bool  Visible  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1035 of file webchild.h.

01036     {
01037     }

void WebChildWindow::DocumentComplete (  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1039 of file webchild.h.

01040     {
01041     }

void WebChildWindow::OnTheatermode ( bool  Visible  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1043 of file webchild.h.

01044     {
01045     }

void WebChildWindow::OnAddressbar ( bool  Visible  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1047 of file webchild.h.

01048     {
01049     }

void WebChildWindow::WindowSetResizable ( bool  Visible  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1051 of file webchild.h.

01052     {
01053     }

void WebChildWindow::WindowClosing ( VARIANT_BOOL  IsChildWindow,
VARIANT_BOOL &  cancel 
) [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1055 of file webchild.h.

01056     {
01057     }

void WebChildWindow::WindowSetLeft ( long  Left  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1059 of file webchild.h.

01060     {
01061     }

void WebChildWindow::WindowSetTop ( long  Top  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1063 of file webchild.h.

01064     {
01065     }

void WebChildWindow::WindowSetWidth ( long  Width  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1067 of file webchild.h.

01068     {
01069     }

void WebChildWindow::WindowSetHeight ( long  Height  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1071 of file webchild.h.

01072     {
01073     }

void WebChildWindow::ClientToHostWindow ( long &  CX,
long &  CY 
) [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1075 of file webchild.h.

01076     {
01077     }

void WebChildWindow::SetSecureLockIcon ( long  SecureLockIcon  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1079 of file webchild.h.

01080     {
01081     }

void WebChildWindow::FileDownload ( Variant &  cancel  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1083 of file webchild.h.

01084     {
01085     }

void WebChildWindow::NavigateError ( IDispatch *  pDisp,
const Variant &  url,
const Variant &  Frame,
const Variant &  StatusCode,
VARIANT_BOOL &  cancel 
) [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1087 of file webchild.h.

01088     {
01089     }

void WebChildWindow::PrivacyImpactedStateChange ( bool  bImpacted  )  [inline, virtual]

Reimplemented from DWebBrowserEvents2IF.

Definition at line 1091 of file webchild.h.

01092     {
01093     }

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.


Field Documentation

BrowserNavigator WebChildWindow::_navigator [protected]

Reimplemented from DWebBrowserEvents2Impl.

Definition at line 1097 of file webchild.h.

auto_ptr<EventConnector> WebChildWindow::_connector [protected]

Definition at line 1098 of file webchild.h.


The documentation for this struct was generated from the following file:
IBrowser Source Code Documentation
generated on 18.09.2008 by doxygen

Homepage