Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
CProxyDWebBrowserEvents< T > Class Template Reference

#include <CPMozillaControl.h>

Inheritance diagram for CProxyDWebBrowserEvents< T >:
Inheritance graph
[legend]
Collaboration diagram for CProxyDWebBrowserEvents< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

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)

Detailed Description

template<class T>
class CProxyDWebBrowserEvents< T >

Definition at line 43 of file CPMozillaControl.h.


Member Function Documentation

template<class T>
void CProxyDWebBrowserEvents< T >::Fire_BeforeNavigate ( BSTR  URL,
long  Flags,
BSTR  TargetFrameName,
VARIANT *  PostData,
BSTR  Headers,
VARIANT_BOOL *  Cancel 
) [inline]

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 CProxyDWebBrowserEvents< T >::Fire_CommandStateChange ( long  Command,
VARIANT_BOOL  Enable 
) [inline]

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 CProxyDWebBrowserEvents< T >::Fire_DownloadBegin ( ) [inline]

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 CProxyDWebBrowserEvents< T >::Fire_DownloadComplete ( ) [inline]

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 CProxyDWebBrowserEvents< T >::Fire_FrameBeforeNavigate ( BSTR  URL,
long  Flags,
BSTR  TargetFrameName,
VARIANT *  PostData,
BSTR  Headers,
VARIANT_BOOL *  Cancel 
) [inline]

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]

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]

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]

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 CProxyDWebBrowserEvents< T >::Fire_NewWindow ( BSTR  URL,
long  Flags,
BSTR  TargetFrameName,
VARIANT *  PostData,
BSTR  Headers,
VARIANT_BOOL *  Processed 
) [inline]

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 CProxyDWebBrowserEvents< T >::Fire_ProgressChange ( long  Progress,
long  ProgressMax 
) [inline]

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 CProxyDWebBrowserEvents< T >::Fire_PropertyChange ( BSTR  Property) [inline]

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 CProxyDWebBrowserEvents< T >::Fire_Quit ( VARIANT_BOOL *  Cancel) [inline]

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]

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 CProxyDWebBrowserEvents< T >::Fire_TitleChange ( BSTR  Text) [inline]

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 CProxyDWebBrowserEvents< T >::Fire_WindowActivate ( ) [inline]

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]

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]

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();
    }

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