nsIDOMHTMLBodyElement.h 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLBodyElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLBodyElement_h__
  5. #define __gen_nsIDOMHTMLBodyElement_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: nsIDOMHTMLBodyElement */
  14. #define NS_IDOMHTMLBODYELEMENT_IID_STR "a6cf908e-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLBODYELEMENT_IID \
  16. {0xa6cf908e, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLBodyElement interface is the interface to a [X]HTML
  20. * body 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 nsIDOMHTMLBodyElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLBODYELEMENT_IID)
  30. /* attribute DOMString aLink; */
  31. NS_IMETHOD GetALink(nsAString & aALink) = 0;
  32. NS_IMETHOD SetALink(const nsAString & aALink) = 0;
  33. /* attribute DOMString background; */
  34. NS_IMETHOD GetBackground(nsAString & aBackground) = 0;
  35. NS_IMETHOD SetBackground(const nsAString & aBackground) = 0;
  36. /* attribute DOMString bgColor; */
  37. NS_IMETHOD GetBgColor(nsAString & aBgColor) = 0;
  38. NS_IMETHOD SetBgColor(const nsAString & aBgColor) = 0;
  39. /* attribute DOMString link; */
  40. NS_IMETHOD GetLink(nsAString & aLink) = 0;
  41. NS_IMETHOD SetLink(const nsAString & aLink) = 0;
  42. /* attribute DOMString text; */
  43. NS_IMETHOD GetText(nsAString & aText) = 0;
  44. NS_IMETHOD SetText(const nsAString & aText) = 0;
  45. /* attribute DOMString vLink; */
  46. NS_IMETHOD GetVLink(nsAString & aVLink) = 0;
  47. NS_IMETHOD SetVLink(const nsAString & aVLink) = 0;
  48. };
  49. /* Use this macro when declaring classes that implement this interface. */
  50. #define NS_DECL_NSIDOMHTMLBODYELEMENT \
  51. NS_IMETHOD GetALink(nsAString & aALink); \
  52. NS_IMETHOD SetALink(const nsAString & aALink); \
  53. NS_IMETHOD GetBackground(nsAString & aBackground); \
  54. NS_IMETHOD SetBackground(const nsAString & aBackground); \
  55. NS_IMETHOD GetBgColor(nsAString & aBgColor); \
  56. NS_IMETHOD SetBgColor(const nsAString & aBgColor); \
  57. NS_IMETHOD GetLink(nsAString & aLink); \
  58. NS_IMETHOD SetLink(const nsAString & aLink); \
  59. NS_IMETHOD GetText(nsAString & aText); \
  60. NS_IMETHOD SetText(const nsAString & aText); \
  61. NS_IMETHOD GetVLink(nsAString & aVLink); \
  62. NS_IMETHOD SetVLink(const nsAString & aVLink);
  63. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  64. #define NS_FORWARD_NSIDOMHTMLBODYELEMENT(_to) \
  65. NS_IMETHOD GetALink(nsAString & aALink) { return _to GetALink(aALink); } \
  66. NS_IMETHOD SetALink(const nsAString & aALink) { return _to SetALink(aALink); } \
  67. NS_IMETHOD GetBackground(nsAString & aBackground) { return _to GetBackground(aBackground); } \
  68. NS_IMETHOD SetBackground(const nsAString & aBackground) { return _to SetBackground(aBackground); } \
  69. NS_IMETHOD GetBgColor(nsAString & aBgColor) { return _to GetBgColor(aBgColor); } \
  70. NS_IMETHOD SetBgColor(const nsAString & aBgColor) { return _to SetBgColor(aBgColor); } \
  71. NS_IMETHOD GetLink(nsAString & aLink) { return _to GetLink(aLink); } \
  72. NS_IMETHOD SetLink(const nsAString & aLink) { return _to SetLink(aLink); } \
  73. NS_IMETHOD GetText(nsAString & aText) { return _to GetText(aText); } \
  74. NS_IMETHOD SetText(const nsAString & aText) { return _to SetText(aText); } \
  75. NS_IMETHOD GetVLink(nsAString & aVLink) { return _to GetVLink(aVLink); } \
  76. NS_IMETHOD SetVLink(const nsAString & aVLink) { return _to SetVLink(aVLink); }
  77. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  78. #define NS_FORWARD_SAFE_NSIDOMHTMLBODYELEMENT(_to) \
  79. NS_IMETHOD GetALink(nsAString & aALink) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetALink(aALink); } \
  80. NS_IMETHOD SetALink(const nsAString & aALink) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetALink(aALink); } \
  81. NS_IMETHOD GetBackground(nsAString & aBackground) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBackground(aBackground); } \
  82. NS_IMETHOD SetBackground(const nsAString & aBackground) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBackground(aBackground); } \
  83. NS_IMETHOD GetBgColor(nsAString & aBgColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBgColor(aBgColor); } \
  84. NS_IMETHOD SetBgColor(const nsAString & aBgColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBgColor(aBgColor); } \
  85. NS_IMETHOD GetLink(nsAString & aLink) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLink(aLink); } \
  86. NS_IMETHOD SetLink(const nsAString & aLink) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLink(aLink); } \
  87. NS_IMETHOD GetText(nsAString & aText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetText(aText); } \
  88. NS_IMETHOD SetText(const nsAString & aText) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetText(aText); } \
  89. NS_IMETHOD GetVLink(nsAString & aVLink) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVLink(aVLink); } \
  90. NS_IMETHOD SetVLink(const nsAString & aVLink) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVLink(aVLink); }
  91. #if 0
  92. /* Use the code below as a template for the implementation class for this interface. */
  93. /* Header file */
  94. class nsDOMHTMLBodyElement : public nsIDOMHTMLBodyElement
  95. {
  96. public:
  97. NS_DECL_ISUPPORTS
  98. NS_DECL_NSIDOMHTMLBODYELEMENT
  99. nsDOMHTMLBodyElement();
  100. private:
  101. ~nsDOMHTMLBodyElement();
  102. protected:
  103. /* additional members */
  104. };
  105. /* Implementation file */
  106. NS_IMPL_ISUPPORTS1(nsDOMHTMLBodyElement, nsIDOMHTMLBodyElement)
  107. nsDOMHTMLBodyElement::nsDOMHTMLBodyElement()
  108. {
  109. /* member initializers and constructor code */
  110. }
  111. nsDOMHTMLBodyElement::~nsDOMHTMLBodyElement()
  112. {
  113. /* destructor code */
  114. }
  115. /* attribute DOMString aLink; */
  116. NS_IMETHODIMP nsDOMHTMLBodyElement::GetALink(nsAString & aALink)
  117. {
  118. return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120. NS_IMETHODIMP nsDOMHTMLBodyElement::SetALink(const nsAString & aALink)
  121. {
  122. return NS_ERROR_NOT_IMPLEMENTED;
  123. }
  124. /* attribute DOMString background; */
  125. NS_IMETHODIMP nsDOMHTMLBodyElement::GetBackground(nsAString & aBackground)
  126. {
  127. return NS_ERROR_NOT_IMPLEMENTED;
  128. }
  129. NS_IMETHODIMP nsDOMHTMLBodyElement::SetBackground(const nsAString & aBackground)
  130. {
  131. return NS_ERROR_NOT_IMPLEMENTED;
  132. }
  133. /* attribute DOMString bgColor; */
  134. NS_IMETHODIMP nsDOMHTMLBodyElement::GetBgColor(nsAString & aBgColor)
  135. {
  136. return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138. NS_IMETHODIMP nsDOMHTMLBodyElement::SetBgColor(const nsAString & aBgColor)
  139. {
  140. return NS_ERROR_NOT_IMPLEMENTED;
  141. }
  142. /* attribute DOMString link; */
  143. NS_IMETHODIMP nsDOMHTMLBodyElement::GetLink(nsAString & aLink)
  144. {
  145. return NS_ERROR_NOT_IMPLEMENTED;
  146. }
  147. NS_IMETHODIMP nsDOMHTMLBodyElement::SetLink(const nsAString & aLink)
  148. {
  149. return NS_ERROR_NOT_IMPLEMENTED;
  150. }
  151. /* attribute DOMString text; */
  152. NS_IMETHODIMP nsDOMHTMLBodyElement::GetText(nsAString & aText)
  153. {
  154. return NS_ERROR_NOT_IMPLEMENTED;
  155. }
  156. NS_IMETHODIMP nsDOMHTMLBodyElement::SetText(const nsAString & aText)
  157. {
  158. return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160. /* attribute DOMString vLink; */
  161. NS_IMETHODIMP nsDOMHTMLBodyElement::GetVLink(nsAString & aVLink)
  162. {
  163. return NS_ERROR_NOT_IMPLEMENTED;
  164. }
  165. NS_IMETHODIMP nsDOMHTMLBodyElement::SetVLink(const nsAString & aVLink)
  166. {
  167. return NS_ERROR_NOT_IMPLEMENTED;
  168. }
  169. /* End of implementation class template. */
  170. #endif
  171. #endif /* __gen_nsIDOMHTMLBodyElement_h__ */