PageRenderTime 57ms CodeModel.GetById 34ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIDOMAttr.h

http://firefox-mac-pdf.googlecode.com/
C Header | 145 lines | 80 code | 32 blank | 33 comment | 0 complexity | e43c3433542d0b01d36d81e2ebb19b90 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/nsIDOMAttr.idl
  3. */
  4. #ifndef __gen_nsIDOMAttr_h__
  5. #define __gen_nsIDOMAttr_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: nsIDOMAttr */
  14. #define NS_IDOMATTR_IID_STR "a6cf9070-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMATTR_IID \
  16. {0xa6cf9070, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMAttr : public nsIDOMNode {
  19. public:
  20. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMATTR_IID)
  21. /**
  22. * The nsIDOMAttr interface represents an attribute in an "Element" object.
  23. * Typically the allowable values for the attribute are defined in a document
  24. * type definition.
  25. *
  26. * For more information on this interface please see
  27. * http://www.w3.org/TR/DOM-Level-2-Core/
  28. *
  29. * @status FROZEN
  30. */
  31. /* readonly attribute DOMString name; */
  32. NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;
  33. /* readonly attribute boolean specified; */
  34. NS_SCRIPTABLE NS_IMETHOD GetSpecified(PRBool *aSpecified) = 0;
  35. /* attribute DOMString value; */
  36. NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) = 0;
  37. NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) = 0;
  38. /* readonly attribute nsIDOMElement ownerElement; */
  39. NS_SCRIPTABLE NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) = 0;
  40. };
  41. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMAttr, NS_IDOMATTR_IID)
  42. /* Use this macro when declaring classes that implement this interface. */
  43. #define NS_DECL_NSIDOMATTR \
  44. NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
  45. NS_SCRIPTABLE NS_IMETHOD GetSpecified(PRBool *aSpecified); \
  46. NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue); \
  47. NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue); \
  48. NS_SCRIPTABLE NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement);
  49. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  50. #define NS_FORWARD_NSIDOMATTR(_to) \
  51. NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  52. NS_SCRIPTABLE NS_IMETHOD GetSpecified(PRBool *aSpecified) { return _to GetSpecified(aSpecified); } \
  53. NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
  54. NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); } \
  55. NS_SCRIPTABLE NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) { return _to GetOwnerElement(aOwnerElement); }
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  57. #define NS_FORWARD_SAFE_NSIDOMATTR(_to) \
  58. NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  59. NS_SCRIPTABLE NS_IMETHOD GetSpecified(PRBool *aSpecified) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSpecified(aSpecified); } \
  60. NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  61. NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
  62. NS_SCRIPTABLE NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerElement(aOwnerElement); }
  63. #if 0
  64. /* Use the code below as a template for the implementation class for this interface. */
  65. /* Header file */
  66. class nsDOMAttr : public nsIDOMAttr
  67. {
  68. public:
  69. NS_DECL_ISUPPORTS
  70. NS_DECL_NSIDOMATTR
  71. nsDOMAttr();
  72. private:
  73. ~nsDOMAttr();
  74. protected:
  75. /* additional members */
  76. };
  77. /* Implementation file */
  78. NS_IMPL_ISUPPORTS1(nsDOMAttr, nsIDOMAttr)
  79. nsDOMAttr::nsDOMAttr()
  80. {
  81. /* member initializers and constructor code */
  82. }
  83. nsDOMAttr::~nsDOMAttr()
  84. {
  85. /* destructor code */
  86. }
  87. /* readonly attribute DOMString name; */
  88. NS_IMETHODIMP nsDOMAttr::GetName(nsAString & aName)
  89. {
  90. return NS_ERROR_NOT_IMPLEMENTED;
  91. }
  92. /* readonly attribute boolean specified; */
  93. NS_IMETHODIMP nsDOMAttr::GetSpecified(PRBool *aSpecified)
  94. {
  95. return NS_ERROR_NOT_IMPLEMENTED;
  96. }
  97. /* attribute DOMString value; */
  98. NS_IMETHODIMP nsDOMAttr::GetValue(nsAString & aValue)
  99. {
  100. return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102. NS_IMETHODIMP nsDOMAttr::SetValue(const nsAString & aValue)
  103. {
  104. return NS_ERROR_NOT_IMPLEMENTED;
  105. }
  106. /* readonly attribute nsIDOMElement ownerElement; */
  107. NS_IMETHODIMP nsDOMAttr::GetOwnerElement(nsIDOMElement * *aOwnerElement)
  108. {
  109. return NS_ERROR_NOT_IMPLEMENTED;
  110. }
  111. /* End of implementation class template. */
  112. #endif
  113. #endif /* __gen_nsIDOMAttr_h__ */