nsIDOMHTMLOptionElement.h 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLOptionElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLOptionElement_h__
  5. #define __gen_nsIDOMHTMLOptionElement_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: nsIDOMHTMLOptionElement */
  14. #define NS_IDOMHTMLOPTIONELEMENT_IID_STR "a6cf9092-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLOPTIONELEMENT_IID \
  16. {0xa6cf9092, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLOptionElement interface is the interface to a [X]HTML
  20. * option 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 nsIDOMHTMLOptionElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLOPTIONELEMENT_IID)
  30. /* readonly attribute nsIDOMHTMLFormElement form; */
  31. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) = 0;
  32. /* attribute boolean defaultSelected; */
  33. NS_IMETHOD GetDefaultSelected(PRBool *aDefaultSelected) = 0;
  34. NS_IMETHOD SetDefaultSelected(PRBool aDefaultSelected) = 0;
  35. /* readonly attribute DOMString text; */
  36. NS_IMETHOD GetText(nsAString & aText) = 0;
  37. /* readonly attribute long index; */
  38. NS_IMETHOD GetIndex(PRInt32 *aIndex) = 0;
  39. /* attribute boolean disabled; */
  40. NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
  41. NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
  42. /* attribute DOMString label; */
  43. NS_IMETHOD GetLabel(nsAString & aLabel) = 0;
  44. NS_IMETHOD SetLabel(const nsAString & aLabel) = 0;
  45. /* attribute boolean selected; */
  46. NS_IMETHOD GetSelected(PRBool *aSelected) = 0;
  47. NS_IMETHOD SetSelected(PRBool aSelected) = 0;
  48. /* attribute DOMString value; */
  49. NS_IMETHOD GetValue(nsAString & aValue) = 0;
  50. NS_IMETHOD SetValue(const nsAString & aValue) = 0;
  51. };
  52. /* Use this macro when declaring classes that implement this interface. */
  53. #define NS_DECL_NSIDOMHTMLOPTIONELEMENT \
  54. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm); \
  55. NS_IMETHOD GetDefaultSelected(PRBool *aDefaultSelected); \
  56. NS_IMETHOD SetDefaultSelected(PRBool aDefaultSelected); \
  57. NS_IMETHOD GetText(nsAString & aText); \
  58. NS_IMETHOD GetIndex(PRInt32 *aIndex); \
  59. NS_IMETHOD GetDisabled(PRBool *aDisabled); \
  60. NS_IMETHOD SetDisabled(PRBool aDisabled); \
  61. NS_IMETHOD GetLabel(nsAString & aLabel); \
  62. NS_IMETHOD SetLabel(const nsAString & aLabel); \
  63. NS_IMETHOD GetSelected(PRBool *aSelected); \
  64. NS_IMETHOD SetSelected(PRBool aSelected); \
  65. NS_IMETHOD GetValue(nsAString & aValue); \
  66. NS_IMETHOD SetValue(const nsAString & aValue);
  67. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  68. #define NS_FORWARD_NSIDOMHTMLOPTIONELEMENT(_to) \
  69. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return _to GetForm(aForm); } \
  70. NS_IMETHOD GetDefaultSelected(PRBool *aDefaultSelected) { return _to GetDefaultSelected(aDefaultSelected); } \
  71. NS_IMETHOD SetDefaultSelected(PRBool aDefaultSelected) { return _to SetDefaultSelected(aDefaultSelected); } \
  72. NS_IMETHOD GetText(nsAString & aText) { return _to GetText(aText); } \
  73. NS_IMETHOD GetIndex(PRInt32 *aIndex) { return _to GetIndex(aIndex); } \
  74. NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
  75. NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
  76. NS_IMETHOD GetLabel(nsAString & aLabel) { return _to GetLabel(aLabel); } \
  77. NS_IMETHOD SetLabel(const nsAString & aLabel) { return _to SetLabel(aLabel); } \
  78. NS_IMETHOD GetSelected(PRBool *aSelected) { return _to GetSelected(aSelected); } \
  79. NS_IMETHOD SetSelected(PRBool aSelected) { return _to SetSelected(aSelected); } \
  80. NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
  81. NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); }
  82. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  83. #define NS_FORWARD_SAFE_NSIDOMHTMLOPTIONELEMENT(_to) \
  84. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForm(aForm); } \
  85. NS_IMETHOD GetDefaultSelected(PRBool *aDefaultSelected) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultSelected(aDefaultSelected); } \
  86. NS_IMETHOD SetDefaultSelected(PRBool aDefaultSelected) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultSelected(aDefaultSelected); } \
  87. NS_IMETHOD GetText(nsAString & aText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetText(aText); } \
  88. NS_IMETHOD GetIndex(PRInt32 *aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndex(aIndex); } \
  89. NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
  90. NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
  91. NS_IMETHOD GetLabel(nsAString & aLabel) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLabel(aLabel); } \
  92. NS_IMETHOD SetLabel(const nsAString & aLabel) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLabel(aLabel); } \
  93. NS_IMETHOD GetSelected(PRBool *aSelected) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelected(aSelected); } \
  94. NS_IMETHOD SetSelected(PRBool aSelected) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelected(aSelected); } \
  95. NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  96. NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); }
  97. #if 0
  98. /* Use the code below as a template for the implementation class for this interface. */
  99. /* Header file */
  100. class nsDOMHTMLOptionElement : public nsIDOMHTMLOptionElement
  101. {
  102. public:
  103. NS_DECL_ISUPPORTS
  104. NS_DECL_NSIDOMHTMLOPTIONELEMENT
  105. nsDOMHTMLOptionElement();
  106. private:
  107. ~nsDOMHTMLOptionElement();
  108. protected:
  109. /* additional members */
  110. };
  111. /* Implementation file */
  112. NS_IMPL_ISUPPORTS1(nsDOMHTMLOptionElement, nsIDOMHTMLOptionElement)
  113. nsDOMHTMLOptionElement::nsDOMHTMLOptionElement()
  114. {
  115. /* member initializers and constructor code */
  116. }
  117. nsDOMHTMLOptionElement::~nsDOMHTMLOptionElement()
  118. {
  119. /* destructor code */
  120. }
  121. /* readonly attribute nsIDOMHTMLFormElement form; */
  122. NS_IMETHODIMP nsDOMHTMLOptionElement::GetForm(nsIDOMHTMLFormElement * *aForm)
  123. {
  124. return NS_ERROR_NOT_IMPLEMENTED;
  125. }
  126. /* attribute boolean defaultSelected; */
  127. NS_IMETHODIMP nsDOMHTMLOptionElement::GetDefaultSelected(PRBool *aDefaultSelected)
  128. {
  129. return NS_ERROR_NOT_IMPLEMENTED;
  130. }
  131. NS_IMETHODIMP nsDOMHTMLOptionElement::SetDefaultSelected(PRBool aDefaultSelected)
  132. {
  133. return NS_ERROR_NOT_IMPLEMENTED;
  134. }
  135. /* readonly attribute DOMString text; */
  136. NS_IMETHODIMP nsDOMHTMLOptionElement::GetText(nsAString & aText)
  137. {
  138. return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140. /* readonly attribute long index; */
  141. NS_IMETHODIMP nsDOMHTMLOptionElement::GetIndex(PRInt32 *aIndex)
  142. {
  143. return NS_ERROR_NOT_IMPLEMENTED;
  144. }
  145. /* attribute boolean disabled; */
  146. NS_IMETHODIMP nsDOMHTMLOptionElement::GetDisabled(PRBool *aDisabled)
  147. {
  148. return NS_ERROR_NOT_IMPLEMENTED;
  149. }
  150. NS_IMETHODIMP nsDOMHTMLOptionElement::SetDisabled(PRBool aDisabled)
  151. {
  152. return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154. /* attribute DOMString label; */
  155. NS_IMETHODIMP nsDOMHTMLOptionElement::GetLabel(nsAString & aLabel)
  156. {
  157. return NS_ERROR_NOT_IMPLEMENTED;
  158. }
  159. NS_IMETHODIMP nsDOMHTMLOptionElement::SetLabel(const nsAString & aLabel)
  160. {
  161. return NS_ERROR_NOT_IMPLEMENTED;
  162. }
  163. /* attribute boolean selected; */
  164. NS_IMETHODIMP nsDOMHTMLOptionElement::GetSelected(PRBool *aSelected)
  165. {
  166. return NS_ERROR_NOT_IMPLEMENTED;
  167. }
  168. NS_IMETHODIMP nsDOMHTMLOptionElement::SetSelected(PRBool aSelected)
  169. {
  170. return NS_ERROR_NOT_IMPLEMENTED;
  171. }
  172. /* attribute DOMString value; */
  173. NS_IMETHODIMP nsDOMHTMLOptionElement::GetValue(nsAString & aValue)
  174. {
  175. return NS_ERROR_NOT_IMPLEMENTED;
  176. }
  177. NS_IMETHODIMP nsDOMHTMLOptionElement::SetValue(const nsAString & aValue)
  178. {
  179. return NS_ERROR_NOT_IMPLEMENTED;
  180. }
  181. /* End of implementation class template. */
  182. #endif
  183. #endif /* __gen_nsIDOMHTMLOptionElement_h__ */