nsIDOMHTMLDocument.h 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLDocument.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLDocument_h__
  5. #define __gen_nsIDOMHTMLDocument_h__
  6. #ifndef __gen_nsIDOMDocument_h__
  7. #include "nsIDOMDocument.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: nsIDOMHTMLDocument */
  14. #define NS_IDOMHTMLDOCUMENT_IID_STR "a6cf9084-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLDOCUMENT_IID \
  16. {0xa6cf9084, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLDocument interface is the interface to a [X]HTML
  20. * document object.
  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 nsIDOMHTMLDocument : public nsIDOMDocument {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLDOCUMENT_IID)
  30. /* attribute DOMString title; */
  31. NS_IMETHOD GetTitle(nsAString & aTitle) = 0;
  32. NS_IMETHOD SetTitle(const nsAString & aTitle) = 0;
  33. /* readonly attribute DOMString referrer; */
  34. NS_IMETHOD GetReferrer(nsAString & aReferrer) = 0;
  35. /* [noscript] readonly attribute DOMString domain; */
  36. NS_IMETHOD GetDomain(nsAString & aDomain) = 0;
  37. /* readonly attribute DOMString URL; */
  38. NS_IMETHOD GetURL(nsAString & aURL) = 0;
  39. /* attribute nsIDOMHTMLElement body; */
  40. NS_IMETHOD GetBody(nsIDOMHTMLElement * *aBody) = 0;
  41. NS_IMETHOD SetBody(nsIDOMHTMLElement * aBody) = 0;
  42. /* readonly attribute nsIDOMHTMLCollection images; */
  43. NS_IMETHOD GetImages(nsIDOMHTMLCollection * *aImages) = 0;
  44. /* readonly attribute nsIDOMHTMLCollection applets; */
  45. NS_IMETHOD GetApplets(nsIDOMHTMLCollection * *aApplets) = 0;
  46. /* readonly attribute nsIDOMHTMLCollection links; */
  47. NS_IMETHOD GetLinks(nsIDOMHTMLCollection * *aLinks) = 0;
  48. /* readonly attribute nsIDOMHTMLCollection forms; */
  49. NS_IMETHOD GetForms(nsIDOMHTMLCollection * *aForms) = 0;
  50. /* readonly attribute nsIDOMHTMLCollection anchors; */
  51. NS_IMETHOD GetAnchors(nsIDOMHTMLCollection * *aAnchors) = 0;
  52. /* attribute DOMString cookie; */
  53. NS_IMETHOD GetCookie(nsAString & aCookie) = 0;
  54. NS_IMETHOD SetCookie(const nsAString & aCookie) = 0;
  55. /* [noscript] void open (); */
  56. NS_IMETHOD Open(void) = 0;
  57. /* void close (); */
  58. NS_IMETHOD Close(void) = 0;
  59. /* [noscript] void write (in DOMString text); */
  60. NS_IMETHOD Write(const nsAString & text) = 0;
  61. /* [noscript] void writeln (in DOMString text); */
  62. NS_IMETHOD Writeln(const nsAString & text) = 0;
  63. /* nsIDOMNodeList getElementsByName (in DOMString elementName); */
  64. NS_IMETHOD GetElementsByName(const nsAString & elementName, nsIDOMNodeList **_retval) = 0;
  65. };
  66. /* Use this macro when declaring classes that implement this interface. */
  67. #define NS_DECL_NSIDOMHTMLDOCUMENT \
  68. NS_IMETHOD GetTitle(nsAString & aTitle); \
  69. NS_IMETHOD SetTitle(const nsAString & aTitle); \
  70. NS_IMETHOD GetReferrer(nsAString & aReferrer); \
  71. NS_IMETHOD GetDomain(nsAString & aDomain); \
  72. NS_IMETHOD GetURL(nsAString & aURL); \
  73. NS_IMETHOD GetBody(nsIDOMHTMLElement * *aBody); \
  74. NS_IMETHOD SetBody(nsIDOMHTMLElement * aBody); \
  75. NS_IMETHOD GetImages(nsIDOMHTMLCollection * *aImages); \
  76. NS_IMETHOD GetApplets(nsIDOMHTMLCollection * *aApplets); \
  77. NS_IMETHOD GetLinks(nsIDOMHTMLCollection * *aLinks); \
  78. NS_IMETHOD GetForms(nsIDOMHTMLCollection * *aForms); \
  79. NS_IMETHOD GetAnchors(nsIDOMHTMLCollection * *aAnchors); \
  80. NS_IMETHOD GetCookie(nsAString & aCookie); \
  81. NS_IMETHOD SetCookie(const nsAString & aCookie); \
  82. NS_IMETHOD Open(void); \
  83. NS_IMETHOD Close(void); \
  84. NS_IMETHOD Write(const nsAString & text); \
  85. NS_IMETHOD Writeln(const nsAString & text); \
  86. NS_IMETHOD GetElementsByName(const nsAString & elementName, nsIDOMNodeList **_retval);
  87. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  88. #define NS_FORWARD_NSIDOMHTMLDOCUMENT(_to) \
  89. NS_IMETHOD GetTitle(nsAString & aTitle) { return _to GetTitle(aTitle); } \
  90. NS_IMETHOD SetTitle(const nsAString & aTitle) { return _to SetTitle(aTitle); } \
  91. NS_IMETHOD GetReferrer(nsAString & aReferrer) { return _to GetReferrer(aReferrer); } \
  92. NS_IMETHOD GetDomain(nsAString & aDomain) { return _to GetDomain(aDomain); } \
  93. NS_IMETHOD GetURL(nsAString & aURL) { return _to GetURL(aURL); } \
  94. NS_IMETHOD GetBody(nsIDOMHTMLElement * *aBody) { return _to GetBody(aBody); } \
  95. NS_IMETHOD SetBody(nsIDOMHTMLElement * aBody) { return _to SetBody(aBody); } \
  96. NS_IMETHOD GetImages(nsIDOMHTMLCollection * *aImages) { return _to GetImages(aImages); } \
  97. NS_IMETHOD GetApplets(nsIDOMHTMLCollection * *aApplets) { return _to GetApplets(aApplets); } \
  98. NS_IMETHOD GetLinks(nsIDOMHTMLCollection * *aLinks) { return _to GetLinks(aLinks); } \
  99. NS_IMETHOD GetForms(nsIDOMHTMLCollection * *aForms) { return _to GetForms(aForms); } \
  100. NS_IMETHOD GetAnchors(nsIDOMHTMLCollection * *aAnchors) { return _to GetAnchors(aAnchors); } \
  101. NS_IMETHOD GetCookie(nsAString & aCookie) { return _to GetCookie(aCookie); } \
  102. NS_IMETHOD SetCookie(const nsAString & aCookie) { return _to SetCookie(aCookie); } \
  103. NS_IMETHOD Open(void) { return _to Open(); } \
  104. NS_IMETHOD Close(void) { return _to Close(); } \
  105. NS_IMETHOD Write(const nsAString & text) { return _to Write(text); } \
  106. NS_IMETHOD Writeln(const nsAString & text) { return _to Writeln(text); } \
  107. NS_IMETHOD GetElementsByName(const nsAString & elementName, nsIDOMNodeList **_retval) { return _to GetElementsByName(elementName, _retval); }
  108. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  109. #define NS_FORWARD_SAFE_NSIDOMHTMLDOCUMENT(_to) \
  110. NS_IMETHOD GetTitle(nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
  111. NS_IMETHOD SetTitle(const nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTitle(aTitle); } \
  112. NS_IMETHOD GetReferrer(nsAString & aReferrer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReferrer(aReferrer); } \
  113. NS_IMETHOD GetDomain(nsAString & aDomain) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDomain(aDomain); } \
  114. NS_IMETHOD GetURL(nsAString & aURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURL(aURL); } \
  115. NS_IMETHOD GetBody(nsIDOMHTMLElement * *aBody) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBody(aBody); } \
  116. NS_IMETHOD SetBody(nsIDOMHTMLElement * aBody) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBody(aBody); } \
  117. NS_IMETHOD GetImages(nsIDOMHTMLCollection * *aImages) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImages(aImages); } \
  118. NS_IMETHOD GetApplets(nsIDOMHTMLCollection * *aApplets) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetApplets(aApplets); } \
  119. NS_IMETHOD GetLinks(nsIDOMHTMLCollection * *aLinks) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLinks(aLinks); } \
  120. NS_IMETHOD GetForms(nsIDOMHTMLCollection * *aForms) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForms(aForms); } \
  121. NS_IMETHOD GetAnchors(nsIDOMHTMLCollection * *aAnchors) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnchors(aAnchors); } \
  122. NS_IMETHOD GetCookie(nsAString & aCookie) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCookie(aCookie); } \
  123. NS_IMETHOD SetCookie(const nsAString & aCookie) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCookie(aCookie); } \
  124. NS_IMETHOD Open(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Open(); } \
  125. NS_IMETHOD Close(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Close(); } \
  126. NS_IMETHOD Write(const nsAString & text) { return !_to ? NS_ERROR_NULL_POINTER : _to->Write(text); } \
  127. NS_IMETHOD Writeln(const nsAString & text) { return !_to ? NS_ERROR_NULL_POINTER : _to->Writeln(text); } \
  128. NS_IMETHOD GetElementsByName(const nsAString & elementName, nsIDOMNodeList **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElementsByName(elementName, _retval); }
  129. #if 0
  130. /* Use the code below as a template for the implementation class for this interface. */
  131. /* Header file */
  132. class nsDOMHTMLDocument : public nsIDOMHTMLDocument
  133. {
  134. public:
  135. NS_DECL_ISUPPORTS
  136. NS_DECL_NSIDOMHTMLDOCUMENT
  137. nsDOMHTMLDocument();
  138. private:
  139. ~nsDOMHTMLDocument();
  140. protected:
  141. /* additional members */
  142. };
  143. /* Implementation file */
  144. NS_IMPL_ISUPPORTS1(nsDOMHTMLDocument, nsIDOMHTMLDocument)
  145. nsDOMHTMLDocument::nsDOMHTMLDocument()
  146. {
  147. /* member initializers and constructor code */
  148. }
  149. nsDOMHTMLDocument::~nsDOMHTMLDocument()
  150. {
  151. /* destructor code */
  152. }
  153. /* attribute DOMString title; */
  154. NS_IMETHODIMP nsDOMHTMLDocument::GetTitle(nsAString & aTitle)
  155. {
  156. return NS_ERROR_NOT_IMPLEMENTED;
  157. }
  158. NS_IMETHODIMP nsDOMHTMLDocument::SetTitle(const nsAString & aTitle)
  159. {
  160. return NS_ERROR_NOT_IMPLEMENTED;
  161. }
  162. /* readonly attribute DOMString referrer; */
  163. NS_IMETHODIMP nsDOMHTMLDocument::GetReferrer(nsAString & aReferrer)
  164. {
  165. return NS_ERROR_NOT_IMPLEMENTED;
  166. }
  167. /* [noscript] readonly attribute DOMString domain; */
  168. NS_IMETHODIMP nsDOMHTMLDocument::GetDomain(nsAString & aDomain)
  169. {
  170. return NS_ERROR_NOT_IMPLEMENTED;
  171. }
  172. /* readonly attribute DOMString URL; */
  173. NS_IMETHODIMP nsDOMHTMLDocument::GetURL(nsAString & aURL)
  174. {
  175. return NS_ERROR_NOT_IMPLEMENTED;
  176. }
  177. /* attribute nsIDOMHTMLElement body; */
  178. NS_IMETHODIMP nsDOMHTMLDocument::GetBody(nsIDOMHTMLElement * *aBody)
  179. {
  180. return NS_ERROR_NOT_IMPLEMENTED;
  181. }
  182. NS_IMETHODIMP nsDOMHTMLDocument::SetBody(nsIDOMHTMLElement * aBody)
  183. {
  184. return NS_ERROR_NOT_IMPLEMENTED;
  185. }
  186. /* readonly attribute nsIDOMHTMLCollection images; */
  187. NS_IMETHODIMP nsDOMHTMLDocument::GetImages(nsIDOMHTMLCollection * *aImages)
  188. {
  189. return NS_ERROR_NOT_IMPLEMENTED;
  190. }
  191. /* readonly attribute nsIDOMHTMLCollection applets; */
  192. NS_IMETHODIMP nsDOMHTMLDocument::GetApplets(nsIDOMHTMLCollection * *aApplets)
  193. {
  194. return NS_ERROR_NOT_IMPLEMENTED;
  195. }
  196. /* readonly attribute nsIDOMHTMLCollection links; */
  197. NS_IMETHODIMP nsDOMHTMLDocument::GetLinks(nsIDOMHTMLCollection * *aLinks)
  198. {
  199. return NS_ERROR_NOT_IMPLEMENTED;
  200. }
  201. /* readonly attribute nsIDOMHTMLCollection forms; */
  202. NS_IMETHODIMP nsDOMHTMLDocument::GetForms(nsIDOMHTMLCollection * *aForms)
  203. {
  204. return NS_ERROR_NOT_IMPLEMENTED;
  205. }
  206. /* readonly attribute nsIDOMHTMLCollection anchors; */
  207. NS_IMETHODIMP nsDOMHTMLDocument::GetAnchors(nsIDOMHTMLCollection * *aAnchors)
  208. {
  209. return NS_ERROR_NOT_IMPLEMENTED;
  210. }
  211. /* attribute DOMString cookie; */
  212. NS_IMETHODIMP nsDOMHTMLDocument::GetCookie(nsAString & aCookie)
  213. {
  214. return NS_ERROR_NOT_IMPLEMENTED;
  215. }
  216. NS_IMETHODIMP nsDOMHTMLDocument::SetCookie(const nsAString & aCookie)
  217. {
  218. return NS_ERROR_NOT_IMPLEMENTED;
  219. }
  220. /* [noscript] void open (); */
  221. NS_IMETHODIMP nsDOMHTMLDocument::Open()
  222. {
  223. return NS_ERROR_NOT_IMPLEMENTED;
  224. }
  225. /* void close (); */
  226. NS_IMETHODIMP nsDOMHTMLDocument::Close()
  227. {
  228. return NS_ERROR_NOT_IMPLEMENTED;
  229. }
  230. /* [noscript] void write (in DOMString text); */
  231. NS_IMETHODIMP nsDOMHTMLDocument::Write(const nsAString & text)
  232. {
  233. return NS_ERROR_NOT_IMPLEMENTED;
  234. }
  235. /* [noscript] void writeln (in DOMString text); */
  236. NS_IMETHODIMP nsDOMHTMLDocument::Writeln(const nsAString & text)
  237. {
  238. return NS_ERROR_NOT_IMPLEMENTED;
  239. }
  240. /* nsIDOMNodeList getElementsByName (in DOMString elementName); */
  241. NS_IMETHODIMP nsDOMHTMLDocument::GetElementsByName(const nsAString & elementName, nsIDOMNodeList **_retval)
  242. {
  243. return NS_ERROR_NOT_IMPLEMENTED;
  244. }
  245. /* End of implementation class template. */
  246. #endif
  247. #endif /* __gen_nsIDOMHTMLDocument_h__ */