nsIDOMCSSValue.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/css/nsIDOMCSSValue.idl
  3. */
  4. #ifndef __gen_nsIDOMCSSValue_h__
  5. #define __gen_nsIDOMCSSValue_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: nsIDOMCSSValue */
  14. #define NS_IDOMCSSVALUE_IID_STR "009f7ea5-9e80-41be-b008-db62f10823f2"
  15. #define NS_IDOMCSSVALUE_IID \
  16. {0x009f7ea5, 0x9e80, 0x41be, \
  17. { 0xb0, 0x08, 0xdb, 0x62, 0xf1, 0x08, 0x23, 0xf2 }}
  18. class NS_NO_VTABLE nsIDOMCSSValue : public nsISupports {
  19. public:
  20. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCSSVALUE_IID)
  21. /**
  22. * The nsIDOMCSSValue interface is a datatype for a CSS value in the
  23. * 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. enum { CSS_INHERIT = 0U };
  31. enum { CSS_PRIMITIVE_VALUE = 1U };
  32. enum { CSS_VALUE_LIST = 2U };
  33. enum { CSS_CUSTOM = 3U };
  34. /* attribute DOMString cssText; */
  35. NS_IMETHOD GetCssText(nsAString & aCssText) = 0;
  36. NS_IMETHOD SetCssText(const nsAString & aCssText) = 0;
  37. /* readonly attribute unsigned short cssValueType; */
  38. NS_IMETHOD GetCssValueType(PRUint16 *aCssValueType) = 0;
  39. };
  40. /* Use this macro when declaring classes that implement this interface. */
  41. #define NS_DECL_NSIDOMCSSVALUE \
  42. NS_IMETHOD GetCssText(nsAString & aCssText); \
  43. NS_IMETHOD SetCssText(const nsAString & aCssText); \
  44. NS_IMETHOD GetCssValueType(PRUint16 *aCssValueType);
  45. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  46. #define NS_FORWARD_NSIDOMCSSVALUE(_to) \
  47. NS_IMETHOD GetCssText(nsAString & aCssText) { return _to GetCssText(aCssText); } \
  48. NS_IMETHOD SetCssText(const nsAString & aCssText) { return _to SetCssText(aCssText); } \
  49. NS_IMETHOD GetCssValueType(PRUint16 *aCssValueType) { return _to GetCssValueType(aCssValueType); }
  50. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  51. #define NS_FORWARD_SAFE_NSIDOMCSSVALUE(_to) \
  52. NS_IMETHOD GetCssText(nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssText(aCssText); } \
  53. NS_IMETHOD SetCssText(const nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCssText(aCssText); } \
  54. NS_IMETHOD GetCssValueType(PRUint16 *aCssValueType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssValueType(aCssValueType); }
  55. #if 0
  56. /* Use the code below as a template for the implementation class for this interface. */
  57. /* Header file */
  58. class nsDOMCSSValue : public nsIDOMCSSValue
  59. {
  60. public:
  61. NS_DECL_ISUPPORTS
  62. NS_DECL_NSIDOMCSSVALUE
  63. nsDOMCSSValue();
  64. private:
  65. ~nsDOMCSSValue();
  66. protected:
  67. /* additional members */
  68. };
  69. /* Implementation file */
  70. NS_IMPL_ISUPPORTS1(nsDOMCSSValue, nsIDOMCSSValue)
  71. nsDOMCSSValue::nsDOMCSSValue()
  72. {
  73. /* member initializers and constructor code */
  74. }
  75. nsDOMCSSValue::~nsDOMCSSValue()
  76. {
  77. /* destructor code */
  78. }
  79. /* attribute DOMString cssText; */
  80. NS_IMETHODIMP nsDOMCSSValue::GetCssText(nsAString & aCssText)
  81. {
  82. return NS_ERROR_NOT_IMPLEMENTED;
  83. }
  84. NS_IMETHODIMP nsDOMCSSValue::SetCssText(const nsAString & aCssText)
  85. {
  86. return NS_ERROR_NOT_IMPLEMENTED;
  87. }
  88. /* readonly attribute unsigned short cssValueType; */
  89. NS_IMETHODIMP nsDOMCSSValue::GetCssValueType(PRUint16 *aCssValueType)
  90. {
  91. return NS_ERROR_NOT_IMPLEMENTED;
  92. }
  93. /* End of implementation class template. */
  94. #endif
  95. #endif /* __gen_nsIDOMCSSValue_h__ */