nsIDOMCSSValueList.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/css/nsIDOMCSSValueList.idl
  3. */
  4. #ifndef __gen_nsIDOMCSSValueList_h__
  5. #define __gen_nsIDOMCSSValueList_h__
  6. #ifndef __gen_nsIDOMCSSValue_h__
  7. #include "nsIDOMCSSValue.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: nsIDOMCSSValueList */
  14. #define NS_IDOMCSSVALUELIST_IID_STR "8f09fa84-39b9-4dca-9b2f-db0eeb186286"
  15. #define NS_IDOMCSSVALUELIST_IID \
  16. {0x8f09fa84, 0x39b9, 0x4dca, \
  17. { 0x9b, 0x2f, 0xdb, 0x0e, 0xeb, 0x18, 0x62, 0x86 }}
  18. class NS_NO_VTABLE nsIDOMCSSValueList : public nsIDOMCSSValue {
  19. public:
  20. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCSSVALUELIST_IID)
  21. /**
  22. * The nsIDOMCSSValueList interface is a datatype for a list of CSS
  23. * values 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. /* nsIDOMCSSValue item (in unsigned long index); */
  33. NS_IMETHOD Item(PRUint32 index, nsIDOMCSSValue **_retval) = 0;
  34. };
  35. /* Use this macro when declaring classes that implement this interface. */
  36. #define NS_DECL_NSIDOMCSSVALUELIST \
  37. NS_IMETHOD GetLength(PRUint32 *aLength); \
  38. NS_IMETHOD Item(PRUint32 index, nsIDOMCSSValue **_retval);
  39. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  40. #define NS_FORWARD_NSIDOMCSSVALUELIST(_to) \
  41. NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \
  42. NS_IMETHOD Item(PRUint32 index, nsIDOMCSSValue **_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_NSIDOMCSSVALUELIST(_to) \
  45. NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
  46. NS_IMETHOD Item(PRUint32 index, nsIDOMCSSValue **_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 nsDOMCSSValueList : public nsIDOMCSSValueList
  51. {
  52. public:
  53. NS_DECL_ISUPPORTS
  54. NS_DECL_NSIDOMCSSVALUELIST
  55. nsDOMCSSValueList();
  56. private:
  57. ~nsDOMCSSValueList();
  58. protected:
  59. /* additional members */
  60. };
  61. /* Implementation file */
  62. NS_IMPL_ISUPPORTS1(nsDOMCSSValueList, nsIDOMCSSValueList)
  63. nsDOMCSSValueList::nsDOMCSSValueList()
  64. {
  65. /* member initializers and constructor code */
  66. }
  67. nsDOMCSSValueList::~nsDOMCSSValueList()
  68. {
  69. /* destructor code */
  70. }
  71. /* readonly attribute unsigned long length; */
  72. NS_IMETHODIMP nsDOMCSSValueList::GetLength(PRUint32 *aLength)
  73. {
  74. return NS_ERROR_NOT_IMPLEMENTED;
  75. }
  76. /* nsIDOMCSSValue item (in unsigned long index); */
  77. NS_IMETHODIMP nsDOMCSSValueList::Item(PRUint32 index, nsIDOMCSSValue **_retval)
  78. {
  79. return NS_ERROR_NOT_IMPLEMENTED;
  80. }
  81. /* End of implementation class template. */
  82. #endif
  83. #endif /* __gen_nsIDOMCSSValueList_h__ */