PageRenderTime 42ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLLinkElement.h

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