nsIDOMCSSStyleSheet.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/mozilla/dom/public/idl/css/nsIDOMCSSStyleSheet.idl
  3. */
  4. #ifndef __gen_nsIDOMCSSStyleSheet_h__
  5. #define __gen_nsIDOMCSSStyleSheet_h__
  6. #ifndef __gen_nsIDOMStyleSheet_h__
  7. #include "nsIDOMStyleSheet.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: nsIDOMCSSStyleSheet */
  14. #define NS_IDOMCSSSTYLESHEET_IID_STR "a6cf90c2-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMCSSSTYLESHEET_IID \
  16. {0xa6cf90c2, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE nsIDOMCSSStyleSheet : public nsIDOMStyleSheet {
  19. public:
  20. NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCSSSTYLESHEET_IID)
  21. /**
  22. * The nsIDOMCSSStyleSheet interface is a datatype for a CSS style
  23. * sheet 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 nsIDOMCSSRule ownerRule; */
  31. NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) = 0;
  32. /* readonly attribute nsIDOMCSSRuleList cssRules; */
  33. NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) = 0;
  34. /* unsigned long insertRule (in DOMString rule, in unsigned long index) raises (DOMException); */
  35. NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval) = 0;
  36. /* void deleteRule (in unsigned long index) raises (DOMException); */
  37. NS_IMETHOD DeleteRule(PRUint32 index) = 0;
  38. };
  39. /* Use this macro when declaring classes that implement this interface. */
  40. #define NS_DECL_NSIDOMCSSSTYLESHEET \
  41. NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule); \
  42. NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules); \
  43. NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval); \
  44. NS_IMETHOD DeleteRule(PRUint32 index);
  45. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  46. #define NS_FORWARD_NSIDOMCSSSTYLESHEET(_to) \
  47. NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) { return _to GetOwnerRule(aOwnerRule); } \
  48. NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) { return _to GetCssRules(aCssRules); } \
  49. NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval) { return _to InsertRule(rule, index, _retval); } \
  50. NS_IMETHOD DeleteRule(PRUint32 index) { return _to DeleteRule(index); }
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  52. #define NS_FORWARD_SAFE_NSIDOMCSSSTYLESHEET(_to) \
  53. NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerRule(aOwnerRule); } \
  54. NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssRules(aCssRules); } \
  55. NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertRule(rule, index, _retval); } \
  56. NS_IMETHOD DeleteRule(PRUint32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteRule(index); }
  57. #if 0
  58. /* Use the code below as a template for the implementation class for this interface. */
  59. /* Header file */
  60. class nsDOMCSSStyleSheet : public nsIDOMCSSStyleSheet
  61. {
  62. public:
  63. NS_DECL_ISUPPORTS
  64. NS_DECL_NSIDOMCSSSTYLESHEET
  65. nsDOMCSSStyleSheet();
  66. private:
  67. ~nsDOMCSSStyleSheet();
  68. protected:
  69. /* additional members */
  70. };
  71. /* Implementation file */
  72. NS_IMPL_ISUPPORTS1(nsDOMCSSStyleSheet, nsIDOMCSSStyleSheet)
  73. nsDOMCSSStyleSheet::nsDOMCSSStyleSheet()
  74. {
  75. /* member initializers and constructor code */
  76. }
  77. nsDOMCSSStyleSheet::~nsDOMCSSStyleSheet()
  78. {
  79. /* destructor code */
  80. }
  81. /* readonly attribute nsIDOMCSSRule ownerRule; */
  82. NS_IMETHODIMP nsDOMCSSStyleSheet::GetOwnerRule(nsIDOMCSSRule * *aOwnerRule)
  83. {
  84. return NS_ERROR_NOT_IMPLEMENTED;
  85. }
  86. /* readonly attribute nsIDOMCSSRuleList cssRules; */
  87. NS_IMETHODIMP nsDOMCSSStyleSheet::GetCssRules(nsIDOMCSSRuleList * *aCssRules)
  88. {
  89. return NS_ERROR_NOT_IMPLEMENTED;
  90. }
  91. /* unsigned long insertRule (in DOMString rule, in unsigned long index) raises (DOMException); */
  92. NS_IMETHODIMP nsDOMCSSStyleSheet::InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval)
  93. {
  94. return NS_ERROR_NOT_IMPLEMENTED;
  95. }
  96. /* void deleteRule (in unsigned long index) raises (DOMException); */
  97. NS_IMETHODIMP nsDOMCSSStyleSheet::DeleteRule(PRUint32 index)
  98. {
  99. return NS_ERROR_NOT_IMPLEMENTED;
  100. }
  101. /* End of implementation class template. */
  102. #endif
  103. #endif /* __gen_nsIDOMCSSStyleSheet_h__ */