/gecko_api/include/nsIDOMDocumentType.h

http://firefox-mac-pdf.googlecode.com/ · C Header · 162 lines · 88 code · 36 blank · 38 comment · 0 complexity · 4919b1e5cf452a5766db2b3b43046dc9 MD5 · raw file

  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/dom/public/idl/core/nsIDOMDocumentType.idl
  3. */
  4. #ifndef __gen_nsIDOMDocumentType_h__
  5. #define __gen_nsIDOMDocumentType_h__
  6. #ifndef __gen_nsIDOMNode_h__
  7. #include "nsIDOMNode.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: nsIDOMDocumentType */
  14. #define NS_IDOMDOCUMENTTYPE_IID_STR "a6cf9077-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMDOCUMENTTYPE_IID \
  16. {0xa6cf9077, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMDocumentType : public nsIDOMNode {
  19. public:
  20. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDOCUMENTTYPE_IID)
  21. /**
  22. * Each Document has a doctype attribute whose value is either null
  23. * or a DocumentType object.
  24. * The nsIDOMDocumentType interface in the DOM Core provides an
  25. * interface to the list of entities that are defined for the document.
  26. *
  27. * For more information on this interface please see
  28. * http://www.w3.org/TR/DOM-Level-2-Core/
  29. *
  30. * @status FROZEN
  31. */
  32. /* readonly attribute DOMString name; */
  33. NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;
  34. /* readonly attribute nsIDOMNamedNodeMap entities; */
  35. NS_SCRIPTABLE NS_IMETHOD GetEntities(nsIDOMNamedNodeMap * *aEntities) = 0;
  36. /* readonly attribute nsIDOMNamedNodeMap notations; */
  37. NS_SCRIPTABLE NS_IMETHOD GetNotations(nsIDOMNamedNodeMap * *aNotations) = 0;
  38. /* readonly attribute DOMString publicId; */
  39. NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId) = 0;
  40. /* readonly attribute DOMString systemId; */
  41. NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId) = 0;
  42. /* readonly attribute DOMString internalSubset; */
  43. NS_SCRIPTABLE NS_IMETHOD GetInternalSubset(nsAString & aInternalSubset) = 0;
  44. };
  45. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDocumentType, NS_IDOMDOCUMENTTYPE_IID)
  46. /* Use this macro when declaring classes that implement this interface. */
  47. #define NS_DECL_NSIDOMDOCUMENTTYPE \
  48. NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
  49. NS_SCRIPTABLE NS_IMETHOD GetEntities(nsIDOMNamedNodeMap * *aEntities); \
  50. NS_SCRIPTABLE NS_IMETHOD GetNotations(nsIDOMNamedNodeMap * *aNotations); \
  51. NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId); \
  52. NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId); \
  53. NS_SCRIPTABLE NS_IMETHOD GetInternalSubset(nsAString & aInternalSubset);
  54. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  55. #define NS_FORWARD_NSIDOMDOCUMENTTYPE(_to) \
  56. NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  57. NS_SCRIPTABLE NS_IMETHOD GetEntities(nsIDOMNamedNodeMap * *aEntities) { return _to GetEntities(aEntities); } \
  58. NS_SCRIPTABLE NS_IMETHOD GetNotations(nsIDOMNamedNodeMap * *aNotations) { return _to GetNotations(aNotations); } \
  59. NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId) { return _to GetPublicId(aPublicId); } \
  60. NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId) { return _to GetSystemId(aSystemId); } \
  61. NS_SCRIPTABLE NS_IMETHOD GetInternalSubset(nsAString & aInternalSubset) { return _to GetInternalSubset(aInternalSubset); }
  62. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  63. #define NS_FORWARD_SAFE_NSIDOMDOCUMENTTYPE(_to) \
  64. NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  65. NS_SCRIPTABLE NS_IMETHOD GetEntities(nsIDOMNamedNodeMap * *aEntities) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntities(aEntities); } \
  66. NS_SCRIPTABLE NS_IMETHOD GetNotations(nsIDOMNamedNodeMap * *aNotations) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotations(aNotations); } \
  67. NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPublicId(aPublicId); } \
  68. NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSystemId(aSystemId); } \
  69. NS_SCRIPTABLE NS_IMETHOD GetInternalSubset(nsAString & aInternalSubset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetInternalSubset(aInternalSubset); }
  70. #if 0
  71. /* Use the code below as a template for the implementation class for this interface. */
  72. /* Header file */
  73. class nsDOMDocumentType : public nsIDOMDocumentType
  74. {
  75. public:
  76. NS_DECL_ISUPPORTS
  77. NS_DECL_NSIDOMDOCUMENTTYPE
  78. nsDOMDocumentType();
  79. private:
  80. ~nsDOMDocumentType();
  81. protected:
  82. /* additional members */
  83. };
  84. /* Implementation file */
  85. NS_IMPL_ISUPPORTS1(nsDOMDocumentType, nsIDOMDocumentType)
  86. nsDOMDocumentType::nsDOMDocumentType()
  87. {
  88. /* member initializers and constructor code */
  89. }
  90. nsDOMDocumentType::~nsDOMDocumentType()
  91. {
  92. /* destructor code */
  93. }
  94. /* readonly attribute DOMString name; */
  95. NS_IMETHODIMP nsDOMDocumentType::GetName(nsAString & aName)
  96. {
  97. return NS_ERROR_NOT_IMPLEMENTED;
  98. }
  99. /* readonly attribute nsIDOMNamedNodeMap entities; */
  100. NS_IMETHODIMP nsDOMDocumentType::GetEntities(nsIDOMNamedNodeMap * *aEntities)
  101. {
  102. return NS_ERROR_NOT_IMPLEMENTED;
  103. }
  104. /* readonly attribute nsIDOMNamedNodeMap notations; */
  105. NS_IMETHODIMP nsDOMDocumentType::GetNotations(nsIDOMNamedNodeMap * *aNotations)
  106. {
  107. return NS_ERROR_NOT_IMPLEMENTED;
  108. }
  109. /* readonly attribute DOMString publicId; */
  110. NS_IMETHODIMP nsDOMDocumentType::GetPublicId(nsAString & aPublicId)
  111. {
  112. return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114. /* readonly attribute DOMString systemId; */
  115. NS_IMETHODIMP nsDOMDocumentType::GetSystemId(nsAString & aSystemId)
  116. {
  117. return NS_ERROR_NOT_IMPLEMENTED;
  118. }
  119. /* readonly attribute DOMString internalSubset; */
  120. NS_IMETHODIMP nsDOMDocumentType::GetInternalSubset(nsAString & aInternalSubset)
  121. {
  122. return NS_ERROR_NOT_IMPLEMENTED;
  123. }
  124. /* End of implementation class template. */
  125. #endif
  126. #endif /* __gen_nsIDOMDocumentType_h__ */