PageRenderTime 43ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLTextAreaElement.h

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