Back to index

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

#include <IEHtmlDocument.h>

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

List of all members.

Public Member Functions

 CIEHtmlDocument ()
virtual void SetParent (CMozillaBrowser *parent)
virtual void SetNative (nsIDOMHTMLDocument *native)
virtual HRESULT STDMETHODCALLTYPE QueryStatus (const GUID __RPC_FAR *pguidCmdGroup, ULONG cCmds, OLECMD __RPC_FAR prgCmds[], OLECMDTEXT __RPC_FAR *pCmdText)
virtual HRESULT STDMETHODCALLTYPE Exec (const GUID __RPC_FAR *pguidCmdGroup, DWORD nCmdID, DWORD nCmdexecopt, VARIANT __RPC_FAR *pvaIn, VARIANT __RPC_FAR *pvaOut)
virtual HRESULT STDMETHODCALLTYPE get_Script (IDispatch __RPC_FAR *__RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_all (IHTMLElementCollection __RPC_FAR *__RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_body (IHTMLElement __RPC_FAR *__RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_activeElement (IHTMLElement __RPC_FAR *__RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_images (IHTMLElementCollection __RPC_FAR *__RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_applets (IHTMLElementCollection __RPC_FAR *__RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_links (IHTMLElementCollection __RPC_FAR *__RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_forms (IHTMLElementCollection __RPC_FAR *__RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_anchors (IHTMLElementCollection __RPC_FAR *__RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_title (BSTR v)
virtual HRESULT STDMETHODCALLTYPE get_title (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_scripts (IHTMLElementCollection __RPC_FAR *__RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_designMode (BSTR v)
virtual HRESULT STDMETHODCALLTYPE get_designMode (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_selection (IHTMLSelectionObject __RPC_FAR *__RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_readyState (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_frames (IHTMLFramesCollection2 __RPC_FAR *__RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_embeds (IHTMLElementCollection __RPC_FAR *__RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_plugins (IHTMLElementCollection __RPC_FAR *__RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_alinkColor (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_alinkColor (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_bgColor (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_bgColor (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_fgColor (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_fgColor (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_linkColor (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_linkColor (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_vlinkColor (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_vlinkColor (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_referrer (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_location (IHTMLLocation __RPC_FAR *__RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_lastModified (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_URL (BSTR v)
virtual HRESULT STDMETHODCALLTYPE get_URL (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_domain (BSTR v)
virtual HRESULT STDMETHODCALLTYPE get_domain (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_cookie (BSTR v)
virtual HRESULT STDMETHODCALLTYPE get_cookie (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_expando (VARIANT_BOOL v)
virtual HRESULT STDMETHODCALLTYPE get_expando (VARIANT_BOOL __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_charset (BSTR v)
virtual HRESULT STDMETHODCALLTYPE get_charset (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_defaultCharset (BSTR v)
virtual HRESULT STDMETHODCALLTYPE get_defaultCharset (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_mimeType (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_fileSize (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_fileCreatedDate (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_fileModifiedDate (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_fileUpdatedDate (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_security (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_protocol (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_nameProp (BSTR __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE write (SAFEARRAY __RPC_FAR *psarray)
virtual HRESULT STDMETHODCALLTYPE writeln (SAFEARRAY __RPC_FAR *psarray)
virtual HRESULT STDMETHODCALLTYPE open (BSTR url, VARIANT name, VARIANT features, VARIANT replace, IDispatch __RPC_FAR *__RPC_FAR *pomWindowResult)
virtual HRESULT STDMETHODCALLTYPE close (void)
virtual HRESULT STDMETHODCALLTYPE clear (void)
virtual HRESULT STDMETHODCALLTYPE queryCommandSupported (BSTR cmdID, VARIANT_BOOL __RPC_FAR *pfRet)
virtual HRESULT STDMETHODCALLTYPE queryCommandEnabled (BSTR cmdID, VARIANT_BOOL __RPC_FAR *pfRet)
virtual HRESULT STDMETHODCALLTYPE queryCommandState (BSTR cmdID, VARIANT_BOOL __RPC_FAR *pfRet)
virtual HRESULT STDMETHODCALLTYPE queryCommandIndeterm (BSTR cmdID, VARIANT_BOOL __RPC_FAR *pfRet)
virtual HRESULT STDMETHODCALLTYPE queryCommandText (BSTR cmdID, BSTR __RPC_FAR *pcmdText)
virtual HRESULT STDMETHODCALLTYPE queryCommandValue (BSTR cmdID, VARIANT __RPC_FAR *pcmdValue)
virtual HRESULT STDMETHODCALLTYPE execCommand (BSTR cmdID, VARIANT_BOOL showUI, VARIANT value, VARIANT_BOOL __RPC_FAR *pfRet)
virtual HRESULT STDMETHODCALLTYPE execCommandShowHelp (BSTR cmdID, VARIANT_BOOL __RPC_FAR *pfRet)
virtual HRESULT STDMETHODCALLTYPE createElement (BSTR eTag, IHTMLElement __RPC_FAR *__RPC_FAR *newElem)
virtual HRESULT STDMETHODCALLTYPE put_onhelp (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_onhelp (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_onclick (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_onclick (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_ondblclick (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_ondblclick (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_onkeyup (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_onkeyup (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_onkeydown (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_onkeydown (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_onkeypress (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_onkeypress (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_onmouseup (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_onmouseup (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_onmousedown (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_onmousedown (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_onmousemove (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_onmousemove (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_onmouseout (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_onmouseout (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_onmouseover (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_onmouseover (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_onreadystatechange (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_onreadystatechange (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_onafterupdate (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_onafterupdate (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_onrowexit (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_onrowexit (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_onrowenter (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_onrowenter (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_ondragstart (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_ondragstart (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_onselectstart (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_onselectstart (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE elementFromPoint (long x, long y, IHTMLElement __RPC_FAR *__RPC_FAR *elementHit)
virtual HRESULT STDMETHODCALLTYPE get_parentWindow (IHTMLWindow2 __RPC_FAR *__RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE get_styleSheets (IHTMLStyleSheetsCollection __RPC_FAR *__RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_onbeforeupdate (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_onbeforeupdate (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE put_onerrorupdate (VARIANT v)
virtual HRESULT STDMETHODCALLTYPE get_onerrorupdate (VARIANT __RPC_FAR *p)
virtual HRESULT STDMETHODCALLTYPE toString (BSTR __RPC_FAR *String)
virtual HRESULT STDMETHODCALLTYPE createStyleSheet (BSTR bstrHref, long lIndex, IHTMLStyleSheet __RPC_FAR *__RPC_FAR *ppnewStyleSheet)
virtual HRESULT SetParent (CNode *pParent)
virtual HRESULT SetDOMNode (nsIDOMNode *pIDOMNode)

Static Public Member Functions

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

Public Attributes

CNodemParent
nsCOMPtr< nsIDOMNodemDOMNode

Protected Member Functions

virtual ~CIEHtmlDocument ()
HRESULT WriteCommon (SAFEARRAY __RPC_FAR *psarray, int bLn)

Protected Attributes

CMozillaBrowser * mControl
nsCOMPtr< nsIDOMHTMLDocumentmDOMDocument

Detailed Description

Definition at line 48 of file IEHtmlDocument.h.


Constructor & Destructor Documentation

Definition at line 51 of file IEHtmlDocument.cpp.

                                 :
    mControl(NULL)
{
}
CIEHtmlDocument::~CIEHtmlDocument ( ) [protected, virtual]

Definition at line 57 of file IEHtmlDocument.cpp.

{
}

Member Function Documentation

HRESULT STDMETHODCALLTYPE CIEHtmlDocument::clear ( void  ) [virtual]

Definition at line 774 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::close ( void  ) [virtual]

Definition at line 764 of file IEHtmlDocument.cpp.

{
    if (mDOMDocument == NULL || mDOMDocument->Close())
    {
        return E_FAIL;
    }
    return S_OK;
}

Here is the caller graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlDocument::createElement ( BSTR  eTag,
IHTMLElement __RPC_FAR *__RPC_FAR *  newElem 
) [virtual]

Definition at line 828 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::createStyleSheet ( BSTR  bstrHref,
long  lIndex,
IHTMLStyleSheet __RPC_FAR *__RPC_FAR *  ppnewStyleSheet 
) [virtual]

Definition at line 1086 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::elementFromPoint ( long  x,
long  y,
IHTMLElement __RPC_FAR *__RPC_FAR *  elementHit 
) [virtual]

Definition at line 1038 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::Exec ( const GUID __RPC_FAR *  pguidCmdGroup,
DWORD  nCmdID,
DWORD  nCmdexecopt,
VARIANT __RPC_FAR *  pvaIn,
VARIANT __RPC_FAR *  pvaOut 
) [virtual]

Definition at line 1107 of file IEHtmlDocument.cpp.

{
    HRESULT hr = E_NOTIMPL;
    if(mControl)
    {
        hr = mControl->Exec(pguidCmdGroup,nCmdID,nCmdexecopt,pvaIn,pvaOut);
    }
    return hr;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::execCommand ( BSTR  cmdID,
VARIANT_BOOL  showUI,
VARIANT  value,
VARIANT_BOOL __RPC_FAR *  pfRet 
) [virtual]

Definition at line 816 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::execCommandShowHelp ( BSTR  cmdID,
VARIANT_BOOL __RPC_FAR *  pfRet 
) [virtual]

Definition at line 822 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
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 CIEHtmlDocument::get_activeElement ( IHTMLElement __RPC_FAR *__RPC_FAR *  p) [virtual]

Definition at line 149 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_alinkColor ( VARIANT __RPC_FAR *  p) [virtual]

Definition at line 437 of file IEHtmlDocument.cpp.

{
    IMPL_GET_COLOR(AlinkColor, p);
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_all ( IHTMLElementCollection __RPC_FAR *__RPC_FAR *  p) [virtual]

Definition at line 98 of file IEHtmlDocument.cpp.

{
    // Validate parameters
    if (p == NULL)
    {
        return E_INVALIDARG;
    }

    *p = NULL;

    // Get all elements
    CIEHtmlElementCollectionInstance *pCollection = NULL;
    CIEHtmlElementCollection::CreateFromParentNode(this, TRUE, (CIEHtmlElementCollection **) &pCollection);
    if (pCollection)
    {
        pCollection->QueryInterface(IID_IHTMLElementCollection, (void **) p);
    }

    return S_OK;
}

Here is the call graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_anchors ( IHTMLElementCollection __RPC_FAR *__RPC_FAR *  p) [virtual]

Definition at line 256 of file IEHtmlDocument.cpp.

{
    // Validate parameters
    if (p == NULL)
    {
        return E_INVALIDARG;
    }

    *p = NULL;

    nsCOMPtr<nsIDOMHTMLCollection> nodeList;
    mDOMDocument->GetAnchors(getter_AddRefs(nodeList));

    // Get all elements
    CIEHtmlElementCollectionInstance *pCollection = NULL;
    CIEHtmlElementCollection::CreateFromDOMHTMLCollection(this, nodeList, (CIEHtmlElementCollection **) &pCollection);
    if (pCollection)
    {
        pCollection->QueryInterface(IID_IHTMLElementCollection, (void **) p);
    }

    return S_OK;
}

Here is the call graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_applets ( IHTMLElementCollection __RPC_FAR *__RPC_FAR *  p) [virtual]

Definition at line 181 of file IEHtmlDocument.cpp.

{
    // Validate parameters
    if (p == NULL)
    {
        return E_INVALIDARG;
    }

    *p = NULL;

    nsCOMPtr<nsIDOMHTMLCollection> nodeList;
    mDOMDocument->GetApplets(getter_AddRefs(nodeList));

    // Get all elements
    CIEHtmlElementCollectionInstance *pCollection = NULL;
    CIEHtmlElementCollection::CreateFromDOMHTMLCollection(this, nodeList, (CIEHtmlElementCollection **) &pCollection);
    if (pCollection)
    {
        pCollection->QueryInterface(IID_IHTMLElementCollection, (void **) p);
    }

    return S_OK;
}

Here is the call graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_bgColor ( VARIANT __RPC_FAR *  p) [virtual]

Definition at line 449 of file IEHtmlDocument.cpp.

{
    IMPL_GET_COLOR(BgColor, p);
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_body ( IHTMLElement __RPC_FAR *__RPC_FAR *  p) [virtual]

Definition at line 120 of file IEHtmlDocument.cpp.

{
    // Validate parameters
    if (p == NULL)
    {
        return E_INVALIDARG;
    }
    *p = NULL;

    nsCOMPtr<nsIDOMHTMLElement> bodyElement;

    mDOMDocument->GetBody(getter_AddRefs(bodyElement));
    if (bodyElement)
    {
        nsCOMPtr<nsIDOMNode> bodyNode = do_QueryInterface(bodyElement);

        // get or create com object:
        CComPtr<IUnknown> pNode;
        HRESULT hr = CIEHtmlDomNode::FindOrCreateFromDOMNode(bodyNode, &pNode);
        if (FAILED(hr))
            return hr;
        if (FAILED(pNode->QueryInterface(IID_IHTMLElement, (void **)p)))
            return E_UNEXPECTED;
    }

    return S_OK;
}

Here is the call graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_charset ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 594 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_cookie ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 561 of file IEHtmlDocument.cpp.

{
    if (!p)
        return E_INVALIDARG;
    *p = NULL;

    nsAutoString strCookie;
    nsresult rv = mDOMDocument->GetCookie(strCookie);
    NS_ENSURE_SUCCESS(rv,rv);
    *p = SysAllocString(strCookie.get());
    return (*p) ? S_OK : E_OUTOFMEMORY;
}

Here is the call graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_defaultCharset ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 607 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_designMode ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 317 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_domain ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 548 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_embeds ( IHTMLElementCollection __RPC_FAR *__RPC_FAR *  p) [virtual]

Definition at line 371 of file IEHtmlDocument.cpp.

{
    // Validate parameters
    if (p == NULL)
    {
        return E_INVALIDARG;
    }
    *p = NULL;

    nsCOMPtr<nsIDOMNSHTMLDocument> htmlDoc = do_QueryInterface(mDOMDocument);
    if (!htmlDoc)
        return E_FAIL;

    nsCOMPtr<nsIDOMHTMLCollection> nodeList;
    htmlDoc->GetEmbeds(getter_AddRefs(nodeList));

    // Get all elements
    CIEHtmlElementCollectionInstance *pCollection = NULL;
    CIEHtmlElementCollection::CreateFromDOMHTMLCollection(this, nodeList, (CIEHtmlElementCollection **) &pCollection);
    if (pCollection)
    {
        pCollection->QueryInterface(IID_IHTMLElementCollection, (void **) p);
    }

    return S_OK;
}

Here is the call graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_expando ( VARIANT_BOOL __RPC_FAR *  p) [virtual]

Definition at line 581 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_fgColor ( VARIANT __RPC_FAR *  p) [virtual]

Definition at line 461 of file IEHtmlDocument.cpp.

{
    IMPL_GET_COLOR(FgColor, p);
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_fileCreatedDate ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 628 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_fileModifiedDate ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 635 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_fileSize ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 621 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_fileUpdatedDate ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 642 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_forms ( IHTMLElementCollection __RPC_FAR *__RPC_FAR *  p) [virtual]

Definition at line 231 of file IEHtmlDocument.cpp.

{
    // Validate parameters
    if (p == NULL)
    {
        return E_INVALIDARG;
    }

    *p = NULL;

    nsCOMPtr<nsIDOMHTMLCollection> nodeList;
    mDOMDocument->GetForms(getter_AddRefs(nodeList));

    // Get all elements
    CIEHtmlElementCollectionInstance *pCollection = NULL;
    CIEHtmlElementCollection::CreateFromDOMHTMLCollection(this, nodeList, (CIEHtmlElementCollection **) &pCollection);
    if (pCollection)
    {
        pCollection->QueryInterface(IID_IHTMLElementCollection, (void **) p);
    }

    return S_OK;
}

Here is the call graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_frames ( IHTMLFramesCollection2 __RPC_FAR *__RPC_FAR *  p) [virtual]

Definition at line 364 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_images ( IHTMLElementCollection __RPC_FAR *__RPC_FAR *  p) [virtual]

Definition at line 156 of file IEHtmlDocument.cpp.

{
    // Validate parameters
    if (p == NULL)
    {
        return E_INVALIDARG;
    }

    *p = NULL;

    nsCOMPtr<nsIDOMHTMLCollection> nodeList;
    mDOMDocument->GetImages(getter_AddRefs(nodeList));

    // Get all elements
    CIEHtmlElementCollectionInstance *pCollection = NULL;
    CIEHtmlElementCollection::CreateFromDOMHTMLCollection(this, nodeList, (CIEHtmlElementCollection **) &pCollection);
    if (pCollection)
    {
        pCollection->QueryInterface(IID_IHTMLElementCollection, (void **) p);
    }

    return S_OK;
}

Here is the call graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_lastModified ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 505 of file IEHtmlDocument.cpp.

{
    if (p == NULL)
    {
        return E_INVALIDARG;
    }
    *p = NULL;
    if (!mDOMDocument)
    {
        return E_UNEXPECTED;
    }
    nsCOMPtr<nsIDOMNSDocument> doc = do_QueryInterface(mDOMDocument);
    if (!doc)
    {
        return E_FAIL;
    }
    USES_CONVERSION;
    nsAutoString val;
    doc->GetLastModified(val);
    *p = ::SysAllocString(W2COLE(val.get()));
    return S_OK;
}

Here is the call graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_linkColor ( VARIANT __RPC_FAR *  p) [virtual]

Definition at line 473 of file IEHtmlDocument.cpp.

{
    IMPL_GET_COLOR(LinkColor, p);
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_links ( IHTMLElementCollection __RPC_FAR *__RPC_FAR *  p) [virtual]

Definition at line 206 of file IEHtmlDocument.cpp.

{
    // Validate parameters
    if (p == NULL)
    {
        return E_INVALIDARG;
    }

    *p = NULL;

    nsCOMPtr<nsIDOMHTMLCollection> nodeList;
    mDOMDocument->GetLinks(getter_AddRefs(nodeList));

    // Get all elements
    CIEHtmlElementCollectionInstance *pCollection = NULL;
    CIEHtmlElementCollection::CreateFromDOMHTMLCollection(this, nodeList, (CIEHtmlElementCollection **) &pCollection);
    if (pCollection)
    {
        pCollection->QueryInterface(IID_IHTMLElementCollection, (void **) p);
    }

    return S_OK;
}

Here is the call graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_location ( IHTMLLocation __RPC_FAR *__RPC_FAR *  p) [virtual]

Definition at line 498 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_mimeType ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 614 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_nameProp ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 663 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_onafterupdate ( VARIANT __RPC_FAR *  p) [virtual]

Definition at line 984 of file IEHtmlDocument.cpp.

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

Definition at line 1062 of file IEHtmlDocument.cpp.

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

Definition at line 852 of file IEHtmlDocument.cpp.

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

Definition at line 864 of file IEHtmlDocument.cpp.

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

Definition at line 1020 of file IEHtmlDocument.cpp.

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

Definition at line 1074 of file IEHtmlDocument.cpp.

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

Definition at line 840 of file IEHtmlDocument.cpp.

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

Definition at line 888 of file IEHtmlDocument.cpp.

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

Definition at line 900 of file IEHtmlDocument.cpp.

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

Definition at line 876 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;

}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_onmousedown ( VARIANT __RPC_FAR *  p) [virtual]

Definition at line 924 of file IEHtmlDocument.cpp.

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

Definition at line 936 of file IEHtmlDocument.cpp.

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

Definition at line 948 of file IEHtmlDocument.cpp.

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

Definition at line 960 of file IEHtmlDocument.cpp.

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

Definition at line 912 of file IEHtmlDocument.cpp.

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

Definition at line 972 of file IEHtmlDocument.cpp.

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

Definition at line 1008 of file IEHtmlDocument.cpp.

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

Definition at line 996 of file IEHtmlDocument.cpp.

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

Definition at line 1032 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_parentWindow ( IHTMLWindow2 __RPC_FAR *__RPC_FAR *  p) [virtual]

Definition at line 1044 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_plugins ( IHTMLElementCollection __RPC_FAR *__RPC_FAR *  p) [virtual]

Definition at line 399 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_protocol ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 656 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_readyState ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 357 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_referrer ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 491 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_Script ( IDispatch __RPC_FAR *__RPC_FAR *  p) [virtual]

Definition at line 77 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_scripts ( IHTMLElementCollection __RPC_FAR *__RPC_FAR *  p) [virtual]

Definition at line 304 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_security ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 649 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_selection ( IHTMLSelectionObject __RPC_FAR *__RPC_FAR *  p) [virtual]

Definition at line 324 of file IEHtmlDocument.cpp.

{
    if (p == NULL)
    {
        return E_INVALIDARG;
    }
    *p = NULL;

    // create com object:
    CIEHtmlSelectionObjectInstance *pSelectionObject = NULL;
    CIEHtmlSelectionObjectInstance::CreateInstance(&pSelectionObject);
    if (!pSelectionObject)
        return E_FAIL;
    // get selection:
    nsCOMPtr<nsIDOMWindow> domWindow;
    mControl->GetDOMWindow(getter_AddRefs(domWindow));
    if (!domWindow)
        return E_FAIL;
    nsCOMPtr<nsISelection> selection;
    domWindow->GetSelection(getter_AddRefs(selection));
    if (!selection)
        return E_FAIL;
    // gives the selection to the com object:
    pSelectionObject->SetSelection(selection);
    nsCOMPtr<nsIDOMDocumentRange> domDocumentRange = do_QueryInterface(mDOMDocument);
    pSelectionObject->SetDOMDocumentRange(domDocumentRange);
    // return com object:
    pSelectionObject->QueryInterface(IID_IHTMLSelectionObject, (void **)p);

    return S_OK;
}

Here is the call graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_styleSheets ( IHTMLStyleSheetsCollection __RPC_FAR *__RPC_FAR *  p) [virtual]

Definition at line 1050 of file IEHtmlDocument.cpp.

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

Definition at line 292 of file IEHtmlDocument.cpp.

{
    nsAutoString value;
    if (mDOMDocument == NULL || mDOMDocument->GetTitle(value))
    {
        return E_FAIL;
    }
    *p = SysAllocString(value.get()); 
    return p ? S_OK : E_OUTOFMEMORY;
}

Here is the call graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_URL ( BSTR __RPC_FAR *  p) [virtual]

Definition at line 535 of file IEHtmlDocument.cpp.

{
    *p = NULL;
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::get_vlinkColor ( VARIANT __RPC_FAR *  p) [virtual]

Definition at line 485 of file IEHtmlDocument.cpp.

{
    IMPL_GET_COLOR(VlinkColor, p);
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::open ( BSTR  url,
VARIANT  name,
VARIANT  features,
VARIANT  replace,
IDispatch __RPC_FAR *__RPC_FAR *  pomWindowResult 
) [virtual]

Definition at line 754 of file IEHtmlDocument.cpp.

{
    if (mDOMDocument == NULL || mDOMDocument->Open())
    {
        return E_FAIL;
    }
    return S_OK;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_alinkColor ( VARIANT  v) [virtual]

Definition at line 431 of file IEHtmlDocument.cpp.

{
    IMPL_SET_COLOR(AlinkColor, v);
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_bgColor ( VARIANT  v) [virtual]

Definition at line 443 of file IEHtmlDocument.cpp.

{
    IMPL_SET_COLOR(BgColor, v);
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_charset ( BSTR  v) [virtual]

Definition at line 588 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_cookie ( BSTR  v) [virtual]

Definition at line 555 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_defaultCharset ( BSTR  v) [virtual]

Definition at line 601 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_designMode ( BSTR  v) [virtual]

Definition at line 311 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_domain ( BSTR  v) [virtual]

Definition at line 542 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_expando ( VARIANT_BOOL  v) [virtual]

Definition at line 575 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_fgColor ( VARIANT  v) [virtual]

Definition at line 455 of file IEHtmlDocument.cpp.

{
    IMPL_SET_COLOR(FgColor, v);
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_linkColor ( VARIANT  v) [virtual]

Definition at line 467 of file IEHtmlDocument.cpp.

{
    IMPL_SET_COLOR(LinkColor, v);
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_onafterupdate ( VARIANT  v) [virtual]

Definition at line 978 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_onbeforeupdate ( VARIANT  v) [virtual]

Definition at line 1056 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_onclick ( VARIANT  v) [virtual]

Definition at line 846 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_ondblclick ( VARIANT  v) [virtual]

Definition at line 858 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_ondragstart ( VARIANT  v) [virtual]

Definition at line 1014 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_onerrorupdate ( VARIANT  v) [virtual]

Definition at line 1068 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_onhelp ( VARIANT  v) [virtual]

Definition at line 834 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_onkeydown ( VARIANT  v) [virtual]

Definition at line 882 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_onkeypress ( VARIANT  v) [virtual]

Definition at line 894 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_onkeyup ( VARIANT  v) [virtual]

Definition at line 870 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_onmousedown ( VARIANT  v) [virtual]

Definition at line 918 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_onmousemove ( VARIANT  v) [virtual]

Definition at line 930 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_onmouseout ( VARIANT  v) [virtual]

Definition at line 942 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_onmouseover ( VARIANT  v) [virtual]

Definition at line 954 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_onmouseup ( VARIANT  v) [virtual]

Definition at line 906 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_onreadystatechange ( VARIANT  v) [virtual]

Definition at line 966 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_onrowenter ( VARIANT  v) [virtual]

Definition at line 1002 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_onrowexit ( VARIANT  v) [virtual]

Definition at line 990 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_onselectstart ( VARIANT  v) [virtual]

Definition at line 1026 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_title ( BSTR  v) [virtual]

Definition at line 281 of file IEHtmlDocument.cpp.

{
    if (mDOMDocument)
    {
        nsAutoString newTitle((PRUnichar *) v);
        mDOMDocument->SetTitle(newTitle);
    }
    return S_OK;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_URL ( BSTR  v) [virtual]

Definition at line 529 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::put_vlinkColor ( VARIANT  v) [virtual]

Definition at line 479 of file IEHtmlDocument.cpp.

{
    IMPL_SET_COLOR(VlinkColor, v);
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::queryCommandEnabled ( BSTR  cmdID,
VARIANT_BOOL __RPC_FAR *  pfRet 
) [virtual]

Definition at line 786 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::queryCommandIndeterm ( BSTR  cmdID,
VARIANT_BOOL __RPC_FAR *  pfRet 
) [virtual]

Definition at line 798 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::queryCommandState ( BSTR  cmdID,
VARIANT_BOOL __RPC_FAR *  pfRet 
) [virtual]

Definition at line 792 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::queryCommandSupported ( BSTR  cmdID,
VARIANT_BOOL __RPC_FAR *  pfRet 
) [virtual]

Definition at line 780 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::queryCommandText ( BSTR  cmdID,
BSTR __RPC_FAR *  pcmdText 
) [virtual]

Definition at line 804 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::queryCommandValue ( BSTR  cmdID,
VARIANT __RPC_FAR *  pcmdValue 
) [virtual]

Definition at line 810 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::QueryStatus ( const GUID __RPC_FAR *  pguidCmdGroup,
ULONG  cCmds,
OLECMD __RPC_FAR  prgCmds[],
OLECMDTEXT __RPC_FAR *  pCmdText 
) [virtual]

Definition at line 1096 of file IEHtmlDocument.cpp.

{
    HRESULT hr = E_NOTIMPL;
    if(mControl)
    {
        hr = mControl->QueryStatus(pguidCmdGroup,cCmds,prgCmds,pCmdText);
    }
    return hr;
}
HRESULT CNode::SetDOMNode ( nsIDOMNode pIDOMNode) [virtual, inherited]

Reimplemented in CIEHtmlDomNode, CIEHtmlButtonElement, and CIEHtmlElement.

Definition at line 96 of file IEHtmlNode.cpp.

{
    if (pIDOMNode)
    {
        if (g_NodeLookupTable == NULL)
        {
            g_NodeLookupTable = PL_NewHashTable(123, HashFunction, HashComparator, HashComparator, NULL, NULL);
        }

        mDOMNode = pIDOMNode;
        nsCOMPtr<nsISupports> nodeAsSupports= do_QueryInterface(mDOMNode);
        PL_HashTableAdd(g_NodeLookupTable, nodeAsSupports, this);
    }
    else if (mDOMNode)
    {
        // Remove the entry from the hashtable
        nsCOMPtr<nsISupports> nodeAsSupports = do_QueryInterface(mDOMNode);
        PL_HashTableRemove(g_NodeLookupTable, nodeAsSupports);
        mDOMNode = nsnull;

        if (g_NodeLookupTable->nentries == 0)
        {
            PL_HashTableDestroy(g_NodeLookupTable);
            g_NodeLookupTable = NULL;
        }
    }
    return S_OK;
}

Here is the call graph for this function:

Definition at line 68 of file IEHtmlDocument.cpp.

{
    mDOMDocument = native;
}
void CIEHtmlDocument::SetParent ( CMozillaBrowser *  parent) [virtual]

Definition at line 62 of file IEHtmlDocument.cpp.

HRESULT CNode::SetParent ( CNode pParent) [virtual, inherited]

Reimplemented in CIEHtmlButtonElement, and CIEHtmlElement.

Definition at line 71 of file IEHtmlNode.cpp.

{
    mParent = pParent;
    return S_OK;
}

Here is the caller graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlDocument::toString ( BSTR __RPC_FAR *  String) [virtual]

Definition at line 1080 of file IEHtmlDocument.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlDocument::write ( SAFEARRAY __RPC_FAR *  psarray) [virtual]

Definition at line 742 of file IEHtmlDocument.cpp.

{
       return WriteCommon(psarray, 0);
}

Here is the call graph for this function:

HRESULT CIEHtmlDocument::WriteCommon ( SAFEARRAY __RPC_FAR *  psarray,
int  bLn 
) [protected]

Definition at line 670 of file IEHtmlDocument.cpp.

{
    if (psarray->cDims != 1)
    {
        return E_INVALIDARG;
    }
    if (!(psarray->fFeatures & (FADF_BSTR | FADF_VARIANT)))
    {
        return E_INVALIDARG;
    }

    HRESULT hr;

    hr = SafeArrayLock(psarray);
    if (FAILED(hr))
    {
        return hr;
    }

    for (DWORD i = 0; i < psarray->rgsabound[0].cElements; i++)
    {
        nsAutoString str;
        if (psarray->fFeatures & FADF_BSTR)
        {
            USES_CONVERSION;
            BSTR *bstrArray = (BSTR *) psarray->pvData;
            str = OLE2W(bstrArray[i]);
        }
        else if (psarray->fFeatures & FADF_VARIANT)
        {
            USES_CONVERSION;
            VARIANT *vArray = (VARIANT *) psarray->pvData;
            VARIANT vStr;
            VariantInit(&vStr);
            hr = VariantChangeType(&vStr, &vArray[i], 0, VT_BSTR);
            if (FAILED(hr))
            {
                SafeArrayUnlock(psarray);
                return hr;
            }
            str = OLE2W(vStr.bstrVal);
            VariantClear(&vStr);
        }

        if (bLn && !i)
        {
            if (mDOMDocument->Writeln(str))
            {
                SafeArrayUnlock(psarray);
                return E_FAIL;
            }
        }
        else
        {
            if (mDOMDocument->Write(str))
            {
                SafeArrayUnlock(psarray);
                return E_FAIL;
            }
        }
    }
    
    hr = SafeArrayUnlock(psarray);
    if (FAILED(hr))
    {
        return hr;
    }

    return S_OK;
}

Here is the caller graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlDocument::writeln ( SAFEARRAY __RPC_FAR *  psarray) [virtual]

Definition at line 748 of file IEHtmlDocument.cpp.

{
      return WriteCommon(psarray, 1);
}

Here is the call graph for this function:


Member Data Documentation

CMozillaBrowser* CIEHtmlDocument::mControl [protected]

Definition at line 59 of file IEHtmlDocument.h.

Definition at line 60 of file IEHtmlDocument.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: