nsIDOMHTMLTextAreaElement.h 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLTextAreaElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLTextAreaElement_h__
  5. #define __gen_nsIDOMHTMLTextAreaElement_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: nsIDOMHTMLTextAreaElement */
  14. #define NS_IDOMHTMLTEXTAREAELEMENT_IID_STR "a6cf9094-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLTEXTAREAELEMENT_IID \
  16. {0xa6cf9094, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLTextAreaElement interface is the interface to a
  20. * [X]HTML textarea 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 nsIDOMHTMLTextAreaElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLTEXTAREAELEMENT_IID)
  30. /* attribute DOMString defaultValue; */
  31. NS_IMETHOD GetDefaultValue(nsAString & aDefaultValue) = 0;
  32. NS_IMETHOD SetDefaultValue(const nsAString & aDefaultValue) = 0;
  33. /* readonly attribute nsIDOMHTMLFormElement form; */
  34. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) = 0;
  35. /* attribute DOMString accessKey; */
  36. NS_IMETHOD GetAccessKey(nsAString & aAccessKey) = 0;
  37. NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) = 0;
  38. /* attribute long cols; */
  39. NS_IMETHOD GetCols(PRInt32 *aCols) = 0;
  40. NS_IMETHOD SetCols(PRInt32 aCols) = 0;
  41. /* attribute boolean disabled; */
  42. NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
  43. NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
  44. /* attribute DOMString name; */
  45. NS_IMETHOD GetName(nsAString & aName) = 0;
  46. NS_IMETHOD SetName(const nsAString & aName) = 0;
  47. /* attribute boolean readOnly; */
  48. NS_IMETHOD GetReadOnly(PRBool *aReadOnly) = 0;
  49. NS_IMETHOD SetReadOnly(PRBool aReadOnly) = 0;
  50. /* attribute long rows; */
  51. NS_IMETHOD GetRows(PRInt32 *aRows) = 0;
  52. NS_IMETHOD SetRows(PRInt32 aRows) = 0;
  53. /* attribute long tabIndex; */
  54. NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) = 0;
  55. NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) = 0;
  56. /* readonly attribute DOMString type; */
  57. NS_IMETHOD GetType(nsAString & aType) = 0;
  58. /* attribute DOMString value; */
  59. NS_IMETHOD GetValue(nsAString & aValue) = 0;
  60. NS_IMETHOD SetValue(const nsAString & aValue) = 0;
  61. /* void blur (); */
  62. NS_IMETHOD Blur(void) = 0;
  63. /* void focus (); */
  64. NS_IMETHOD Focus(void) = 0;
  65. /* void select (); */
  66. NS_IMETHOD Select(void) = 0;
  67. };
  68. /* Use this macro when declaring classes that implement this interface. */
  69. #define NS_DECL_NSIDOMHTMLTEXTAREAELEMENT \
  70. NS_IMETHOD GetDefaultValue(nsAString & aDefaultValue); \
  71. NS_IMETHOD SetDefaultValue(const nsAString & aDefaultValue); \
  72. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm); \
  73. NS_IMETHOD GetAccessKey(nsAString & aAccessKey); \
  74. NS_IMETHOD SetAccessKey(const nsAString & aAccessKey); \
  75. NS_IMETHOD GetCols(PRInt32 *aCols); \
  76. NS_IMETHOD SetCols(PRInt32 aCols); \
  77. NS_IMETHOD GetDisabled(PRBool *aDisabled); \
  78. NS_IMETHOD SetDisabled(PRBool aDisabled); \
  79. NS_IMETHOD GetName(nsAString & aName); \
  80. NS_IMETHOD SetName(const nsAString & aName); \
  81. NS_IMETHOD GetReadOnly(PRBool *aReadOnly); \
  82. NS_IMETHOD SetReadOnly(PRBool aReadOnly); \
  83. NS_IMETHOD GetRows(PRInt32 *aRows); \
  84. NS_IMETHOD SetRows(PRInt32 aRows); \
  85. NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex); \
  86. NS_IMETHOD SetTabIndex(PRInt32 aTabIndex); \
  87. NS_IMETHOD GetType(nsAString & aType); \
  88. NS_IMETHOD GetValue(nsAString & aValue); \
  89. NS_IMETHOD SetValue(const nsAString & aValue); \
  90. NS_IMETHOD Blur(void); \
  91. NS_IMETHOD Focus(void); \
  92. NS_IMETHOD Select(void);
  93. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  94. #define NS_FORWARD_NSIDOMHTMLTEXTAREAELEMENT(_to) \
  95. NS_IMETHOD GetDefaultValue(nsAString & aDefaultValue) { return _to GetDefaultValue(aDefaultValue); } \
  96. NS_IMETHOD SetDefaultValue(const nsAString & aDefaultValue) { return _to SetDefaultValue(aDefaultValue); } \
  97. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return _to GetForm(aForm); } \
  98. NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return _to GetAccessKey(aAccessKey); } \
  99. NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return _to SetAccessKey(aAccessKey); } \
  100. NS_IMETHOD GetCols(PRInt32 *aCols) { return _to GetCols(aCols); } \
  101. NS_IMETHOD SetCols(PRInt32 aCols) { return _to SetCols(aCols); } \
  102. NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
  103. NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
  104. NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
  105. NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } \
  106. NS_IMETHOD GetReadOnly(PRBool *aReadOnly) { return _to GetReadOnly(aReadOnly); } \
  107. NS_IMETHOD SetReadOnly(PRBool aReadOnly) { return _to SetReadOnly(aReadOnly); } \
  108. NS_IMETHOD GetRows(PRInt32 *aRows) { return _to GetRows(aRows); } \
  109. NS_IMETHOD SetRows(PRInt32 aRows) { return _to SetRows(aRows); } \
  110. NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return _to GetTabIndex(aTabIndex); } \
  111. NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return _to SetTabIndex(aTabIndex); } \
  112. NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
  113. NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
  114. NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); } \
  115. NS_IMETHOD Blur(void) { return _to Blur(); } \
  116. NS_IMETHOD Focus(void) { return _to Focus(); } \
  117. NS_IMETHOD Select(void) { return _to Select(); }
  118. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  119. #define NS_FORWARD_SAFE_NSIDOMHTMLTEXTAREAELEMENT(_to) \
  120. NS_IMETHOD GetDefaultValue(nsAString & aDefaultValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultValue(aDefaultValue); } \
  121. NS_IMETHOD SetDefaultValue(const nsAString & aDefaultValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultValue(aDefaultValue); } \
  122. NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForm(aForm); } \
  123. NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccessKey(aAccessKey); } \
  124. NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAccessKey(aAccessKey); } \
  125. NS_IMETHOD GetCols(PRInt32 *aCols) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCols(aCols); } \
  126. NS_IMETHOD SetCols(PRInt32 aCols) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCols(aCols); } \
  127. NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
  128. NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
  129. NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
  130. NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
  131. NS_IMETHOD GetReadOnly(PRBool *aReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReadOnly(aReadOnly); } \
  132. NS_IMETHOD SetReadOnly(PRBool aReadOnly) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReadOnly(aReadOnly); } \
  133. NS_IMETHOD GetRows(PRInt32 *aRows) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRows(aRows); } \
  134. NS_IMETHOD SetRows(PRInt32 aRows) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRows(aRows); } \
  135. NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTabIndex(aTabIndex); } \
  136. NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTabIndex(aTabIndex); } \
  137. NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  138. NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
  139. NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
  140. NS_IMETHOD Blur(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Blur(); } \
  141. NS_IMETHOD Focus(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Focus(); } \
  142. NS_IMETHOD Select(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Select(); }
  143. #if 0
  144. /* Use the code below as a template for the implementation class for this interface. */
  145. /* Header file */
  146. class nsDOMHTMLTextAreaElement : public nsIDOMHTMLTextAreaElement
  147. {
  148. public:
  149. NS_DECL_ISUPPORTS
  150. NS_DECL_NSIDOMHTMLTEXTAREAELEMENT
  151. nsDOMHTMLTextAreaElement();
  152. private:
  153. ~nsDOMHTMLTextAreaElement();
  154. protected:
  155. /* additional members */
  156. };
  157. /* Implementation file */
  158. NS_IMPL_ISUPPORTS1(nsDOMHTMLTextAreaElement, nsIDOMHTMLTextAreaElement)
  159. nsDOMHTMLTextAreaElement::nsDOMHTMLTextAreaElement()
  160. {
  161. /* member initializers and constructor code */
  162. }
  163. nsDOMHTMLTextAreaElement::~nsDOMHTMLTextAreaElement()
  164. {
  165. /* destructor code */
  166. }
  167. /* attribute DOMString defaultValue; */
  168. NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetDefaultValue(nsAString & aDefaultValue)
  169. {
  170. return NS_ERROR_NOT_IMPLEMENTED;
  171. }
  172. NS_IMETHODIMP nsDOMHTMLTextAreaElement::SetDefaultValue(const nsAString & aDefaultValue)
  173. {
  174. return NS_ERROR_NOT_IMPLEMENTED;
  175. }
  176. /* readonly attribute nsIDOMHTMLFormElement form; */
  177. NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetForm(nsIDOMHTMLFormElement * *aForm)
  178. {
  179. return NS_ERROR_NOT_IMPLEMENTED;
  180. }
  181. /* attribute DOMString accessKey; */
  182. NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetAccessKey(nsAString & aAccessKey)
  183. {
  184. return NS_ERROR_NOT_IMPLEMENTED;
  185. }
  186. NS_IMETHODIMP nsDOMHTMLTextAreaElement::SetAccessKey(const nsAString & aAccessKey)
  187. {
  188. return NS_ERROR_NOT_IMPLEMENTED;
  189. }
  190. /* attribute long cols; */
  191. NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetCols(PRInt32 *aCols)
  192. {
  193. return NS_ERROR_NOT_IMPLEMENTED;
  194. }
  195. NS_IMETHODIMP nsDOMHTMLTextAreaElement::SetCols(PRInt32 aCols)
  196. {
  197. return NS_ERROR_NOT_IMPLEMENTED;
  198. }
  199. /* attribute boolean disabled; */
  200. NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetDisabled(PRBool *aDisabled)
  201. {
  202. return NS_ERROR_NOT_IMPLEMENTED;
  203. }
  204. NS_IMETHODIMP nsDOMHTMLTextAreaElement::SetDisabled(PRBool aDisabled)
  205. {
  206. return NS_ERROR_NOT_IMPLEMENTED;
  207. }
  208. /* attribute DOMString name; */
  209. NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetName(nsAString & aName)
  210. {
  211. return NS_ERROR_NOT_IMPLEMENTED;
  212. }
  213. NS_IMETHODIMP nsDOMHTMLTextAreaElement::SetName(const nsAString & aName)
  214. {
  215. return NS_ERROR_NOT_IMPLEMENTED;
  216. }
  217. /* attribute boolean readOnly; */
  218. NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetReadOnly(PRBool *aReadOnly)
  219. {
  220. return NS_ERROR_NOT_IMPLEMENTED;
  221. }
  222. NS_IMETHODIMP nsDOMHTMLTextAreaElement::SetReadOnly(PRBool aReadOnly)
  223. {
  224. return NS_ERROR_NOT_IMPLEMENTED;
  225. }
  226. /* attribute long rows; */
  227. NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetRows(PRInt32 *aRows)
  228. {
  229. return NS_ERROR_NOT_IMPLEMENTED;
  230. }
  231. NS_IMETHODIMP nsDOMHTMLTextAreaElement::SetRows(PRInt32 aRows)
  232. {
  233. return NS_ERROR_NOT_IMPLEMENTED;
  234. }
  235. /* attribute long tabIndex; */
  236. NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetTabIndex(PRInt32 *aTabIndex)
  237. {
  238. return NS_ERROR_NOT_IMPLEMENTED;
  239. }
  240. NS_IMETHODIMP nsDOMHTMLTextAreaElement::SetTabIndex(PRInt32 aTabIndex)
  241. {
  242. return NS_ERROR_NOT_IMPLEMENTED;
  243. }
  244. /* readonly attribute DOMString type; */
  245. NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetType(nsAString & aType)
  246. {
  247. return NS_ERROR_NOT_IMPLEMENTED;
  248. }
  249. /* attribute DOMString value; */
  250. NS_IMETHODIMP nsDOMHTMLTextAreaElement::GetValue(nsAString & aValue)
  251. {
  252. return NS_ERROR_NOT_IMPLEMENTED;
  253. }
  254. NS_IMETHODIMP nsDOMHTMLTextAreaElement::SetValue(const nsAString & aValue)
  255. {
  256. return NS_ERROR_NOT_IMPLEMENTED;
  257. }
  258. /* void blur (); */
  259. NS_IMETHODIMP nsDOMHTMLTextAreaElement::Blur()
  260. {
  261. return NS_ERROR_NOT_IMPLEMENTED;
  262. }
  263. /* void focus (); */
  264. NS_IMETHODIMP nsDOMHTMLTextAreaElement::Focus()
  265. {
  266. return NS_ERROR_NOT_IMPLEMENTED;
  267. }
  268. /* void select (); */
  269. NS_IMETHODIMP nsDOMHTMLTextAreaElement::Select()
  270. {
  271. return NS_ERROR_NOT_IMPLEMENTED;
  272. }
  273. /* End of implementation class template. */
  274. #endif
  275. #endif /* __gen_nsIDOMHTMLTextAreaElement_h__ */