nsIDOMHTMLLinkElement.h 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLLinkElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLLinkElement_h__
  5. #define __gen_nsIDOMHTMLLinkElement_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: nsIDOMHTMLLinkElement */
  14. #define NS_IDOMHTMLLINKELEMENT_IID_STR "a6cf9088-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLLINKELEMENT_IID \
  16. {0xa6cf9088, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLLinkElement interface is the interface to a [X]HTML
  20. * link 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 nsIDOMHTMLLinkElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLLINKELEMENT_IID)
  30. /* attribute boolean disabled; */
  31. NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
  32. NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
  33. /* attribute DOMString charset; */
  34. NS_IMETHOD GetCharset(nsAString & aCharset) = 0;
  35. NS_IMETHOD SetCharset(const nsAString & aCharset) = 0;
  36. /* attribute DOMString href; */
  37. NS_IMETHOD GetHref(nsAString & aHref) = 0;
  38. NS_IMETHOD SetHref(const nsAString & aHref) = 0;
  39. /* attribute DOMString hreflang; */
  40. NS_IMETHOD GetHreflang(nsAString & aHreflang) = 0;
  41. NS_IMETHOD SetHreflang(const nsAString & aHreflang) = 0;
  42. /* attribute DOMString media; */
  43. NS_IMETHOD GetMedia(nsAString & aMedia) = 0;
  44. NS_IMETHOD SetMedia(const nsAString & aMedia) = 0;
  45. /* attribute DOMString rel; */
  46. NS_IMETHOD GetRel(nsAString & aRel) = 0;
  47. NS_IMETHOD SetRel(const nsAString & aRel) = 0;
  48. /* attribute DOMString rev; */
  49. NS_IMETHOD GetRev(nsAString & aRev) = 0;
  50. NS_IMETHOD SetRev(const nsAString & aRev) = 0;
  51. /* attribute DOMString target; */
  52. NS_IMETHOD GetTarget(nsAString & aTarget) = 0;
  53. NS_IMETHOD SetTarget(const nsAString & aTarget) = 0;
  54. /* attribute DOMString type; */
  55. NS_IMETHOD GetType(nsAString & aType) = 0;
  56. NS_IMETHOD SetType(const nsAString & aType) = 0;
  57. };
  58. /* Use this macro when declaring classes that implement this interface. */
  59. #define NS_DECL_NSIDOMHTMLLINKELEMENT \
  60. NS_IMETHOD GetDisabled(PRBool *aDisabled); \
  61. NS_IMETHOD SetDisabled(PRBool aDisabled); \
  62. NS_IMETHOD GetCharset(nsAString & aCharset); \
  63. NS_IMETHOD SetCharset(const nsAString & aCharset); \
  64. NS_IMETHOD GetHref(nsAString & aHref); \
  65. NS_IMETHOD SetHref(const nsAString & aHref); \
  66. NS_IMETHOD GetHreflang(nsAString & aHreflang); \
  67. NS_IMETHOD SetHreflang(const nsAString & aHreflang); \
  68. NS_IMETHOD GetMedia(nsAString & aMedia); \
  69. NS_IMETHOD SetMedia(const nsAString & aMedia); \
  70. NS_IMETHOD GetRel(nsAString & aRel); \
  71. NS_IMETHOD SetRel(const nsAString & aRel); \
  72. NS_IMETHOD GetRev(nsAString & aRev); \
  73. NS_IMETHOD SetRev(const nsAString & aRev); \
  74. NS_IMETHOD GetTarget(nsAString & aTarget); \
  75. NS_IMETHOD SetTarget(const nsAString & aTarget); \
  76. NS_IMETHOD GetType(nsAString & aType); \
  77. NS_IMETHOD SetType(const nsAString & aType);
  78. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  79. #define NS_FORWARD_NSIDOMHTMLLINKELEMENT(_to) \
  80. NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
  81. NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
  82. NS_IMETHOD GetCharset(nsAString & aCharset) { return _to GetCharset(aCharset); } \
  83. NS_IMETHOD SetCharset(const nsAString & aCharset) { return _to SetCharset(aCharset); } \
  84. NS_IMETHOD GetHref(nsAString & aHref) { return _to GetHref(aHref); } \
  85. NS_IMETHOD SetHref(const nsAString & aHref) { return _to SetHref(aHref); } \
  86. NS_IMETHOD GetHreflang(nsAString & aHreflang) { return _to GetHreflang(aHreflang); } \
  87. NS_IMETHOD SetHreflang(const nsAString & aHreflang) { return _to SetHreflang(aHreflang); } \
  88. NS_IMETHOD GetMedia(nsAString & aMedia) { return _to GetMedia(aMedia); } \
  89. NS_IMETHOD SetMedia(const nsAString & aMedia) { return _to SetMedia(aMedia); } \
  90. NS_IMETHOD GetRel(nsAString & aRel) { return _to GetRel(aRel); } \
  91. NS_IMETHOD SetRel(const nsAString & aRel) { return _to SetRel(aRel); } \
  92. NS_IMETHOD GetRev(nsAString & aRev) { return _to GetRev(aRev); } \
  93. NS_IMETHOD SetRev(const nsAString & aRev) { return _to SetRev(aRev); } \
  94. NS_IMETHOD GetTarget(nsAString & aTarget) { return _to GetTarget(aTarget); } \
  95. NS_IMETHOD SetTarget(const nsAString & aTarget) { return _to SetTarget(aTarget); } \
  96. NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
  97. NS_IMETHOD SetType(const nsAString & aType) { return _to SetType(aType); }
  98. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  99. #define NS_FORWARD_SAFE_NSIDOMHTMLLINKELEMENT(_to) \
  100. NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
  101. NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
  102. NS_IMETHOD GetCharset(nsAString & aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharset(aCharset); } \
  103. NS_IMETHOD SetCharset(const nsAString & aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCharset(aCharset); } \
  104. NS_IMETHOD GetHref(nsAString & aHref) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHref(aHref); } \
  105. NS_IMETHOD SetHref(const nsAString & aHref) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHref(aHref); } \
  106. NS_IMETHOD GetHreflang(nsAString & aHreflang) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHreflang(aHreflang); } \
  107. NS_IMETHOD SetHreflang(const nsAString & aHreflang) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHreflang(aHreflang); } \
  108. NS_IMETHOD GetMedia(nsAString & aMedia) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMedia(aMedia); } \
  109. NS_IMETHOD SetMedia(const nsAString & aMedia) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMedia(aMedia); } \
  110. NS_IMETHOD GetRel(nsAString & aRel) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRel(aRel); } \
  111. NS_IMETHOD SetRel(const nsAString & aRel) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRel(aRel); } \
  112. NS_IMETHOD GetRev(nsAString & aRev) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRev(aRev); } \
  113. NS_IMETHOD SetRev(const nsAString & aRev) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRev(aRev); } \
  114. NS_IMETHOD GetTarget(nsAString & aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aTarget); } \
  115. NS_IMETHOD SetTarget(const nsAString & aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTarget(aTarget); } \
  116. NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  117. NS_IMETHOD SetType(const nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); }
  118. #if 0
  119. /* Use the code below as a template for the implementation class for this interface. */
  120. /* Header file */
  121. class nsDOMHTMLLinkElement : public nsIDOMHTMLLinkElement
  122. {
  123. public:
  124. NS_DECL_ISUPPORTS
  125. NS_DECL_NSIDOMHTMLLINKELEMENT
  126. nsDOMHTMLLinkElement();
  127. private:
  128. ~nsDOMHTMLLinkElement();
  129. protected:
  130. /* additional members */
  131. };
  132. /* Implementation file */
  133. NS_IMPL_ISUPPORTS1(nsDOMHTMLLinkElement, nsIDOMHTMLLinkElement)
  134. nsDOMHTMLLinkElement::nsDOMHTMLLinkElement()
  135. {
  136. /* member initializers and constructor code */
  137. }
  138. nsDOMHTMLLinkElement::~nsDOMHTMLLinkElement()
  139. {
  140. /* destructor code */
  141. }
  142. /* attribute boolean disabled; */
  143. NS_IMETHODIMP nsDOMHTMLLinkElement::GetDisabled(PRBool *aDisabled)
  144. {
  145. return NS_ERROR_NOT_IMPLEMENTED;
  146. }
  147. NS_IMETHODIMP nsDOMHTMLLinkElement::SetDisabled(PRBool aDisabled)
  148. {
  149. return NS_ERROR_NOT_IMPLEMENTED;
  150. }
  151. /* attribute DOMString charset; */
  152. NS_IMETHODIMP nsDOMHTMLLinkElement::GetCharset(nsAString & aCharset)
  153. {
  154. return NS_ERROR_NOT_IMPLEMENTED;
  155. }
  156. NS_IMETHODIMP nsDOMHTMLLinkElement::SetCharset(const nsAString & aCharset)
  157. {
  158. return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160. /* attribute DOMString href; */
  161. NS_IMETHODIMP nsDOMHTMLLinkElement::GetHref(nsAString & aHref)
  162. {
  163. return NS_ERROR_NOT_IMPLEMENTED;
  164. }
  165. NS_IMETHODIMP nsDOMHTMLLinkElement::SetHref(const nsAString & aHref)
  166. {
  167. return NS_ERROR_NOT_IMPLEMENTED;
  168. }
  169. /* attribute DOMString hreflang; */
  170. NS_IMETHODIMP nsDOMHTMLLinkElement::GetHreflang(nsAString & aHreflang)
  171. {
  172. return NS_ERROR_NOT_IMPLEMENTED;
  173. }
  174. NS_IMETHODIMP nsDOMHTMLLinkElement::SetHreflang(const nsAString & aHreflang)
  175. {
  176. return NS_ERROR_NOT_IMPLEMENTED;
  177. }
  178. /* attribute DOMString media; */
  179. NS_IMETHODIMP nsDOMHTMLLinkElement::GetMedia(nsAString & aMedia)
  180. {
  181. return NS_ERROR_NOT_IMPLEMENTED;
  182. }
  183. NS_IMETHODIMP nsDOMHTMLLinkElement::SetMedia(const nsAString & aMedia)
  184. {
  185. return NS_ERROR_NOT_IMPLEMENTED;
  186. }
  187. /* attribute DOMString rel; */
  188. NS_IMETHODIMP nsDOMHTMLLinkElement::GetRel(nsAString & aRel)
  189. {
  190. return NS_ERROR_NOT_IMPLEMENTED;
  191. }
  192. NS_IMETHODIMP nsDOMHTMLLinkElement::SetRel(const nsAString & aRel)
  193. {
  194. return NS_ERROR_NOT_IMPLEMENTED;
  195. }
  196. /* attribute DOMString rev; */
  197. NS_IMETHODIMP nsDOMHTMLLinkElement::GetRev(nsAString & aRev)
  198. {
  199. return NS_ERROR_NOT_IMPLEMENTED;
  200. }
  201. NS_IMETHODIMP nsDOMHTMLLinkElement::SetRev(const nsAString & aRev)
  202. {
  203. return NS_ERROR_NOT_IMPLEMENTED;
  204. }
  205. /* attribute DOMString target; */
  206. NS_IMETHODIMP nsDOMHTMLLinkElement::GetTarget(nsAString & aTarget)
  207. {
  208. return NS_ERROR_NOT_IMPLEMENTED;
  209. }
  210. NS_IMETHODIMP nsDOMHTMLLinkElement::SetTarget(const nsAString & aTarget)
  211. {
  212. return NS_ERROR_NOT_IMPLEMENTED;
  213. }
  214. /* attribute DOMString type; */
  215. NS_IMETHODIMP nsDOMHTMLLinkElement::GetType(nsAString & aType)
  216. {
  217. return NS_ERROR_NOT_IMPLEMENTED;
  218. }
  219. NS_IMETHODIMP nsDOMHTMLLinkElement::SetType(const nsAString & aType)
  220. {
  221. return NS_ERROR_NOT_IMPLEMENTED;
  222. }
  223. /* End of implementation class template. */
  224. #endif
  225. #endif /* __gen_nsIDOMHTMLLinkElement_h__ */