nsIDOMStyleSheetList.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/stylesheets/nsIDOMStyleSheetList.idl
  3. */
  4. #ifndef __gen_nsIDOMStyleSheetList_h__
  5. #define __gen_nsIDOMStyleSheetList_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: nsIDOMStyleSheetList */
  14. #define NS_IDOMSTYLESHEETLIST_IID_STR "a6cf9081-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMSTYLESHEETLIST_IID \
  16. {0xa6cf9081, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE nsIDOMStyleSheetList : public nsISupports {
  19. public:
  20. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMSTYLESHEETLIST_IID)
  21. /**
  22. * The nsIDOMStyleSheetList interface is a datatype for a style sheet
  23. * list 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. /* nsIDOMStyleSheet item (in unsigned long index); */
  33. NS_IMETHOD Item(PRUint32 index, nsIDOMStyleSheet **_retval) = 0;
  34. };
  35. /* Use this macro when declaring classes that implement this interface. */
  36. #define NS_DECL_NSIDOMSTYLESHEETLIST \
  37. NS_IMETHOD GetLength(PRUint32 *aLength); \
  38. NS_IMETHOD Item(PRUint32 index, nsIDOMStyleSheet **_retval);
  39. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  40. #define NS_FORWARD_NSIDOMSTYLESHEETLIST(_to) \
  41. NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
  42. NS_IMETHOD Item(PRUint32 index, nsIDOMStyleSheet **_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_NSIDOMSTYLESHEETLIST(_to) \
  45. NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  46. NS_IMETHOD Item(PRUint32 index, nsIDOMStyleSheet **_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 nsDOMStyleSheetList : public nsIDOMStyleSheetList
  51. {
  52. public:
  53. NS_DECL_ISUPPORTS
  54. NS_DECL_NSIDOMSTYLESHEETLIST
  55. nsDOMStyleSheetList();
  56. private:
  57. ~nsDOMStyleSheetList();
  58. protected:
  59. /* additional members */
  60. };
  61. /* Implementation file */
  62. NS_IMPL_ISUPPORTS1(nsDOMStyleSheetList, nsIDOMStyleSheetList)
  63. nsDOMStyleSheetList::nsDOMStyleSheetList()
  64. {
  65. /* member initializers and constructor code */
  66. }
  67. nsDOMStyleSheetList::~nsDOMStyleSheetList()
  68. {
  69. /* destructor code */
  70. }
  71. /* readonly attribute unsigned long length; */
  72. NS_IMETHODIMP nsDOMStyleSheetList::GetLength(PRUint32 *aLength)
  73. {
  74. return NS_ERROR_NOT_IMPLEMENTED;
  75. }
  76. /* nsIDOMStyleSheet item (in unsigned long index); */
  77. NS_IMETHODIMP nsDOMStyleSheetList::Item(PRUint32 index, nsIDOMStyleSheet **_retval)
  78. {
  79. return NS_ERROR_NOT_IMPLEMENTED;
  80. }
  81. /* End of implementation class template. */
  82. #endif
  83. #endif /* __gen_nsIDOMStyleSheetList_h__ */