nsIDOMHTMLAreaElement.h 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLAreaElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLAreaElement_h__
  5. #define __gen_nsIDOMHTMLAreaElement_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: nsIDOMHTMLAreaElement */
  14. #define NS_IDOMHTMLAREAELEMENT_IID_STR "a6cf90b0-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLAREAELEMENT_IID \
  16. {0xa6cf90b0, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLAreaElement interface is the interface to a [X]HTML
  20. * area 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 nsIDOMHTMLAreaElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLAREAELEMENT_IID)
  30. /* attribute DOMString accessKey; */
  31. NS_IMETHOD GetAccessKey(nsAString & aAccessKey) = 0;
  32. NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) = 0;
  33. /* attribute DOMString alt; */
  34. NS_IMETHOD GetAlt(nsAString & aAlt) = 0;
  35. NS_IMETHOD SetAlt(const nsAString & aAlt) = 0;
  36. /* attribute DOMString coords; */
  37. NS_IMETHOD GetCoords(nsAString & aCoords) = 0;
  38. NS_IMETHOD SetCoords(const nsAString & aCoords) = 0;
  39. /* attribute DOMString href; */
  40. NS_IMETHOD GetHref(nsAString & aHref) = 0;
  41. NS_IMETHOD SetHref(const nsAString & aHref) = 0;
  42. /* attribute boolean noHref; */
  43. NS_IMETHOD GetNoHref(PRBool *aNoHref) = 0;
  44. NS_IMETHOD SetNoHref(PRBool aNoHref) = 0;
  45. /* attribute DOMString shape; */
  46. NS_IMETHOD GetShape(nsAString & aShape) = 0;
  47. NS_IMETHOD SetShape(const nsAString & aShape) = 0;
  48. /* attribute long tabIndex; */
  49. NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) = 0;
  50. NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) = 0;
  51. /* attribute DOMString target; */
  52. NS_IMETHOD GetTarget(nsAString & aTarget) = 0;
  53. NS_IMETHOD SetTarget(const nsAString & aTarget) = 0;
  54. };
  55. /* Use this macro when declaring classes that implement this interface. */
  56. #define NS_DECL_NSIDOMHTMLAREAELEMENT \
  57. NS_IMETHOD GetAccessKey(nsAString & aAccessKey); \
  58. NS_IMETHOD SetAccessKey(const nsAString & aAccessKey); \
  59. NS_IMETHOD GetAlt(nsAString & aAlt); \
  60. NS_IMETHOD SetAlt(const nsAString & aAlt); \
  61. NS_IMETHOD GetCoords(nsAString & aCoords); \
  62. NS_IMETHOD SetCoords(const nsAString & aCoords); \
  63. NS_IMETHOD GetHref(nsAString & aHref); \
  64. NS_IMETHOD SetHref(const nsAString & aHref); \
  65. NS_IMETHOD GetNoHref(PRBool *aNoHref); \
  66. NS_IMETHOD SetNoHref(PRBool aNoHref); \
  67. NS_IMETHOD GetShape(nsAString & aShape); \
  68. NS_IMETHOD SetShape(const nsAString & aShape); \
  69. NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex); \
  70. NS_IMETHOD SetTabIndex(PRInt32 aTabIndex); \
  71. NS_IMETHOD GetTarget(nsAString & aTarget); \
  72. NS_IMETHOD SetTarget(const nsAString & aTarget);
  73. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  74. #define NS_FORWARD_NSIDOMHTMLAREAELEMENT(_to) \
  75. NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return _to GetAccessKey(aAccessKey); } \
  76. NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return _to SetAccessKey(aAccessKey); } \
  77. NS_IMETHOD GetAlt(nsAString & aAlt) { return _to GetAlt(aAlt); } \
  78. NS_IMETHOD SetAlt(const nsAString & aAlt) { return _to SetAlt(aAlt); } \
  79. NS_IMETHOD GetCoords(nsAString & aCoords) { return _to GetCoords(aCoords); } \
  80. NS_IMETHOD SetCoords(const nsAString & aCoords) { return _to SetCoords(aCoords); } \
  81. NS_IMETHOD GetHref(nsAString & aHref) { return _to GetHref(aHref); } \
  82. NS_IMETHOD SetHref(const nsAString & aHref) { return _to SetHref(aHref); } \
  83. NS_IMETHOD GetNoHref(PRBool *aNoHref) { return _to GetNoHref(aNoHref); } \
  84. NS_IMETHOD SetNoHref(PRBool aNoHref) { return _to SetNoHref(aNoHref); } \
  85. NS_IMETHOD GetShape(nsAString & aShape) { return _to GetShape(aShape); } \
  86. NS_IMETHOD SetShape(const nsAString & aShape) { return _to SetShape(aShape); } \
  87. NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return _to GetTabIndex(aTabIndex); } \
  88. NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return _to SetTabIndex(aTabIndex); } \
  89. NS_IMETHOD GetTarget(nsAString & aTarget) { return _to GetTarget(aTarget); } \
  90. NS_IMETHOD SetTarget(const nsAString & aTarget) { return _to SetTarget(aTarget); }
  91. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  92. #define NS_FORWARD_SAFE_NSIDOMHTMLAREAELEMENT(_to) \
  93. NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccessKey(aAccessKey); } \
  94. NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAccessKey(aAccessKey); } \
  95. NS_IMETHOD GetAlt(nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlt(aAlt); } \
  96. NS_IMETHOD SetAlt(const nsAString & aAlt) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlt(aAlt); } \
  97. NS_IMETHOD GetCoords(nsAString & aCoords) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCoords(aCoords); } \
  98. NS_IMETHOD SetCoords(const nsAString & aCoords) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCoords(aCoords); } \
  99. NS_IMETHOD GetHref(nsAString & aHref) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHref(aHref); } \
  100. NS_IMETHOD SetHref(const nsAString & aHref) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHref(aHref); } \
  101. NS_IMETHOD GetNoHref(PRBool *aNoHref) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNoHref(aNoHref); } \
  102. NS_IMETHOD SetNoHref(PRBool aNoHref) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNoHref(aNoHref); } \
  103. NS_IMETHOD GetShape(nsAString & aShape) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetShape(aShape); } \
  104. NS_IMETHOD SetShape(const nsAString & aShape) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetShape(aShape); } \
  105. NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTabIndex(aTabIndex); } \
  106. NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTabIndex(aTabIndex); } \
  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. #if 0
  110. /* Use the code below as a template for the implementation class for this interface. */
  111. /* Header file */
  112. class nsDOMHTMLAreaElement : public nsIDOMHTMLAreaElement
  113. {
  114. public:
  115. NS_DECL_ISUPPORTS
  116. NS_DECL_NSIDOMHTMLAREAELEMENT
  117. nsDOMHTMLAreaElement();
  118. private:
  119. ~nsDOMHTMLAreaElement();
  120. protected:
  121. /* additional members */
  122. };
  123. /* Implementation file */
  124. NS_IMPL_ISUPPORTS1(nsDOMHTMLAreaElement, nsIDOMHTMLAreaElement)
  125. nsDOMHTMLAreaElement::nsDOMHTMLAreaElement()
  126. {
  127. /* member initializers and constructor code */
  128. }
  129. nsDOMHTMLAreaElement::~nsDOMHTMLAreaElement()
  130. {
  131. /* destructor code */
  132. }
  133. /* attribute DOMString accessKey; */
  134. NS_IMETHODIMP nsDOMHTMLAreaElement::GetAccessKey(nsAString & aAccessKey)
  135. {
  136. return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138. NS_IMETHODIMP nsDOMHTMLAreaElement::SetAccessKey(const nsAString & aAccessKey)
  139. {
  140. return NS_ERROR_NOT_IMPLEMENTED;
  141. }
  142. /* attribute DOMString alt; */
  143. NS_IMETHODIMP nsDOMHTMLAreaElement::GetAlt(nsAString & aAlt)
  144. {
  145. return NS_ERROR_NOT_IMPLEMENTED;
  146. }
  147. NS_IMETHODIMP nsDOMHTMLAreaElement::SetAlt(const nsAString & aAlt)
  148. {
  149. return NS_ERROR_NOT_IMPLEMENTED;
  150. }
  151. /* attribute DOMString coords; */
  152. NS_IMETHODIMP nsDOMHTMLAreaElement::GetCoords(nsAString & aCoords)
  153. {
  154. return NS_ERROR_NOT_IMPLEMENTED;
  155. }
  156. NS_IMETHODIMP nsDOMHTMLAreaElement::SetCoords(const nsAString & aCoords)
  157. {
  158. return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160. /* attribute DOMString href; */
  161. NS_IMETHODIMP nsDOMHTMLAreaElement::GetHref(nsAString & aHref)
  162. {
  163. return NS_ERROR_NOT_IMPLEMENTED;
  164. }
  165. NS_IMETHODIMP nsDOMHTMLAreaElement::SetHref(const nsAString & aHref)
  166. {
  167. return NS_ERROR_NOT_IMPLEMENTED;
  168. }
  169. /* attribute boolean noHref; */
  170. NS_IMETHODIMP nsDOMHTMLAreaElement::GetNoHref(PRBool *aNoHref)
  171. {
  172. return NS_ERROR_NOT_IMPLEMENTED;
  173. }
  174. NS_IMETHODIMP nsDOMHTMLAreaElement::SetNoHref(PRBool aNoHref)
  175. {
  176. return NS_ERROR_NOT_IMPLEMENTED;
  177. }
  178. /* attribute DOMString shape; */
  179. NS_IMETHODIMP nsDOMHTMLAreaElement::GetShape(nsAString & aShape)
  180. {
  181. return NS_ERROR_NOT_IMPLEMENTED;
  182. }
  183. NS_IMETHODIMP nsDOMHTMLAreaElement::SetShape(const nsAString & aShape)
  184. {
  185. return NS_ERROR_NOT_IMPLEMENTED;
  186. }
  187. /* attribute long tabIndex; */
  188. NS_IMETHODIMP nsDOMHTMLAreaElement::GetTabIndex(PRInt32 *aTabIndex)
  189. {
  190. return NS_ERROR_NOT_IMPLEMENTED;
  191. }
  192. NS_IMETHODIMP nsDOMHTMLAreaElement::SetTabIndex(PRInt32 aTabIndex)
  193. {
  194. return NS_ERROR_NOT_IMPLEMENTED;
  195. }
  196. /* attribute DOMString target; */
  197. NS_IMETHODIMP nsDOMHTMLAreaElement::GetTarget(nsAString & aTarget)
  198. {
  199. return NS_ERROR_NOT_IMPLEMENTED;
  200. }
  201. NS_IMETHODIMP nsDOMHTMLAreaElement::SetTarget(const nsAString & aTarget)
  202. {
  203. return NS_ERROR_NOT_IMPLEMENTED;
  204. }
  205. /* End of implementation class template. */
  206. #endif
  207. #endif /* __gen_nsIDOMHTMLAreaElement_h__ */