nsIDOMHTMLFormElement.h 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLFormElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLFormElement_h__
  5. #define __gen_nsIDOMHTMLFormElement_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: nsIDOMHTMLFormElement */
  14. #define NS_IDOMHTMLFORMELEMENT_IID_STR "a6cf908f-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLFORMELEMENT_IID \
  16. {0xa6cf908f, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE nsIDOMHTMLFormElement : public nsIDOMHTMLElement {
  19. public:
  20. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLFORMELEMENT_IID)
  21. /**
  22. * The nsIDOMHTMLFormElement interface is the interface to a [X]HTML
  23. * form element.
  24. *
  25. * For more information on this interface please see
  26. * http://www.w3.org/TR/DOM-Level-2-HTML/
  27. *
  28. * @status FROZEN
  29. */
  30. /* readonly attribute nsIDOMHTMLCollection elements; */
  31. NS_IMETHOD GetElements(nsIDOMHTMLCollection * *aElements) = 0;
  32. /* readonly attribute long length; */
  33. NS_IMETHOD GetLength(PRInt32 *aLength) = 0;
  34. /* attribute DOMString name; */
  35. NS_IMETHOD GetName(nsAString & aName) = 0;
  36. NS_IMETHOD SetName(const nsAString & aName) = 0;
  37. /* attribute DOMString acceptCharset; */
  38. NS_IMETHOD GetAcceptCharset(nsAString & aAcceptCharset) = 0;
  39. NS_IMETHOD SetAcceptCharset(const nsAString & aAcceptCharset) = 0;
  40. /* attribute DOMString action; */
  41. NS_IMETHOD GetAction(nsAString & aAction) = 0;
  42. NS_IMETHOD SetAction(const nsAString & aAction) = 0;
  43. /* attribute DOMString enctype; */
  44. NS_IMETHOD GetEnctype(nsAString & aEnctype) = 0;
  45. NS_IMETHOD SetEnctype(const nsAString & aEnctype) = 0;
  46. /* attribute DOMString method; */
  47. NS_IMETHOD GetMethod(nsAString & aMethod) = 0;
  48. NS_IMETHOD SetMethod(const nsAString & aMethod) = 0;
  49. /* attribute DOMString target; */
  50. NS_IMETHOD GetTarget(nsAString & aTarget) = 0;
  51. NS_IMETHOD SetTarget(const nsAString & aTarget) = 0;
  52. /* void submit (); */
  53. NS_IMETHOD Submit(void) = 0;
  54. /* void reset (); */
  55. NS_IMETHOD Reset(void) = 0;
  56. };
  57. /* Use this macro when declaring classes that implement this interface. */
  58. #define NS_DECL_NSIDOMHTMLFORMELEMENT \
  59. NS_IMETHOD GetElements(nsIDOMHTMLCollection * *aElements); \
  60. NS_IMETHOD GetLength(PRInt32 *aLength); \
  61. NS_IMETHOD GetName(nsAString & aName); \
  62. NS_IMETHOD SetName(const nsAString & aName); \
  63. NS_IMETHOD GetAcceptCharset(nsAString & aAcceptCharset); \
  64. NS_IMETHOD SetAcceptCharset(const nsAString & aAcceptCharset); \
  65. NS_IMETHOD GetAction(nsAString & aAction); \
  66. NS_IMETHOD SetAction(const nsAString & aAction); \
  67. NS_IMETHOD GetEnctype(nsAString & aEnctype); \
  68. NS_IMETHOD SetEnctype(const nsAString & aEnctype); \
  69. NS_IMETHOD GetMethod(nsAString & aMethod); \
  70. NS_IMETHOD SetMethod(const nsAString & aMethod); \
  71. NS_IMETHOD GetTarget(nsAString & aTarget); \
  72. NS_IMETHOD SetTarget(const nsAString & aTarget); \
  73. NS_IMETHOD Submit(void); \
  74. NS_IMETHOD Reset(void);
  75. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  76. #define NS_FORWARD_NSIDOMHTMLFORMELEMENT(_to) \
  77. NS_IMETHOD GetElements(nsIDOMHTMLCollection * *aElements) { return _to GetElements(aElements); } \
  78. NS_IMETHOD GetLength(PRInt32 *aLength) { return _to GetLength(aLength); } \
  79. NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  80. NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } \
  81. NS_IMETHOD GetAcceptCharset(nsAString & aAcceptCharset) { return _to GetAcceptCharset(aAcceptCharset); } \
  82. NS_IMETHOD SetAcceptCharset(const nsAString & aAcceptCharset) { return _to SetAcceptCharset(aAcceptCharset); } \
  83. NS_IMETHOD GetAction(nsAString & aAction) { return _to GetAction(aAction); } \
  84. NS_IMETHOD SetAction(const nsAString & aAction) { return _to SetAction(aAction); } \
  85. NS_IMETHOD GetEnctype(nsAString & aEnctype) { return _to GetEnctype(aEnctype); } \
  86. NS_IMETHOD SetEnctype(const nsAString & aEnctype) { return _to SetEnctype(aEnctype); } \
  87. NS_IMETHOD GetMethod(nsAString & aMethod) { return _to GetMethod(aMethod); } \
  88. NS_IMETHOD SetMethod(const nsAString & aMethod) { return _to SetMethod(aMethod); } \
  89. NS_IMETHOD GetTarget(nsAString & aTarget) { return _to GetTarget(aTarget); } \
  90. NS_IMETHOD SetTarget(const nsAString & aTarget) { return _to SetTarget(aTarget); } \
  91. NS_IMETHOD Submit(void) { return _to Submit(); } \
  92. NS_IMETHOD Reset(void) { return _to Reset(); }
  93. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  94. #define NS_FORWARD_SAFE_NSIDOMHTMLFORMELEMENT(_to) \
  95. NS_IMETHOD GetElements(nsIDOMHTMLCollection * *aElements) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElements(aElements); } \
  96. NS_IMETHOD GetLength(PRInt32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  97. NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  98. NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
  99. NS_IMETHOD GetAcceptCharset(nsAString & aAcceptCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAcceptCharset(aAcceptCharset); } \
  100. NS_IMETHOD SetAcceptCharset(const nsAString & aAcceptCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAcceptCharset(aAcceptCharset); } \
  101. NS_IMETHOD GetAction(nsAString & aAction) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAction(aAction); } \
  102. NS_IMETHOD SetAction(const nsAString & aAction) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAction(aAction); } \
  103. NS_IMETHOD GetEnctype(nsAString & aEnctype) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnctype(aEnctype); } \
  104. NS_IMETHOD SetEnctype(const nsAString & aEnctype) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEnctype(aEnctype); } \
  105. NS_IMETHOD GetMethod(nsAString & aMethod) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMethod(aMethod); } \
  106. NS_IMETHOD SetMethod(const nsAString & aMethod) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMethod(aMethod); } \
  107. NS_IMETHOD GetTarget(nsAString & aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aTarget); } \
  108. NS_IMETHOD SetTarget(const nsAString & aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTarget(aTarget); } \
  109. NS_IMETHOD Submit(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Submit(); } \
  110. NS_IMETHOD Reset(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Reset(); }
  111. #if 0
  112. /* Use the code below as a template for the implementation class for this interface. */
  113. /* Header file */
  114. class nsDOMHTMLFormElement : public nsIDOMHTMLFormElement
  115. {
  116. public:
  117. NS_DECL_ISUPPORTS
  118. NS_DECL_NSIDOMHTMLFORMELEMENT
  119. nsDOMHTMLFormElement();
  120. private:
  121. ~nsDOMHTMLFormElement();
  122. protected:
  123. /* additional members */
  124. };
  125. /* Implementation file */
  126. NS_IMPL_ISUPPORTS1(nsDOMHTMLFormElement, nsIDOMHTMLFormElement)
  127. nsDOMHTMLFormElement::nsDOMHTMLFormElement()
  128. {
  129. /* member initializers and constructor code */
  130. }
  131. nsDOMHTMLFormElement::~nsDOMHTMLFormElement()
  132. {
  133. /* destructor code */
  134. }
  135. /* readonly attribute nsIDOMHTMLCollection elements; */
  136. NS_IMETHODIMP nsDOMHTMLFormElement::GetElements(nsIDOMHTMLCollection * *aElements)
  137. {
  138. return NS_ERROR_NOT_IMPLEMENTED;
  139. }
  140. /* readonly attribute long length; */
  141. NS_IMETHODIMP nsDOMHTMLFormElement::GetLength(PRInt32 *aLength)
  142. {
  143. return NS_ERROR_NOT_IMPLEMENTED;
  144. }
  145. /* attribute DOMString name; */
  146. NS_IMETHODIMP nsDOMHTMLFormElement::GetName(nsAString & aName)
  147. {
  148. return NS_ERROR_NOT_IMPLEMENTED;
  149. }
  150. NS_IMETHODIMP nsDOMHTMLFormElement::SetName(const nsAString & aName)
  151. {
  152. return NS_ERROR_NOT_IMPLEMENTED;
  153. }
  154. /* attribute DOMString acceptCharset; */
  155. NS_IMETHODIMP nsDOMHTMLFormElement::GetAcceptCharset(nsAString & aAcceptCharset)
  156. {
  157. return NS_ERROR_NOT_IMPLEMENTED;
  158. }
  159. NS_IMETHODIMP nsDOMHTMLFormElement::SetAcceptCharset(const nsAString & aAcceptCharset)
  160. {
  161. return NS_ERROR_NOT_IMPLEMENTED;
  162. }
  163. /* attribute DOMString action; */
  164. NS_IMETHODIMP nsDOMHTMLFormElement::GetAction(nsAString & aAction)
  165. {
  166. return NS_ERROR_NOT_IMPLEMENTED;
  167. }
  168. NS_IMETHODIMP nsDOMHTMLFormElement::SetAction(const nsAString & aAction)
  169. {
  170. return NS_ERROR_NOT_IMPLEMENTED;
  171. }
  172. /* attribute DOMString enctype; */
  173. NS_IMETHODIMP nsDOMHTMLFormElement::GetEnctype(nsAString & aEnctype)
  174. {
  175. return NS_ERROR_NOT_IMPLEMENTED;
  176. }
  177. NS_IMETHODIMP nsDOMHTMLFormElement::SetEnctype(const nsAString & aEnctype)
  178. {
  179. return NS_ERROR_NOT_IMPLEMENTED;
  180. }
  181. /* attribute DOMString method; */
  182. NS_IMETHODIMP nsDOMHTMLFormElement::GetMethod(nsAString & aMethod)
  183. {
  184. return NS_ERROR_NOT_IMPLEMENTED;
  185. }
  186. NS_IMETHODIMP nsDOMHTMLFormElement::SetMethod(const nsAString & aMethod)
  187. {
  188. return NS_ERROR_NOT_IMPLEMENTED;
  189. }
  190. /* attribute DOMString target; */
  191. NS_IMETHODIMP nsDOMHTMLFormElement::GetTarget(nsAString & aTarget)
  192. {
  193. return NS_ERROR_NOT_IMPLEMENTED;
  194. }
  195. NS_IMETHODIMP nsDOMHTMLFormElement::SetTarget(const nsAString & aTarget)
  196. {
  197. return NS_ERROR_NOT_IMPLEMENTED;
  198. }
  199. /* void submit (); */
  200. NS_IMETHODIMP nsDOMHTMLFormElement::Submit()
  201. {
  202. return NS_ERROR_NOT_IMPLEMENTED;
  203. }
  204. /* void reset (); */
  205. NS_IMETHODIMP nsDOMHTMLFormElement::Reset()
  206. {
  207. return NS_ERROR_NOT_IMPLEMENTED;
  208. }
  209. /* End of implementation class template. */
  210. #endif
  211. #endif /* __gen_nsIDOMHTMLFormElement_h__ */