PageRenderTime 15ms CodeModel.GetById 8ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIDOMCSSRule.h

http://firefox-mac-pdf.googlecode.com/
C Header | 158 lines | 87 code | 39 blank | 32 comment | 0 complexity | 4e445fa07c7f5d7b5bd64db90ed583f0 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/nsIDOMCSSRule.idl
  3. */
  4. #ifndef __gen_nsIDOMCSSRule_h__
  5. #define __gen_nsIDOMCSSRule_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: nsIDOMCSSRule */
  14. #define NS_IDOMCSSRULE_IID_STR "a6cf90c1-15b3-11d2-932e-00805f8add32"
  15. #define NS_IDOMCSSRULE_IID \
  16. {0xa6cf90c1, 0x15b3, 0x11d2, \
  17. { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  18. class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMCSSRule : public nsISupports {
  19. public:
  20. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSRULE_IID)
  21. /**
  22. * The nsIDOMCSSRule interface is a datatype for a CSS style rule in
  23. * 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. enum { UNKNOWN_RULE = 0U };
  31. enum { STYLE_RULE = 1U };
  32. enum { CHARSET_RULE = 2U };
  33. enum { IMPORT_RULE = 3U };
  34. enum { MEDIA_RULE = 4U };
  35. enum { FONT_FACE_RULE = 5U };
  36. enum { PAGE_RULE = 6U };
  37. /* readonly attribute unsigned short type; */
  38. NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType) = 0;
  39. /* attribute DOMString cssText; */
  40. NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) = 0;
  41. NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) = 0;
  42. /* readonly attribute nsIDOMCSSStyleSheet parentStyleSheet; */
  43. NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet) = 0;
  44. /* readonly attribute nsIDOMCSSRule parentRule; */
  45. NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) = 0;
  46. };
  47. NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSRule, NS_IDOMCSSRULE_IID)
  48. /* Use this macro when declaring classes that implement this interface. */
  49. #define NS_DECL_NSIDOMCSSRULE \
  50. NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType); \
  51. NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText); \
  52. NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText); \
  53. NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet); \
  54. NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule);
  55. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  56. #define NS_FORWARD_NSIDOMCSSRULE(_to) \
  57. NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType) { return _to GetType(aType); } \
  58. NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) { return _to GetCssText(aCssText); } \
  59. NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) { return _to SetCssText(aCssText); } \
  60. NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet) { return _to GetParentStyleSheet(aParentStyleSheet); } \
  61. NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) { return _to GetParentRule(aParentRule); }
  62. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  63. #define NS_FORWARD_SAFE_NSIDOMCSSRULE(_to) \
  64. NS_SCRIPTABLE NS_IMETHOD GetType(PRUint16 *aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
  65. NS_SCRIPTABLE NS_IMETHOD GetCssText(nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCssText(aCssText); } \
  66. NS_SCRIPTABLE NS_IMETHOD SetCssText(const nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCssText(aCssText); } \
  67. NS_SCRIPTABLE NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentStyleSheet(aParentStyleSheet); } \
  68. NS_SCRIPTABLE NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentRule(aParentRule); }
  69. #if 0
  70. /* Use the code below as a template for the implementation class for this interface. */
  71. /* Header file */
  72. class nsDOMCSSRule : public nsIDOMCSSRule
  73. {
  74. public:
  75. NS_DECL_ISUPPORTS
  76. NS_DECL_NSIDOMCSSRULE
  77. nsDOMCSSRule();
  78. private:
  79. ~nsDOMCSSRule();
  80. protected:
  81. /* additional members */
  82. };
  83. /* Implementation file */
  84. NS_IMPL_ISUPPORTS1(nsDOMCSSRule, nsIDOMCSSRule)
  85. nsDOMCSSRule::nsDOMCSSRule()
  86. {
  87. /* member initializers and constructor code */
  88. }
  89. nsDOMCSSRule::~nsDOMCSSRule()
  90. {
  91. /* destructor code */
  92. }
  93. /* readonly attribute unsigned short type; */
  94. NS_IMETHODIMP nsDOMCSSRule::GetType(PRUint16 *aType)
  95. {
  96. return NS_ERROR_NOT_IMPLEMENTED;
  97. }
  98. /* attribute DOMString cssText; */
  99. NS_IMETHODIMP nsDOMCSSRule::GetCssText(nsAString & aCssText)
  100. {
  101. return NS_ERROR_NOT_IMPLEMENTED;
  102. }
  103. NS_IMETHODIMP nsDOMCSSRule::SetCssText(const nsAString & aCssText)
  104. {
  105. return NS_ERROR_NOT_IMPLEMENTED;
  106. }
  107. /* readonly attribute nsIDOMCSSStyleSheet parentStyleSheet; */
  108. NS_IMETHODIMP nsDOMCSSRule::GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet)
  109. {
  110. return NS_ERROR_NOT_IMPLEMENTED;
  111. }
  112. /* readonly attribute nsIDOMCSSRule parentRule; */
  113. NS_IMETHODIMP nsDOMCSSRule::GetParentRule(nsIDOMCSSRule * *aParentRule)
  114. {
  115. return NS_ERROR_NOT_IMPLEMENTED;
  116. }
  117. /* End of implementation class template. */
  118. #endif
  119. #endif /* __gen_nsIDOMCSSRule_h__ */