Back to index

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

#include <nsXULElement.h>

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

List of all members.

Public Types

enum  Type { eType_Element, eType_Script, eType_Text }

Public Member Functions

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

Public Attributes

nsString mValue
Type mType
PRInt32 mRefCnt

Detailed Description

Definition at line 368 of file nsXULElement.h.


Member Enumeration Documentation

enum nsXULPrototypeNode::Type [inherited]
Enumerator:
eType_Element 
eType_Script 
eType_Text 

Definition at line 195 of file nsXULElement.h.


Constructor & Destructor Documentation

Definition at line 371 of file nsXULElement.h.

        : nsXULPrototypeNode(eType_Text)
    {
        NS_LOG_ADDREF(this, 1, ClassName(), ClassSize());
    }
virtual nsXULPrototypeText::~nsXULPrototypeText ( ) [inline, virtual]

Definition at line 377 of file nsXULElement.h.

    {
    }

Member Function Documentation

void nsXULPrototypeNode::AddRef ( void  ) [inline, inherited]

Definition at line 215 of file nsXULElement.h.

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

Here is the caller graph for this function:

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

Implements nsXULPrototypeNode.

Definition at line 3760 of file nsXULElement.cpp.

{
    nsresult rv;

    // Write basic prototype data
    rv = aStream->ReadString(mValue);

    return rv;
}
void nsXULPrototypeNode::Release ( void  ) [inline, inherited]

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, inherited]

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:

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

Implements nsXULPrototypeNode.

Definition at line 3745 of file nsXULElement.cpp.

{
    nsresult rv;

    // Write basic prototype data
    rv = aStream->Write32(mType);

    rv |= aStream->WriteWStringZ(mValue.get());

    return rv;
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 199 of file nsXULElement.h.

Definition at line 197 of file nsXULElement.h.

Definition at line 394 of file nsXULElement.h.


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