Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
IWebBrowserImpl< T, pclsid, plibid > Class Template Reference

#include <IWebBrowserImpl.h>

Inheritance diagram for IWebBrowserImpl< T, pclsid, plibid >:
Inheritance graph
[legend]
Collaboration diagram for IWebBrowserImpl< T, pclsid, plibid >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 IWebBrowserImpl ()
virtual nsresult GetWebNavigation (nsIWebNavigation **aWebNav)=0
virtual nsresult GetDOMWindow (nsIDOMWindow **aDOMWindow)=0
virtual nsresult GetPrefs (nsIPrefBranch **aPrefBranch)=0
virtual PRBool BrowserIsValid ()=0
virtual HRESULT SetErrorInfo (HRESULT hr, LPCOLESTR lpszDesc=NULL)
virtual HRESULT STDMETHODCALLTYPE GoBack (void)
virtual HRESULT STDMETHODCALLTYPE GoForward (void)
virtual HRESULT STDMETHODCALLTYPE GoHome (void)
virtual HRESULT STDMETHODCALLTYPE GoSearch (void)
virtual HRESULT STDMETHODCALLTYPE Navigate (BSTR URL, VARIANT __RPC_FAR *Flags, VARIANT __RPC_FAR *TargetFrameName, VARIANT __RPC_FAR *PostData, VARIANT __RPC_FAR *Headers)
virtual HRESULT STDMETHODCALLTYPE Refresh (void)
virtual HRESULT STDMETHODCALLTYPE Refresh2 (VARIANT __RPC_FAR *Level)
virtual HRESULT STDMETHODCALLTYPE Stop (void)
virtual HRESULT STDMETHODCALLTYPE get_Application (IDispatch __RPC_FAR *__RPC_FAR *ppDisp)
virtual HRESULT STDMETHODCALLTYPE get_Parent (IDispatch __RPC_FAR *__RPC_FAR *ppDisp)
virtual HRESULT STDMETHODCALLTYPE get_Container (IDispatch __RPC_FAR *__RPC_FAR *ppDisp)
virtual HRESULT STDMETHODCALLTYPE get_Document (IDispatch __RPC_FAR *__RPC_FAR *ppDisp)
virtual HRESULT STDMETHODCALLTYPE get_TopLevelContainer (VARIANT_BOOL __RPC_FAR *pBool)
virtual HRESULT STDMETHODCALLTYPE get_Type (BSTR __RPC_FAR *Type)
virtual HRESULT STDMETHODCALLTYPE get_Left (long __RPC_FAR *pl)
virtual HRESULT STDMETHODCALLTYPE put_Left (long Left)
virtual HRESULT STDMETHODCALLTYPE get_Top (long __RPC_FAR *pl)
virtual HRESULT STDMETHODCALLTYPE put_Top (long Top)
virtual HRESULT STDMETHODCALLTYPE get_Width (long __RPC_FAR *pl)
virtual HRESULT STDMETHODCALLTYPE put_Width (long Width)
virtual HRESULT STDMETHODCALLTYPE get_Height (long __RPC_FAR *pl)
virtual HRESULT STDMETHODCALLTYPE put_Height (long Height)
virtual HRESULT STDMETHODCALLTYPE get_LocationName (BSTR __RPC_FAR *LocationName)
virtual HRESULT STDMETHODCALLTYPE get_LocationURL (BSTR __RPC_FAR *LocationURL)
virtual HRESULT STDMETHODCALLTYPE get_Busy (VARIANT_BOOL __RPC_FAR *pBool)
virtual HRESULT STDMETHODCALLTYPE Quit (void)
virtual HRESULT STDMETHODCALLTYPE ClientToWindow (int __RPC_FAR *pcx, int __RPC_FAR *pcy)
virtual HRESULT STDMETHODCALLTYPE PutProperty (BSTR Property, VARIANT vtValue)
virtual HRESULT STDMETHODCALLTYPE GetProperty (BSTR Property, VARIANT __RPC_FAR *pvtValue)
virtual HRESULT STDMETHODCALLTYPE get_Name (BSTR __RPC_FAR *Name)
virtual HRESULT STDMETHODCALLTYPE get_HWND (long __RPC_FAR *pHWND)
virtual HRESULT STDMETHODCALLTYPE get_FullName (BSTR __RPC_FAR *FullName)
virtual HRESULT STDMETHODCALLTYPE get_Path (BSTR __RPC_FAR *Path)
virtual HRESULT STDMETHODCALLTYPE get_Visible (VARIANT_BOOL __RPC_FAR *pBool)
virtual HRESULT STDMETHODCALLTYPE put_Visible (VARIANT_BOOL Value)
virtual HRESULT STDMETHODCALLTYPE get_StatusBar (VARIANT_BOOL __RPC_FAR *pBool)
virtual HRESULT STDMETHODCALLTYPE put_StatusBar (VARIANT_BOOL Value)
virtual HRESULT STDMETHODCALLTYPE get_StatusText (BSTR __RPC_FAR *StatusText)
virtual HRESULT STDMETHODCALLTYPE put_StatusText (BSTR StatusText)
virtual HRESULT STDMETHODCALLTYPE get_ToolBar (int __RPC_FAR *Value)
virtual HRESULT STDMETHODCALLTYPE put_ToolBar (int Value)
virtual HRESULT STDMETHODCALLTYPE get_MenuBar (VARIANT_BOOL __RPC_FAR *Value)
virtual HRESULT STDMETHODCALLTYPE put_MenuBar (VARIANT_BOOL Value)
virtual HRESULT STDMETHODCALLTYPE get_FullScreen (VARIANT_BOOL __RPC_FAR *pbFullScreen)
virtual HRESULT STDMETHODCALLTYPE put_FullScreen (VARIANT_BOOL bFullScreen)
virtual HRESULT STDMETHODCALLTYPE Navigate2 (VARIANT __RPC_FAR *URL, VARIANT __RPC_FAR *Flags, VARIANT __RPC_FAR *TargetFrameName, VARIANT __RPC_FAR *PostData, VARIANT __RPC_FAR *Headers)
virtual HRESULT STDMETHODCALLTYPE QueryStatusWB (OLECMDID cmdID, OLECMDF __RPC_FAR *pcmdf)
virtual HRESULT STDMETHODCALLTYPE ExecWB (OLECMDID cmdID, OLECMDEXECOPT cmdexecopt, VARIANT __RPC_FAR *pvaIn, VARIANT __RPC_FAR *pvaOut)
virtual HRESULT STDMETHODCALLTYPE ShowBrowserBar (VARIANT __RPC_FAR *pvaClsid, VARIANT __RPC_FAR *pvarShow, VARIANT __RPC_FAR *pvarSize)
virtual HRESULT STDMETHODCALLTYPE get_ReadyState (READYSTATE __RPC_FAR *plReadyState)
virtual HRESULT STDMETHODCALLTYPE get_Offline (VARIANT_BOOL __RPC_FAR *pbOffline)
virtual HRESULT STDMETHODCALLTYPE put_Offline (VARIANT_BOOL bOffline)
virtual HRESULT STDMETHODCALLTYPE get_Silent (VARIANT_BOOL __RPC_FAR *pbSilent)
virtual HRESULT STDMETHODCALLTYPE put_Silent (VARIANT_BOOL bSilent)
virtual HRESULT STDMETHODCALLTYPE get_RegisterAsBrowser (VARIANT_BOOL __RPC_FAR *pbRegister)
virtual HRESULT STDMETHODCALLTYPE put_RegisterAsBrowser (VARIANT_BOOL bRegister)
virtual HRESULT STDMETHODCALLTYPE get_RegisterAsDropTarget (VARIANT_BOOL __RPC_FAR *pbRegister)
virtual HRESULT STDMETHODCALLTYPE put_RegisterAsDropTarget (VARIANT_BOOL bRegister)
virtual HRESULT STDMETHODCALLTYPE get_TheaterMode (VARIANT_BOOL __RPC_FAR *pbRegister)
virtual HRESULT STDMETHODCALLTYPE put_TheaterMode (VARIANT_BOOL bRegister)
virtual HRESULT STDMETHODCALLTYPE get_AddressBar (VARIANT_BOOL __RPC_FAR *Value)
virtual HRESULT STDMETHODCALLTYPE put_AddressBar (VARIANT_BOOL Value)
virtual HRESULT STDMETHODCALLTYPE get_Resizable (VARIANT_BOOL __RPC_FAR *Value)
virtual HRESULT STDMETHODCALLTYPE put_Resizable (VARIANT_BOOL Value)
void Fire_BeforeNavigate (BSTR URL, long Flags, BSTR TargetFrameName, VARIANT *PostData, BSTR Headers, VARIANT_BOOL *Cancel)
void Fire_NavigateComplete (BSTR URL)
void Fire_StatusTextChange (BSTR Text)
void Fire_ProgressChange (long Progress, long ProgressMax)
void Fire_DownloadComplete ()
void Fire_CommandStateChange (long Command, VARIANT_BOOL Enable)
void Fire_DownloadBegin ()
void Fire_NewWindow (BSTR URL, long Flags, BSTR TargetFrameName, VARIANT *PostData, BSTR Headers, VARIANT_BOOL *Processed)
void Fire_TitleChange (BSTR Text)
void Fire_FrameBeforeNavigate (BSTR URL, long Flags, BSTR TargetFrameName, VARIANT *PostData, BSTR Headers, VARIANT_BOOL *Cancel)
void Fire_FrameNavigateComplete (BSTR URL)
void Fire_FrameNewWindow (BSTR URL, long Flags, BSTR TargetFrameName, VARIANT *PostData, BSTR Headers, VARIANT_BOOL *Processed)
void Fire_Quit (VARIANT_BOOL *Cancel)
void Fire_WindowMove ()
void Fire_WindowResize ()
void Fire_WindowActivate ()
void Fire_PropertyChange (BSTR Property)
void Fire_StatusTextChange (BSTR Text)
void Fire_ProgressChange (long Progress, long ProgressMax)
void Fire_CommandStateChange (long Command, VARIANT_BOOL Enable)
void Fire_DownloadBegin ()
void Fire_DownloadComplete ()
void Fire_TitleChange (BSTR Text)
void Fire_PropertyChange (BSTR szProperty)
void Fire_BeforeNavigate2 (IDispatch *pDisp, VARIANT *URL, VARIANT *Flags, VARIANT *TargetFrameName, VARIANT *PostData, VARIANT *Headers, VARIANT_BOOL *Cancel)
void Fire_NewWindow2 (IDispatch **ppDisp, VARIANT_BOOL *Cancel)
void Fire_NavigateComplete2 (IDispatch *pDisp, VARIANT *URL)
void Fire_DocumentComplete (IDispatch *pDisp, VARIANT *URL)
void Fire_OnQuit ()
void Fire_OnVisible (VARIANT_BOOL Visible)
void Fire_OnToolBar (VARIANT_BOOL ToolBar)
void Fire_OnMenuBar (VARIANT_BOOL MenuBar)
void Fire_OnStatusBar (VARIANT_BOOL StatusBar)
void Fire_OnFullScreen (VARIANT_BOOL FullScreen)
void Fire_OnTheaterMode (VARIANT_BOOL TheaterMode)

Public Attributes

CComVariant mLastPostData
READYSTATE mBrowserReadyState
PRBool mBusyFlag
PropertyList mPropertyList

Detailed Description

template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
class IWebBrowserImpl< T, pclsid, plibid >

Definition at line 76 of file IWebBrowserImpl.h.


Constructor & Destructor Documentation

template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
IWebBrowserImpl< T, pclsid, plibid >::IWebBrowserImpl ( ) [inline]

Definition at line 82 of file IWebBrowserImpl.h.

    {
        // Ready state of control
        mBrowserReadyState = READYSTATE_UNINITIALIZED;
        // Flag indicates if the browser is busy
        mBusyFlag = PR_FALSE;
    }

Member Function Documentation

template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual PRBool IWebBrowserImpl< T, pclsid, plibid >::BrowserIsValid ( ) [pure virtual]

Implemented in ATL_NO_VTABLE, and IEBrowser.

template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::ClientToWindow ( int __RPC_FAR *  pcx,
int __RPC_FAR *  pcy 
) [inline, virtual]

Definition at line 739 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::ClientToWindow()\n"));
        ENSURE_BROWSER_IS_VALID();

        //This generates an exception in the IE control.
        // TODO convert points to be relative to browser
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::ExecWB ( OLECMDID  cmdID,
OLECMDEXECOPT  cmdexecopt,
VARIANT __RPC_FAR *  pvaIn,
VARIANT __RPC_FAR *  pvaOut 
) [inline, virtual]

Definition at line 1016 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::ExecWB()\n"));
        ENSURE_BROWSER_IS_VALID();
        // Call through to IOleCommandTarget::Exec
        CComQIPtr<IOleCommandTarget> cmdTarget = this;
        if (cmdTarget)
        {
            return cmdTarget->Exec(NULL, cmdID, cmdexecopt, pvaIn, pvaOut);
        }
        return E_NOTIMPL;
    }
template<class T>
void CProxyDWebBrowserEvents< T >::Fire_BeforeNavigate ( BSTR  URL,
long  Flags,
BSTR  TargetFrameName,
VARIANT *  PostData,
BSTR  Headers,
VARIANT_BOOL *  Cancel 
) [inline, inherited]

Definition at line 49 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[6];
        for (int i = 0; i < 6; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[5].vt = VT_BSTR;
                pvars[5].bstrVal= URL;
                pvars[4].vt = VT_I4;
                pvars[4].lVal= Flags;
                pvars[3].vt = VT_BSTR;
                pvars[3].bstrVal= TargetFrameName;
                pvars[2].vt = VT_VARIANT | VT_BYREF;
                pvars[2].byref= PostData;
                pvars[1].vt = VT_BSTR;
                pvars[1].bstrVal= Headers;
                pvars[0].vt = VT_BOOL | VT_BYREF;
                pvars[0].byref= Cancel;
                DISPPARAMS disp = { pvars, NULL, 6, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x64, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents2< T >::Fire_BeforeNavigate2 ( IDispatch pDisp,
VARIANT *  URL,
VARIANT *  Flags,
VARIANT *  TargetFrameName,
VARIANT *  PostData,
VARIANT *  Headers,
VARIANT_BOOL *  Cancel 
) [inline, inherited]

Definition at line 661 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[7];
        for (int i = 0; i < 7; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[6].vt = VT_DISPATCH;
                pvars[6].pdispVal= pDisp;
                pvars[5].vt = VT_VARIANT | VT_BYREF;
                pvars[5].byref= URL;
                pvars[4].vt = VT_VARIANT | VT_BYREF;
                pvars[4].byref= Flags;
                pvars[3].vt = VT_VARIANT | VT_BYREF;
                pvars[3].byref= TargetFrameName;
                pvars[2].vt = VT_VARIANT | VT_BYREF;
                pvars[2].byref= PostData;
                pvars[1].vt = VT_VARIANT | VT_BYREF;
                pvars[1].byref= Headers;
                pvars[0].vt = VT_BOOL | VT_BYREF;
                pvars[0].byref= Cancel;
                DISPPARAMS disp = { pvars, NULL, 7, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0xfa, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents< T >::Fire_CommandStateChange ( long  Command,
VARIANT_BOOL  Enable 
) [inline, inherited]

Definition at line 180 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[2];
        for (int i = 0; i < 2; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[1].vt = VT_I4;
                pvars[1].lVal= Command;
                pvars[0].vt = VT_BOOL;
                pvars[0].boolVal= Enable;
                DISPPARAMS disp = { pvars, NULL, 2, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x69, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents2< T >::Fire_CommandStateChange ( long  Command,
VARIANT_BOOL  Enable 
) [inline, inherited]

Definition at line 552 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[2];
        for (int i = 0; i < 2; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[1].vt = VT_I4;
                pvars[1].lVal= Command;
                pvars[0].vt = VT_BOOL;
                pvars[0].boolVal= Enable;
                DISPPARAMS disp = { pvars, NULL, 2, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x69, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents2< T >::Fire_DocumentComplete ( IDispatch pDisp,
VARIANT *  URL 
) [inline, inherited]

Definition at line 757 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[2];
        for (int i = 0; i < 2; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[1].vt = VT_DISPATCH;
                pvars[1].pdispVal= pDisp;
                pvars[0].vt = VT_VARIANT | VT_BYREF;
                pvars[0].byref= URL;
                DISPPARAMS disp = { pvars, NULL, 2, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x103, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents< T >::Fire_DownloadBegin ( ) [inline, inherited]

Definition at line 207 of file CPMozillaControl.h.

    {
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                DISPPARAMS disp = { NULL, NULL, 0, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x6a, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
    }
template<class T>
void CProxyDWebBrowserEvents2< T >::Fire_DownloadBegin ( ) [inline, inherited]

Definition at line 579 of file CPMozillaControl.h.

    {
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                DISPPARAMS disp = { NULL, NULL, 0, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x6a, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
    }
template<class T>
void CProxyDWebBrowserEvents< T >::Fire_DownloadComplete ( ) [inline, inherited]

Definition at line 163 of file CPMozillaControl.h.

    {
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                DISPPARAMS disp = { NULL, NULL, 0, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x68, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
    }
template<class T>
void CProxyDWebBrowserEvents2< T >::Fire_DownloadComplete ( ) [inline, inherited]

Definition at line 596 of file CPMozillaControl.h.

    {
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                DISPPARAMS disp = { NULL, NULL, 0, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x68, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
    }
template<class T>
void CProxyDWebBrowserEvents< T >::Fire_FrameBeforeNavigate ( BSTR  URL,
long  Flags,
BSTR  TargetFrameName,
VARIANT *  PostData,
BSTR  Headers,
VARIANT_BOOL *  Cancel 
) [inline, inherited]

Definition at line 287 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[6];
        for (int i = 0; i < 6; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[5].vt = VT_BSTR;
                pvars[5].bstrVal= URL;
                pvars[4].vt = VT_I4;
                pvars[4].lVal= Flags;
                pvars[3].vt = VT_BSTR;
                pvars[3].bstrVal= TargetFrameName;
                pvars[2].vt = VT_VARIANT | VT_BYREF;
                pvars[2].byref= PostData;
                pvars[1].vt = VT_BSTR;
                pvars[1].bstrVal= Headers;
                pvars[0].vt = VT_BOOL | VT_BYREF;
                pvars[0].byref= Cancel;
                DISPPARAMS disp = { pvars, NULL, 6, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0xc8, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents< T >::Fire_FrameNavigateComplete ( BSTR  URL) [inline, inherited]

Definition at line 326 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[1];
        for (int i = 0; i < 1; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[0].vt = VT_BSTR;
                pvars[0].bstrVal= URL;
                DISPPARAMS disp = { pvars, NULL, 1, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0xc9, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents< T >::Fire_FrameNewWindow ( BSTR  URL,
long  Flags,
BSTR  TargetFrameName,
VARIANT *  PostData,
BSTR  Headers,
VARIANT_BOOL *  Processed 
) [inline, inherited]

Definition at line 350 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[6];
        for (int i = 0; i < 6; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[5].vt = VT_BSTR;
                pvars[5].bstrVal= URL;
                pvars[4].vt = VT_I4;
                pvars[4].lVal= Flags;
                pvars[3].vt = VT_BSTR;
                pvars[3].bstrVal= TargetFrameName;
                pvars[2].vt = VT_VARIANT | VT_BYREF;
                pvars[2].byref= PostData;
                pvars[1].vt = VT_BSTR;
                pvars[1].bstrVal= Headers;
                pvars[0].vt = VT_BOOL | VT_BYREF;
                pvars[0].byref= Processed;
                DISPPARAMS disp = { pvars, NULL, 6, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0xcc, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents< T >::Fire_NavigateComplete ( BSTR  URL) [inline, inherited]

Definition at line 88 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[1];
        for (int i = 0; i < 1; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[0].vt = VT_BSTR;
                pvars[0].bstrVal= URL;
                DISPPARAMS disp = { pvars, NULL, 1, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x65, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents2< T >::Fire_NavigateComplete2 ( IDispatch pDisp,
VARIANT *  URL 
) [inline, inherited]

Definition at line 730 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[2];
        for (int i = 0; i < 2; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[1].vt = VT_DISPATCH;
                pvars[1].pdispVal= pDisp;
                pvars[0].vt = VT_VARIANT | VT_BYREF;
                pvars[0].byref= URL;
                DISPPARAMS disp = { pvars, NULL, 2, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0xfc, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents< T >::Fire_NewWindow ( BSTR  URL,
long  Flags,
BSTR  TargetFrameName,
VARIANT *  PostData,
BSTR  Headers,
VARIANT_BOOL *  Processed 
) [inline, inherited]

Definition at line 224 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[6];
        for (int i = 0; i < 6; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[5].vt = VT_BSTR;
                pvars[5].bstrVal= URL;
                pvars[4].vt = VT_I4;
                pvars[4].lVal= Flags;
                pvars[3].vt = VT_BSTR;
                pvars[3].bstrVal= TargetFrameName;
                pvars[2].vt = VT_VARIANT | VT_BYREF;
                pvars[2].byref= PostData;
                pvars[1].vt = VT_BSTR;
                pvars[1].bstrVal= Headers;
                pvars[0].vt = VT_BOOL | VT_BYREF;
                pvars[0].byref= Processed;
                DISPPARAMS disp = { pvars, NULL, 6, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x6b, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents2< T >::Fire_NewWindow2 ( IDispatch **  ppDisp,
VARIANT_BOOL *  Cancel 
) [inline, inherited]

Definition at line 703 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[2];
        for (int i = 0; i < 2; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[1].vt = VT_DISPATCH | VT_BYREF;
                pvars[1].byref= ppDisp;
                pvars[0].vt = VT_BOOL | VT_BYREF;
                pvars[0].byref= Cancel;
                DISPPARAMS disp = { pvars, NULL, 2, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0xfb, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }

Here is the caller graph for this function:

template<class T>
void CProxyDWebBrowserEvents2< T >::Fire_OnFullScreen ( VARIANT_BOOL  FullScreen) [inline, inherited]

Definition at line 897 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[1];
        for (int i = 0; i < 1; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[0].vt = VT_BOOL;
                pvars[0].boolVal= FullScreen;
                DISPPARAMS disp = { pvars, NULL, 1, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x102, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents2< T >::Fire_OnMenuBar ( VARIANT_BOOL  MenuBar) [inline, inherited]

Definition at line 849 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[1];
        for (int i = 0; i < 1; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[0].vt = VT_BOOL;
                pvars[0].boolVal= MenuBar;
                DISPPARAMS disp = { pvars, NULL, 1, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x100, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents2< T >::Fire_OnQuit ( ) [inline, inherited]

Definition at line 784 of file CPMozillaControl.h.

    {
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                DISPPARAMS disp = { NULL, NULL, 0, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0xfd, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
    }
template<class T>
void CProxyDWebBrowserEvents2< T >::Fire_OnStatusBar ( VARIANT_BOOL  StatusBar) [inline, inherited]

Definition at line 873 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[1];
        for (int i = 0; i < 1; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[0].vt = VT_BOOL;
                pvars[0].boolVal= StatusBar;
                DISPPARAMS disp = { pvars, NULL, 1, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x101, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents2< T >::Fire_OnTheaterMode ( VARIANT_BOOL  TheaterMode) [inline, inherited]

Definition at line 921 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[1];
        for (int i = 0; i < 1; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[0].vt = VT_BOOL;
                pvars[0].boolVal= TheaterMode;
                DISPPARAMS disp = { pvars, NULL, 1, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x104, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents2< T >::Fire_OnToolBar ( VARIANT_BOOL  ToolBar) [inline, inherited]

Definition at line 825 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[1];
        for (int i = 0; i < 1; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[0].vt = VT_BOOL;
                pvars[0].boolVal= ToolBar;
                DISPPARAMS disp = { pvars, NULL, 1, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0xff, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents2< T >::Fire_OnVisible ( VARIANT_BOOL  Visible) [inline, inherited]

Definition at line 801 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[1];
        for (int i = 0; i < 1; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[0].vt = VT_BOOL;
                pvars[0].boolVal= Visible;
                DISPPARAMS disp = { pvars, NULL, 1, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0xfe, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents< T >::Fire_ProgressChange ( long  Progress,
long  ProgressMax 
) [inline, inherited]

Definition at line 136 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[2];
        for (int i = 0; i < 2; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[1].vt = VT_I4;
                pvars[1].lVal= Progress;
                pvars[0].vt = VT_I4;
                pvars[0].lVal= ProgressMax;
                DISPPARAMS disp = { pvars, NULL, 2, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x6c, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents2< T >::Fire_ProgressChange ( long  Progress,
long  ProgressMax 
) [inline, inherited]

Definition at line 525 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[2];
        for (int i = 0; i < 2; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[1].vt = VT_I4;
                pvars[1].lVal= Progress;
                pvars[0].vt = VT_I4;
                pvars[0].lVal= ProgressMax;
                DISPPARAMS disp = { pvars, NULL, 2, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x6c, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents< T >::Fire_PropertyChange ( BSTR  Property) [inline, inherited]

Definition at line 464 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[1];
        for (int i = 0; i < 1; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[0].vt = VT_BSTR;
                pvars[0].bstrVal= Property;
                DISPPARAMS disp = { pvars, NULL, 1, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x70, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents2< T >::Fire_PropertyChange ( BSTR  szProperty) [inline, inherited]

Definition at line 637 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[1];
        for (int i = 0; i < 1; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[0].vt = VT_BSTR;
                pvars[0].bstrVal= szProperty;
                DISPPARAMS disp = { pvars, NULL, 1, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x70, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents< T >::Fire_Quit ( VARIANT_BOOL *  Cancel) [inline, inherited]

Definition at line 389 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[1];
        for (int i = 0; i < 1; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[0].vt = VT_BOOL | VT_BYREF;
                pvars[0].byref= Cancel;
                DISPPARAMS disp = { pvars, NULL, 1, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x67, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents< T >::Fire_StatusTextChange ( BSTR  Text) [inline, inherited]

Definition at line 112 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[1];
        for (int i = 0; i < 1; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[0].vt = VT_BSTR;
                pvars[0].bstrVal= Text;
                DISPPARAMS disp = { pvars, NULL, 1, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x66, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents2< T >::Fire_StatusTextChange ( BSTR  Text) [inline, inherited]

Definition at line 501 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[1];
        for (int i = 0; i < 1; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[0].vt = VT_BSTR;
                pvars[0].bstrVal= Text;
                DISPPARAMS disp = { pvars, NULL, 1, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x66, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents< T >::Fire_TitleChange ( BSTR  Text) [inline, inherited]

Definition at line 263 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[1];
        for (int i = 0; i < 1; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[0].vt = VT_BSTR;
                pvars[0].bstrVal= Text;
                DISPPARAMS disp = { pvars, NULL, 1, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x71, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents2< T >::Fire_TitleChange ( BSTR  Text) [inline, inherited]

Definition at line 613 of file CPMozillaControl.h.

    {
        VARIANTARG* pvars = new VARIANTARG[1];
        for (int i = 0; i < 1; i++)
            VariantInit(&pvars[i]);
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                pvars[0].vt = VT_BSTR;
                pvars[0].bstrVal= Text;
                DISPPARAMS disp = { pvars, NULL, 1, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x71, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
        delete[] pvars;
    }
template<class T>
void CProxyDWebBrowserEvents< T >::Fire_WindowActivate ( ) [inline, inherited]

Definition at line 447 of file CPMozillaControl.h.

    {
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                DISPPARAMS disp = { NULL, NULL, 0, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x6f, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
    }
template<class T>
void CProxyDWebBrowserEvents< T >::Fire_WindowMove ( ) [inline, inherited]

Definition at line 413 of file CPMozillaControl.h.

    {
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                DISPPARAMS disp = { NULL, NULL, 0, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x6d, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
    }
template<class T>
void CProxyDWebBrowserEvents< T >::Fire_WindowResize ( ) [inline, inherited]

Definition at line 430 of file CPMozillaControl.h.

    {
        T* pT = (T*)this;
        pT->Lock();
        IUnknown** pp = m_vec.begin();
        while (pp < m_vec.end())
        {
            if (*pp != NULL)
            {
                DISPPARAMS disp = { NULL, NULL, 0, 0 };
                IDispatch* pDispatch = reinterpret_cast<IDispatch*>(*pp);
                pDispatch->Invoke(0x6e, IID_NULL, LOCALE_USER_DEFAULT, DISPATCH_METHOD, &disp, NULL, NULL, NULL);
            }
            pp++;
        }
        pT->Unlock();
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_AddressBar ( VARIANT_BOOL __RPC_FAR *  Value) [inline, virtual]

Definition at line 1141 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_AddressBar()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (Value == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        //There is no AddressBar in this control.
        *Value = VARIANT_FALSE;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_Application ( IDispatch __RPC_FAR *__RPC_FAR *  ppDisp) [inline, virtual]

Definition at line 500 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_Application()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (!ppDisp)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        // Return a pointer to this controls dispatch interface
        *ppDisp = (IDispatch *) this;
        (*ppDisp)->AddRef();
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_Busy ( VARIANT_BOOL __RPC_FAR *  pBool) [inline, virtual]

Definition at line 716 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_Busy()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (!pBool)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        *pBool = (mBusyFlag) ? VARIANT_TRUE : VARIANT_FALSE;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_Container ( IDispatch __RPC_FAR *__RPC_FAR *  ppDisp) [inline, virtual]

Definition at line 518 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_Container()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (!ppDisp)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        //TODO: Implement get_Container: Retrieve a pointer to the IDispatch interface of the container.
        *ppDisp = NULL;
        return SetErrorInfo(E_UNEXPECTED);
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_Document ( IDispatch __RPC_FAR *__RPC_FAR *  ppDisp) [inline, virtual]

Reimplemented in ATL_NO_VTABLE.

Definition at line 530 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_Document()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (!ppDisp)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        *ppDisp = NULL;
        return E_NOTIMPL;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_FullName ( BSTR __RPC_FAR *  FullName) [inline, virtual]

Definition at line 811 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_FullName()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (FullName == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }

        // TODO: Implement get_FullName (Return the full path of the executable containing this control)
        *FullName = SysAllocString(L""); // TODO get Mozilla's executable name
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_FullScreen ( VARIANT_BOOL __RPC_FAR *  pbFullScreen) [inline, virtual]

Definition at line 955 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_FullScreen()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (pbFullScreen == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }

        //FullScreen mode doesn't really apply to this control.
        *pbFullScreen = VARIANT_FALSE;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_Height ( long __RPC_FAR *  pl) [inline, virtual]

Definition at line 637 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_Height()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (pl == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }

        //TODO: Implement get_Height - Should return the hieght of this control.
        *pl = 0;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_HWND ( long __RPC_FAR *  pHWND) [inline, virtual]

Definition at line 796 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_HWND()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (pHWND == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }

        //This is supposed to return a handle to the IE main window.  Since that doesn't exist
        //in the control's case, this shouldn't do anything.
        *pHWND = NULL;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_Left ( long __RPC_FAR *  pl) [inline, virtual]

Definition at line 579 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_Left()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (pl == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }

        //TODO: Implement get_Left - Should return the left position of this control.
        *pl = 0;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_LocationName ( BSTR __RPC_FAR *  LocationName) [inline, virtual]

Definition at line 658 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_LocationName()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (LocationName == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        // Get the url from the web shell
        nsXPIDLString szLocationName;
        ENSURE_GET_WEBNAV();
        nsCOMPtr<nsIBaseWindow> baseWindow = do_QueryInterface(webNav);
        baseWindow->GetTitle(getter_Copies(szLocationName));
        if (nsnull == (const PRUnichar *) szLocationName)
        {
            return SetErrorInfo(E_UNEXPECTED);
        }

        // Convert the string to a BSTR
        USES_CONVERSION;
        LPCOLESTR pszConvertedLocationName = W2COLE((const PRUnichar *) szLocationName);
        *LocationName = SysAllocString(pszConvertedLocationName);

        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_LocationURL ( BSTR __RPC_FAR *  LocationURL) [inline, virtual]

Definition at line 684 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_LocationURL()\n"));
        ENSURE_BROWSER_IS_VALID();

        if (LocationURL == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        nsCOMPtr<nsIURI> uri;
        // Get the current url from the browser
        nsCOMPtr<nsIWebNavigation> webNav;
        GetWebNavigation(getter_AddRefs(webNav));
        if (webNav)
        {
            webNav->GetCurrentURI(getter_AddRefs(uri));
        }
        if (uri)
        {
            USES_CONVERSION;
            nsCAutoString aURI;
            uri->GetAsciiSpec(aURI);
            *LocationURL = SysAllocString(A2OLE(aURI.get()));
        }
        else
        {
            *LocationURL = NULL;
        }

    return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_MenuBar ( VARIANT_BOOL __RPC_FAR *  Value) [inline, virtual]

Definition at line 933 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_MenuBar()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (Value == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }

        //There is no MenuBar in this control.
        *Value = VARIANT_FALSE;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_Name ( BSTR __RPC_FAR *  Name) [inline, virtual]

Definition at line 782 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_Name()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (Name == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }

        // TODO: Implement get_Name (get Mozilla's executable name)
        *Name = SysAllocString(L"Mozilla Web Browser Control");
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_Offline ( VARIANT_BOOL __RPC_FAR *  pbOffline) [inline, virtual]

Definition at line 1049 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_Offline()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (pbOffline == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        //TODO: Implement get_Offline
        *pbOffline = VARIANT_FALSE;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_Parent ( IDispatch __RPC_FAR *__RPC_FAR *  ppDisp) [inline, virtual]

Reimplemented in ATL_NO_VTABLE.

Definition at line 513 of file IWebBrowserImpl.h.

    {
        // TODO
        return E_NOTIMPL;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_Path ( BSTR __RPC_FAR *  Path) [inline, virtual]

Definition at line 825 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_Path()\n"));
        ENSURE_BROWSER_IS_VALID();

        if (Path == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }

        // TODO: Implement get_Path (get Mozilla's path)
        *Path = SysAllocString(L"");
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_ReadyState ( READYSTATE __RPC_FAR *  plReadyState) [inline, virtual]

Definition at line 1036 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_ReadyState()\n"));
        // Note: may be called when browser is not yet initialized so there
        // is no validity check here.
        if (plReadyState == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        *plReadyState = mBrowserReadyState;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_RegisterAsBrowser ( VARIANT_BOOL __RPC_FAR *  pbRegister) [inline, virtual]

Definition at line 1089 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_RegisterAsBrowser()\n"));
        ENSURE_BROWSER_IS_VALID();

        if (pbRegister == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        //TODO: Implement get_RegisterAsBrowser
        *pbRegister = VARIANT_FALSE;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_RegisterAsDropTarget ( VARIANT_BOOL __RPC_FAR *  pbRegister) [inline, virtual]

Reimplemented in ATL_NO_VTABLE.

Definition at line 1110 of file IWebBrowserImpl.h.

    {
        // TODO
        return E_NOTIMPL;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_Resizable ( VARIANT_BOOL __RPC_FAR *  Value) [inline, virtual]

Definition at line 1161 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_Resizable()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (Value == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        //TODO:  Not sure if this should actually be implemented or not.
        *Value = VARIANT_TRUE;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_Silent ( VARIANT_BOOL __RPC_FAR *  pbSilent) [inline, virtual]

Definition at line 1069 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_Silent()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (pbSilent == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        //Only really applies to the IE app, not a control
        *pbSilent = VARIANT_FALSE;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_StatusBar ( VARIANT_BOOL __RPC_FAR *  pBool) [inline, virtual]

Definition at line 864 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_StatusBar()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (pBool == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        //There is no StatusBar in this control.
        *pBool = VARIANT_FALSE;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_StatusText ( BSTR __RPC_FAR *  StatusText) [inline, virtual]

Definition at line 885 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_StatusText()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (StatusText == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }

        //TODO: Implement get_StatusText
        //NOTE: This function is related to the MS status bar which doesn't exist in this control.  Needs more
        //        investigation, but probably doesn't apply.
        *StatusText = SysAllocString(L"");
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_TheaterMode ( VARIANT_BOOL __RPC_FAR *  pbRegister) [inline, virtual]

Definition at line 1121 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_TheaterMode()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (pbRegister == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        // TheaterMode doesn't apply to this control.
        *pbRegister = VARIANT_FALSE;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_ToolBar ( int __RPC_FAR *  Value) [inline, virtual]

Definition at line 911 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_ToolBar()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (Value == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }

        //There is no ToolBar in this control.
        *Value = FALSE;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_Top ( long __RPC_FAR *  pl) [inline, virtual]

Definition at line 599 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_Top()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (pl == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        //TODO: Implement get_Top - Should return the top position of this control.
        *pl = 0;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_TopLevelContainer ( VARIANT_BOOL __RPC_FAR *  pBool) [inline, virtual]

Definition at line 541 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_TopLevelContainer()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (!pBool)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        //TODO: Implement get_TopLevelContainer
        *pBool = VARIANT_TRUE;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_Type ( BSTR __RPC_FAR *  Type) [inline, virtual]

Definition at line 554 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_Type()\n"));
        ENSURE_BROWSER_IS_VALID();

        //NOTE:    This code should work in theory, but can't be verified because GetDoctype
        //        has not been implemented yet.
#if 0
        nsIDOMDocument *pIDOMDocument = nsnull;
        if ( SUCCEEDED(GetDOMDocument(&pIDOMDocument)) )
        {
            nsIDOMDocumentType *pIDOMDocumentType = nsnull;
            if ( SUCCEEDED(pIDOMDocument->GetDoctype(&pIDOMDocumentType)) )
            {
                nsAutoString docName;
                pIDOMDocumentType->GetName(docName);
                //NG_TRACE("pIDOMDocumentType returns: %s", docName);
                //Still need to manipulate docName so that it goes into *Type param of this function.
            }
        }
#endif
        //TODO: Implement get_Type
        return SetErrorInfo(E_FAIL, L"get_Type: failed");
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_Visible ( VARIANT_BOOL __RPC_FAR *  pBool) [inline, virtual]

Definition at line 840 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_Visible()\n"));
        ENSURE_BROWSER_IS_VALID();

        if (pBool == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }

        //TODO: Implement get_Visible?
        *pBool = VARIANT_TRUE;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::get_Width ( long __RPC_FAR *  pl) [inline, virtual]

Definition at line 618 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::get_Width()\n"));
        ENSURE_BROWSER_IS_VALID();
        //TODO: Implement get_Width- Should return the width of this control.
        if (pl == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        *pl = 0;
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual nsresult IWebBrowserImpl< T, pclsid, plibid >::GetDOMWindow ( nsIDOMWindow **  aDOMWindow) [pure virtual]

Implemented in ATL_NO_VTABLE, and IEBrowser.

Here is the caller graph for this function:

template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual nsresult IWebBrowserImpl< T, pclsid, plibid >::GetPrefs ( nsIPrefBranch **  aPrefBranch) [pure virtual]

Implemented in ATL_NO_VTABLE, and IEBrowser.

Here is the caller graph for this function:

template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::GetProperty ( BSTR  Property,
VARIANT __RPC_FAR *  pvtValue 
) [inline, virtual]

Definition at line 761 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::GetProperty()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (Property == NULL || pvtValue == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        VariantInit(pvtValue);
        for (unsigned long i = 0; i < mPropertyList.GetSize(); i++)
        {
            if (wcsicmp(mPropertyList.GetNameOf(i), Property) == 0)
            {
                // Copy the new value
                VariantCopy(pvtValue, const_cast<VARIANT *>(mPropertyList.GetValueOf(i)));
                return S_OK;
            }
        }
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual nsresult IWebBrowserImpl< T, pclsid, plibid >::GetWebNavigation ( nsIWebNavigation **  aWebNav) [pure virtual]

Implemented in ATL_NO_VTABLE, and IEBrowser.

Here is the caller graph for this function:

template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::GoBack ( void  ) [inline, virtual]

Definition at line 139 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::GoBack()\n"));
        ENSURE_BROWSER_IS_VALID();
        ENSURE_GET_WEBNAV();

        PRBool aCanGoBack = PR_FALSE;
        webNav->GetCanGoBack(&aCanGoBack);
        if (aCanGoBack == PR_TRUE)
        {
            webNav->GoBack();
        }
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::GoForward ( void  ) [inline, virtual]

Definition at line 154 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::GoBack()\n"));
        ENSURE_BROWSER_IS_VALID();
        ENSURE_GET_WEBNAV();

        PRBool aCanGoForward = PR_FALSE;
        webNav->GetCanGoForward(&aCanGoForward);
        if (aCanGoForward == PR_TRUE)
        {
            webNav->GoForward();
        }
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::GoHome ( void  ) [inline, virtual]

Definition at line 169 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::GoHome()\n"));
        ENSURE_BROWSER_IS_VALID();

        CComBSTR bstrUrl(L"http://home.netscape.com/");

        // Find the home page stored in prefs
        nsCOMPtr<nsIPrefBranch> prefBranch;
        if (NS_SUCCEEDED(GetPrefs(getter_AddRefs(prefBranch))))
        {
            nsCOMPtr<nsIPrefLocalizedString> homePage;
            prefBranch->GetComplexValue("browser.startup.homepage",
                                            NS_GET_IID(nsIPrefLocalizedString),
                                            getter_AddRefs(homePage));

            if (homePage)
            {
                nsXPIDLString homePageString;
                nsresult rv = homePage->ToString(getter_Copies(homePageString));
                if (NS_SUCCEEDED(rv))
                {
                    bstrUrl = homePageString.get();
                }
            }
        }

        // Navigate to the home page
        Navigate(bstrUrl, NULL, NULL, NULL, NULL);
    
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::GoSearch ( void  ) [inline, virtual]

Definition at line 201 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::GoSearch()\n"));
        ENSURE_BROWSER_IS_VALID();

        CComBSTR bstrUrl(L"http://search.netscape.com/");

        //NOTE:    This code has not been implemented yet
#if 0
        // Find the home page stored in prefs
        nsCOMPtr<nsIPrefBranch> prefBranch;
        if (NS_SUCCEEDED(GetPrefs(getter_AddRefs(prefBranch))))
        {
            // TODO find and navigate to the search page stored in prefs
            //      and not this hard coded address
        }
#endif
        // Navigate to the search page
        Navigate(bstrUrl, NULL, NULL, NULL, NULL);
    
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::Navigate ( BSTR  URL,
VARIANT __RPC_FAR *  Flags,
VARIANT __RPC_FAR *  TargetFrameName,
VARIANT __RPC_FAR *  PostData,
VARIANT __RPC_FAR *  Headers 
) [inline, virtual]

Definition at line 224 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::Navigate()\n"));
        ENSURE_BROWSER_IS_VALID();

        // Extract the URL parameter
        if (URL == NULL)
        {
            NS_ASSERTION(0, "No URL supplied");
            return SetErrorInfo(E_INVALIDARG);
        }

        PRBool openInNewWindow = PR_FALSE;
        PRUint32 loadFlags = nsIWebNavigation::LOAD_FLAGS_NONE;

        // Extract the navigate flags parameter
        LONG lFlags = 0;
        if (Flags &&
            Flags->vt != VT_ERROR &&
            Flags->vt != VT_EMPTY &&
            Flags->vt != VT_NULL)
        {
            CComVariant vFlags;
            if ( vFlags.ChangeType(VT_I4, Flags) != S_OK )
            {
                NS_ASSERTION(0, "Flags param is invalid");
                return SetErrorInfo(E_INVALIDARG);
            }
            lFlags = vFlags.lVal;
        }
        if (lFlags & navOpenInNewWindow) 
        {
            openInNewWindow = PR_TRUE;
        }
        if (lFlags & navNoHistory)
        {
            // Disable history
            loadFlags |= nsIWebNavigation::LOAD_FLAGS_BYPASS_HISTORY;
        }
        if (lFlags & navNoReadFromCache)
        {
            // Disable read from cache
            loadFlags |= nsIWebNavigation::LOAD_FLAGS_BYPASS_CACHE;

        }
        if (lFlags & navNoWriteToCache)
        {
            // Disable write to cache
            loadFlags |= nsIWebNavigation::LOAD_FLAGS_BYPASS_CACHE;
        }

        // Extract the target frame parameter
        nsCOMPtr<nsIWebNavigation> targetNav;
        if (TargetFrameName &&
            TargetFrameName->vt == VT_BSTR &&
            TargetFrameName->bstrVal)
        {
            // Search for the named frame
            nsCOMPtr<nsIDOMWindow> window;
            GetDOMWindow(getter_AddRefs(window));
            if (window)
            {
                nsCOMPtr<nsIWindowWatcher> windowWatcher = do_GetService(NS_WINDOWWATCHER_CONTRACTID);
                if (windowWatcher)
                {
                    nsCOMPtr<nsIDOMWindow> targetWindow;
                    windowWatcher->GetWindowByName(TargetFrameName->bstrVal, window,
                        getter_AddRefs(targetWindow));
                    if (targetWindow)
                    {
                        targetNav = do_GetInterface(targetWindow);
                    }
                }
            }
            // No target nav? Open in new window
            if (!targetNav)
                openInNewWindow = PR_TRUE;
        }

        // Open in new window
        if (openInNewWindow)
        {
            CComQIPtr<IDispatch> spDispNew;
            VARIANT_BOOL bCancel = VARIANT_FALSE;
        
            // Test if the event sink can give us a new window to navigate into
            Fire_NewWindow2(&spDispNew, &bCancel);

            lFlags &= ~(navOpenInNewWindow);
            if ((bCancel == VARIANT_FALSE) && spDispNew)
            {
                CComQIPtr<IWebBrowser2> spOther = spDispNew;
                if (spOther)
                {
                    CComVariant vURL(URL);
                    CComVariant vFlags(lFlags);
                    return spOther->Navigate2(&vURL, &vFlags, TargetFrameName, PostData, Headers);
                }
            }

            // NOTE: The IE control will launch an instance of iexplore.exe and
            //       return an interface to that if the client does not respond to
            //       FireNewWindow2, but the Mozilla control will not. Potentially
            //       it could also open an instance of IE for such occasions.
            //

            // Can't open a new window without client support
            return S_OK;
        }

        // As documented in MSDN:
        //
        //   The post data specified by PostData is passed as a SAFEARRAY
        //   structure. The variant should be of type VT_ARRAY and point to
        //   a SAFEARRAY. The SAFEARRAY should be of element type VT_UI1,
        //   dimension one, and have an element count equal to the number of
        //   bytes of post data.

        // Extract the post data parameter
        nsCOMPtr<nsIInputStream> postDataStream;
        mLastPostData.Clear();
        if (PostData &&
            PostData->vt == (VT_ARRAY | VT_UI1) &&
            PostData->parray)
        {
            mLastPostData.Copy(PostData);
            
            unsigned long nSizeData = PostData->parray->rgsabound[0].cElements;
            if (nSizeData > 0)
            {
                char szCL[64];
                sprintf(szCL, "Content-Length: %lu\r\n\r\n", nSizeData);
                unsigned long nSizeCL = strlen(szCL);
                unsigned long nSize = nSizeCL + nSizeData;

                char *tmp = (char *) nsMemory::Alloc(nSize + 1); // byte stream owns this mem
                if (tmp)
                {

                    // Copy the array data into a buffer
                    SafeArrayLock(PostData->parray);
                    memcpy(tmp, szCL, nSizeCL);
                    memcpy(tmp + nSizeCL, PostData->parray->pvData, nSizeData);
                    tmp[nSize] = '\0';
                    SafeArrayUnlock(PostData->parray);

                    // Create a byte array input stream object.
                    nsCOMPtr<nsIByteArrayInputStream> stream;
                    nsresult rv = NS_NewByteArrayInputStream(
                        getter_AddRefs(stream), tmp, nSize);
                    if (NS_FAILED(rv) || !stream)
                    {
                        NS_ASSERTION(0, "cannot create byte stream");
                        nsMemory::Free(tmp);
                        return SetErrorInfo(E_UNEXPECTED);
                    }

                    postDataStream = stream;
                }
            }
        }

        // Extract the headers parameter
        nsCOMPtr<nsIByteArrayInputStream> headersStream;
        if (Headers &&
            Headers->vt == VT_BSTR &&
            Headers->bstrVal)
        {
            
            USES_CONVERSION;
            char *headers = OLE2A(Headers->bstrVal);
            if (headers)
            {
                size_t nSize = SysStringLen(Headers->bstrVal) + 1;
                char *tmp = (char *) nsMemory::Alloc(nSize); // byteArray stream owns this mem
                if (tmp)
                {
                    // Copy BSTR to buffer
                    WideCharToMultiByte(CP_ACP, 0, Headers->bstrVal, nSize - 1, tmp, nSize, NULL, NULL);
                    tmp[nSize - 1] = '\0';

                    // Create a byte array input stream object which will own the buffer
                    nsCOMPtr<nsIByteArrayInputStream> stream;
                    nsresult rv = 
                        NS_NewByteArrayInputStream(getter_AddRefs(stream), tmp, nSize);
                    if (NS_FAILED(rv) || !stream)
                    {
                        NS_ASSERTION(0, "cannot create byte stream");
                        nsMemory::Free(tmp);
                    }
                    headersStream = do_QueryInterface(stream);
                }
            }
        }

        // Use the specified target or the top level web navigation
        nsCOMPtr<nsIWebNavigation> webNavToUse;
        if (targetNav)
        {
            webNavToUse = targetNav;
        }
        else
        {
            GetWebNavigation(getter_AddRefs(webNavToUse));
        }
    
        // Load the URL    
        nsresult rv = NS_ERROR_FAILURE;
        if (webNavToUse)
        {
            rv = webNavToUse->LoadURI(URL,
                    loadFlags, nsnull, postDataStream, headersStream);
        }

        return NS_SUCCEEDED(rv) ? S_OK : E_FAIL;
    }

Here is the caller graph for this function:

template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::Navigate2 ( VARIANT __RPC_FAR *  URL,
VARIANT __RPC_FAR *  Flags,
VARIANT __RPC_FAR *  TargetFrameName,
VARIANT __RPC_FAR *  PostData,
VARIANT __RPC_FAR *  Headers 
) [inline, virtual]

Definition at line 978 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::Navigate2()\n"));
        CComVariant vURLAsString;
        if (vURLAsString.ChangeType(VT_BSTR, URL) != S_OK)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        return Navigate(vURLAsString.bstrVal, Flags, TargetFrameName, PostData, Headers);
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::put_AddressBar ( VARIANT_BOOL  Value) [inline, virtual]

Definition at line 1153 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::put_AddressBar()\n"));
        ENSURE_BROWSER_IS_VALID();
        //There is no AddressBar in this control.
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::put_FullScreen ( VARIANT_BOOL  bFullScreen) [inline, virtual]

Definition at line 969 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::put_FullScreen()\n"));
        ENSURE_BROWSER_IS_VALID();
        //FullScreen mode doesn't really apply to this control.
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::put_Height ( long  Height) [inline, virtual]

Definition at line 650 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::put_Height()\n"));
        ENSURE_BROWSER_IS_VALID();
        //TODO: Implement put_Height - Should set the height of this control.
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::put_Left ( long  Left) [inline, virtual]

Definition at line 592 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::put_Left()\n"));
        ENSURE_BROWSER_IS_VALID();
        //TODO: Implement put_Left - Should set the left position of this control.
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::put_MenuBar ( VARIANT_BOOL  Value) [inline, virtual]

Definition at line 947 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::put_MenuBar()\n"));
        ENSURE_BROWSER_IS_VALID();
        //There is no MenuBar in this control.
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::put_Offline ( VARIANT_BOOL  bOffline) [inline, virtual]

Definition at line 1061 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::put_Offline()\n"));
        ENSURE_BROWSER_IS_VALID();
        //TODO: Implement get_Offline
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::put_RegisterAsBrowser ( VARIANT_BOOL  bRegister) [inline, virtual]

Definition at line 1102 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::put_RegisterAsBrowser()\n"));
        ENSURE_BROWSER_IS_VALID();
        //TODO: Implement put_RegisterAsBrowser
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::put_RegisterAsDropTarget ( VARIANT_BOOL  bRegister) [inline, virtual]

Reimplemented in ATL_NO_VTABLE.

Definition at line 1115 of file IWebBrowserImpl.h.

    {
        // TODO
        return E_NOTIMPL;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::put_Resizable ( VARIANT_BOOL  Value) [inline, virtual]

Definition at line 1173 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::put_Resizable()\n"));
        ENSURE_BROWSER_IS_VALID();
        //TODO:  Not sure if this should actually be implemented or not.
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::put_Silent ( VARIANT_BOOL  bSilent) [inline, virtual]

Definition at line 1081 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::put_Silent()\n"));
        ENSURE_BROWSER_IS_VALID();
        //Only really applies to the IE app, not a control
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::put_StatusBar ( VARIANT_BOOL  Value) [inline, virtual]

Definition at line 877 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::put_StatusBar()\n"));
        ENSURE_BROWSER_IS_VALID();
        //There is no StatusBar in this control.
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::put_StatusText ( BSTR  StatusText) [inline, virtual]

Definition at line 901 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::put_StatusText()\n"));
        ENSURE_BROWSER_IS_VALID();
        //TODO: Implement put_StatusText
        //NOTE: This function is related to the MS status bar which doesn't exist in this control.  Needs more
        //        investigation, but probably doesn't apply.
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::put_TheaterMode ( VARIANT_BOOL  bRegister) [inline, virtual]

Definition at line 1133 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::put_TheaterMode()\n"));
        ENSURE_BROWSER_IS_VALID();
        //There is no TheaterMode in this control.
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::put_ToolBar ( int  Value) [inline, virtual]

Definition at line 925 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::put_ToolBar()\n"));
        ENSURE_BROWSER_IS_VALID();
        //There is no ToolBar in this control.
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::put_Top ( long  Top) [inline, virtual]

Definition at line 611 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::put_Top()\n"));
        ENSURE_BROWSER_IS_VALID();
        //TODO: Implement set_Top - Should set the top position of this control.
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::put_Visible ( VARIANT_BOOL  Value) [inline, virtual]

Definition at line 855 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::put_Visible()\n"));
        ENSURE_BROWSER_IS_VALID();

        //TODO: Implement put_Visible?
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::put_Width ( long  Width) [inline, virtual]

Definition at line 630 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::put_Width()\n"));
        ENSURE_BROWSER_IS_VALID();
        //TODO: Implement put_Width - Should set the width of this control.
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::PutProperty ( BSTR  Property,
VARIANT  vtValue 
) [inline, virtual]

Definition at line 749 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::PutProperty()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (Property == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        mPropertyList.AddOrReplaceNamedProperty(Property, vtValue);
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::QueryStatusWB ( OLECMDID  cmdID,
OLECMDF __RPC_FAR *  pcmdf 
) [inline, virtual]

Definition at line 989 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::QueryStatusWB()\n"));
        ENSURE_BROWSER_IS_VALID();
        if (pcmdf == NULL)
        {
            return SetErrorInfo(E_INVALIDARG);
        }
        // Call through to IOleCommandTarget::QueryStatus
        CComQIPtr<IOleCommandTarget> cmdTarget = this;
        if (cmdTarget)
        {
            OLECMD cmd;
            HRESULT hr;
    
            cmd.cmdID = cmdID;
            cmd.cmdf = 0;
            hr = cmdTarget->QueryStatus(NULL, 1, &cmd, NULL);
            if (SUCCEEDED(hr))
            {
                *pcmdf = (OLECMDF) cmd.cmdf;
            }
            return hr;
        }
        return E_NOTIMPL;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::Quit ( void  ) [inline, virtual]

Definition at line 729 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::Quit()\n"));
        ENSURE_BROWSER_IS_VALID();

        //This generates an exception in the IE control.
        // TODO fire quit event
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::Refresh ( void  ) [inline, virtual]

Definition at line 441 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::Refresh()\n"));
        // Reload the page
        CComVariant vRefreshType(REFRESH_NORMAL);
        return Refresh2(&vRefreshType);
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::Refresh2 ( VARIANT __RPC_FAR *  Level) [inline, virtual]

Definition at line 449 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::Refresh2()\n"));

        ENSURE_BROWSER_IS_VALID();
        ENSURE_GET_WEBNAV();
        if (Level == NULL)
            return E_INVALIDARG;

        // Check the requested refresh type
        OLECMDID_REFRESHFLAG iRefreshLevel = OLECMDIDF_REFRESH_NORMAL;
        CComVariant vLevelAsInt;
        if ( vLevelAsInt.ChangeType(VT_I4, Level) != S_OK )
        {
            NS_ASSERTION(0, "Cannot change refresh type to int");
            return SetErrorInfo(E_UNEXPECTED);
        }
        iRefreshLevel = (OLECMDID_REFRESHFLAG) vLevelAsInt.iVal;

        // Turn the IE refresh type into the nearest NG equivalent
        PRUint32 flags = nsIWebNavigation::LOAD_FLAGS_NONE;
        switch (iRefreshLevel & OLECMDIDF_REFRESH_LEVELMASK)
        {
        case OLECMDIDF_REFRESH_NORMAL:
        case OLECMDIDF_REFRESH_IFEXPIRED:
        case OLECMDIDF_REFRESH_CONTINUE:
        case OLECMDIDF_REFRESH_NO_CACHE:
        case OLECMDIDF_REFRESH_RELOAD:
            flags = nsIWebNavigation::LOAD_FLAGS_NONE;
            break;
        case OLECMDIDF_REFRESH_COMPLETELY:
            flags = nsIWebNavigation::LOAD_FLAGS_BYPASS_CACHE | nsIWebNavigation::LOAD_FLAGS_BYPASS_PROXY;
            break;
        default:
            // No idea what refresh type this is supposed to be
            NS_ASSERTION(0, "Unknown refresh type");
            return SetErrorInfo(E_UNEXPECTED);
        }

        webNav->Reload(flags);

        return S_OK;
    }

Here is the caller graph for this function:

template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT IWebBrowserImpl< T, pclsid, plibid >::SetErrorInfo ( HRESULT  hr,
LPCOLESTR  lpszDesc = NULL 
) [inline, virtual]

Definition at line 118 of file IWebBrowserImpl.h.

    {
        if (lpszDesc == NULL)
        {
            // Fill in a few generic descriptions
            switch (hr)
            {
            case E_UNEXPECTED:
                lpszDesc = L"Method was called while control was uninitialized";
                break;
            case E_INVALIDARG:
                lpszDesc = L"Method was called with an invalid parameter";
                break;
            }
        }
        AtlSetErrorInfo(*pclsid, lpszDesc, 0, NULL, GUID_NULL, hr, NULL);
        return hr;
    }

Here is the caller graph for this function:

template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::ShowBrowserBar ( VARIANT __RPC_FAR *  pvaClsid,
VARIANT __RPC_FAR *  pvarShow,
VARIANT __RPC_FAR *  pvarSize 
) [inline, virtual]

Definition at line 1029 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::ShowBrowserBar()\n"));
        ENSURE_BROWSER_IS_VALID();
        return S_OK;
    }
template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
virtual HRESULT STDMETHODCALLTYPE IWebBrowserImpl< T, pclsid, plibid >::Stop ( void  ) [inline, virtual]

Definition at line 492 of file IWebBrowserImpl.h.

    {
        ATLTRACE(_T("IWebBrowserImpl::Stop()\n"));
        ENSURE_BROWSER_IS_VALID();
        ENSURE_GET_WEBNAV();
        webNav->Stop(nsIWebNavigation::STOP_ALL);
        return S_OK;
    }

Member Data Documentation

template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
READYSTATE IWebBrowserImpl< T, pclsid, plibid >::mBrowserReadyState

Definition at line 106 of file IWebBrowserImpl.h.

template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
PRBool IWebBrowserImpl< T, pclsid, plibid >::mBusyFlag

Definition at line 108 of file IWebBrowserImpl.h.

template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
CComVariant IWebBrowserImpl< T, pclsid, plibid >::mLastPostData

Definition at line 104 of file IWebBrowserImpl.h.

template<class T, const CLSID * pclsid, const GUID * plibid = &LIBID_MSHTML>
PropertyList IWebBrowserImpl< T, pclsid, plibid >::mPropertyList

Definition at line 110 of file IWebBrowserImpl.h.


The documentation for this class was generated from the following file: