Back to index

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

A prototype content model element that holds the "primordial" values that have been parsed from the original XUL document. More...

#include <nsXULElement.h>

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

List of all members.

Public Types

enum  Type { eType_Element, eType_Script, eType_Text }

Public Member Functions

virtual ~nsXULPrototypeNode ()
virtual nsresult Serialize (nsIObjectOutputStream *aStream, nsIScriptContext *aContext, const nsCOMArray< nsINodeInfo > *aNodeInfos)=0
virtual nsresult Deserialize (nsIObjectInputStream *aStream, nsIScriptContext *aContext, nsIURI *aDocumentURI, const nsCOMArray< nsINodeInfo > *aNodeInfos)=0
void AddRef ()
void Release ()
virtual void ReleaseSubtree ()

Public Attributes

Type mType
PRInt32 mRefCnt

Protected Member Functions

 nsXULPrototypeNode (Type aType)

Detailed Description

A prototype content model element that holds the "primordial" values that have been parsed from the original XUL document.

A 'lightweight' nsXULElement may delegate its representation to this structure, which is shared.

Definition at line 192 of file nsXULElement.h.


Member Enumeration Documentation

Enumerator:
eType_Element 
eType_Script 
eType_Text 

Definition at line 195 of file nsXULElement.h.


Constructor & Destructor Documentation

virtual nsXULPrototypeNode::~nsXULPrototypeNode ( ) [inline, virtual]

Definition at line 201 of file nsXULElement.h.

{}
nsXULPrototypeNode::nsXULPrototypeNode ( Type  aType) [inline, protected]

Definition at line 229 of file nsXULElement.h.

        : mType(aType), mRefCnt(1) {}

Member Function Documentation

Definition at line 215 of file nsXULElement.h.

                  {
        ++mRefCnt;
        NS_LOG_ADDREF(this, mRefCnt, ClassName(), ClassSize());
    }

Here is the caller graph for this function:

virtual nsresult nsXULPrototypeNode::Deserialize ( nsIObjectInputStream aStream,
nsIScriptContext aContext,
nsIURI aDocumentURI,
const nsCOMArray< nsINodeInfo > *  aNodeInfos 
) [pure virtual]

Implemented in nsXULPrototypeText, nsXULPrototypeScript, and nsXULPrototypeElement.

Here is the caller graph for this function:

Definition at line 219 of file nsXULElement.h.

    {
        --mRefCnt;
        NS_LOG_RELEASE(this, mRefCnt, ClassName());
        if (mRefCnt == 0)
            delete this;
    }

Here is the caller graph for this function:

virtual void nsXULPrototypeNode::ReleaseSubtree ( ) [inline, virtual]

Reimplemented in nsXULPrototypeElement.

Definition at line 226 of file nsXULElement.h.

{ Release(); }

Here is the call graph for this function:

Here is the caller graph for this function:

virtual nsresult nsXULPrototypeNode::Serialize ( nsIObjectOutputStream aStream,
nsIScriptContext aContext,
const nsCOMArray< nsINodeInfo > *  aNodeInfos 
) [pure virtual]

Implemented in nsXULPrototypeText, nsXULPrototypeScript, and nsXULPrototypeElement.

Here is the caller graph for this function:


Member Data Documentation

Definition at line 199 of file nsXULElement.h.

Definition at line 197 of file nsXULElement.h.


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