PageRenderTime 40ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIDOMEntity.h

http://firefox-mac-pdf.googlecode.com/
C Header | 124 lines | 64 code | 30 blank | 30 comment | 0 complexity | 49577ba972060d02e4600d2aa097b3ee 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/nsIDOMEntity.idl
  3. */
  4. #ifndef __gen_nsIDOMEntity_h__
  5. #define __gen_nsIDOMEntity_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: nsIDOMEntity */
  14. #define NS_IDOMENTITY_IID_STR "a6cf9079-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMENTITY_IID \
  16. {0xa6cf9079, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMEntity : public nsIDOMNode {
  19. public:
  20. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMENTITY_IID)
  21. /**
  22. * The nsIDOMEntity interface represents an entity, either parsed
  23. * or unparsed, in an XML document.
  24. *
  25. * For more information on this interface please see
  26. * http://www.w3.org/TR/DOM-Level-2-Core/
  27. *
  28. * @status FROZEN
  29. */
  30. /* readonly attribute DOMString publicId; */
  31. NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId) = 0;
  32. /* readonly attribute DOMString systemId; */
  33. NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId) = 0;
  34. /* readonly attribute DOMString notationName; */
  35. NS_SCRIPTABLE NS_IMETHOD GetNotationName(nsAString & aNotationName) = 0;
  36. };
  37. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMEntity, NS_IDOMENTITY_IID)
  38. /* Use this macro when declaring classes that implement this interface. */
  39. #define NS_DECL_NSIDOMENTITY \
  40. NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId); \
  41. NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId); \
  42. NS_SCRIPTABLE NS_IMETHOD GetNotationName(nsAString & aNotationName);
  43. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  44. #define NS_FORWARD_NSIDOMENTITY(_to) \
  45. NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId) { return _to GetPublicId(aPublicId); } \
  46. NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId) { return _to GetSystemId(aSystemId); } \
  47. NS_SCRIPTABLE NS_IMETHOD GetNotationName(nsAString & aNotationName) { return _to GetNotationName(aNotationName); }
  48. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  49. #define NS_FORWARD_SAFE_NSIDOMENTITY(_to) \
  50. NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPublicId(aPublicId); } \
  51. NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSystemId(aSystemId); } \
  52. NS_SCRIPTABLE NS_IMETHOD GetNotationName(nsAString & aNotationName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotationName(aNotationName); }
  53. #if 0
  54. /* Use the code below as a template for the implementation class for this interface. */
  55. /* Header file */
  56. class nsDOMEntity : public nsIDOMEntity
  57. {
  58. public:
  59. NS_DECL_ISUPPORTS
  60. NS_DECL_NSIDOMENTITY
  61. nsDOMEntity();
  62. private:
  63. ~nsDOMEntity();
  64. protected:
  65. /* additional members */
  66. };
  67. /* Implementation file */
  68. NS_IMPL_ISUPPORTS1(nsDOMEntity, nsIDOMEntity)
  69. nsDOMEntity::nsDOMEntity()
  70. {
  71. /* member initializers and constructor code */
  72. }
  73. nsDOMEntity::~nsDOMEntity()
  74. {
  75. /* destructor code */
  76. }
  77. /* readonly attribute DOMString publicId; */
  78. NS_IMETHODIMP nsDOMEntity::GetPublicId(nsAString & aPublicId)
  79. {
  80. return NS_ERROR_NOT_IMPLEMENTED;
  81. }
  82. /* readonly attribute DOMString systemId; */
  83. NS_IMETHODIMP nsDOMEntity::GetSystemId(nsAString & aSystemId)
  84. {
  85. return NS_ERROR_NOT_IMPLEMENTED;
  86. }
  87. /* readonly attribute DOMString notationName; */
  88. NS_IMETHODIMP nsDOMEntity::GetNotationName(nsAString & aNotationName)
  89. {
  90. return NS_ERROR_NOT_IMPLEMENTED;
  91. }
  92. /* End of implementation class template. */
  93. #endif
  94. #endif /* __gen_nsIDOMEntity_h__ */