PageRenderTime 40ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIDOMCSSStyleSheet.h

http://firefox-mac-pdf.googlecode.com/
C Header | 136 lines | 72 code | 32 blank | 32 comment | 0 complexity | 526a43f99d3bc97dcdfd16ef84d8dfad MD5 | raw file
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/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 NS_SCRIPTABLE nsIDOMCSSStyleSheet : public nsIDOMStyleSheet {
  19. public:
  20. NS_DECLARE_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_SCRIPTABLE NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) = 0;
  32. /* readonly attribute nsIDOMCSSRuleList cssRules; */
  33. NS_SCRIPTABLE NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) = 0;
  34. /* unsigned long insertRule (in DOMString rule, in unsigned long index) raises (DOMException); */
  35. NS_SCRIPTABLE NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval) = 0;
  36. /* void deleteRule (in unsigned long index) raises (DOMException); */
  37. NS_SCRIPTABLE NS_IMETHOD DeleteRule(PRUint32 index) = 0;
  38. };
  39. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSStyleSheet, NS_IDOMCSSSTYLESHEET_IID)
  40. /* Use this macro when declaring classes that implement this interface. */
  41. #define NS_DECL_NSIDOMCSSSTYLESHEET \
  42. NS_SCRIPTABLE NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule); \
  43. NS_SCRIPTABLE NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules); \
  44. NS_SCRIPTABLE NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval); \
  45. NS_SCRIPTABLE NS_IMETHOD DeleteRule(PRUint32 index);
  46. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  47. #define NS_FORWARD_NSIDOMCSSSTYLESHEET(_to) \
  48. NS_SCRIPTABLE NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) { return _to GetOwnerRule(aOwnerRule); } \
  49. NS_SCRIPTABLE NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) { return _to GetCssRules(aCssRules); } \
  50. NS_SCRIPTABLE NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval) { return _to InsertRule(rule, index, _retval); } \
  51. NS_SCRIPTABLE NS_IMETHOD DeleteRule(PRUint32 index) { return _to DeleteRule(index); }
  52. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  53. #define NS_FORWARD_SAFE_NSIDOMCSSSTYLESHEET(_to) \
  54. NS_SCRIPTABLE NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerRule(aOwnerRule); } \
  55. NS_SCRIPTABLE NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssRules(aCssRules); } \
  56. NS_SCRIPTABLE NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertRule(rule, index, _retval); } \
  57. NS_SCRIPTABLE NS_IMETHOD DeleteRule(PRUint32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->DeleteRule(index); }
  58. #if 0
  59. /* Use the code below as a template for the implementation class for this interface. */
  60. /* Header file */
  61. class nsDOMCSSStyleSheet : public nsIDOMCSSStyleSheet
  62. {
  63. public:
  64. NS_DECL_ISUPPORTS
  65. NS_DECL_NSIDOMCSSSTYLESHEET
  66. nsDOMCSSStyleSheet();
  67. private:
  68. ~nsDOMCSSStyleSheet();
  69. protected:
  70. /* additional members */
  71. };
  72. /* Implementation file */
  73. NS_IMPL_ISUPPORTS1(nsDOMCSSStyleSheet, nsIDOMCSSStyleSheet)
  74. nsDOMCSSStyleSheet::nsDOMCSSStyleSheet()
  75. {
  76. /* member initializers and constructor code */
  77. }
  78. nsDOMCSSStyleSheet::~nsDOMCSSStyleSheet()
  79. {
  80. /* destructor code */
  81. }
  82. /* readonly attribute nsIDOMCSSRule ownerRule; */
  83. NS_IMETHODIMP nsDOMCSSStyleSheet::GetOwnerRule(nsIDOMCSSRule * *aOwnerRule)
  84. {
  85. return NS_ERROR_NOT_IMPLEMENTED;
  86. }
  87. /* readonly attribute nsIDOMCSSRuleList cssRules; */
  88. NS_IMETHODIMP nsDOMCSSStyleSheet::GetCssRules(nsIDOMCSSRuleList * *aCssRules)
  89. {
  90. return NS_ERROR_NOT_IMPLEMENTED;
  91. }
  92. /* unsigned long insertRule (in DOMString rule, in unsigned long index) raises (DOMException); */
  93. NS_IMETHODIMP nsDOMCSSStyleSheet::InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retval)
  94. {
  95. return NS_ERROR_NOT_IMPLEMENTED;
  96. }
  97. /* void deleteRule (in unsigned long index) raises (DOMException); */
  98. NS_IMETHODIMP nsDOMCSSStyleSheet::DeleteRule(PRUint32 index)
  99. {
  100. return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102. /* End of implementation class template. */
  103. #endif
  104. #endif /* __gen_nsIDOMCSSStyleSheet_h__ */