Back to index

lightning-sunbird  0.9+nobinonly
Public Types | Public Member Functions | Private Attributes | Friends
txResultTreeFragment Class Reference

#include <txRtfHandler.h>

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

List of all members.

Public Types

enum  ResultType {
  NODESET, BOOLEAN, NUMBER, STRING,
  RESULT_TREE_FRAGMENT
}

Public Member Functions

 txResultTreeFragment (nsAutoPtr< txResultBuffer > &aBuffer)
 ~txResultTreeFragment ()
TX_DECL_EXPRRESULT nsresult flushToHandler (txAXMLEventHandler **aHandler)
void AddRef ()
void Release ()
virtual short getResultType ()=0
 Returns the type of ExprResult represented.
virtual void stringValue (nsAString &str)=0
 Creates a String representation of this ExprResult.
virtual nsAString * stringValuePointer ()=0
 Returns a pointer to the stringvalue if possible.
virtual MBool booleanValue ()=0
 Converts this ExprResult to a Boolean (MBool) value.
virtual double numberValue ()=0
 Converts this ExprResult to a Number (double) value.

Private Attributes

nsAutoPtr< txResultBuffermBuffer

Friends

class txResultRecycler

Detailed Description

Definition at line 46 of file txRtfHandler.h.


Member Enumeration Documentation

enum txAExprResult::ResultType [inherited]
Enumerator:
NODESET 
BOOLEAN 
NUMBER 
STRING 
RESULT_TREE_FRAGMENT 

Definition at line 61 of file ExprResult.h.


Constructor & Destructor Documentation

Definition at line 42 of file txRtfHandler.cpp.

    : txAExprResult(nsnull),
      mBuffer(aBuffer)
{
}

Definition at line 48 of file txRtfHandler.cpp.

{
}

Member Function Documentation

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

Definition at line 72 of file ExprResult.h.

    {
        ++mRefCnt;
    }
virtual MBool txAExprResult::booleanValue ( ) [pure virtual, inherited]

Converts this ExprResult to a Boolean (MBool) value.

Returns:
the Boolean value

Here is the caller graph for this function:

Definition at line 85 of file txRtfHandler.cpp.

{
    if (!mBuffer) {
        return NS_ERROR_FAILURE;
    }

    return mBuffer->flushToHandler(aHandler);
}

Here is the call graph for this function:

virtual short txAExprResult::getResultType ( ) [pure virtual, inherited]

Returns the type of ExprResult represented.

Returns:
the type of ExprResult represented

Here is the caller graph for this function:

virtual double txAExprResult::numberValue ( ) [pure virtual, inherited]

Converts this ExprResult to a Number (double) value.

Returns:
the Number value

Here is the caller graph for this function:

void txAExprResult::Release ( void  ) [inherited]

Definition at line 291 of file txResultRecycler.cpp.

{
    if (--mRefCnt == 0) {
        if (mRecycler) {
            mRecycler->recycle(this);
        }
        else {
            delete this;
        }
    }
}
virtual void txAExprResult::stringValue ( nsAString &  str) [pure virtual, inherited]

Creates a String representation of this ExprResult.

Parameters:
strthe destination string to append the String representation to.

Here is the caller graph for this function:

virtual nsAString* txAExprResult::stringValuePointer ( ) [pure virtual, inherited]

Returns a pointer to the stringvalue if possible.

Otherwise null is returned.

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class txResultRecycler [friend, inherited]

Definition at line 60 of file ExprResult.h.


Member Data Documentation

Definition at line 57 of file txRtfHandler.h.


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