Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

XPage Class Reference

#include <XPage.h>

Inheritance diagram for XPage

Inheritance graph

[legend]
Collaboration diagram for XPage:

Collaboration graph

[legend]
List of all members.

Public Methods

virtual NS_DECL_ISUPPORTS
nsresult 
ParseInputSource (saxIInputSource *source)
virtual nsresult ParseURI (const char *uri)
virtual nsresult SetEntityResolver (saxIEntityResolver *resolver)
virtual nsresult SetDTDHandler (saxIDTDHandler *handler)
virtual nsresult SetDocumentHandler (saxIDocumentHandler *handler)
virtual nsresult SetErrorHandler (saxIErrorHandler *handler)
virtual nsresult GetRequest (px7IRequest * *aRequest)
virtual nsresult SetRequest (px7IRequest * aRequest)
virtual nsresult GetResponse (px7IResponse * *aResponse)
virtual nsresult SetResponse (px7IResponse * aResponse)
virtual nsresult StreamProcessingInstruction (const PRUnichar *target, const PRUnichar *data)
virtual nsresult StreamStartElement (const PRUnichar *name, saxIAttributeList *atts)
virtual nsresult Characters (const PRUnichar *charData)
virtual nsresult EndDocument (void)
virtual nsresult EndElement (const PRUnichar *name)
virtual nsresult IgnorableWhitespace (const PRUnichar *charData)
virtual nsresult ProcessingInstruction (const PRUnichar *target, const PRUnichar *data)
virtual nsresult SetDocumentLocator (saxILocator *locator)
virtual nsresult StartDocument (void)
virtual nsresult StartElement (const PRUnichar *name, saxIAttributeList *atts)
 XPage ()
virtual ~XPage ()

Private Types

typedef std::vector<XalanElement*> ElementStackType
typedef std::map<XalanDOMString,
XalanDOMString> 
mapStringString

Private Methods

void appendChild (XalanNode* newNode)
void loadTransform (const PRUnichar* piData)
 Load a transformation stylesheet and hook up it's input. More...

void doTransform ()
 Perform the XSL transform on the input tree. More...

FormatterListenerdivertStream ()
 Divert the output to a streaming output formatter from build the DOM. More...

mapStringString parsePI (const PRUnichar* piData)
 Parse throught a PI of the form <?xml-stylesheet href="file"?>. More...

void charactersRaw (const XMLCh* const chars, const unsigned int length)
 Divert the output to a streaming output formatter from build the DOM FormatterListener* Stage::divertStream() {. More...

void comment (const XMLCh* const data)
void cdata (const XMLCh* const ch, const unsigned int length)
void entityReference (const XMLCh* const name)
void characters (const XMLCh* const chars, const unsigned int length)
void endDocument ()
void endElement (const XMLCh* const name)
void ignorableWhitespace (const XMLCh* const chars, const unsigned int length)
void processingInstruction (const XMLCh* const target, const XMLCh* const data)
void resetDocument ()
void setDocumentLocator (const Locator* const locator)
void startDocument ()
void startElement (const XMLCh* const name, AttributeList& attrs)

Private Attributes

nsCOMPtr<saxIDocumentHandlerm_documentHandler
nsCOMPtr<saxAttributeListm_attr
DOMSupportDefault* m_pDOMSupport
XercesParserLiaison* m_pParserLiaison
XalanDocument* m_pDocument
XalanElement* m_currentElem
StylesheetRoot* m_pStylesheet
XercesDOMPrintWriter* m_pPrintWriter
StylesheetExecutionContext* m_pExecutionContext
xpOutputStreamm_xpOutputStream
ElementStackType m_elemStack
nsCOMPtr<px7IRequestm_request
nsCOMPtr<px7IResponsem_response

Member Typedef Documentation

typedef std::vector<XalanElement*> XPage::ElementStackType [private]
 

Definition at line 58 of file XPage.h.

typedef std::map<XalanDOMString,XalanDOMString> XPage::mapStringString [private]
 

Definition at line 66 of file XPage.h.


Constructor & Destructor Documentation

XPage::XPage ( )
 

XPage::~XPage ( ) [virtual]
 

Definition at line 58 of file XPage.cpp.


Member Function Documentation

NS_IMETHODIMP XPage::Characters ( const PRUnichar * charData ) [virtual]
 

Definition at line 115 of file XPage.cpp.

NS_IMETHODIMP XPage::EndDocument ( void ) [virtual]
 

Definition at line 123 of file XPage.cpp.

NS_IMETHODIMP XPage::EndElement ( const PRUnichar * name ) [virtual]
 

Definition at line 131 of file XPage.cpp.

NS_IMETHODIMP XPage::GetRequest ( px7IRequest ** aRequest ) [virtual]
 

Definition at line 358 of file XPage.cpp.

NS_IMETHODIMP XPage::GetResponse ( px7IResponse ** aResponse ) [virtual]
 

Definition at line 372 of file XPage.cpp.

NS_IMETHODIMP XPage::IgnorableWhitespace ( const PRUnichar * charData ) [virtual]
 

Definition at line 144 of file XPage.cpp.

NS_IMETHODIMP XPage::ParseInputSource ( saxIInputSource * pSource ) [virtual]
 

Definition at line 101 of file XPage.cpp.

NS_IMETHODIMP XPage::ParseURI ( const char * uri ) [virtual]
 

Definition at line 108 of file XPage.cpp.

NS_IMETHODIMP XPage::ProcessingInstruction ( const PRUnichar * target,
const PRUnichar * data ) [virtual]
 

Definition at line 152 of file XPage.cpp.

NS_IMETHODIMP XPage::SetDTDHandler ( saxIDTDHandler * handler ) [virtual]
 

Definition at line 79 of file XPage.cpp.

NS_IMETHODIMP XPage::SetDocumentHandler ( saxIDocumentHandler * handler ) [virtual]
 

Definition at line 86 of file XPage.cpp.

NS_IMETHODIMP XPage::SetDocumentLocator ( saxILocator * locator ) [virtual]
 

Definition at line 167 of file XPage.cpp.

NS_IMETHODIMP XPage::SetEntityResolver ( saxIEntityResolver * resolver ) [virtual]
 

Definition at line 72 of file XPage.cpp.

NS_IMETHODIMP XPage::SetErrorHandler ( saxIErrorHandler * handler ) [virtual]
 

Definition at line 94 of file XPage.cpp.

NS_IMETHODIMP XPage::SetRequest ( px7IRequest * aRequest ) [virtual]
 

Definition at line 364 of file XPage.cpp.

NS_IMETHODIMP XPage::SetResponse ( px7IResponse * aResponse ) [virtual]
 

Definition at line 378 of file XPage.cpp.

NS_IMETHODIMP XPage::StartDocument ( void ) [virtual]
 

Definition at line 175 of file XPage.cpp.

NS_IMETHODIMP XPage::StartElement ( const PRUnichar * name,
saxIAttributeList * atts ) [virtual]
 

Definition at line 187 of file XPage.cpp.

NS_IMETHODIMP XPage::StreamProcessingInstruction ( const PRUnichar * target,
const PRUnichar * data ) [virtual]
 

Definition at line 386 of file XPage.cpp.

NS_IMETHODIMP XPage::StreamStartElement ( const PRUnichar * sName,
saxIAttributeList * atts ) [virtual]
 

Definition at line 394 of file XPage.cpp.

void XPage::appendChild ( XalanNode * newNode ) [private]
 

Definition at line 211 of file XPage.cpp.

Referenced by Characters(), IgnorableWhitespace(), ProcessingInstruction(), and StartElement().

void XPage::cdata ( const XMLCh *const ch,
const unsigned int length ) [private]
 

Definition at line 492 of file XPage.cpp.

void XPage::characters ( const XMLCh *const chars,
const unsigned int length ) [private]
 

Definition at line 502 of file XPage.cpp.

void XPage::charactersRaw ( const XMLCh *const chars,
const unsigned int length ) [private]
 

Divert the output to a streaming output formatter from build the DOM FormatterListener* Stage::divertStream() {.

switch (m_pStylesheet->getOutputMethod()) { case FormatterListener::OUTPUT_METHOD_HTML: m_pPage->getResponse()->SetContentType("text/html"); break;

case FormatterListener::OUTPUT_METHOD_TEXT: m_pPage->getResponse()->SetContentType("text/plain"); break;

case FormatterListener::OUTPUT_METHOD_NONE: case FormatterListener::OUTPUT_METHOD_XML: default: m_pPage->getResponse()->SetContentType("text/xml"); break; } m_pPrintWriter = new XercesDOMPrintWriter(*m_pPage->getResponse()->getOutputStream()); XSLTResultTarget theResultTarget(m_pPrintWriter);

don't keep a reference to the listener, we don't own it. FormatterListener* formatterListener = m_pStylesheet->setupFormatterListener(theResultTarget, *m_pExecutionContext); formatterListener->startDocument(); m_pFormatterListener = NULL; return formatterListener; }

Definition at line 482 of file XPage.cpp.

void XPage::comment ( const XMLCh *const data ) [private]
 

Definition at line 487 of file XPage.cpp.

FormatterListener * XPage::divertStream ( ) [private]
 

Divert the output to a streaming output formatter from build the DOM.

Definition at line 418 of file XPage.cpp.

Referenced by StreamProcessingInstruction(), and StreamStartElement().

void XPage::doTransform ( ) [private]
 

Perform the XSL transform on the input tree.

Definition at line 293 of file XPage.cpp.

Referenced by EndDocument().

void XPage::endDocument ( ) [private]
 

Reimplemented from saxIDocumentHandler.

Definition at line 514 of file XPage.cpp.

void XPage::endElement ( const XMLCh *const name ) [private]
 

Definition at line 520 of file XPage.cpp.

void XPage::entityReference ( const XMLCh *const name ) [private]
 

Definition at line 497 of file XPage.cpp.

void XPage::ignorableWhitespace ( const XMLCh *const chars,
const unsigned int length ) [private]
 

Definition at line 526 of file XPage.cpp.

void XPage::loadTransform ( const PRUnichar * piData ) [private]
 

Load a transformation stylesheet and hook up it's input.

Parameters:
piData  

Definition at line 227 of file XPage.cpp.

Referenced by ProcessingInstruction().

XPage::mapStringString XPage::parsePI ( const PRUnichar * piData ) [private]
 

Parse throught a PI of the form <?xml-stylesheet href="file"?>.

decode the parameters

Parameters:
pi  

Definition at line 242 of file XPage.cpp.

Referenced by loadTransform().

void XPage::processingInstruction ( const XMLCh *const target,
const XMLCh *const data ) [private]
 

Definition at line 531 of file XPage.cpp.

void XPage::resetDocument ( ) [private]
 

Definition at line 537 of file XPage.cpp.

void XPage::setDocumentLocator ( const Locator *const locator ) [private]
 

Definition at line 542 of file XPage.cpp.

void XPage::startDocument ( ) [private]
 

Reimplemented from saxIDocumentHandler.

Definition at line 547 of file XPage.cpp.

void XPage::startElement ( const XMLCh *const name,
AttributeList & attrs ) [private]
 

Definition at line 553 of file XPage.cpp.


Member Data Documentation

nsCOMPtr< saxAttributeList > XPage::m_attr [private]
 

Definition at line 47 of file XPage.h.

XalanElement * XPage::m_currentElem [private]
 

Definition at line 52 of file XPage.h.

nsCOMPtr< saxIDocumentHandler > XPage::m_documentHandler [private]
 

Definition at line 46 of file XPage.h.

ElementStackType XPage::m_elemStack [private]
 

Definition at line 59 of file XPage.h.

DOMSupportDefault * XPage::m_pDOMSupport [private]
 

Definition at line 49 of file XPage.h.

XalanDocument * XPage::m_pDocument [private]
 

Definition at line 51 of file XPage.h.

StylesheetExecutionContext * XPage::m_pExecutionContext [private]
 

Definition at line 55 of file XPage.h.

XercesParserLiaison * XPage::m_pParserLiaison [private]
 

Definition at line 50 of file XPage.h.

XercesDOMPrintWriter * XPage::m_pPrintWriter [private]
 

Definition at line 54 of file XPage.h.

StylesheetRoot * XPage::m_pStylesheet [private]
 

Definition at line 53 of file XPage.h.

nsCOMPtr< px7IRequest > XPage::m_request [private]
 

Definition at line 69 of file XPage.h.

nsCOMPtr< px7IResponse > XPage::m_response [private]
 

Definition at line 70 of file XPage.h.

xpOutputStream * XPage::m_xpOutputStream [private]
 

Definition at line 56 of file XPage.h.


The documentation for this class was generated from the following files:
Generated at Tue Sep 12 18:45:27 2000 by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000