Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
CIEHtmlButtonElement Class Reference

#include <IEHtmlButtonElement.h>

Inheritance diagram for CIEHtmlButtonElement:
Inheritance graph
[legend]
Collaboration diagram for CIEHtmlButtonElement:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CIEHtmlButtonElement ()
HRESULT FinalConstruct ()
virtual HRESULT GetHtmlElement (CIEHtmlElement **ppHtmlElement)
virtual HRESULT SetDOMNode (nsIDOMNode *pDomNode)
virtual HRESULT SetParent (CNode *pParent)
virtual HRESULT STDMETHODCALLTYPE get_type (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_value (BSTR v)
virtual HRESULT STDMETHODCALLTYPE get_value (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_name (BSTR v)
virtual HRESULT STDMETHODCALLTYPE get_name (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_status (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_status (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_disabled (VARIANT_BOOL v)
virtual HRESULT STDMETHODCALLTYPE get_disabled (VARIANT_BOOL __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_form (IHTMLFormElement __RPC_FAR *__RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE createTextRange (IHTMLTxtRange __RPC_FAR *__RPC_FAR *range)

Static Public Member Functions

static HRESULT FindFromDOMNode (nsIDOMNode *pIDOMNode, CNode **pNode)

Public Attributes

CNodemParent
nsCOMPtr< nsIDOMNodemDOMNode

Protected Member Functions

virtual ~CIEHtmlButtonElement ()

Protected Attributes

CComPtr< IUnknownm_pHtmlElementAgg

Detailed Description

Definition at line 92 of file IEHtmlButtonElement.h.


Constructor & Destructor Documentation

Definition at line 97 of file IEHtmlButtonElement.h.

                           {
    };
virtual CIEHtmlButtonElement::~CIEHtmlButtonElement ( ) [inline, protected, virtual]

Definition at line 108 of file IEHtmlButtonElement.h.

                                    {
    };

Member Function Documentation

HRESULT STDMETHODCALLTYPE CIEHtmlButtonElement::createTextRange ( IHTMLTxtRange __RPC_FAR *__RPC_FAR *  range) [virtual]

Definition at line 152 of file IEHtmlButtonElement.cpp.

{
    return E_NOTIMPL;
}

Definition at line 44 of file IEHtmlButtonElement.cpp.

{
    return CComCreator<CComAggObject<CIEHtmlElement> >::CreateInstance(GetControllingUnknown(),
        IID_IUnknown, reinterpret_cast<void**>(&m_pHtmlElementAgg));
}
HRESULT CNode::FindFromDOMNode ( nsIDOMNode pIDOMNode,
CNode **  pNode 
) [static, inherited]

Definition at line 78 of file IEHtmlNode.cpp.

{
    if (pIDOMNode == nsnull)
    {
        return E_FAIL;
    }

    if (g_NodeLookupTable == NULL)
    {
        return E_FAIL;
    }

    nsCOMPtr<nsISupports> nodeAsSupports = do_QueryInterface(pIDOMNode);
    *pNode = (CNode *) PL_HashTableLookup(g_NodeLookupTable, nodeAsSupports);

    return S_OK;
}

Here is the call graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlButtonElement::get_disabled ( VARIANT_BOOL __RPC_FAR *  p) [virtual]

Definition at line 142 of file IEHtmlButtonElement.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlButtonElement::get_form ( IHTMLFormElement __RPC_FAR *__RPC_FAR *  p) [virtual]

Definition at line 147 of file IEHtmlButtonElement.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlButtonElement::get_name ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 122 of file IEHtmlButtonElement.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlButtonElement::get_status ( VARIANT __RPC_FAR *  p) [virtual]

Definition at line 132 of file IEHtmlButtonElement.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlButtonElement::get_type ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 90 of file IEHtmlButtonElement.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlButtonElement::get_value ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 100 of file IEHtmlButtonElement.cpp.

{
    if (p == NULL)
        return E_INVALIDARG;

    *p = NULL;
    nsCOMPtr<nsIDOMHTMLButtonElement> domHtmlButtonElement = do_QueryInterface(mDOMNode);
    if (!domHtmlButtonElement)
        return E_UNEXPECTED;
    nsAutoString strValue;
    domHtmlButtonElement->GetValue(strValue);
    *p = SysAllocString(strValue.get());
    if (!*p)
        return E_OUTOFMEMORY;
    return S_OK;
}

Here is the call graph for this function:

Definition at line 50 of file IEHtmlButtonElement.cpp.

{
    if (ppHtmlElement == NULL)
        return E_FAIL;
    *ppHtmlElement = NULL;
    IHTMLElement* pHtmlElement = NULL;
    // This causes an AddRef on outer unknown:
    HRESULT hr = m_pHtmlElementAgg->QueryInterface(IID_IHTMLElement, (void**)&pHtmlElement);
    *ppHtmlElement = (CIEHtmlElement*)pHtmlElement;
    return hr;
}

Here is the caller graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlButtonElement::put_disabled ( VARIANT_BOOL  v) [virtual]

Definition at line 137 of file IEHtmlButtonElement.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlButtonElement::put_name ( BSTR  v) [virtual]

Definition at line 117 of file IEHtmlButtonElement.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlButtonElement::put_status ( VARIANT  v) [virtual]

Definition at line 127 of file IEHtmlButtonElement.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlButtonElement::put_value ( BSTR  v) [virtual]

Definition at line 95 of file IEHtmlButtonElement.cpp.

{
    return E_NOTIMPL;
}

Reimplemented from CNode.

Definition at line 62 of file IEHtmlButtonElement.cpp.

{
    mDOMNode = pDomNode;
    //Forward to aggregated object:
    CIEHtmlElement *pHtmlElement;
    GetHtmlElement(&pHtmlElement);
    HRESULT hr = pHtmlElement->SetDOMNode(pDomNode);
    // Release on outer unknown because GetHtmlDomNode does AddRef on it:
    GetControllingUnknown()->Release();
    return hr;
}

Here is the call graph for this function:

HRESULT CIEHtmlButtonElement::SetParent ( CNode pParent) [virtual]

Reimplemented from CNode.

Definition at line 74 of file IEHtmlButtonElement.cpp.

{
    CNode::SetParent(pParent);
    //Forward to aggregated object:
    CIEHtmlElement *pHtmlElement;
    GetHtmlElement(&pHtmlElement);
    HRESULT hr = pHtmlElement->SetParent(pParent);
    // Release on outer unknown because GetHtmlDomNode does AddRef on it:
    GetControllingUnknown()->Release();
    return hr;
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 134 of file IEHtmlButtonElement.h.

Definition at line 135 of file IEHtmlNode.h.

CNode* CNode::mParent [inherited]

Definition at line 134 of file IEHtmlNode.h.


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