nsIDOMCSSRuleList.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/css/nsIDOMCSSRuleList.idl
  3. */
  4. #ifndef __gen_nsIDOMCSSRuleList_h__
  5. #define __gen_nsIDOMCSSRuleList_h__
  6. #ifndef __gen_domstubs_h__
  7. #include "domstubs.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: nsIDOMCSSRuleList */
  14. #define NS_IDOMCSSRULELIST_IID_STR "a6cf90c0-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMCSSRULELIST_IID \
  16. {0xa6cf90c0, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE nsIDOMCSSRuleList : public nsISupports {
  19. public:
  20. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCSSRULELIST_IID)
  21. /**
  22. * The nsIDOMCSSRuleList interface is a datatype for a list of CSS
  23. * style rules in the Document Object Model.
  24. *
  25. * For more information on this interface please see
  26. * http://www.w3.org/TR/DOM-Level-2-Style
  27. *
  28. * @status FROZEN
  29. */
  30. /* readonly attribute unsigned long length; */
  31. NS_IMETHOD GetLength(PRUint32 *aLength) = 0;
  32. /* nsIDOMCSSRule item (in unsigned long index); */
  33. NS_IMETHOD Item(PRUint32 index, nsIDOMCSSRule **_retval) = 0;
  34. };
  35. /* Use this macro when declaring classes that implement this interface. */
  36. #define NS_DECL_NSIDOMCSSRULELIST \
  37. NS_IMETHOD GetLength(PRUint32 *aLength); \
  38. NS_IMETHOD Item(PRUint32 index, nsIDOMCSSRule **_retval);
  39. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  40. #define NS_FORWARD_NSIDOMCSSRULELIST(_to) \
  41. NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
  42. NS_IMETHOD Item(PRUint32 index, nsIDOMCSSRule **_retval) { return _to Item(index, _retval); }
  43. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  44. #define NS_FORWARD_SAFE_NSIDOMCSSRULELIST(_to) \
  45. NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  46. NS_IMETHOD Item(PRUint32 index, nsIDOMCSSRule **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Item(index, _retval); }
  47. #if 0
  48. /* Use the code below as a template for the implementation class for this interface. */
  49. /* Header file */
  50. class nsDOMCSSRuleList : public nsIDOMCSSRuleList
  51. {
  52. public:
  53. NS_DECL_ISUPPORTS
  54. NS_DECL_NSIDOMCSSRULELIST
  55. nsDOMCSSRuleList();
  56. private:
  57. ~nsDOMCSSRuleList();
  58. protected:
  59. /* additional members */
  60. };
  61. /* Implementation file */
  62. NS_IMPL_ISUPPORTS1(nsDOMCSSRuleList, nsIDOMCSSRuleList)
  63. nsDOMCSSRuleList::nsDOMCSSRuleList()
  64. {
  65. /* member initializers and constructor code */
  66. }
  67. nsDOMCSSRuleList::~nsDOMCSSRuleList()
  68. {
  69. /* destructor code */
  70. }
  71. /* readonly attribute unsigned long length; */
  72. NS_IMETHODIMP nsDOMCSSRuleList::GetLength(PRUint32 *aLength)
  73. {
  74. return NS_ERROR_NOT_IMPLEMENTED;
  75. }
  76. /* nsIDOMCSSRule item (in unsigned long index); */
  77. NS_IMETHODIMP nsDOMCSSRuleList::Item(PRUint32 index, nsIDOMCSSRule **_retval)
  78. {
  79. return NS_ERROR_NOT_IMPLEMENTED;
  80. }
  81. /* End of implementation class template. */
  82. #endif
  83. #endif /* __gen_nsIDOMCSSRuleList_h__ */