nsIDOMHTMLTableRowElement.h 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/html/nsIDOMHTMLTableRowElement.idl
  3. */
  4. #ifndef __gen_nsIDOMHTMLTableRowElement_h__
  5. #define __gen_nsIDOMHTMLTableRowElement_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: nsIDOMHTMLTableRowElement */
  14. #define NS_IDOMHTMLTABLEROWELEMENT_IID_STR "a6cf90b6-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMHTMLTABLEROWELEMENT_IID \
  16. {0xa6cf90b6, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. /**
  19. * The nsIDOMHTMLTableRowElement interface is the interface to a
  20. * [X]HTML tr 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 nsIDOMHTMLTableRowElement : public nsIDOMHTMLElement {
  28. public:
  29. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLTABLEROWELEMENT_IID)
  30. /* readonly attribute long rowIndex; */
  31. NS_IMETHOD GetRowIndex(PRInt32 *aRowIndex) = 0;
  32. /* readonly attribute long sectionRowIndex; */
  33. NS_IMETHOD GetSectionRowIndex(PRInt32 *aSectionRowIndex) = 0;
  34. /* readonly attribute nsIDOMHTMLCollection cells; */
  35. NS_IMETHOD GetCells(nsIDOMHTMLCollection * *aCells) = 0;
  36. /* attribute DOMString align; */
  37. NS_IMETHOD GetAlign(nsAString & aAlign) = 0;
  38. NS_IMETHOD SetAlign(const nsAString & aAlign) = 0;
  39. /* attribute DOMString bgColor; */
  40. NS_IMETHOD GetBgColor(nsAString & aBgColor) = 0;
  41. NS_IMETHOD SetBgColor(const nsAString & aBgColor) = 0;
  42. /* attribute DOMString ch; */
  43. NS_IMETHOD GetCh(nsAString & aCh) = 0;
  44. NS_IMETHOD SetCh(const nsAString & aCh) = 0;
  45. /* attribute DOMString chOff; */
  46. NS_IMETHOD GetChOff(nsAString & aChOff) = 0;
  47. NS_IMETHOD SetChOff(const nsAString & aChOff) = 0;
  48. /* attribute DOMString vAlign; */
  49. NS_IMETHOD GetVAlign(nsAString & aVAlign) = 0;
  50. NS_IMETHOD SetVAlign(const nsAString & aVAlign) = 0;
  51. /* nsIDOMHTMLElement insertCell (in long index) raises (DOMException); */
  52. NS_IMETHOD InsertCell(PRInt32 index, nsIDOMHTMLElement **_retval) = 0;
  53. /* void deleteCell (in long index) raises (DOMException); */
  54. NS_IMETHOD DeleteCell(PRInt32 index) = 0;
  55. };
  56. /* Use this macro when declaring classes that implement this interface. */
  57. #define NS_DECL_NSIDOMHTMLTABLEROWELEMENT \
  58. NS_IMETHOD GetRowIndex(PRInt32 *aRowIndex); \
  59. NS_IMETHOD GetSectionRowIndex(PRInt32 *aSectionRowIndex); \
  60. NS_IMETHOD GetCells(nsIDOMHTMLCollection * *aCells); \
  61. NS_IMETHOD GetAlign(nsAString & aAlign); \
  62. NS_IMETHOD SetAlign(const nsAString & aAlign); \
  63. NS_IMETHOD GetBgColor(nsAString & aBgColor); \
  64. NS_IMETHOD SetBgColor(const nsAString & aBgColor); \
  65. NS_IMETHOD GetCh(nsAString & aCh); \
  66. NS_IMETHOD SetCh(const nsAString & aCh); \
  67. NS_IMETHOD GetChOff(nsAString & aChOff); \
  68. NS_IMETHOD SetChOff(const nsAString & aChOff); \
  69. NS_IMETHOD GetVAlign(nsAString & aVAlign); \
  70. NS_IMETHOD SetVAlign(const nsAString & aVAlign); \
  71. NS_IMETHOD InsertCell(PRInt32 index, nsIDOMHTMLElement **_retval); \
  72. NS_IMETHOD DeleteCell(PRInt32 index);
  73. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  74. #define NS_FORWARD_NSIDOMHTMLTABLEROWELEMENT(_to) \
  75. NS_IMETHOD GetRowIndex(PRInt32 *aRowIndex) { return _to GetRowIndex(aRowIndex); } \
  76. NS_IMETHOD GetSectionRowIndex(PRInt32 *aSectionRowIndex) { return _to GetSectionRowIndex(aSectionRowIndex); } \
  77. NS_IMETHOD GetCells(nsIDOMHTMLCollection * *aCells) { return _to GetCells(aCells); } \
  78. NS_IMETHOD GetAlign(nsAString & aAlign) { return _to GetAlign(aAlign); } \
  79. NS_IMETHOD SetAlign(const nsAString & aAlign) { return _to SetAlign(aAlign); } \
  80. NS_IMETHOD GetBgColor(nsAString & aBgColor) { return _to GetBgColor(aBgColor); } \
  81. NS_IMETHOD SetBgColor(const nsAString & aBgColor) { return _to SetBgColor(aBgColor); } \
  82. NS_IMETHOD GetCh(nsAString & aCh) { return _to GetCh(aCh); } \
  83. NS_IMETHOD SetCh(const nsAString & aCh) { return _to SetCh(aCh); } \
  84. NS_IMETHOD GetChOff(nsAString & aChOff) { return _to GetChOff(aChOff); } \
  85. NS_IMETHOD SetChOff(const nsAString & aChOff) { return _to SetChOff(aChOff); } \
  86. NS_IMETHOD GetVAlign(nsAString & aVAlign) { return _to GetVAlign(aVAlign); } \
  87. NS_IMETHOD SetVAlign(const nsAString & aVAlign) { return _to SetVAlign(aVAlign); } \
  88. NS_IMETHOD InsertCell(PRInt32 index, nsIDOMHTMLElement **_retval) { return _to InsertCell(index, _retval); } \
  89. NS_IMETHOD DeleteCell(PRInt32 index) { return _to DeleteCell(index); }
  90. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  91. #define NS_FORWARD_SAFE_NSIDOMHTMLTABLEROWELEMENT(_to) \
  92. NS_IMETHOD GetRowIndex(PRInt32 *aRowIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRowIndex(aRowIndex); } \
  93. NS_IMETHOD GetSectionRowIndex(PRInt32 *aSectionRowIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSectionRowIndex(aSectionRowIndex); } \
  94. NS_IMETHOD GetCells(nsIDOMHTMLCollection * *aCells) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCells(aCells); } \
  95. NS_IMETHOD GetAlign(nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAlign(aAlign); } \
  96. NS_IMETHOD SetAlign(const nsAString & aAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAlign(aAlign); } \
  97. NS_IMETHOD GetBgColor(nsAString & aBgColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBgColor(aBgColor); } \
  98. NS_IMETHOD SetBgColor(const nsAString & aBgColor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetBgColor(aBgColor); } \
  99. NS_IMETHOD GetCh(nsAString & aCh) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCh(aCh); } \
  100. NS_IMETHOD SetCh(const nsAString & aCh) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCh(aCh); } \
  101. NS_IMETHOD GetChOff(nsAString & aChOff) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChOff(aChOff); } \
  102. NS_IMETHOD SetChOff(const nsAString & aChOff) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetChOff(aChOff); } \
  103. NS_IMETHOD GetVAlign(nsAString & aVAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetVAlign(aVAlign); } \
  104. NS_IMETHOD SetVAlign(const nsAString & aVAlign) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetVAlign(aVAlign); } \
  105. NS_IMETHOD InsertCell(PRInt32 index, nsIDOMHTMLElement **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertCell(index, _retval); } \
  106. NS_IMETHOD DeleteCell(PRInt32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteCell(index); }
  107. #if 0
  108. /* Use the code below as a template for the implementation class for this interface. */
  109. /* Header file */
  110. class nsDOMHTMLTableRowElement : public nsIDOMHTMLTableRowElement
  111. {
  112. public:
  113. NS_DECL_ISUPPORTS
  114. NS_DECL_NSIDOMHTMLTABLEROWELEMENT
  115. nsDOMHTMLTableRowElement();
  116. private:
  117. ~nsDOMHTMLTableRowElement();
  118. protected:
  119. /* additional members */
  120. };
  121. /* Implementation file */
  122. NS_IMPL_ISUPPORTS1(nsDOMHTMLTableRowElement, nsIDOMHTMLTableRowElement)
  123. nsDOMHTMLTableRowElement::nsDOMHTMLTableRowElement()
  124. {
  125. /* member initializers and constructor code */
  126. }
  127. nsDOMHTMLTableRowElement::~nsDOMHTMLTableRowElement()
  128. {
  129. /* destructor code */
  130. }
  131. /* readonly attribute long rowIndex; */
  132. NS_IMETHODIMP nsDOMHTMLTableRowElement::GetRowIndex(PRInt32 *aRowIndex)
  133. {
  134. return NS_ERROR_NOT_IMPLEMENTED;
  135. }
  136. /* readonly attribute long sectionRowIndex; */
  137. NS_IMETHODIMP nsDOMHTMLTableRowElement::GetSectionRowIndex(PRInt32 *aSectionRowIndex)
  138. {
  139. return NS_ERROR_NOT_IMPLEMENTED;
  140. }
  141. /* readonly attribute nsIDOMHTMLCollection cells; */
  142. NS_IMETHODIMP nsDOMHTMLTableRowElement::GetCells(nsIDOMHTMLCollection * *aCells)
  143. {
  144. return NS_ERROR_NOT_IMPLEMENTED;
  145. }
  146. /* attribute DOMString align; */
  147. NS_IMETHODIMP nsDOMHTMLTableRowElement::GetAlign(nsAString & aAlign)
  148. {
  149. return NS_ERROR_NOT_IMPLEMENTED;
  150. }
  151. NS_IMETHODIMP nsDOMHTMLTableRowElement::SetAlign(const nsAString & aAlign)
  152. {
  153. return NS_ERROR_NOT_IMPLEMENTED;
  154. }
  155. /* attribute DOMString bgColor; */
  156. NS_IMETHODIMP nsDOMHTMLTableRowElement::GetBgColor(nsAString & aBgColor)
  157. {
  158. return NS_ERROR_NOT_IMPLEMENTED;
  159. }
  160. NS_IMETHODIMP nsDOMHTMLTableRowElement::SetBgColor(const nsAString & aBgColor)
  161. {
  162. return NS_ERROR_NOT_IMPLEMENTED;
  163. }
  164. /* attribute DOMString ch; */
  165. NS_IMETHODIMP nsDOMHTMLTableRowElement::GetCh(nsAString & aCh)
  166. {
  167. return NS_ERROR_NOT_IMPLEMENTED;
  168. }
  169. NS_IMETHODIMP nsDOMHTMLTableRowElement::SetCh(const nsAString & aCh)
  170. {
  171. return NS_ERROR_NOT_IMPLEMENTED;
  172. }
  173. /* attribute DOMString chOff; */
  174. NS_IMETHODIMP nsDOMHTMLTableRowElement::GetChOff(nsAString & aChOff)
  175. {
  176. return NS_ERROR_NOT_IMPLEMENTED;
  177. }
  178. NS_IMETHODIMP nsDOMHTMLTableRowElement::SetChOff(const nsAString & aChOff)
  179. {
  180. return NS_ERROR_NOT_IMPLEMENTED;
  181. }
  182. /* attribute DOMString vAlign; */
  183. NS_IMETHODIMP nsDOMHTMLTableRowElement::GetVAlign(nsAString & aVAlign)
  184. {
  185. return NS_ERROR_NOT_IMPLEMENTED;
  186. }
  187. NS_IMETHODIMP nsDOMHTMLTableRowElement::SetVAlign(const nsAString & aVAlign)
  188. {
  189. return NS_ERROR_NOT_IMPLEMENTED;
  190. }
  191. /* nsIDOMHTMLElement insertCell (in long index) raises (DOMException); */
  192. NS_IMETHODIMP nsDOMHTMLTableRowElement::InsertCell(PRInt32 index, nsIDOMHTMLElement **_retval)
  193. {
  194. return NS_ERROR_NOT_IMPLEMENTED;
  195. }
  196. /* void deleteCell (in long index) raises (DOMException); */
  197. NS_IMETHODIMP nsDOMHTMLTableRowElement::DeleteCell(PRInt32 index)
  198. {
  199. return NS_ERROR_NOT_IMPLEMENTED;
  200. }
  201. /* End of implementation class template. */
  202. #endif
  203. #endif /* __gen_nsIDOMHTMLTableRowElement_h__ */