PageRenderTime 89ms CodeModel.GetById 26ms RepoModel.GetById 1ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLButtonElement.h

http://firefox-mac-pdf.googlecode.com/
C Header | 212 lines | 136 code | 38 blank | 38 comment | 0 complexity | a96bbbbcf784af4c4f7a338cbb5cea9c 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/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 NS_SCRIPTABLE nsIDOMHTMLButtonElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLBUTTONELEMENT_IID)
  30. /* readonly attribute nsIDOMHTMLFormElement form; */
  31. NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) = 0;
  32. /* attribute DOMString accessKey; */
  33. NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey) = 0;
  34. NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) = 0;
  35. /* attribute boolean disabled; */
  36. NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
  37. NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
  38. /* attribute DOMString name; */
  39. NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;
  40. NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) = 0;
  41. /* attribute long tabIndex; */
  42. NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) = 0;
  43. NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) = 0;
  48. NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) = 0;
  49. };
  50. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLButtonElement, NS_IDOMHTMLBUTTONELEMENT_IID)
  51. /* Use this macro when declaring classes that implement this interface. */
  52. #define NS_DECL_NSIDOMHTMLBUTTONELEMENT \
  53. NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm); \
  54. NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey); \
  55. NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey); \
  56. NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled); \
  57. NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled); \
  58. NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
  59. NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName); \
  60. NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex); \
  61. NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex); \
  62. NS_IMETHOD GetType(nsAString & aType); \
  63. NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue); \
  64. NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue);
  65. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  66. #define NS_FORWARD_NSIDOMHTMLBUTTONELEMENT(_to) \
  67. NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return _to GetForm(aForm); } \
  68. NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return _to GetAccessKey(aAccessKey); } \
  69. NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return _to SetAccessKey(aAccessKey); } \
  70. NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
  71. NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
  72. NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  73. NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } \
  74. NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return _to GetTabIndex(aTabIndex); } \
  75. NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return _to SetTabIndex(aTabIndex); } \
  76. NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
  77. NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
  78. NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); }
  79. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  80. #define NS_FORWARD_SAFE_NSIDOMHTMLBUTTONELEMENT(_to) \
  81. NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForm(aForm); } \
  82. NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccessKey(aAccessKey); } \
  83. NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAccessKey(aAccessKey); } \
  84. NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
  85. NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
  86. NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  87. NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
  88. NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTabIndex(aTabIndex); } \
  89. NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTabIndex(aTabIndex); } \
  90. NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  91. NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  92. NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); }
  93. #if 0
  94. /* Use the code below as a template for the implementation class for this interface. */
  95. /* Header file */
  96. class nsDOMHTMLButtonElement : public nsIDOMHTMLButtonElement
  97. {
  98. public:
  99. NS_DECL_ISUPPORTS
  100. NS_DECL_NSIDOMHTMLBUTTONELEMENT
  101. nsDOMHTMLButtonElement();
  102. private:
  103. ~nsDOMHTMLButtonElement();
  104. protected:
  105. /* additional members */
  106. };
  107. /* Implementation file */
  108. NS_IMPL_ISUPPORTS1(nsDOMHTMLButtonElement, nsIDOMHTMLButtonElement)
  109. nsDOMHTMLButtonElement::nsDOMHTMLButtonElement()
  110. {
  111. /* member initializers and constructor code */
  112. }
  113. nsDOMHTMLButtonElement::~nsDOMHTMLButtonElement()
  114. {
  115. /* destructor code */
  116. }
  117. /* readonly attribute nsIDOMHTMLFormElement form; */
  118. NS_IMETHODIMP nsDOMHTMLButtonElement::GetForm(nsIDOMHTMLFormElement * *aForm)
  119. {
  120. return NS_ERROR_NOT_IMPLEMENTED;
  121. }
  122. /* attribute DOMString accessKey; */
  123. NS_IMETHODIMP nsDOMHTMLButtonElement::GetAccessKey(nsAString & aAccessKey)
  124. {
  125. return NS_ERROR_NOT_IMPLEMENTED;
  126. }
  127. NS_IMETHODIMP nsDOMHTMLButtonElement::SetAccessKey(const nsAString & aAccessKey)
  128. {
  129. return NS_ERROR_NOT_IMPLEMENTED;
  130. }
  131. /* attribute boolean disabled; */
  132. NS_IMETHODIMP nsDOMHTMLButtonElement::GetDisabled(PRBool *aDisabled)
  133. {
  134. return NS_ERROR_NOT_IMPLEMENTED;
  135. }
  136. NS_IMETHODIMP nsDOMHTMLButtonElement::SetDisabled(PRBool aDisabled)
  137. {
  138. return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140. /* attribute DOMString name; */
  141. NS_IMETHODIMP nsDOMHTMLButtonElement::GetName(nsAString & aName)
  142. {
  143. return NS_ERROR_NOT_IMPLEMENTED;
  144. }
  145. NS_IMETHODIMP nsDOMHTMLButtonElement::SetName(const nsAString & aName)
  146. {
  147. return NS_ERROR_NOT_IMPLEMENTED;
  148. }
  149. /* attribute long tabIndex; */
  150. NS_IMETHODIMP nsDOMHTMLButtonElement::GetTabIndex(PRInt32 *aTabIndex)
  151. {
  152. return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154. NS_IMETHODIMP nsDOMHTMLButtonElement::SetTabIndex(PRInt32 aTabIndex)
  155. {
  156. return NS_ERROR_NOT_IMPLEMENTED;
  157. }
  158. /* [noscript] readonly attribute DOMString type; */
  159. NS_IMETHODIMP nsDOMHTMLButtonElement::GetType(nsAString & aType)
  160. {
  161. return NS_ERROR_NOT_IMPLEMENTED;
  162. }
  163. /* attribute DOMString value; */
  164. NS_IMETHODIMP nsDOMHTMLButtonElement::GetValue(nsAString & aValue)
  165. {
  166. return NS_ERROR_NOT_IMPLEMENTED;
  167. }
  168. NS_IMETHODIMP nsDOMHTMLButtonElement::SetValue(const nsAString & aValue)
  169. {
  170. return NS_ERROR_NOT_IMPLEMENTED;
  171. }
  172. /* End of implementation class template. */
  173. #endif
  174. #endif /* __gen_nsIDOMHTMLButtonElement_h__ */