Back to index

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

#include <IEHtmlTxtRange.h>

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

List of all members.

Public Member Functions

 CIEHtmlControlRange ()
virtual HRESULT STDMETHODCALLTYPE commonParentElement (IHTMLElement __RPC_FAR *__RPC_FAR *parent)
virtual HRESULT STDMETHODCALLTYPE select (void)
virtual HRESULT STDMETHODCALLTYPE add (IHTMLControlElement __RPC_FAR *item)
virtual HRESULT STDMETHODCALLTYPE remove (long index)
virtual HRESULT STDMETHODCALLTYPE item (long index, IHTMLElement __RPC_FAR *__RPC_FAR *pdisp)
virtual HRESULT STDMETHODCALLTYPE scrollIntoView (VARIANT varargStart)
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 get_length (long __RPC_FAR *p)
void SetRange (nsIDOMRange *pRange)
virtual HRESULT GetParentElement (IHTMLElement **ppParent)

Protected Member Functions

virtual ~CIEHtmlControlRange ()

Protected Attributes

nsCOMPtr< nsIDOMRangemRange

Detailed Description

Definition at line 119 of file IEHtmlTxtRange.h.


Constructor & Destructor Documentation

Definition at line 278 of file IEHtmlTxtRange.cpp.

{
}

Definition at line 282 of file IEHtmlTxtRange.cpp.

{
}

Member Function Documentation

HRESULT STDMETHODCALLTYPE CIEHtmlControlRange::add ( IHTMLControlElement __RPC_FAR *  item) [virtual]

Definition at line 296 of file IEHtmlTxtRange.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlControlRange::commonParentElement ( IHTMLElement __RPC_FAR *__RPC_FAR *  parent) [virtual]

Definition at line 286 of file IEHtmlTxtRange.cpp.

{
    return GetParentElement(parent);
}

Here is the call graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlControlRange::execCommand ( BSTR  cmdID,
VARIANT_BOOL  showUI,
VARIANT  value,
VARIANT_BOOL __RPC_FAR *  pfRet 
) [virtual]

Definition at line 346 of file IEHtmlTxtRange.cpp.

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

Definition at line 351 of file IEHtmlTxtRange.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlControlRange::get_length ( long __RPC_FAR *  p) [virtual]

Definition at line 356 of file IEHtmlTxtRange.cpp.

{
    return E_NOTIMPL;
}
HRESULT CRange::GetParentElement ( IHTMLElement **  ppParent) [virtual, inherited]

Definition at line 60 of file IEHtmlTxtRange.cpp.

{
    if (ppParent == NULL)
        return E_INVALIDARG;
    *ppParent = NULL;
    // get common ancestor property:
    nsCOMPtr<nsIDOMNode> domNode;
    mRange->GetCommonAncestorContainer(getter_AddRefs(domNode));
    if (!domNode)
        return S_OK;
    nsCOMPtr<nsIDOMElement> domElement = do_QueryInterface(domNode);
    if (!domElement)
    {
        // domNode can be a nsITextNode. In this case, its parent is a nsIDOMElement:
        nsCOMPtr<nsIDOMNode> parentNode;
        domNode->GetParentNode(getter_AddRefs(parentNode));
        domElement = do_QueryInterface(parentNode);
        // Is a textrange always supposed to have a parentElement? Remove 2 lines if not:
        if (!domElement)
            return E_UNEXPECTED;
        domNode = parentNode;
    }
    // get or create com object:
    CComPtr<IUnknown> pNode;
    HRESULT hr = CIEHtmlDomNode::FindOrCreateFromDOMNode(domNode, &pNode);
    if (FAILED(hr))
        return hr;
    if (FAILED(pNode->QueryInterface(IID_IHTMLElement, (void **)ppParent)))
        return E_UNEXPECTED;

    return S_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

HRESULT STDMETHODCALLTYPE CIEHtmlControlRange::item ( long  index,
IHTMLElement __RPC_FAR *__RPC_FAR *  pdisp 
) [virtual]

Definition at line 306 of file IEHtmlTxtRange.cpp.

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

Definition at line 321 of file IEHtmlTxtRange.cpp.

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

Definition at line 331 of file IEHtmlTxtRange.cpp.

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

Definition at line 326 of file IEHtmlTxtRange.cpp.

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

Definition at line 316 of file IEHtmlTxtRange.cpp.

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

Definition at line 336 of file IEHtmlTxtRange.cpp.

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

Definition at line 341 of file IEHtmlTxtRange.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlControlRange::remove ( long  index) [virtual]

Definition at line 301 of file IEHtmlTxtRange.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlControlRange::scrollIntoView ( VARIANT  varargStart) [virtual]

Definition at line 311 of file IEHtmlTxtRange.cpp.

{
    return E_NOTIMPL;
}
HRESULT STDMETHODCALLTYPE CIEHtmlControlRange::select ( void  ) [virtual]

Definition at line 291 of file IEHtmlTxtRange.cpp.

{
    return E_NOTIMPL;
}
void CRange::SetRange ( nsIDOMRange pRange) [inherited]

Definition at line 55 of file IEHtmlTxtRange.cpp.

{
    mRange = pRange;
}

Member Data Documentation

nsCOMPtr<nsIDOMRange> CRange::mRange [protected, inherited]

Definition at line 58 of file IEHtmlTxtRange.h.


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