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/nsIDOMCSSStyleSheet.idl |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsIDOMCSSStyleSheet_h__ |
| 6 #define __gen_nsIDOMCSSStyleSheet_h__ |
| 7 |
| 8 |
| 9 #ifndef __gen_nsIDOMStyleSheet_h__ |
| 10 #include "nsIDOMStyleSheet.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: nsIDOMCSSStyleSheet */ |
| 19 #define NS_IDOMCSSSTYLESHEET_IID_STR "a6cf90c2-15b3-11d2-932e-00805f8add32" |
| 20 |
| 21 #define NS_IDOMCSSSTYLESHEET_IID \ |
| 22 {0xa6cf90c2, 0x15b3, 0x11d2, \ |
| 23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }} |
| 24 |
| 25 class NS_NO_VTABLE nsIDOMCSSStyleSheet : public nsIDOMStyleSheet { |
| 26 public: |
| 27 |
| 28 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCSSSTYLESHEET_IID) |
| 29 |
| 30 /** |
| 31 * The nsIDOMCSSStyleSheet interface is a datatype for a CSS style |
| 32 * sheet in 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 /* readonly attribute nsIDOMCSSRule ownerRule; */ |
| 40 NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) = 0; |
| 41 |
| 42 /* readonly attribute nsIDOMCSSRuleList cssRules; */ |
| 43 NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) = 0; |
| 44 |
| 45 /* unsigned long insertRule (in DOMString rule, in unsigned long index) raise
s (DOMException); */ |
| 46 NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retva
l) = 0; |
| 47 |
| 48 /* void deleteRule (in unsigned long index) raises (DOMException); */ |
| 49 NS_IMETHOD DeleteRule(PRUint32 index) = 0; |
| 50 |
| 51 }; |
| 52 |
| 53 /* Use this macro when declaring classes that implement this interface. */ |
| 54 #define NS_DECL_NSIDOMCSSSTYLESHEET \ |
| 55 NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule); \ |
| 56 NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules); \ |
| 57 NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retva
l); \ |
| 58 NS_IMETHOD DeleteRule(PRUint32 index); |
| 59 |
| 60 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 61 #define NS_FORWARD_NSIDOMCSSSTYLESHEET(_to) \ |
| 62 NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) { return _to GetOwnerRule
(aOwnerRule); } \ |
| 63 NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) { return _to GetCssRule
s(aCssRules); } \ |
| 64 NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retva
l) { return _to InsertRule(rule, index, _retval); } \ |
| 65 NS_IMETHOD DeleteRule(PRUint32 index) { return _to DeleteRule(index); } |
| 66 |
| 67 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 68 #define NS_FORWARD_SAFE_NSIDOMCSSSTYLESHEET(_to) \ |
| 69 NS_IMETHOD GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) { return !_to ? NS_ERROR_
NULL_POINTER : _to->GetOwnerRule(aOwnerRule); } \ |
| 70 NS_IMETHOD GetCssRules(nsIDOMCSSRuleList * *aCssRules) { return !_to ? NS_ERRO
R_NULL_POINTER : _to->GetCssRules(aCssRules); } \ |
| 71 NS_IMETHOD InsertRule(const nsAString & rule, PRUint32 index, PRUint32 *_retva
l) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertRule(rule, index, _retval)
; } \ |
| 72 NS_IMETHOD DeleteRule(PRUint32 index) { return !_to ? NS_ERROR_NULL_POINTER :
_to->DeleteRule(index); } |
| 73 |
| 74 #if 0 |
| 75 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 76 |
| 77 /* Header file */ |
| 78 class nsDOMCSSStyleSheet : public nsIDOMCSSStyleSheet |
| 79 { |
| 80 public: |
| 81 NS_DECL_ISUPPORTS |
| 82 NS_DECL_NSIDOMCSSSTYLESHEET |
| 83 |
| 84 nsDOMCSSStyleSheet(); |
| 85 |
| 86 private: |
| 87 ~nsDOMCSSStyleSheet(); |
| 88 |
| 89 protected: |
| 90 /* additional members */ |
| 91 }; |
| 92 |
| 93 /* Implementation file */ |
| 94 NS_IMPL_ISUPPORTS1(nsDOMCSSStyleSheet, nsIDOMCSSStyleSheet) |
| 95 |
| 96 nsDOMCSSStyleSheet::nsDOMCSSStyleSheet() |
| 97 { |
| 98 /* member initializers and constructor code */ |
| 99 } |
| 100 |
| 101 nsDOMCSSStyleSheet::~nsDOMCSSStyleSheet() |
| 102 { |
| 103 /* destructor code */ |
| 104 } |
| 105 |
| 106 /* readonly attribute nsIDOMCSSRule ownerRule; */ |
| 107 NS_IMETHODIMP nsDOMCSSStyleSheet::GetOwnerRule(nsIDOMCSSRule * *aOwnerRule) |
| 108 { |
| 109 return NS_ERROR_NOT_IMPLEMENTED; |
| 110 } |
| 111 |
| 112 /* readonly attribute nsIDOMCSSRuleList cssRules; */ |
| 113 NS_IMETHODIMP nsDOMCSSStyleSheet::GetCssRules(nsIDOMCSSRuleList * *aCssRules) |
| 114 { |
| 115 return NS_ERROR_NOT_IMPLEMENTED; |
| 116 } |
| 117 |
| 118 /* unsigned long insertRule (in DOMString rule, in unsigned long index) raises
(DOMException); */ |
| 119 NS_IMETHODIMP nsDOMCSSStyleSheet::InsertRule(const nsAString & rule, PRUint32 in
dex, PRUint32 *_retval) |
| 120 { |
| 121 return NS_ERROR_NOT_IMPLEMENTED; |
| 122 } |
| 123 |
| 124 /* void deleteRule (in unsigned long index) raises (DOMException); */ |
| 125 NS_IMETHODIMP nsDOMCSSStyleSheet::DeleteRule(PRUint32 index) |
| 126 { |
| 127 return NS_ERROR_NOT_IMPLEMENTED; |
| 128 } |
| 129 |
| 130 /* End of implementation class template. */ |
| 131 #endif |
| 132 |
| 133 |
| 134 #endif /* __gen_nsIDOMCSSStyleSheet_h__ */ |
OLD | NEW |