Back to index

lightning-sunbird  0.9+nobinonly
Classes | Enumerations | Functions
nsHTMLTokens.h File Reference
#include "nsToken.h"
#include "nsHTMLTags.h"
#include "nsString.h"
#include "nsScannerString.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CHTMLToken
 This declares the basic token type used in the HTML DTD's. More...
class  CStartToken
 This declares start tokens, which always take the form <xxxx>. More...
class  CEndToken
 This declares end tokens, which always take the form </xxxx>. More...
class  CCommentToken
 This declares comment tokens. More...
class  CEntityToken
 This class declares entity tokens, which always take the form . More...
class  CWhitespaceToken
 Whitespace tokens are used where whitespace can be detected as distinct from text. More...
class  CTextToken
 Text tokens contain the normalized form of html text. More...
class  CCDATASectionToken
 CDATASection tokens contain raw unescaped text content delimited by a ![CDATA[ and ]]. More...
class  CMarkupDeclToken
 Declaration tokens contain raw unescaped text content (not really, but right now we use this only for view source). More...
class  CAttributeToken
 Attribute tokens are used to contain attribute key/value pairs whereever they may occur. More...
class  CNewlineToken
 Newline tokens contain, you guessed it, newlines. More...
class  CInstructionToken
 Whitespace tokens are used where whitespace can be detected as distinct from text. More...
class  CDoctypeDeclToken
 This token is generated by the HTML and Expat tokenizers when they see the doctype declaration ("<!DOCTYPE ... >") More...

Enumerations

enum  eHTMLTokenTypes {
  eToken_unknown = 0, eToken_start = 1, eToken_end, eToken_comment,
  eToken_entity, eToken_whitespace, eToken_newline, eToken_text,
  eToken_attribute, eToken_instruction, eToken_cdatasection, eToken_doctypeDecl,
  eToken_markupDecl, eToken_last
}
enum  eHTMLCategory {
  eHTMLCategory_unknown = 0, eHTMLCategory_inline, eHTMLCategory_block, eHTMLCategory_blockAndInline,
  eHTMLCategory_list, eHTMLCategory_table, eHTMLCategory_tablepart, eHTMLCategory_tablerow,
  eHTMLCategory_tabledata, eHTMLCategory_head, eHTMLCategory_html, eHTMLCategory_body,
  eHTMLCategory_form, eHTMLCategory_options, eHTMLCategory_frameset, eHTMLCategory_text
}

Functions

nsresult ConsumeQuotedString (PRUnichar aChar, nsString &aString, nsScanner &aScanner)
nsresult ConsumeAttributeText (PRUnichar aChar, nsString &aString, nsScanner &aScanner)
const PRUnicharGetTagName (PRInt32 aTag)
 gess4/25/98

Enumeration Type Documentation

Enumerator:
eHTMLCategory_unknown 
eHTMLCategory_inline 
eHTMLCategory_block 
eHTMLCategory_blockAndInline 
eHTMLCategory_list 
eHTMLCategory_table 
eHTMLCategory_tablepart 
eHTMLCategory_tablerow 
eHTMLCategory_tabledata 
eHTMLCategory_head 
eHTMLCategory_html 
eHTMLCategory_body 
eHTMLCategory_form 
eHTMLCategory_options 
eHTMLCategory_frameset 
eHTMLCategory_text 

Definition at line 79 of file nsHTMLTokens.h.

Enumerator:
eToken_unknown 
eToken_start 
eToken_end 
eToken_comment 
eToken_entity 
eToken_whitespace 
eToken_newline 
eToken_text 
eToken_attribute 
eToken_instruction 
eToken_cdatasection 
eToken_doctypeDecl 
eToken_markupDecl 
eToken_last 

Definition at line 71 of file nsHTMLTokens.h.


Function Documentation

nsresult ConsumeAttributeText ( PRUnichar  aChar,
nsString aString,
nsScanner aScanner 
)
nsresult ConsumeQuotedString ( PRUnichar  aChar,
nsString aString,
nsScanner aScanner 
)

Here is the caller graph for this function:

gess4/25/98

Parameters:
@return

Definition at line 2443 of file nsHTMLTokens.cpp.

{
  const PRUnichar *result = nsHTMLTags::GetStringValue((nsHTMLTag) aTag);

  if (result) {
    return result;
  }

  if(aTag >= eHTMLTag_userdefined)
    return sUserdefined;

  return 0;
}

Here is the call graph for this function:

Here is the caller graph for this function: