Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Enumerations | Variables
nsIParser.h File Reference
#include "nsISupports.h"
#include "nsIStreamListener.h"
#include "nsIDTD.h"
#include "nsIInputStream.h"
#include "nsHashtable.h"
#include "nsVoidArray.h"
#include "prtypes.h"
#include "nsError.h"

Go to the source code of this file.

Classes

class  nsIDebugDumpContent
 FOR DEBUG PURPOSE ONLY. More...
class  nsIParser
 This class defines the iparser interface. More...

Defines

#define NS_IPARSER_IID
 MODULE NOTES: gess 4/1/98.
#define NS_IDEBUG_DUMP_CONTENT_IID
#define kCharsetUninitialized   0
#define kCharsetFromWeakDocTypeDefault   1
#define kCharsetFromUserDefault   2
#define kCharsetFromDocTypeDefault   3
#define kCharsetFromCache   4
#define kCharsetFromParentFrame   5
#define kCharsetFromBookmarks   6
#define kCharsetFromAutoDetection   7
#define kCharsetFromHintPrevDoc   8
#define kCharsetFromMetaTag   9
#define kCharsetFromByteOrderMark   10
#define kCharsetFromChannel   11
#define kCharsetFromOtherComponent   12
#define kCharsetFromParentForced   13
#define kCharsetFromUserForced   14
#define kCharsetFromPreviousLoading   15
#define NS_ERROR_HTMLPARSER_EOF   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1000)
#define NS_ERROR_HTMLPARSER_UNKNOWN   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1001)
#define NS_ERROR_HTMLPARSER_CANTPROPAGATE   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1002)
#define NS_ERROR_HTMLPARSER_CONTEXTMISMATCH   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1003)
#define NS_ERROR_HTMLPARSER_BADFILENAME   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1004)
#define NS_ERROR_HTMLPARSER_BADURL   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1005)
#define NS_ERROR_HTMLPARSER_INVALIDPARSERCONTEXT   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1006)
#define NS_ERROR_HTMLPARSER_INTERRUPTED   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1007)
#define NS_ERROR_HTMLPARSER_BLOCK   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1008)
#define NS_ERROR_HTMLPARSER_BADTOKENIZER   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1009)
#define NS_ERROR_HTMLPARSER_BADATTRIBUTE   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1010)
#define NS_ERROR_HTMLPARSER_UNRESOLVEDDTD   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1011)
#define NS_ERROR_HTMLPARSER_MISPLACEDTABLECONTENT   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1012)
#define NS_ERROR_HTMLPARSER_BADDTD   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1013)
#define NS_ERROR_HTMLPARSER_BADCONTEXT   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1014)
#define NS_ERROR_HTMLPARSER_STOPPARSING   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1015)
#define NS_ERROR_HTMLPARSER_UNTERMINATEDSTRINGLITERAL   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1016)
#define NS_ERROR_HTMLPARSER_HIERARCHYTOODEEP   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1017)
#define NS_ERROR_HTMLPARSER_FAKE_ENDTAG   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1018)
#define NS_ERROR_HTMLPARSER_INVALID_COMMENT   NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_HTMLPARSER,1019)
#define NS_ERROR_HTMLPARSER_CONTINUE   NS_OK
#define kHTMLTextContentType   "text/html"
#define kXMLTextContentType   "text/xml"
#define kXMLApplicationContentType   "application/xml"
#define kXHTMLApplicationContentType   "application/xhtml+xml"
#define kXULTextContentType   "application/vnd.mozilla.xul+xml"
#define kRDFTextContentType   "text/rdf"
#define kRDFApplicationContentType   "application/rdf+xml"
#define kXIFTextContentType   "text/xif"
#define kPlainTextContentType   "text/plain"
#define kViewSourceCommand   "view-source"
#define kViewFragmentCommand   "view-fragment"
#define kTextCSSContentType   "text/css"
#define kApplicationJSContentType   "application/javascript"
#define kApplicationXJSContentType   "application/x-javascript"
#define kTextECMAScriptContentType   "text/ecmascript"
#define kApplicationECMAScriptContentType   "application/ecmascript"
#define kTextJSContentType   "text/javascript"
#define kSGMLTextContentType   "text/sgml"
#define kSVGTextContentType   "image/svg+xml"
#define NS_IPARSER_FLAG_UNKNOWN_MODE   0x00000000
#define NS_IPARSER_FLAG_QUIRKS_MODE   0x00000002
#define NS_IPARSER_FLAG_STRICT_MODE   0x00000004
#define NS_IPARSER_FLAG_AUTO_DETECT_MODE   0x00000010
#define NS_IPARSER_FLAG_VIEW_NORMAL   0x00000020
#define NS_IPARSER_FLAG_VIEW_SOURCE   0x00000040
#define NS_IPARSER_FLAG_VIEW_ERRORS   0x00000080
#define NS_IPARSER_FLAG_PLAIN_TEXT   0x00000100
#define NS_IPARSER_FLAG_XML   0x00000200
#define NS_IPARSER_FLAG_HTML   0x00000400
#define NS_IPARSER_FLAG_SCRIPT_ENABLED   0x00000800
#define NS_IPARSER_FLAG_FRAMES_ENABLED   0x00001000

Enumerations

enum  eParserCommands { eViewNormal, eViewSource, eViewFragment, eViewErrors }
enum  eCRCQuality { eCRCGood = 0, eCRCFair, eCRCPoor }
enum  eParserDocType {
  ePlainText = 0, eXML, eHTML_Quirks, eHTML3_Quirks,
  eHTML_Strict
}
enum  eStreamState { eNone, eOnStart, eOnDataAvail, eOnStop }

Variables

const PRUint32 kEOF = NS_ERROR_HTMLPARSER_EOF
const PRUint32 kUnknownError = NS_ERROR_HTMLPARSER_UNKNOWN
const PRUint32 kCantPropagate = NS_ERROR_HTMLPARSER_CANTPROPAGATE
const PRUint32 kContextMismatch = NS_ERROR_HTMLPARSER_CONTEXTMISMATCH
const PRUint32 kBadFilename = NS_ERROR_HTMLPARSER_BADFILENAME
const PRUint32 kBadURL = NS_ERROR_HTMLPARSER_BADURL
const PRUint32 kInvalidParserContext = NS_ERROR_HTMLPARSER_INVALIDPARSERCONTEXT
const PRUint32 kBlocked = NS_ERROR_HTMLPARSER_BLOCK
const PRUint32 kBadStringLiteral = NS_ERROR_HTMLPARSER_UNTERMINATEDSTRINGLITERAL
const PRUint32 kHierarchyTooDeep = NS_ERROR_HTMLPARSER_HIERARCHYTOODEEP
const PRUint32 kFakeEndTag = NS_ERROR_HTMLPARSER_FAKE_ENDTAG
const PRUint32 kNotAComment = NS_ERROR_HTMLPARSER_INVALID_COMMENT
const PRUnichar kNewLine = '\n'
const PRUnichar kCR = '\r'
const PRUnichar kLF = '\n'
const PRUnichar kTab = '\t'
const PRUnichar kSpace = ' '
const PRUnichar kQuote = '"'
const PRUnichar kApostrophe = '\''
const PRUnichar kLessThan = '<'
const PRUnichar kGreaterThan = '>'
const PRUnichar kAmpersand = '&'
const PRUnichar kForwardSlash = '/'
const PRUnichar kBackSlash = '\\'
const PRUnichar kEqual = '='
const PRUnichar kMinus = '-'
const PRUnichar kPlus = '+'
const PRUnichar kExclamation = '!'
const PRUnichar kSemicolon = ';'
const PRUnichar kHashsign = '#'
const PRUnichar kAsterisk = '*'
const PRUnichar kUnderbar = '_'
const PRUnichar kComma = ','
const PRUnichar kLeftParen = '('
const PRUnichar kRightParen = ')'
const PRUnichar kLeftBrace = '{'
const PRUnichar kRightBrace = '}'
const PRUnichar kQuestionMark = '?'
const PRUnichar kLeftSquareBracket = '['
const PRUnichar kRightSquareBracket = ']'
const PRUnichar kNullCh = '\0'

Define Documentation

#define kApplicationECMAScriptContentType   "application/ecmascript"

Definition at line 403 of file nsIParser.h.

Definition at line 400 of file nsIParser.h.

Definition at line 401 of file nsIParser.h.

Definition at line 106 of file nsIParser.h.

Definition at line 105 of file nsIParser.h.

Definition at line 109 of file nsIParser.h.

Definition at line 103 of file nsIParser.h.

Definition at line 110 of file nsIParser.h.

Definition at line 102 of file nsIParser.h.

Definition at line 107 of file nsIParser.h.

Definition at line 108 of file nsIParser.h.

Definition at line 111 of file nsIParser.h.

Definition at line 113 of file nsIParser.h.

Definition at line 104 of file nsIParser.h.

Definition at line 115 of file nsIParser.h.

Definition at line 101 of file nsIParser.h.

Definition at line 114 of file nsIParser.h.

Definition at line 100 of file nsIParser.h.

Definition at line 99 of file nsIParser.h.

#define kHTMLTextContentType   "text/html"

Definition at line 388 of file nsIParser.h.

#define kPlainTextContentType   "text/plain"

Definition at line 396 of file nsIParser.h.

#define kRDFApplicationContentType   "application/rdf+xml"

Definition at line 394 of file nsIParser.h.

#define kRDFTextContentType   "text/rdf"

Definition at line 393 of file nsIParser.h.

#define kSGMLTextContentType   "text/sgml"

Definition at line 405 of file nsIParser.h.

#define kSVGTextContentType   "image/svg+xml"

Definition at line 406 of file nsIParser.h.

#define kTextCSSContentType   "text/css"

Definition at line 399 of file nsIParser.h.

#define kTextECMAScriptContentType   "text/ecmascript"

Definition at line 402 of file nsIParser.h.

Definition at line 404 of file nsIParser.h.

#define kViewFragmentCommand   "view-fragment"

Definition at line 398 of file nsIParser.h.

Definition at line 397 of file nsIParser.h.

Definition at line 391 of file nsIParser.h.

#define kXIFTextContentType   "text/xif"

Definition at line 395 of file nsIParser.h.

#define kXMLApplicationContentType   "application/xml"

Definition at line 390 of file nsIParser.h.

Definition at line 389 of file nsIParser.h.

Definition at line 392 of file nsIParser.h.

Definition at line 329 of file nsIParser.h.

Definition at line 333 of file nsIParser.h.

Definition at line 332 of file nsIParser.h.

Definition at line 323 of file nsIParser.h.

Definition at line 328 of file nsIParser.h.

Definition at line 324 of file nsIParser.h.

Definition at line 327 of file nsIParser.h.

Definition at line 321 of file nsIParser.h.

Definition at line 322 of file nsIParser.h.

Definition at line 340 of file nsIParser.h.

Definition at line 319 of file nsIParser.h.

Definition at line 337 of file nsIParser.h.

Definition at line 336 of file nsIParser.h.

Definition at line 326 of file nsIParser.h.

Definition at line 338 of file nsIParser.h.

Definition at line 325 of file nsIParser.h.

Definition at line 331 of file nsIParser.h.

Definition at line 334 of file nsIParser.h.

Definition at line 320 of file nsIParser.h.

Definition at line 330 of file nsIParser.h.

Definition at line 335 of file nsIParser.h.

Value:
{ 0x41421c60, 0x310a, 0x11d4, \
{ 0x81, 0x6f, 0x0, 0x0, 0x64, 0x65, 0x73, 0x74 } }

Definition at line 63 of file nsIParser.h.

Definition at line 411 of file nsIParser.h.

Definition at line 419 of file nsIParser.h.

#define NS_IPARSER_FLAG_HTML   0x00000400

Definition at line 417 of file nsIParser.h.

Definition at line 415 of file nsIParser.h.

Definition at line 409 of file nsIParser.h.

Definition at line 418 of file nsIParser.h.

Definition at line 410 of file nsIParser.h.

Definition at line 408 of file nsIParser.h.

Definition at line 414 of file nsIParser.h.

Definition at line 412 of file nsIParser.h.

Definition at line 413 of file nsIParser.h.

#define NS_IPARSER_FLAG_XML   0x00000200

Definition at line 416 of file nsIParser.h.

Value:
{ 0x22039d29, 0x2798, 0x4412, \
{ 0x9e, 0xa6, 0xa1, 0x1b, 0x41, 0xba, 0x27, 0xd0 } }

MODULE NOTES: gess 4/1/98.

This class defines the iparser interface. This XPCOM inteface is all that parser clients ever need to see.

Definition at line 58 of file nsIParser.h.


Enumeration Type Documentation

Enumerator:
eCRCGood 
eCRCFair 
eCRCPoor 

Definition at line 81 of file nsIParser.h.

Enumerator:
eViewNormal 
eViewSource 
eViewFragment 
eViewErrors 

Definition at line 74 of file nsIParser.h.

Enumerator:
ePlainText 
eXML 
eHTML_Quirks 
eHTML3_Quirks 
eHTML_Strict 

Definition at line 88 of file nsIParser.h.

                    {
  ePlainText = 0,
  eXML,
  eHTML_Quirks,
  eHTML3_Quirks, // separate, for editor output, since HTML pre-4.0 lacks tbody
  eHTML_Strict
};
Enumerator:
eNone 
eOnStart 
eOnDataAvail 
eOnStop 

Definition at line 117 of file nsIParser.h.


Variable Documentation

Definition at line 365 of file nsIParser.h.

Definition at line 362 of file nsIParser.h.

Definition at line 374 of file nsIParser.h.

Definition at line 367 of file nsIParser.h.

Definition at line 347 of file nsIParser.h.

Definition at line 351 of file nsIParser.h.

Definition at line 348 of file nsIParser.h.

Definition at line 350 of file nsIParser.h.

Definition at line 345 of file nsIParser.h.

Definition at line 376 of file nsIParser.h.

Definition at line 346 of file nsIParser.h.

Definition at line 357 of file nsIParser.h.

Definition at line 343 of file nsIParser.h.

Definition at line 368 of file nsIParser.h.

Definition at line 371 of file nsIParser.h.

Definition at line 353 of file nsIParser.h.

Definition at line 366 of file nsIParser.h.

Definition at line 364 of file nsIParser.h.

Definition at line 373 of file nsIParser.h.

Definition at line 352 of file nsIParser.h.

Definition at line 349 of file nsIParser.h.

Definition at line 379 of file nsIParser.h.

Definition at line 377 of file nsIParser.h.

Definition at line 382 of file nsIParser.h.

Definition at line 363 of file nsIParser.h.

Definition at line 358 of file nsIParser.h.

Definition at line 369 of file nsIParser.h.

Definition at line 356 of file nsIParser.h.

Definition at line 354 of file nsIParser.h.

Definition at line 384 of file nsIParser.h.

Definition at line 370 of file nsIParser.h.

Definition at line 381 of file nsIParser.h.

Definition at line 361 of file nsIParser.h.

Definition at line 380 of file nsIParser.h.

Definition at line 378 of file nsIParser.h.

Definition at line 383 of file nsIParser.h.

Definition at line 372 of file nsIParser.h.

Definition at line 360 of file nsIParser.h.

Definition at line 359 of file nsIParser.h.

Definition at line 375 of file nsIParser.h.

Definition at line 344 of file nsIParser.h.