nsIDOMHTMLElement.h 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLElement_h__
  5. #define __gen_nsIDOMHTMLElement_h__
  6. #ifndef __gen_nsIDOMElement_h__
  7. #include "nsIDOMElement.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: nsIDOMHTMLElement */
  14. #define NS_IDOMHTMLELEMENT_IID_STR "a6cf9085-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLELEMENT_IID \
  16. {0xa6cf9085, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE nsIDOMHTMLElement : public nsIDOMElement {
  19. public:
  20. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLELEMENT_IID)
  21. /**
  22. * The nsIDOMHTMLElement interface is the primary [X]HTML element
  23. * interface. It represents a single [X]HTML element in the document
  24. * tree.
  25. *
  26. * For more information on this interface please see
  27. * http://www.w3.org/TR/DOM-Level-2-HTML/
  28. *
  29. * @status FROZEN
  30. */
  31. /* attribute DOMString id; */
  32. NS_IMETHOD GetId(nsAString & aId) = 0;
  33. NS_IMETHOD SetId(const nsAString & aId) = 0;
  34. /* attribute DOMString title; */
  35. NS_IMETHOD GetTitle(nsAString & aTitle) = 0;
  36. NS_IMETHOD SetTitle(const nsAString & aTitle) = 0;
  37. /* attribute DOMString lang; */
  38. NS_IMETHOD GetLang(nsAString & aLang) = 0;
  39. NS_IMETHOD SetLang(const nsAString & aLang) = 0;
  40. /* attribute DOMString dir; */
  41. NS_IMETHOD GetDir(nsAString & aDir) = 0;
  42. NS_IMETHOD SetDir(const nsAString & aDir) = 0;
  43. /* attribute DOMString className; */
  44. NS_IMETHOD GetClassName(nsAString & aClassName) = 0;
  45. NS_IMETHOD SetClassName(const nsAString & aClassName) = 0;
  46. };
  47. /* Use this macro when declaring classes that implement this interface. */
  48. #define NS_DECL_NSIDOMHTMLELEMENT \
  49. NS_IMETHOD GetId(nsAString & aId); \
  50. NS_IMETHOD SetId(const nsAString & aId); \
  51. NS_IMETHOD GetTitle(nsAString & aTitle); \
  52. NS_IMETHOD SetTitle(const nsAString & aTitle); \
  53. NS_IMETHOD GetLang(nsAString & aLang); \
  54. NS_IMETHOD SetLang(const nsAString & aLang); \
  55. NS_IMETHOD GetDir(nsAString & aDir); \
  56. NS_IMETHOD SetDir(const nsAString & aDir); \
  57. NS_IMETHOD GetClassName(nsAString & aClassName); \
  58. NS_IMETHOD SetClassName(const nsAString & aClassName);
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  60. #define NS_FORWARD_NSIDOMHTMLELEMENT(_to) \
  61. NS_IMETHOD GetId(nsAString & aId) { return _to GetId(aId); } \
  62. NS_IMETHOD SetId(const nsAString & aId) { return _to SetId(aId); } \
  63. NS_IMETHOD GetTitle(nsAString & aTitle) { return _to GetTitle(aTitle); } \
  64. NS_IMETHOD SetTitle(const nsAString & aTitle) { return _to SetTitle(aTitle); } \
  65. NS_IMETHOD GetLang(nsAString & aLang) { return _to GetLang(aLang); } \
  66. NS_IMETHOD SetLang(const nsAString & aLang) { return _to SetLang(aLang); } \
  67. NS_IMETHOD GetDir(nsAString & aDir) { return _to GetDir(aDir); } \
  68. NS_IMETHOD SetDir(const nsAString & aDir) { return _to SetDir(aDir); } \
  69. NS_IMETHOD GetClassName(nsAString & aClassName) { return _to GetClassName(aClassName); } \
  70. NS_IMETHOD SetClassName(const nsAString & aClassName) { return _to SetClassName(aClassName); }
  71. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  72. #define NS_FORWARD_SAFE_NSIDOMHTMLELEMENT(_to) \
  73. NS_IMETHOD GetId(nsAString & aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
  74. NS_IMETHOD SetId(const nsAString & aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetId(aId); } \
  75. NS_IMETHOD GetTitle(nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
  76. NS_IMETHOD SetTitle(const nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTitle(aTitle); } \
  77. NS_IMETHOD GetLang(nsAString & aLang) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLang(aLang); } \
  78. NS_IMETHOD SetLang(const nsAString & aLang) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLang(aLang); } \
  79. NS_IMETHOD GetDir(nsAString & aDir) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDir(aDir); } \
  80. NS_IMETHOD SetDir(const nsAString & aDir) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDir(aDir); } \
  81. NS_IMETHOD GetClassName(nsAString & aClassName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClassName(aClassName); } \
  82. NS_IMETHOD SetClassName(const nsAString & aClassName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetClassName(aClassName); }
  83. #if 0
  84. /* Use the code below as a template for the implementation class for this interface. */
  85. /* Header file */
  86. class nsDOMHTMLElement : public nsIDOMHTMLElement
  87. {
  88. public:
  89. NS_DECL_ISUPPORTS
  90. NS_DECL_NSIDOMHTMLELEMENT
  91. nsDOMHTMLElement();
  92. private:
  93. ~nsDOMHTMLElement();
  94. protected:
  95. /* additional members */
  96. };
  97. /* Implementation file */
  98. NS_IMPL_ISUPPORTS1(nsDOMHTMLElement, nsIDOMHTMLElement)
  99. nsDOMHTMLElement::nsDOMHTMLElement()
  100. {
  101. /* member initializers and constructor code */
  102. }
  103. nsDOMHTMLElement::~nsDOMHTMLElement()
  104. {
  105. /* destructor code */
  106. }
  107. /* attribute DOMString id; */
  108. NS_IMETHODIMP nsDOMHTMLElement::GetId(nsAString & aId)
  109. {
  110. return NS_ERROR_NOT_IMPLEMENTED;
  111. }
  112. NS_IMETHODIMP nsDOMHTMLElement::SetId(const nsAString & aId)
  113. {
  114. return NS_ERROR_NOT_IMPLEMENTED;
  115. }
  116. /* attribute DOMString title; */
  117. NS_IMETHODIMP nsDOMHTMLElement::GetTitle(nsAString & aTitle)
  118. {
  119. return NS_ERROR_NOT_IMPLEMENTED;
  120. }
  121. NS_IMETHODIMP nsDOMHTMLElement::SetTitle(const nsAString & aTitle)
  122. {
  123. return NS_ERROR_NOT_IMPLEMENTED;
  124. }
  125. /* attribute DOMString lang; */
  126. NS_IMETHODIMP nsDOMHTMLElement::GetLang(nsAString & aLang)
  127. {
  128. return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130. NS_IMETHODIMP nsDOMHTMLElement::SetLang(const nsAString & aLang)
  131. {
  132. return NS_ERROR_NOT_IMPLEMENTED;
  133. }
  134. /* attribute DOMString dir; */
  135. NS_IMETHODIMP nsDOMHTMLElement::GetDir(nsAString & aDir)
  136. {
  137. return NS_ERROR_NOT_IMPLEMENTED;
  138. }
  139. NS_IMETHODIMP nsDOMHTMLElement::SetDir(const nsAString & aDir)
  140. {
  141. return NS_ERROR_NOT_IMPLEMENTED;
  142. }
  143. /* attribute DOMString className; */
  144. NS_IMETHODIMP nsDOMHTMLElement::GetClassName(nsAString & aClassName)
  145. {
  146. return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148. NS_IMETHODIMP nsDOMHTMLElement::SetClassName(const nsAString & aClassName)
  149. {
  150. return NS_ERROR_NOT_IMPLEMENTED;
  151. }
  152. /* End of implementation class template. */
  153. #endif
  154. #endif /* __gen_nsIDOMHTMLElement_h__ */