nsIDOMHTMLScriptElement.h 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLScriptElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLScriptElement_h__
  5. #define __gen_nsIDOMHTMLScriptElement_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: nsIDOMHTMLScriptElement */
  14. #define NS_IDOMHTMLSCRIPTELEMENT_IID_STR "a6cf90b1-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLSCRIPTELEMENT_IID \
  16. {0xa6cf90b1, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLScriptElement interface is the interface to a [X]HTML
  20. * script 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 nsIDOMHTMLScriptElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLSCRIPTELEMENT_IID)
  30. /* attribute DOMString text; */
  31. NS_IMETHOD GetText(nsAString & aText) = 0;
  32. NS_IMETHOD SetText(const nsAString & aText) = 0;
  33. /* attribute DOMString htmlFor; */
  34. NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) = 0;
  35. NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) = 0;
  36. /* attribute DOMString event; */
  37. NS_IMETHOD GetEvent(nsAString & aEvent) = 0;
  38. NS_IMETHOD SetEvent(const nsAString & aEvent) = 0;
  39. /* attribute DOMString charset; */
  40. NS_IMETHOD GetCharset(nsAString & aCharset) = 0;
  41. NS_IMETHOD SetCharset(const nsAString & aCharset) = 0;
  42. /* attribute boolean defer; */
  43. NS_IMETHOD GetDefer(PRBool *aDefer) = 0;
  44. NS_IMETHOD SetDefer(PRBool aDefer) = 0;
  45. /* attribute DOMString src; */
  46. NS_IMETHOD GetSrc(nsAString & aSrc) = 0;
  47. NS_IMETHOD SetSrc(const nsAString & aSrc) = 0;
  48. /* attribute DOMString type; */
  49. NS_IMETHOD GetType(nsAString & aType) = 0;
  50. NS_IMETHOD SetType(const nsAString & aType) = 0;
  51. };
  52. /* Use this macro when declaring classes that implement this interface. */
  53. #define NS_DECL_NSIDOMHTMLSCRIPTELEMENT \
  54. NS_IMETHOD GetText(nsAString & aText); \
  55. NS_IMETHOD SetText(const nsAString & aText); \
  56. NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor); \
  57. NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor); \
  58. NS_IMETHOD GetEvent(nsAString & aEvent); \
  59. NS_IMETHOD SetEvent(const nsAString & aEvent); \
  60. NS_IMETHOD GetCharset(nsAString & aCharset); \
  61. NS_IMETHOD SetCharset(const nsAString & aCharset); \
  62. NS_IMETHOD GetDefer(PRBool *aDefer); \
  63. NS_IMETHOD SetDefer(PRBool aDefer); \
  64. NS_IMETHOD GetSrc(nsAString & aSrc); \
  65. NS_IMETHOD SetSrc(const nsAString & aSrc); \
  66. NS_IMETHOD GetType(nsAString & aType); \
  67. NS_IMETHOD SetType(const nsAString & aType);
  68. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  69. #define NS_FORWARD_NSIDOMHTMLSCRIPTELEMENT(_to) \
  70. NS_IMETHOD GetText(nsAString & aText) { return _to GetText(aText); } \
  71. NS_IMETHOD SetText(const nsAString & aText) { return _to SetText(aText); } \
  72. NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) { return _to GetHtmlFor(aHtmlFor); } \
  73. NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) { return _to SetHtmlFor(aHtmlFor); } \
  74. NS_IMETHOD GetEvent(nsAString & aEvent) { return _to GetEvent(aEvent); } \
  75. NS_IMETHOD SetEvent(const nsAString & aEvent) { return _to SetEvent(aEvent); } \
  76. NS_IMETHOD GetCharset(nsAString & aCharset) { return _to GetCharset(aCharset); } \
  77. NS_IMETHOD SetCharset(const nsAString & aCharset) { return _to SetCharset(aCharset); } \
  78. NS_IMETHOD GetDefer(PRBool *aDefer) { return _to GetDefer(aDefer); } \
  79. NS_IMETHOD SetDefer(PRBool aDefer) { return _to SetDefer(aDefer); } \
  80. NS_IMETHOD GetSrc(nsAString & aSrc) { return _to GetSrc(aSrc); } \
  81. NS_IMETHOD SetSrc(const nsAString & aSrc) { return _to SetSrc(aSrc); } \
  82. NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
  83. NS_IMETHOD SetType(const nsAString & aType) { return _to SetType(aType); }
  84. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  85. #define NS_FORWARD_SAFE_NSIDOMHTMLSCRIPTELEMENT(_to) \
  86. NS_IMETHOD GetText(nsAString & aText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetText(aText); } \
  87. NS_IMETHOD SetText(const nsAString & aText) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetText(aText); } \
  88. NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHtmlFor(aHtmlFor); } \
  89. NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHtmlFor(aHtmlFor); } \
  90. NS_IMETHOD GetEvent(nsAString & aEvent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEvent(aEvent); } \
  91. NS_IMETHOD SetEvent(const nsAString & aEvent) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEvent(aEvent); } \
  92. NS_IMETHOD GetCharset(nsAString & aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharset(aCharset); } \
  93. NS_IMETHOD SetCharset(const nsAString & aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCharset(aCharset); } \
  94. NS_IMETHOD GetDefer(PRBool *aDefer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefer(aDefer); } \
  95. NS_IMETHOD SetDefer(PRBool aDefer) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefer(aDefer); } \
  96. NS_IMETHOD GetSrc(nsAString & aSrc) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSrc(aSrc); } \
  97. NS_IMETHOD SetSrc(const nsAString & aSrc) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSrc(aSrc); } \
  98. NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  99. NS_IMETHOD SetType(const nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); }
  100. #if 0
  101. /* Use the code below as a template for the implementation class for this interface. */
  102. /* Header file */
  103. class nsDOMHTMLScriptElement : public nsIDOMHTMLScriptElement
  104. {
  105. public:
  106. NS_DECL_ISUPPORTS
  107. NS_DECL_NSIDOMHTMLSCRIPTELEMENT
  108. nsDOMHTMLScriptElement();
  109. private:
  110. ~nsDOMHTMLScriptElement();
  111. protected:
  112. /* additional members */
  113. };
  114. /* Implementation file */
  115. NS_IMPL_ISUPPORTS1(nsDOMHTMLScriptElement, nsIDOMHTMLScriptElement)
  116. nsDOMHTMLScriptElement::nsDOMHTMLScriptElement()
  117. {
  118. /* member initializers and constructor code */
  119. }
  120. nsDOMHTMLScriptElement::~nsDOMHTMLScriptElement()
  121. {
  122. /* destructor code */
  123. }
  124. /* attribute DOMString text; */
  125. NS_IMETHODIMP nsDOMHTMLScriptElement::GetText(nsAString & aText)
  126. {
  127. return NS_ERROR_NOT_IMPLEMENTED;
  128. }
  129. NS_IMETHODIMP nsDOMHTMLScriptElement::SetText(const nsAString & aText)
  130. {
  131. return NS_ERROR_NOT_IMPLEMENTED;
  132. }
  133. /* attribute DOMString htmlFor; */
  134. NS_IMETHODIMP nsDOMHTMLScriptElement::GetHtmlFor(nsAString & aHtmlFor)
  135. {
  136. return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138. NS_IMETHODIMP nsDOMHTMLScriptElement::SetHtmlFor(const nsAString & aHtmlFor)
  139. {
  140. return NS_ERROR_NOT_IMPLEMENTED;
  141. }
  142. /* attribute DOMString event; */
  143. NS_IMETHODIMP nsDOMHTMLScriptElement::GetEvent(nsAString & aEvent)
  144. {
  145. return NS_ERROR_NOT_IMPLEMENTED;
  146. }
  147. NS_IMETHODIMP nsDOMHTMLScriptElement::SetEvent(const nsAString & aEvent)
  148. {
  149. return NS_ERROR_NOT_IMPLEMENTED;
  150. }
  151. /* attribute DOMString charset; */
  152. NS_IMETHODIMP nsDOMHTMLScriptElement::GetCharset(nsAString & aCharset)
  153. {
  154. return NS_ERROR_NOT_IMPLEMENTED;
  155. }
  156. NS_IMETHODIMP nsDOMHTMLScriptElement::SetCharset(const nsAString & aCharset)
  157. {
  158. return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160. /* attribute boolean defer; */
  161. NS_IMETHODIMP nsDOMHTMLScriptElement::GetDefer(PRBool *aDefer)
  162. {
  163. return NS_ERROR_NOT_IMPLEMENTED;
  164. }
  165. NS_IMETHODIMP nsDOMHTMLScriptElement::SetDefer(PRBool aDefer)
  166. {
  167. return NS_ERROR_NOT_IMPLEMENTED;
  168. }
  169. /* attribute DOMString src; */
  170. NS_IMETHODIMP nsDOMHTMLScriptElement::GetSrc(nsAString & aSrc)
  171. {
  172. return NS_ERROR_NOT_IMPLEMENTED;
  173. }
  174. NS_IMETHODIMP nsDOMHTMLScriptElement::SetSrc(const nsAString & aSrc)
  175. {
  176. return NS_ERROR_NOT_IMPLEMENTED;
  177. }
  178. /* attribute DOMString type; */
  179. NS_IMETHODIMP nsDOMHTMLScriptElement::GetType(nsAString & aType)
  180. {
  181. return NS_ERROR_NOT_IMPLEMENTED;
  182. }
  183. NS_IMETHODIMP nsDOMHTMLScriptElement::SetType(const nsAString & aType)
  184. {
  185. return NS_ERROR_NOT_IMPLEMENTED;
  186. }
  187. /* End of implementation class template. */
  188. #endif
  189. #endif /* __gen_nsIDOMHTMLScriptElement_h__ */