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/nsIDOMCSSRuleList.idl |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsIDOMCSSRuleList_h__ |
| 6 #define __gen_nsIDOMCSSRuleList_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: nsIDOMCSSRuleList */ |
| 19 #define NS_IDOMCSSRULELIST_IID_STR "a6cf90c0-15b3-11d2-932e-00805f8add32" |
| 20 |
| 21 #define NS_IDOMCSSRULELIST_IID \ |
| 22 {0xa6cf90c0, 0x15b3, 0x11d2, \ |
| 23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }} |
| 24 |
| 25 class NS_NO_VTABLE nsIDOMCSSRuleList : public nsISupports { |
| 26 public: |
| 27 |
| 28 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCSSRULELIST_IID) |
| 29 |
| 30 /** |
| 31 * The nsIDOMCSSRuleList interface is a datatype for a list of CSS |
| 32 * style rules 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 unsigned long length; */ |
| 40 NS_IMETHOD GetLength(PRUint32 *aLength) = 0; |
| 41 |
| 42 /* nsIDOMCSSRule item (in unsigned long index); */ |
| 43 NS_IMETHOD Item(PRUint32 index, nsIDOMCSSRule **_retval) = 0; |
| 44 |
| 45 }; |
| 46 |
| 47 /* Use this macro when declaring classes that implement this interface. */ |
| 48 #define NS_DECL_NSIDOMCSSRULELIST \ |
| 49 NS_IMETHOD GetLength(PRUint32 *aLength); \ |
| 50 NS_IMETHOD Item(PRUint32 index, nsIDOMCSSRule **_retval); |
| 51 |
| 52 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 53 #define NS_FORWARD_NSIDOMCSSRULELIST(_to) \ |
| 54 NS_IMETHOD GetLength(PRUint32 *aLength) { return _to GetLength(aLength); } \ |
| 55 NS_IMETHOD Item(PRUint32 index, nsIDOMCSSRule **_retval) { return _to Item(ind
ex, _retval); } |
| 56 |
| 57 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 58 #define NS_FORWARD_SAFE_NSIDOMCSSRULELIST(_to) \ |
| 59 NS_IMETHOD GetLength(PRUint32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER
: _to->GetLength(aLength); } \ |
| 60 NS_IMETHOD Item(PRUint32 index, nsIDOMCSSRule **_retval) { return !_to ? NS_ER
ROR_NULL_POINTER : _to->Item(index, _retval); } |
| 61 |
| 62 #if 0 |
| 63 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 64 |
| 65 /* Header file */ |
| 66 class nsDOMCSSRuleList : public nsIDOMCSSRuleList |
| 67 { |
| 68 public: |
| 69 NS_DECL_ISUPPORTS |
| 70 NS_DECL_NSIDOMCSSRULELIST |
| 71 |
| 72 nsDOMCSSRuleList(); |
| 73 |
| 74 private: |
| 75 ~nsDOMCSSRuleList(); |
| 76 |
| 77 protected: |
| 78 /* additional members */ |
| 79 }; |
| 80 |
| 81 /* Implementation file */ |
| 82 NS_IMPL_ISUPPORTS1(nsDOMCSSRuleList, nsIDOMCSSRuleList) |
| 83 |
| 84 nsDOMCSSRuleList::nsDOMCSSRuleList() |
| 85 { |
| 86 /* member initializers and constructor code */ |
| 87 } |
| 88 |
| 89 nsDOMCSSRuleList::~nsDOMCSSRuleList() |
| 90 { |
| 91 /* destructor code */ |
| 92 } |
| 93 |
| 94 /* readonly attribute unsigned long length; */ |
| 95 NS_IMETHODIMP nsDOMCSSRuleList::GetLength(PRUint32 *aLength) |
| 96 { |
| 97 return NS_ERROR_NOT_IMPLEMENTED; |
| 98 } |
| 99 |
| 100 /* nsIDOMCSSRule item (in unsigned long index); */ |
| 101 NS_IMETHODIMP nsDOMCSSRuleList::Item(PRUint32 index, nsIDOMCSSRule **_retval) |
| 102 { |
| 103 return NS_ERROR_NOT_IMPLEMENTED; |
| 104 } |
| 105 |
| 106 /* End of implementation class template. */ |
| 107 #endif |
| 108 |
| 109 |
| 110 #endif /* __gen_nsIDOMCSSRuleList_h__ */ |
OLD | NEW |