Back to index

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

#include <txRtfHandler.h>

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

List of all members.

Public Member Functions

 txRtfHandler ()
virtual ~txRtfHandler ()
nsresult getAsRTF (txAExprResult **aResult)
void endDocument (nsresult aResult)
 Signals the end of a document.
void startDocument ()
 Signals the start of a document.
virtual void attribute (const nsAString &aName, const PRInt32 aNsID, const nsAString &aValue)=0
 Signals to receive the start of an attribute.
virtual void characters (const nsAString &aData, PRBool aDOE)=0
 Signals to receive characters.
virtual void comment (const nsAString &aData)=0
 Signals to receive data that should be treated as a comment.
virtual void endElement (const nsAString &aName, const PRInt32 aNsID)=0
 Signals to receive the end of an element.
virtual void processingInstruction (const nsAString &aTarget, const nsAString &aData)=0
 Signals to receive a processing instruction.
virtual void startElement (const nsAString &aName, const PRInt32 aNsID)=0
 Signals to receive the start of an element.

Protected Attributes

nsAutoPtr< txResultBuffermBuffer
PRPackedBool mCanAddAttribute

Detailed Description

Definition at line 60 of file txRtfHandler.h.


Constructor & Destructor Documentation

Definition at line 94 of file txRtfHandler.cpp.

{
}

Definition at line 98 of file txRtfHandler.cpp.

{
}

Member Function Documentation

virtual void txAXMLEventHandler::attribute ( const nsAString &  aName,
const PRInt32  aNsID,
const nsAString &  aValue 
) [pure virtual, inherited]

Signals to receive the start of an attribute.

Parameters:
aNamethe name of the attribute
aNsIDthe namespace ID of the attribute
aValuethe value of the attribute

Implemented in txHTMLOutput, and txUnknownHandler.

Here is the caller graph for this function:

virtual void txAXMLEventHandler::characters ( const nsAString &  aData,
PRBool  aDOE 
) [pure virtual, inherited]

Signals to receive characters.

Parameters:
aDatathe characters to receive
aDOEdisable output escaping for these characters

Implemented in txHTMLOutput.

Here is the caller graph for this function:

virtual void txAXMLEventHandler::comment ( const nsAString &  aData) [pure virtual, inherited]

Signals to receive data that should be treated as a comment.

Parameters:
datathe comment data to receive

Here is the caller graph for this function:

void txRtfHandler::endDocument ( nsresult  aResult) [virtual]

Signals the end of a document.

It is an error to call this method more than once.

Implements txAXMLEventHandler.

Definition at line 113 of file txRtfHandler.cpp.

{
}
virtual void txAXMLEventHandler::endElement ( const nsAString &  aName,
const PRInt32  aNsID 
) [pure virtual, inherited]

Signals to receive the end of an element.

Parameters:
aNamethe name of the element
aNsIDthe namespace ID of the element

Implemented in txHTMLOutput.

Here is the caller graph for this function:

Definition at line 103 of file txRtfHandler.cpp.

{
    *aResult = new txResultTreeFragment(mBuffer);
    NS_ENSURE_TRUE(*aResult, NS_ERROR_OUT_OF_MEMORY);

    NS_ADDREF(*aResult);

    return NS_OK;
}

Here is the call graph for this function:

virtual void txAXMLEventHandler::processingInstruction ( const nsAString &  aTarget,
const nsAString &  aData 
) [pure virtual, inherited]

Signals to receive a processing instruction.

Parameters:
aTargetthe target of the processing instruction
aDatathe data of the processing instruction

Implemented in txHTMLOutput.

Here is the caller graph for this function:

Signals the start of a document.

Implements txAXMLEventHandler.

Definition at line 117 of file txRtfHandler.cpp.

{
}
virtual void txAXMLEventHandler::startElement ( const nsAString &  aName,
const PRInt32  aNsID 
) [pure virtual, inherited]

Signals to receive the start of an element.

Parameters:
aNamethe name of the element
aNsIDthe namespace ID of the element

Implemented in txHTMLOutput, and txUnknownHandler.

Here is the caller graph for this function:


Member Data Documentation

Definition at line 82 of file txBufferingHandler.h.

Definition at line 83 of file txBufferingHandler.h.


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