nsIDOMHTMLButtonElement.h 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLButtonElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLButtonElement_h__
  5. #define __gen_nsIDOMHTMLButtonElement_h__
  6. #ifndef __gen_nsIDOMHTMLElement_h__
  7. #include "nsIDOMHTMLElement.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: nsIDOMHTMLButtonElement */
  14. #define NS_IDOMHTMLBUTTONELEMENT_IID_STR "a6cf9095-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLBUTTONELEMENT_IID \
  16. {0xa6cf9095, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLButtonElement interface is the interface to a [X]HTML
  20. * button element.
  21. *
  22. * For more information on this interface please see
  23. * http://www.w3.org/TR/DOM-Level-2-HTML/
  24. *
  25. * @status FROZEN
  26. */
  27. class NS_NO_VTABLE nsIDOMHTMLButtonElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLBUTTONELEMENT_IID)
  30. /* readonly attribute nsIDOMHTMLFormElement form; */
  31. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) = 0;
  32. /* attribute DOMString accessKey; */
  33. NS_IMETHOD GetAccessKey(nsAString & aAccessKey) = 0;
  34. NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) = 0;
  35. /* attribute boolean disabled; */
  36. NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
  37. NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
  38. /* attribute DOMString name; */
  39. NS_IMETHOD GetName(nsAString & aName) = 0;
  40. NS_IMETHOD SetName(const nsAString & aName) = 0;
  41. /* attribute long tabIndex; */
  42. NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) = 0;
  43. NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) = 0;
  44. /* [noscript] readonly attribute DOMString type; */
  45. NS_IMETHOD GetType(nsAString & aType) = 0;
  46. /* attribute DOMString value; */
  47. NS_IMETHOD GetValue(nsAString & aValue) = 0;
  48. NS_IMETHOD SetValue(const nsAString & aValue) = 0;
  49. };
  50. /* Use this macro when declaring classes that implement this interface. */
  51. #define NS_DECL_NSIDOMHTMLBUTTONELEMENT \
  52. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm); \
  53. NS_IMETHOD GetAccessKey(nsAString & aAccessKey); \
  54. NS_IMETHOD SetAccessKey(const nsAString & aAccessKey); \
  55. NS_IMETHOD GetDisabled(PRBool *aDisabled); \
  56. NS_IMETHOD SetDisabled(PRBool aDisabled); \
  57. NS_IMETHOD GetName(nsAString & aName); \
  58. NS_IMETHOD SetName(const nsAString & aName); \
  59. NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex); \
  60. NS_IMETHOD SetTabIndex(PRInt32 aTabIndex); \
  61. NS_IMETHOD GetType(nsAString & aType); \
  62. NS_IMETHOD GetValue(nsAString & aValue); \
  63. NS_IMETHOD SetValue(const nsAString & aValue);
  64. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  65. #define NS_FORWARD_NSIDOMHTMLBUTTONELEMENT(_to) \
  66. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return _to GetForm(aForm); } \
  67. NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return _to GetAccessKey(aAccessKey); } \
  68. NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return _to SetAccessKey(aAccessKey); } \
  69. NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
  70. NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
  71. NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  72. NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } \
  73. NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return _to GetTabIndex(aTabIndex); } \
  74. NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return _to SetTabIndex(aTabIndex); } \
  75. NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
  76. NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
  77. NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); }
  78. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  79. #define NS_FORWARD_SAFE_NSIDOMHTMLBUTTONELEMENT(_to) \
  80. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForm(aForm); } \
  81. NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccessKey(aAccessKey); } \
  82. NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAccessKey(aAccessKey); } \
  83. NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
  84. NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
  85. NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  86. NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
  87. NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTabIndex(aTabIndex); } \
  88. NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTabIndex(aTabIndex); } \
  89. NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  90. NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  91. NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); }
  92. #if 0
  93. /* Use the code below as a template for the implementation class for this interface. */
  94. /* Header file */
  95. class nsDOMHTMLButtonElement : public nsIDOMHTMLButtonElement
  96. {
  97. public:
  98. NS_DECL_ISUPPORTS
  99. NS_DECL_NSIDOMHTMLBUTTONELEMENT
  100. nsDOMHTMLButtonElement();
  101. private:
  102. ~nsDOMHTMLButtonElement();
  103. protected:
  104. /* additional members */
  105. };
  106. /* Implementation file */
  107. NS_IMPL_ISUPPORTS1(nsDOMHTMLButtonElement, nsIDOMHTMLButtonElement)
  108. nsDOMHTMLButtonElement::nsDOMHTMLButtonElement()
  109. {
  110. /* member initializers and constructor code */
  111. }
  112. nsDOMHTMLButtonElement::~nsDOMHTMLButtonElement()
  113. {
  114. /* destructor code */
  115. }
  116. /* readonly attribute nsIDOMHTMLFormElement form; */
  117. NS_IMETHODIMP nsDOMHTMLButtonElement::GetForm(nsIDOMHTMLFormElement * *aForm)
  118. {
  119. return NS_ERROR_NOT_IMPLEMENTED;
  120. }
  121. /* attribute DOMString accessKey; */
  122. NS_IMETHODIMP nsDOMHTMLButtonElement::GetAccessKey(nsAString & aAccessKey)
  123. {
  124. return NS_ERROR_NOT_IMPLEMENTED;
  125. }
  126. NS_IMETHODIMP nsDOMHTMLButtonElement::SetAccessKey(const nsAString & aAccessKey)
  127. {
  128. return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130. /* attribute boolean disabled; */
  131. NS_IMETHODIMP nsDOMHTMLButtonElement::GetDisabled(PRBool *aDisabled)
  132. {
  133. return NS_ERROR_NOT_IMPLEMENTED;
  134. }
  135. NS_IMETHODIMP nsDOMHTMLButtonElement::SetDisabled(PRBool aDisabled)
  136. {
  137. return NS_ERROR_NOT_IMPLEMENTED;
  138. }
  139. /* attribute DOMString name; */
  140. NS_IMETHODIMP nsDOMHTMLButtonElement::GetName(nsAString & aName)
  141. {
  142. return NS_ERROR_NOT_IMPLEMENTED;
  143. }
  144. NS_IMETHODIMP nsDOMHTMLButtonElement::SetName(const nsAString & aName)
  145. {
  146. return NS_ERROR_NOT_IMPLEMENTED;
  147. }
  148. /* attribute long tabIndex; */
  149. NS_IMETHODIMP nsDOMHTMLButtonElement::GetTabIndex(PRInt32 *aTabIndex)
  150. {
  151. return NS_ERROR_NOT_IMPLEMENTED;
  152. }
  153. NS_IMETHODIMP nsDOMHTMLButtonElement::SetTabIndex(PRInt32 aTabIndex)
  154. {
  155. return NS_ERROR_NOT_IMPLEMENTED;
  156. }
  157. /* [noscript] readonly attribute DOMString type; */
  158. NS_IMETHODIMP nsDOMHTMLButtonElement::GetType(nsAString & aType)
  159. {
  160. return NS_ERROR_NOT_IMPLEMENTED;
  161. }
  162. /* attribute DOMString value; */
  163. NS_IMETHODIMP nsDOMHTMLButtonElement::GetValue(nsAString & aValue)
  164. {
  165. return NS_ERROR_NOT_IMPLEMENTED;
  166. }
  167. NS_IMETHODIMP nsDOMHTMLButtonElement::SetValue(const nsAString & aValue)
  168. {
  169. return NS_ERROR_NOT_IMPLEMENTED;
  170. }
  171. /* End of implementation class template. */
  172. #endif
  173. #endif /* __gen_nsIDOMHTMLButtonElement_h__ */