Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsHTMLTokenizer.h File Reference
#include "nsISupports.h"
#include "nsITokenizer.h"
#include "nsIDTD.h"
#include "prtypes.h"
#include "nsDeque.h"
#include "nsScanner.h"
#include "nsHTMLTokens.h"
#include "nsDTDUtils.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsHTMLTokenizer

Defines

#define NS_HTMLTOKENIZER_IID
 MODULE NOTES: gess 4/1/98.

Functions

nsresult NS_NewHTMLTokenizer (nsITokenizer **aInstancePtrResult, PRInt32 aMode, eParserDocType aDocType, eParserCommands aCommand, PRInt32 aFlags)
 This method is defined in nsHTMLTokenizer.h.

Define Documentation

Value:
{0xe4238ddd, 0x9eb6, 0x11d2, \
  {0xba, 0xa5, 0x0,     0x10, 0x4b, 0x98, 0x3f, 0xd4 }}

MODULE NOTES: gess 4/1/98.

Definition at line 57 of file nsHTMLTokenizer.h.


Function Documentation

nsresult NS_NewHTMLTokenizer ( nsITokenizer **  aInstancePtrResult,
PRInt32  aFlag,
eParserDocType  aDocType,
eParserCommands  aCommand,
PRInt32  aFlags 
)

This method is defined in nsHTMLTokenizer.h.

It is used to cause the COM-like construction of an HTMLTokenizer.

Parameters:
aInstancePtrResult**ptr to newly instantiated parser
aFlagParser flags the tokenizer should be aware of
aDocTypeThe doctype of the current document.
aCommandThe current command (view-source, fragment, etc).
Returns:
NS_xxx error result

Definition at line 109 of file nsHTMLTokenizer.cpp.

{
  NS_PRECONDITION(nsnull != aInstancePtrResult, "null ptr");
  if (nsnull == aInstancePtrResult) {
    return NS_ERROR_NULL_POINTER;
  }
  nsHTMLTokenizer* it = new nsHTMLTokenizer(aFlag,aDocType,aCommand,aFlags);
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  return it->QueryInterface(kClassIID, (void **) aInstancePtrResult);
}

Here is the caller graph for this function: