Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIContentSink Class Reference

#include <nsIContentSink.h>

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

List of all members.

Public Member Functions

NS_IMETHOD WillBuildModel (void)=0
 This method gets called when the parser begins the process of building the content model via the content sink.
NS_IMETHOD DidBuildModel ()=0
 This method gets called when the parser concludes the process of building the content model via the content sink.
NS_IMETHOD WillInterrupt (void)=0
 This method gets called when the parser gets i/o blocked, and wants to notify the sink that it may be a while before more data is available.
NS_IMETHOD WillResume (void)=0
 This method gets called when the parser i/o gets unblocked, and we're about to start dumping content again to the sink.
NS_IMETHOD SetParser (nsIParser *aParser)=0
 This method gets called by the parser so that the content sink can retain a reference to the parser.
virtual void FlushPendingNotifications (mozFlushType aType)=0
 Flush content so that the content model is in sync with the state of the sink.
NS_IMETHOD SetDocumentCharset (nsACString &aCharset)=0
 Set the document character set.
virtual nsISupports * GetTarget ()=0
 Returns the target object (often a document object) into which the content built by this content sink is being added, if any (IOW, may return null).

Detailed Description

Definition at line 67 of file nsIContentSink.h.


Member Function Documentation

This method gets called when the parser concludes the process of building the content model via the content sink.

5/7/98 gess

Implemented in HTMLContentSink, RDFContentSinkImpl, XULContentSinkImpl, txStylesheetSink, RobotSink, mozSanitizingHTMLSerializer, nsPlainTextSerializer, nsXMLFragmentContentSink, nsHTMLFragmentContentSink, nsXMLContentSink, nsSAXXMLReader, nsLoadSaveContentSink, and nsLoggingSink.

Here is the caller graph for this function:

virtual void nsIContentSink::FlushPendingNotifications ( mozFlushType  aType) [pure virtual]

Flush content so that the content model is in sync with the state of the sink.

Parameters:
aTypethe type of flush to perform

Implemented in HTMLContentSink, RDFContentSinkImpl, XULContentSinkImpl, txStylesheetSink, mozSanitizingHTMLSerializer, RobotSink, nsPlainTextSerializer, nsHTMLFragmentContentSink, nsSAXXMLReader, nsXMLContentSink, nsLoadSaveContentSink, and nsLoggingSink.

virtual nsISupports* nsIContentSink::GetTarget ( ) [pure virtual]

Returns the target object (often a document object) into which the content built by this content sink is being added, if any (IOW, may return null).

Implemented in HTMLContentSink, RDFContentSinkImpl, XULContentSinkImpl, txStylesheetSink, mozSanitizingHTMLSerializer, RobotSink, nsPlainTextSerializer, nsSAXXMLReader, nsHTMLFragmentContentSink, nsXMLFragmentContentSink, nsXMLContentSink, and nsLoggingSink.

NS_IMETHOD nsIContentSink::SetDocumentCharset ( nsACString &  aCharset) [pure virtual]
NS_IMETHOD nsIContentSink::SetParser ( nsIParser aParser) [pure virtual]

This method gets called by the parser so that the content sink can retain a reference to the parser.

The expectation is that the content sink will drop the reference when it gets the DidBuildModel notification i.e. when parsing is done.

Implemented in HTMLContentSink, RDFContentSinkImpl, XULContentSinkImpl, txStylesheetSink, RobotSink, mozSanitizingHTMLSerializer, nsPlainTextSerializer, nsHTMLFragmentContentSink, nsXMLContentSink, nsLoadSaveContentSink, nsSAXXMLReader, and nsLoggingSink.

Here is the caller graph for this function:

This method gets called when the parser begins the process of building the content model via the content sink.

5/7/98 gess

Implemented in HTMLContentSink, RDFContentSinkImpl, XULContentSinkImpl, txStylesheetSink, RobotSink, mozSanitizingHTMLSerializer, nsPlainTextSerializer, nsXMLFragmentContentSink, nsHTMLFragmentContentSink, nsXMLContentSink, nsSAXXMLReader, nsLoadSaveContentSink, and nsLoggingSink.

Here is the caller graph for this function:

This method gets called when the parser gets i/o blocked, and wants to notify the sink that it may be a while before more data is available.

5/7/98 gess

Implemented in HTMLContentSink, RDFContentSinkImpl, XULContentSinkImpl, txStylesheetSink, RobotSink, mozSanitizingHTMLSerializer, nsPlainTextSerializer, nsHTMLFragmentContentSink, nsXMLContentSink, nsSAXXMLReader, nsLoadSaveContentSink, and nsLoggingSink.

Here is the caller graph for this function:

This method gets called when the parser i/o gets unblocked, and we're about to start dumping content again to the sink.

5/7/98 gess

Implemented in HTMLContentSink, RDFContentSinkImpl, XULContentSinkImpl, txStylesheetSink, RobotSink, mozSanitizingHTMLSerializer, nsPlainTextSerializer, nsHTMLFragmentContentSink, nsXMLContentSink, nsSAXXMLReader, nsLoadSaveContentSink, and nsLoggingSink.

Here is the caller graph for this function:


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