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/nsIDOMHTMLOptionElement.id
l |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsIDOMHTMLOptionElement_h__ |
| 6 #define __gen_nsIDOMHTMLOptionElement_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: nsIDOMHTMLOptionElement */ |
| 19 #define NS_IDOMHTMLOPTIONELEMENT_IID_STR "a6cf9092-15b3-11d2-932e-00805f8add32" |
| 20 |
| 21 #define NS_IDOMHTMLOPTIONELEMENT_IID \ |
| 22 {0xa6cf9092, 0x15b3, 0x11d2, \ |
| 23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }} |
| 24 |
| 25 /** |
| 26 * The nsIDOMHTMLOptionElement interface is the interface to a [X]HTML |
| 27 * option 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 nsIDOMHTMLOptionElement : public nsIDOMHTMLElement { |
| 35 public: |
| 36 |
| 37 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLOPTIONELEMENT_IID) |
| 38 |
| 39 /* readonly attribute nsIDOMHTMLFormElement form; */ |
| 40 NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) = 0; |
| 41 |
| 42 /* attribute boolean defaultSelected; */ |
| 43 NS_IMETHOD GetDefaultSelected(PRBool *aDefaultSelected) = 0; |
| 44 NS_IMETHOD SetDefaultSelected(PRBool aDefaultSelected) = 0; |
| 45 |
| 46 /* readonly attribute DOMString text; */ |
| 47 NS_IMETHOD GetText(nsAString & aText) = 0; |
| 48 |
| 49 /* readonly attribute long index; */ |
| 50 NS_IMETHOD GetIndex(PRInt32 *aIndex) = 0; |
| 51 |
| 52 /* attribute boolean disabled; */ |
| 53 NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0; |
| 54 NS_IMETHOD SetDisabled(PRBool aDisabled) = 0; |
| 55 |
| 56 /* attribute DOMString label; */ |
| 57 NS_IMETHOD GetLabel(nsAString & aLabel) = 0; |
| 58 NS_IMETHOD SetLabel(const nsAString & aLabel) = 0; |
| 59 |
| 60 /* attribute boolean selected; */ |
| 61 NS_IMETHOD GetSelected(PRBool *aSelected) = 0; |
| 62 NS_IMETHOD SetSelected(PRBool aSelected) = 0; |
| 63 |
| 64 /* attribute DOMString value; */ |
| 65 NS_IMETHOD GetValue(nsAString & aValue) = 0; |
| 66 NS_IMETHOD SetValue(const nsAString & aValue) = 0; |
| 67 |
| 68 }; |
| 69 |
| 70 /* Use this macro when declaring classes that implement this interface. */ |
| 71 #define NS_DECL_NSIDOMHTMLOPTIONELEMENT \ |
| 72 NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm); \ |
| 73 NS_IMETHOD GetDefaultSelected(PRBool *aDefaultSelected); \ |
| 74 NS_IMETHOD SetDefaultSelected(PRBool aDefaultSelected); \ |
| 75 NS_IMETHOD GetText(nsAString & aText); \ |
| 76 NS_IMETHOD GetIndex(PRInt32 *aIndex); \ |
| 77 NS_IMETHOD GetDisabled(PRBool *aDisabled); \ |
| 78 NS_IMETHOD SetDisabled(PRBool aDisabled); \ |
| 79 NS_IMETHOD GetLabel(nsAString & aLabel); \ |
| 80 NS_IMETHOD SetLabel(const nsAString & aLabel); \ |
| 81 NS_IMETHOD GetSelected(PRBool *aSelected); \ |
| 82 NS_IMETHOD SetSelected(PRBool aSelected); \ |
| 83 NS_IMETHOD GetValue(nsAString & aValue); \ |
| 84 NS_IMETHOD SetValue(const nsAString & aValue); |
| 85 |
| 86 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 87 #define NS_FORWARD_NSIDOMHTMLOPTIONELEMENT(_to) \ |
| 88 NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return _to GetForm(aForm)
; } \ |
| 89 NS_IMETHOD GetDefaultSelected(PRBool *aDefaultSelected) { return _to GetDefaul
tSelected(aDefaultSelected); } \ |
| 90 NS_IMETHOD SetDefaultSelected(PRBool aDefaultSelected) { return _to SetDefault
Selected(aDefaultSelected); } \ |
| 91 NS_IMETHOD GetText(nsAString & aText) { return _to GetText(aText); } \ |
| 92 NS_IMETHOD GetIndex(PRInt32 *aIndex) { return _to GetIndex(aIndex); } \ |
| 93 NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled);
} \ |
| 94 NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled);
} \ |
| 95 NS_IMETHOD GetLabel(nsAString & aLabel) { return _to GetLabel(aLabel); } \ |
| 96 NS_IMETHOD SetLabel(const nsAString & aLabel) { return _to SetLabel(aLabel); }
\ |
| 97 NS_IMETHOD GetSelected(PRBool *aSelected) { return _to GetSelected(aSelected);
} \ |
| 98 NS_IMETHOD SetSelected(PRBool aSelected) { return _to SetSelected(aSelected);
} \ |
| 99 NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \ |
| 100 NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); }
|
| 101 |
| 102 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 103 #define NS_FORWARD_SAFE_NSIDOMHTMLOPTIONELEMENT(_to) \ |
| 104 NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return !_to ? NS_ERROR_NU
LL_POINTER : _to->GetForm(aForm); } \ |
| 105 NS_IMETHOD GetDefaultSelected(PRBool *aDefaultSelected) { return !_to ? NS_ERR
OR_NULL_POINTER : _to->GetDefaultSelected(aDefaultSelected); } \ |
| 106 NS_IMETHOD SetDefaultSelected(PRBool aDefaultSelected) { return !_to ? NS_ERRO
R_NULL_POINTER : _to->SetDefaultSelected(aDefaultSelected); } \ |
| 107 NS_IMETHOD GetText(nsAString & aText) { return !_to ? NS_ERROR_NULL_POINTER :
_to->GetText(aText); } \ |
| 108 NS_IMETHOD GetIndex(PRInt32 *aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _
to->GetIndex(aIndex); } \ |
| 109 NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->GetDisabled(aDisabled); } \ |
| 110 NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER
: _to->SetDisabled(aDisabled); } \ |
| 111 NS_IMETHOD GetLabel(nsAString & aLabel) { return !_to ? NS_ERROR_NULL_POINTER
: _to->GetLabel(aLabel); } \ |
| 112 NS_IMETHOD SetLabel(const nsAString & aLabel) { return !_to ? NS_ERROR_NULL_PO
INTER : _to->SetLabel(aLabel); } \ |
| 113 NS_IMETHOD GetSelected(PRBool *aSelected) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->GetSelected(aSelected); } \ |
| 114 NS_IMETHOD SetSelected(PRBool aSelected) { return !_to ? NS_ERROR_NULL_POINTER
: _to->SetSelected(aSelected); } \ |
| 115 NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER
: _to->GetValue(aValue); } \ |
| 116 NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_PO
INTER : _to->SetValue(aValue); } |
| 117 |
| 118 #if 0 |
| 119 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 120 |
| 121 /* Header file */ |
| 122 class nsDOMHTMLOptionElement : public nsIDOMHTMLOptionElement |
| 123 { |
| 124 public: |
| 125 NS_DECL_ISUPPORTS |
| 126 NS_DECL_NSIDOMHTMLOPTIONELEMENT |
| 127 |
| 128 nsDOMHTMLOptionElement(); |
| 129 |
| 130 private: |
| 131 ~nsDOMHTMLOptionElement(); |
| 132 |
| 133 protected: |
| 134 /* additional members */ |
| 135 }; |
| 136 |
| 137 /* Implementation file */ |
| 138 NS_IMPL_ISUPPORTS1(nsDOMHTMLOptionElement, nsIDOMHTMLOptionElement) |
| 139 |
| 140 nsDOMHTMLOptionElement::nsDOMHTMLOptionElement() |
| 141 { |
| 142 /* member initializers and constructor code */ |
| 143 } |
| 144 |
| 145 nsDOMHTMLOptionElement::~nsDOMHTMLOptionElement() |
| 146 { |
| 147 /* destructor code */ |
| 148 } |
| 149 |
| 150 /* readonly attribute nsIDOMHTMLFormElement form; */ |
| 151 NS_IMETHODIMP nsDOMHTMLOptionElement::GetForm(nsIDOMHTMLFormElement * *aForm) |
| 152 { |
| 153 return NS_ERROR_NOT_IMPLEMENTED; |
| 154 } |
| 155 |
| 156 /* attribute boolean defaultSelected; */ |
| 157 NS_IMETHODIMP nsDOMHTMLOptionElement::GetDefaultSelected(PRBool *aDefaultSelecte
d) |
| 158 { |
| 159 return NS_ERROR_NOT_IMPLEMENTED; |
| 160 } |
| 161 NS_IMETHODIMP nsDOMHTMLOptionElement::SetDefaultSelected(PRBool aDefaultSelected
) |
| 162 { |
| 163 return NS_ERROR_NOT_IMPLEMENTED; |
| 164 } |
| 165 |
| 166 /* readonly attribute DOMString text; */ |
| 167 NS_IMETHODIMP nsDOMHTMLOptionElement::GetText(nsAString & aText) |
| 168 { |
| 169 return NS_ERROR_NOT_IMPLEMENTED; |
| 170 } |
| 171 |
| 172 /* readonly attribute long index; */ |
| 173 NS_IMETHODIMP nsDOMHTMLOptionElement::GetIndex(PRInt32 *aIndex) |
| 174 { |
| 175 return NS_ERROR_NOT_IMPLEMENTED; |
| 176 } |
| 177 |
| 178 /* attribute boolean disabled; */ |
| 179 NS_IMETHODIMP nsDOMHTMLOptionElement::GetDisabled(PRBool *aDisabled) |
| 180 { |
| 181 return NS_ERROR_NOT_IMPLEMENTED; |
| 182 } |
| 183 NS_IMETHODIMP nsDOMHTMLOptionElement::SetDisabled(PRBool aDisabled) |
| 184 { |
| 185 return NS_ERROR_NOT_IMPLEMENTED; |
| 186 } |
| 187 |
| 188 /* attribute DOMString label; */ |
| 189 NS_IMETHODIMP nsDOMHTMLOptionElement::GetLabel(nsAString & aLabel) |
| 190 { |
| 191 return NS_ERROR_NOT_IMPLEMENTED; |
| 192 } |
| 193 NS_IMETHODIMP nsDOMHTMLOptionElement::SetLabel(const nsAString & aLabel) |
| 194 { |
| 195 return NS_ERROR_NOT_IMPLEMENTED; |
| 196 } |
| 197 |
| 198 /* attribute boolean selected; */ |
| 199 NS_IMETHODIMP nsDOMHTMLOptionElement::GetSelected(PRBool *aSelected) |
| 200 { |
| 201 return NS_ERROR_NOT_IMPLEMENTED; |
| 202 } |
| 203 NS_IMETHODIMP nsDOMHTMLOptionElement::SetSelected(PRBool aSelected) |
| 204 { |
| 205 return NS_ERROR_NOT_IMPLEMENTED; |
| 206 } |
| 207 |
| 208 /* attribute DOMString value; */ |
| 209 NS_IMETHODIMP nsDOMHTMLOptionElement::GetValue(nsAString & aValue) |
| 210 { |
| 211 return NS_ERROR_NOT_IMPLEMENTED; |
| 212 } |
| 213 NS_IMETHODIMP nsDOMHTMLOptionElement::SetValue(const nsAString & aValue) |
| 214 { |
| 215 return NS_ERROR_NOT_IMPLEMENTED; |
| 216 } |
| 217 |
| 218 /* End of implementation class template. */ |
| 219 #endif |
| 220 |
| 221 |
| 222 #endif /* __gen_nsIDOMHTMLOptionElement_h__ */ |
OLD | NEW |