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/html/nsIDOMHTMLStyleElement.idl |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsIDOMHTMLStyleElement_h__ |
| 6 #define __gen_nsIDOMHTMLStyleElement_h__ |
| 7 |
| 8 |
| 9 #ifndef __gen_nsIDOMHTMLElement_h__ |
| 10 #include "nsIDOMHTMLElement.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: nsIDOMHTMLStyleElement */ |
| 19 #define NS_IDOMHTMLSTYLEELEMENT_IID_STR "a6cf908d-15b3-11d2-932e-00805f8add32" |
| 20 |
| 21 #define NS_IDOMHTMLSTYLEELEMENT_IID \ |
| 22 {0xa6cf908d, 0x15b3, 0x11d2, \ |
| 23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }} |
| 24 |
| 25 /** |
| 26 * The nsIDOMHTMLStyleElement interface is the interface to a [X]HTML |
| 27 * style element. |
| 28 * |
| 29 * For more information on this interface please see |
| 30 * http://www.w3.org/TR/DOM-Level-2-HTML/ |
| 31 * |
| 32 * @status FROZEN |
| 33 */ |
| 34 class NS_NO_VTABLE nsIDOMHTMLStyleElement : public nsIDOMHTMLElement { |
| 35 public: |
| 36 |
| 37 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLSTYLEELEMENT_IID) |
| 38 |
| 39 /* attribute boolean disabled; */ |
| 40 NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0; |
| 41 NS_IMETHOD SetDisabled(PRBool aDisabled) = 0; |
| 42 |
| 43 /* attribute DOMString media; */ |
| 44 NS_IMETHOD GetMedia(nsAString & aMedia) = 0; |
| 45 NS_IMETHOD SetMedia(const nsAString & aMedia) = 0; |
| 46 |
| 47 /* attribute DOMString type; */ |
| 48 NS_IMETHOD GetType(nsAString & aType) = 0; |
| 49 NS_IMETHOD SetType(const nsAString & aType) = 0; |
| 50 |
| 51 }; |
| 52 |
| 53 /* Use this macro when declaring classes that implement this interface. */ |
| 54 #define NS_DECL_NSIDOMHTMLSTYLEELEMENT \ |
| 55 NS_IMETHOD GetDisabled(PRBool *aDisabled); \ |
| 56 NS_IMETHOD SetDisabled(PRBool aDisabled); \ |
| 57 NS_IMETHOD GetMedia(nsAString & aMedia); \ |
| 58 NS_IMETHOD SetMedia(const nsAString & aMedia); \ |
| 59 NS_IMETHOD GetType(nsAString & aType); \ |
| 60 NS_IMETHOD SetType(const nsAString & aType); |
| 61 |
| 62 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 63 #define NS_FORWARD_NSIDOMHTMLSTYLEELEMENT(_to) \ |
| 64 NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled);
} \ |
| 65 NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled);
} \ |
| 66 NS_IMETHOD GetMedia(nsAString & aMedia) { return _to GetMedia(aMedia); } \ |
| 67 NS_IMETHOD SetMedia(const nsAString & aMedia) { return _to SetMedia(aMedia); }
\ |
| 68 NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \ |
| 69 NS_IMETHOD SetType(const nsAString & aType) { return _to SetType(aType); } |
| 70 |
| 71 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 72 #define NS_FORWARD_SAFE_NSIDOMHTMLSTYLEELEMENT(_to) \ |
| 73 NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->GetDisabled(aDisabled); } \ |
| 74 NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER
: _to->SetDisabled(aDisabled); } \ |
| 75 NS_IMETHOD GetMedia(nsAString & aMedia) { return !_to ? NS_ERROR_NULL_POINTER
: _to->GetMedia(aMedia); } \ |
| 76 NS_IMETHOD SetMedia(const nsAString & aMedia) { return !_to ? NS_ERROR_NULL_PO
INTER : _to->SetMedia(aMedia); } \ |
| 77 NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER :
_to->GetType(aType); } \ |
| 78 NS_IMETHOD SetType(const nsAString & aType) { return !_to ? NS_ERROR_NULL_POIN
TER : _to->SetType(aType); } |
| 79 |
| 80 #if 0 |
| 81 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 82 |
| 83 /* Header file */ |
| 84 class nsDOMHTMLStyleElement : public nsIDOMHTMLStyleElement |
| 85 { |
| 86 public: |
| 87 NS_DECL_ISUPPORTS |
| 88 NS_DECL_NSIDOMHTMLSTYLEELEMENT |
| 89 |
| 90 nsDOMHTMLStyleElement(); |
| 91 |
| 92 private: |
| 93 ~nsDOMHTMLStyleElement(); |
| 94 |
| 95 protected: |
| 96 /* additional members */ |
| 97 }; |
| 98 |
| 99 /* Implementation file */ |
| 100 NS_IMPL_ISUPPORTS1(nsDOMHTMLStyleElement, nsIDOMHTMLStyleElement) |
| 101 |
| 102 nsDOMHTMLStyleElement::nsDOMHTMLStyleElement() |
| 103 { |
| 104 /* member initializers and constructor code */ |
| 105 } |
| 106 |
| 107 nsDOMHTMLStyleElement::~nsDOMHTMLStyleElement() |
| 108 { |
| 109 /* destructor code */ |
| 110 } |
| 111 |
| 112 /* attribute boolean disabled; */ |
| 113 NS_IMETHODIMP nsDOMHTMLStyleElement::GetDisabled(PRBool *aDisabled) |
| 114 { |
| 115 return NS_ERROR_NOT_IMPLEMENTED; |
| 116 } |
| 117 NS_IMETHODIMP nsDOMHTMLStyleElement::SetDisabled(PRBool aDisabled) |
| 118 { |
| 119 return NS_ERROR_NOT_IMPLEMENTED; |
| 120 } |
| 121 |
| 122 /* attribute DOMString media; */ |
| 123 NS_IMETHODIMP nsDOMHTMLStyleElement::GetMedia(nsAString & aMedia) |
| 124 { |
| 125 return NS_ERROR_NOT_IMPLEMENTED; |
| 126 } |
| 127 NS_IMETHODIMP nsDOMHTMLStyleElement::SetMedia(const nsAString & aMedia) |
| 128 { |
| 129 return NS_ERROR_NOT_IMPLEMENTED; |
| 130 } |
| 131 |
| 132 /* attribute DOMString type; */ |
| 133 NS_IMETHODIMP nsDOMHTMLStyleElement::GetType(nsAString & aType) |
| 134 { |
| 135 return NS_ERROR_NOT_IMPLEMENTED; |
| 136 } |
| 137 NS_IMETHODIMP nsDOMHTMLStyleElement::SetType(const nsAString & aType) |
| 138 { |
| 139 return NS_ERROR_NOT_IMPLEMENTED; |
| 140 } |
| 141 |
| 142 /* End of implementation class template. */ |
| 143 #endif |
| 144 |
| 145 |
| 146 #endif /* __gen_nsIDOMHTMLStyleElement_h__ */ |
OLD | NEW |