PageRenderTime 47ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/mozilla/mozilla/dist/include/htmlparser/nsIExtendedExpatSink.h

http://kmbrasil.codeplex.com
C++ Header | 180 lines | 79 code | 33 blank | 68 comment | 0 complexity | a73b151d35b8450ab05bf4feb574c9f0 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, GPL-2.0
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM h:/projects/mozilla/mozilla/parser/htmlparser/public/nsIExtendedExpatSink.idl
  3. */
  4. #ifndef __gen_nsIExtendedExpatSink_h__
  5. #define __gen_nsIExtendedExpatSink_h__
  6. #ifndef __gen_nsIExpatSink_h__
  7. #include "nsIExpatSink.h"
  8. #endif
  9. /* For IDL files that don't want to include root IDL files. */
  10. #ifndef NS_NO_VTABLE
  11. #define NS_NO_VTABLE
  12. #endif
  13. /* starting interface: nsIExtendedExpatSink */
  14. #define NS_IEXTENDEDEXPATSINK_IID_STR "0c2dc80f-7aa4-467a-9454-b89dba0e0779"
  15. #define NS_IEXTENDEDEXPATSINK_IID \
  16. {0x0c2dc80f, 0x7aa4, 0x467a, \
  17. { 0x94, 0x54, 0xb8, 0x9d, 0xba, 0x0e, 0x07, 0x79 }}
  18. /**
  19. * This interface provides notification of syntax-level events.
  20. */
  21. class NS_NO_VTABLE nsIExtendedExpatSink : public nsIExpatSink {
  22. public:
  23. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IEXTENDEDEXPATSINK_IID)
  24. /**
  25. * Called at the beginning of the DTD, before any entity or notation
  26. * events.
  27. * @param aDoctypeName The document type name.
  28. * @param aSysid The declared system identifier for the external DTD subset,
  29. * or null if none was declared.
  30. * @param aPubid The declared public identifier for the external DTD subset,
  31. * or null if none was declared.
  32. */
  33. /* void handleStartDTD (in wstring aDoctypeName, in wstring aSysid, in wstring aPubid); */
  34. NS_IMETHOD HandleStartDTD(const PRUnichar *aDoctypeName, const PRUnichar *aSysid, const PRUnichar *aPubid) = 0;
  35. /**
  36. * Called when a prefix mapping starts to be in-scope, before any
  37. * startElement events.
  38. * @param aPrefix The Namespace prefix being declared. An empty string
  39. * is used for the default element namespace, which has
  40. * no prefix.
  41. * @param aUri The Namespace URI the prefix is mapped to.
  42. */
  43. /* void handleStartNamespaceDecl (in wstring aPrefix, in wstring aUri); */
  44. NS_IMETHOD HandleStartNamespaceDecl(const PRUnichar *aPrefix, const PRUnichar *aUri) = 0;
  45. /**
  46. * Called when a prefix mapping is no longer in-scope, after any
  47. * endElement events.
  48. * @param aPrefix The prefix that was being mapped. This is the empty string
  49. * when a default mapping scope ends.
  50. */
  51. /* void handleEndNamespaceDecl (in wstring aPrefix); */
  52. NS_IMETHOD HandleEndNamespaceDecl(const PRUnichar *aPrefix) = 0;
  53. /**
  54. * This is called for a declaration of notation. The base argument is
  55. * whatever was set by XML_SetBase. aNotationName will never be
  56. * null. The other arguments can be.
  57. * @param aNotationName The notation name.
  58. * @param aSysId The notation's system identifier, or null if none was given.
  59. * @param aPubId The notation's pubilc identifier, or null if none was given.
  60. */
  61. /* void handleNotationDecl (in wstring aNotationName, in wstring aSysid, in wstring aPubid); */
  62. NS_IMETHOD HandleNotationDecl(const PRUnichar *aNotationName, const PRUnichar *aSysid, const PRUnichar *aPubid) = 0;
  63. /**
  64. * This is called for a declaration of an unparsed (NDATA) entity.
  65. * aName, aSysid and aNotationName arguments will never be
  66. * null. The other arguments may be.
  67. * @param aName The unparsed entity's name.
  68. * @param aSysId The notation's system identifier.
  69. * @param aPubId The notation's pubilc identifier, or null if none was given.
  70. * @param aNotationName The name of the associated notation.
  71. */
  72. /* void handleUnparsedEntityDecl (in wstring aName, in wstring aSysid, in wstring aPubid, in wstring aNotationName); */
  73. NS_IMETHOD HandleUnparsedEntityDecl(const PRUnichar *aName, const PRUnichar *aSysid, const PRUnichar *aPubid, const PRUnichar *aNotationName) = 0;
  74. };
  75. /* Use this macro when declaring classes that implement this interface. */
  76. #define NS_DECL_NSIEXTENDEDEXPATSINK \
  77. NS_IMETHOD HandleStartDTD(const PRUnichar *aDoctypeName, const PRUnichar *aSysid, const PRUnichar *aPubid); \
  78. NS_IMETHOD HandleStartNamespaceDecl(const PRUnichar *aPrefix, const PRUnichar *aUri); \
  79. NS_IMETHOD HandleEndNamespaceDecl(const PRUnichar *aPrefix); \
  80. NS_IMETHOD HandleNotationDecl(const PRUnichar *aNotationName, const PRUnichar *aSysid, const PRUnichar *aPubid); \
  81. NS_IMETHOD HandleUnparsedEntityDecl(const PRUnichar *aName, const PRUnichar *aSysid, const PRUnichar *aPubid, const PRUnichar *aNotationName);
  82. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  83. #define NS_FORWARD_NSIEXTENDEDEXPATSINK(_to) \
  84. NS_IMETHOD HandleStartDTD(const PRUnichar *aDoctypeName, const PRUnichar *aSysid, const PRUnichar *aPubid) { return _to HandleStartDTD(aDoctypeName, aSysid, aPubid); } \
  85. NS_IMETHOD HandleStartNamespaceDecl(const PRUnichar *aPrefix, const PRUnichar *aUri) { return _to HandleStartNamespaceDecl(aPrefix, aUri); } \
  86. NS_IMETHOD HandleEndNamespaceDecl(const PRUnichar *aPrefix) { return _to HandleEndNamespaceDecl(aPrefix); } \
  87. NS_IMETHOD HandleNotationDecl(const PRUnichar *aNotationName, const PRUnichar *aSysid, const PRUnichar *aPubid) { return _to HandleNotationDecl(aNotationName, aSysid, aPubid); } \
  88. NS_IMETHOD HandleUnparsedEntityDecl(const PRUnichar *aName, const PRUnichar *aSysid, const PRUnichar *aPubid, const PRUnichar *aNotationName) { return _to HandleUnparsedEntityDecl(aName, aSysid, aPubid, aNotationName); }
  89. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  90. #define NS_FORWARD_SAFE_NSIEXTENDEDEXPATSINK(_to) \
  91. NS_IMETHOD HandleStartDTD(const PRUnichar *aDoctypeName, const PRUnichar *aSysid, const PRUnichar *aPubid) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleStartDTD(aDoctypeName, aSysid, aPubid); } \
  92. NS_IMETHOD HandleStartNamespaceDecl(const PRUnichar *aPrefix, const PRUnichar *aUri) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleStartNamespaceDecl(aPrefix, aUri); } \
  93. NS_IMETHOD HandleEndNamespaceDecl(const PRUnichar *aPrefix) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleEndNamespaceDecl(aPrefix); } \
  94. NS_IMETHOD HandleNotationDecl(const PRUnichar *aNotationName, const PRUnichar *aSysid, const PRUnichar *aPubid) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleNotationDecl(aNotationName, aSysid, aPubid); } \
  95. NS_IMETHOD HandleUnparsedEntityDecl(const PRUnichar *aName, const PRUnichar *aSysid, const PRUnichar *aPubid, const PRUnichar *aNotationName) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleUnparsedEntityDecl(aName, aSysid, aPubid, aNotationName); }
  96. #if 0
  97. /* Use the code below as a template for the implementation class for this interface. */
  98. /* Header file */
  99. class nsExtendedExpatSink : public nsIExtendedExpatSink
  100. {
  101. public:
  102. NS_DECL_ISUPPORTS
  103. NS_DECL_NSIEXTENDEDEXPATSINK
  104. nsExtendedExpatSink();
  105. private:
  106. ~nsExtendedExpatSink();
  107. protected:
  108. /* additional members */
  109. };
  110. /* Implementation file */
  111. NS_IMPL_ISUPPORTS1(nsExtendedExpatSink, nsIExtendedExpatSink)
  112. nsExtendedExpatSink::nsExtendedExpatSink()
  113. {
  114. /* member initializers and constructor code */
  115. }
  116. nsExtendedExpatSink::~nsExtendedExpatSink()
  117. {
  118. /* destructor code */
  119. }
  120. /* void handleStartDTD (in wstring aDoctypeName, in wstring aSysid, in wstring aPubid); */
  121. NS_IMETHODIMP nsExtendedExpatSink::HandleStartDTD(const PRUnichar *aDoctypeName, const PRUnichar *aSysid, const PRUnichar *aPubid)
  122. {
  123. return NS_ERROR_NOT_IMPLEMENTED;
  124. }
  125. /* void handleStartNamespaceDecl (in wstring aPrefix, in wstring aUri); */
  126. NS_IMETHODIMP nsExtendedExpatSink::HandleStartNamespaceDecl(const PRUnichar *aPrefix, const PRUnichar *aUri)
  127. {
  128. return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130. /* void handleEndNamespaceDecl (in wstring aPrefix); */
  131. NS_IMETHODIMP nsExtendedExpatSink::HandleEndNamespaceDecl(const PRUnichar *aPrefix)
  132. {
  133. return NS_ERROR_NOT_IMPLEMENTED;
  134. }
  135. /* void handleNotationDecl (in wstring aNotationName, in wstring aSysid, in wstring aPubid); */
  136. NS_IMETHODIMP nsExtendedExpatSink::HandleNotationDecl(const PRUnichar *aNotationName, const PRUnichar *aSysid, const PRUnichar *aPubid)
  137. {
  138. return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140. /* void handleUnparsedEntityDecl (in wstring aName, in wstring aSysid, in wstring aPubid, in wstring aNotationName); */
  141. NS_IMETHODIMP nsExtendedExpatSink::HandleUnparsedEntityDecl(const PRUnichar *aName, const PRUnichar *aSysid, const PRUnichar *aPubid, const PRUnichar *aNotationName)
  142. {
  143. return NS_ERROR_NOT_IMPLEMENTED;
  144. }
  145. /* End of implementation class template. */
  146. #endif
  147. #endif /* __gen_nsIExtendedExpatSink_h__ */