Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Enumerations
nsIDTD.h File Reference
#include "nsISupports.h"
#include "nsString.h"
#include "prtypes.h"
#include "nsITokenizer.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsIDTD

Defines

#define NS_IDTD_IID   { 0xa6cf9053, 0x15b3, 0x11d2,{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32}}
 MODULE NOTES: gess 7/20/98.
#define NS_DECL_NSIDTD

Enumerations

enum  eAutoDetectResult { eUnknownDetect, eValidDetect, ePrimaryDetect, eInvalidDetect }
enum  nsDTDMode {
  eDTDMode_unknown = 0, eDTDMode_quirks, eDTDMode_almost_standards, eDTDMode_full_standards,
  eDTDMode_autodetect, eDTDMode_fragment
}

Define Documentation

Value:
NS_IMETHOD_(const nsIID&)  GetMostDerivedIID(void) const;\
    NS_IMETHOD CreateNewInstance(nsIDTD** aInstancePtrResult);\
    NS_IMETHOD_(eAutoDetectResult) CanParse(CParserContext& aParserContext);\
    NS_IMETHOD WillBuildModel(  const CParserContext& aParserContext, nsITokenizer* aTokenizer, nsIContentSink* aSink);\
    NS_IMETHOD DidBuildModel(nsresult anErrorCode,PRBool aNotifySink,nsIParser* aParser,nsIContentSink* aSink);\
    NS_IMETHOD BuildModel(nsIParser* aParser,nsITokenizer* aTokenizer,nsITokenObserver* anObserver,nsIContentSink* aSink);\
    NS_IMETHOD HandleToken(CToken* aToken,nsIParser* aParser);\
    NS_IMETHOD WillResumeParse(nsIContentSink* aSink = 0);\
    NS_IMETHOD WillInterruptParse(nsIContentSink* aSink = 0);\
    NS_IMETHOD_(PRBool) CanContain(PRInt32 aParent,PRInt32 aChild) const;\
    NS_IMETHOD_(PRBool) IsContainer(PRInt32 aTag) const;\
    NS_IMETHOD CollectSkippedContent(PRInt32 aTag, nsAString& aContent, PRInt32 &aLineNo);\
    NS_IMETHOD_(void)  Terminate();\
    NS_IMETHOD_(PRInt32) GetType();

Definition at line 207 of file nsIDTD.h.

#define NS_IDTD_IID   { 0xa6cf9053, 0x15b3, 0x11d2,{0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32}}

MODULE NOTES: gess 7/20/98.

This interface defines standard interface for DTD's. Note that this isn't HTML specific. DTD's have several functions within the parser system: 1) To coordinate the consumption of an input stream via the parser 2) To serve as proxy to represent the containment rules of the underlying document 3) To offer autodetection services to the parser (mainly for doc conversion)

Definition at line 61 of file nsIDTD.h.


Enumeration Type Documentation

Enumerator:
eUnknownDetect 
eValidDetect 
ePrimaryDetect 
eInvalidDetect 

Definition at line 64 of file nsIDTD.h.

enum nsDTDMode
Enumerator:
eDTDMode_unknown 
eDTDMode_quirks 
eDTDMode_almost_standards 
eDTDMode_full_standards 
eDTDMode_autodetect 
eDTDMode_fragment 

Definition at line 71 of file nsIDTD.h.