OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0
-Release/WINNT_5.2_Depend/mozilla/dom/public/idl/css/nsIDOMCSSRule.idl |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsIDOMCSSRule_h__ |
| 6 #define __gen_nsIDOMCSSRule_h__ |
| 7 |
| 8 |
| 9 #ifndef __gen_domstubs_h__ |
| 10 #include "domstubs.h" |
| 11 #endif |
| 12 |
| 13 /* For IDL files that don't want to include root IDL files. */ |
| 14 #ifndef NS_NO_VTABLE |
| 15 #define NS_NO_VTABLE |
| 16 #endif |
| 17 |
| 18 /* starting interface: nsIDOMCSSRule */ |
| 19 #define NS_IDOMCSSRULE_IID_STR "a6cf90c1-15b3-11d2-932e-00805f8add32" |
| 20 |
| 21 #define NS_IDOMCSSRULE_IID \ |
| 22 {0xa6cf90c1, 0x15b3, 0x11d2, \ |
| 23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }} |
| 24 |
| 25 class NS_NO_VTABLE nsIDOMCSSRule : public nsISupports { |
| 26 public: |
| 27 |
| 28 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCSSRULE_IID) |
| 29 |
| 30 /** |
| 31 * The nsIDOMCSSRule interface is a datatype for a CSS style rule in |
| 32 * the Document Object Model. |
| 33 * |
| 34 * For more information on this interface please see |
| 35 * http://www.w3.org/TR/DOM-Level-2-Style |
| 36 * |
| 37 * @status FROZEN |
| 38 */ |
| 39 enum { UNKNOWN_RULE = 0U }; |
| 40 |
| 41 enum { STYLE_RULE = 1U }; |
| 42 |
| 43 enum { CHARSET_RULE = 2U }; |
| 44 |
| 45 enum { IMPORT_RULE = 3U }; |
| 46 |
| 47 enum { MEDIA_RULE = 4U }; |
| 48 |
| 49 enum { FONT_FACE_RULE = 5U }; |
| 50 |
| 51 enum { PAGE_RULE = 6U }; |
| 52 |
| 53 /* readonly attribute unsigned short type; */ |
| 54 NS_IMETHOD GetType(PRUint16 *aType) = 0; |
| 55 |
| 56 /* attribute DOMString cssText; */ |
| 57 NS_IMETHOD GetCssText(nsAString & aCssText) = 0; |
| 58 NS_IMETHOD SetCssText(const nsAString & aCssText) = 0; |
| 59 |
| 60 /* readonly attribute nsIDOMCSSStyleSheet parentStyleSheet; */ |
| 61 NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet) = 0; |
| 62 |
| 63 /* readonly attribute nsIDOMCSSRule parentRule; */ |
| 64 NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) = 0; |
| 65 |
| 66 }; |
| 67 |
| 68 /* Use this macro when declaring classes that implement this interface. */ |
| 69 #define NS_DECL_NSIDOMCSSRULE \ |
| 70 NS_IMETHOD GetType(PRUint16 *aType); \ |
| 71 NS_IMETHOD GetCssText(nsAString & aCssText); \ |
| 72 NS_IMETHOD SetCssText(const nsAString & aCssText); \ |
| 73 NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet); \ |
| 74 NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule); |
| 75 |
| 76 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 77 #define NS_FORWARD_NSIDOMCSSRULE(_to) \ |
| 78 NS_IMETHOD GetType(PRUint16 *aType) { return _to GetType(aType); } \ |
| 79 NS_IMETHOD GetCssText(nsAString & aCssText) { return _to GetCssText(aCssText);
} \ |
| 80 NS_IMETHOD SetCssText(const nsAString & aCssText) { return _to SetCssText(aCss
Text); } \ |
| 81 NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet) { ret
urn _to GetParentStyleSheet(aParentStyleSheet); } \ |
| 82 NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) { return _to GetParentR
ule(aParentRule); } |
| 83 |
| 84 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 85 #define NS_FORWARD_SAFE_NSIDOMCSSRULE(_to) \ |
| 86 NS_IMETHOD GetType(PRUint16 *aType) { return !_to ? NS_ERROR_NULL_POINTER : _t
o->GetType(aType); } \ |
| 87 NS_IMETHOD GetCssText(nsAString & aCssText) { return !_to ? NS_ERROR_NULL_POIN
TER : _to->GetCssText(aCssText); } \ |
| 88 NS_IMETHOD SetCssText(const nsAString & aCssText) { return !_to ? NS_ERROR_NUL
L_POINTER : _to->SetCssText(aCssText); } \ |
| 89 NS_IMETHOD GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentStyleSheet) { ret
urn !_to ? NS_ERROR_NULL_POINTER : _to->GetParentStyleSheet(aParentStyleSheet);
} \ |
| 90 NS_IMETHOD GetParentRule(nsIDOMCSSRule * *aParentRule) { return !_to ? NS_ERRO
R_NULL_POINTER : _to->GetParentRule(aParentRule); } |
| 91 |
| 92 #if 0 |
| 93 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 94 |
| 95 /* Header file */ |
| 96 class nsDOMCSSRule : public nsIDOMCSSRule |
| 97 { |
| 98 public: |
| 99 NS_DECL_ISUPPORTS |
| 100 NS_DECL_NSIDOMCSSRULE |
| 101 |
| 102 nsDOMCSSRule(); |
| 103 |
| 104 private: |
| 105 ~nsDOMCSSRule(); |
| 106 |
| 107 protected: |
| 108 /* additional members */ |
| 109 }; |
| 110 |
| 111 /* Implementation file */ |
| 112 NS_IMPL_ISUPPORTS1(nsDOMCSSRule, nsIDOMCSSRule) |
| 113 |
| 114 nsDOMCSSRule::nsDOMCSSRule() |
| 115 { |
| 116 /* member initializers and constructor code */ |
| 117 } |
| 118 |
| 119 nsDOMCSSRule::~nsDOMCSSRule() |
| 120 { |
| 121 /* destructor code */ |
| 122 } |
| 123 |
| 124 /* readonly attribute unsigned short type; */ |
| 125 NS_IMETHODIMP nsDOMCSSRule::GetType(PRUint16 *aType) |
| 126 { |
| 127 return NS_ERROR_NOT_IMPLEMENTED; |
| 128 } |
| 129 |
| 130 /* attribute DOMString cssText; */ |
| 131 NS_IMETHODIMP nsDOMCSSRule::GetCssText(nsAString & aCssText) |
| 132 { |
| 133 return NS_ERROR_NOT_IMPLEMENTED; |
| 134 } |
| 135 NS_IMETHODIMP nsDOMCSSRule::SetCssText(const nsAString & aCssText) |
| 136 { |
| 137 return NS_ERROR_NOT_IMPLEMENTED; |
| 138 } |
| 139 |
| 140 /* readonly attribute nsIDOMCSSStyleSheet parentStyleSheet; */ |
| 141 NS_IMETHODIMP nsDOMCSSRule::GetParentStyleSheet(nsIDOMCSSStyleSheet * *aParentSt
yleSheet) |
| 142 { |
| 143 return NS_ERROR_NOT_IMPLEMENTED; |
| 144 } |
| 145 |
| 146 /* readonly attribute nsIDOMCSSRule parentRule; */ |
| 147 NS_IMETHODIMP nsDOMCSSRule::GetParentRule(nsIDOMCSSRule * *aParentRule) |
| 148 { |
| 149 return NS_ERROR_NOT_IMPLEMENTED; |
| 150 } |
| 151 |
| 152 /* End of implementation class template. */ |
| 153 #endif |
| 154 |
| 155 |
| 156 #endif /* __gen_nsIDOMCSSRule_h__ */ |
OLD | NEW |