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/nsIDOMHTMLFormElement.idl |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsIDOMHTMLFormElement_h__ |
| 6 #define __gen_nsIDOMHTMLFormElement_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: nsIDOMHTMLFormElement */ |
| 19 #define NS_IDOMHTMLFORMELEMENT_IID_STR "a6cf908f-15b3-11d2-932e-00805f8add32" |
| 20 |
| 21 #define NS_IDOMHTMLFORMELEMENT_IID \ |
| 22 {0xa6cf908f, 0x15b3, 0x11d2, \ |
| 23 { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }} |
| 24 |
| 25 class NS_NO_VTABLE nsIDOMHTMLFormElement : public nsIDOMHTMLElement { |
| 26 public: |
| 27 |
| 28 NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMHTMLFORMELEMENT_IID) |
| 29 |
| 30 /** |
| 31 * The nsIDOMHTMLFormElement interface is the interface to a [X]HTML |
| 32 * form element. |
| 33 * |
| 34 * For more information on this interface please see |
| 35 * http://www.w3.org/TR/DOM-Level-2-HTML/ |
| 36 * |
| 37 * @status FROZEN |
| 38 */ |
| 39 /* readonly attribute nsIDOMHTMLCollection elements; */ |
| 40 NS_IMETHOD GetElements(nsIDOMHTMLCollection * *aElements) = 0; |
| 41 |
| 42 /* readonly attribute long length; */ |
| 43 NS_IMETHOD GetLength(PRInt32 *aLength) = 0; |
| 44 |
| 45 /* attribute DOMString name; */ |
| 46 NS_IMETHOD GetName(nsAString & aName) = 0; |
| 47 NS_IMETHOD SetName(const nsAString & aName) = 0; |
| 48 |
| 49 /* attribute DOMString acceptCharset; */ |
| 50 NS_IMETHOD GetAcceptCharset(nsAString & aAcceptCharset) = 0; |
| 51 NS_IMETHOD SetAcceptCharset(const nsAString & aAcceptCharset) = 0; |
| 52 |
| 53 /* attribute DOMString action; */ |
| 54 NS_IMETHOD GetAction(nsAString & aAction) = 0; |
| 55 NS_IMETHOD SetAction(const nsAString & aAction) = 0; |
| 56 |
| 57 /* attribute DOMString enctype; */ |
| 58 NS_IMETHOD GetEnctype(nsAString & aEnctype) = 0; |
| 59 NS_IMETHOD SetEnctype(const nsAString & aEnctype) = 0; |
| 60 |
| 61 /* attribute DOMString method; */ |
| 62 NS_IMETHOD GetMethod(nsAString & aMethod) = 0; |
| 63 NS_IMETHOD SetMethod(const nsAString & aMethod) = 0; |
| 64 |
| 65 /* attribute DOMString target; */ |
| 66 NS_IMETHOD GetTarget(nsAString & aTarget) = 0; |
| 67 NS_IMETHOD SetTarget(const nsAString & aTarget) = 0; |
| 68 |
| 69 /* void submit (); */ |
| 70 NS_IMETHOD Submit(void) = 0; |
| 71 |
| 72 /* void reset (); */ |
| 73 NS_IMETHOD Reset(void) = 0; |
| 74 |
| 75 }; |
| 76 |
| 77 /* Use this macro when declaring classes that implement this interface. */ |
| 78 #define NS_DECL_NSIDOMHTMLFORMELEMENT \ |
| 79 NS_IMETHOD GetElements(nsIDOMHTMLCollection * *aElements); \ |
| 80 NS_IMETHOD GetLength(PRInt32 *aLength); \ |
| 81 NS_IMETHOD GetName(nsAString & aName); \ |
| 82 NS_IMETHOD SetName(const nsAString & aName); \ |
| 83 NS_IMETHOD GetAcceptCharset(nsAString & aAcceptCharset); \ |
| 84 NS_IMETHOD SetAcceptCharset(const nsAString & aAcceptCharset); \ |
| 85 NS_IMETHOD GetAction(nsAString & aAction); \ |
| 86 NS_IMETHOD SetAction(const nsAString & aAction); \ |
| 87 NS_IMETHOD GetEnctype(nsAString & aEnctype); \ |
| 88 NS_IMETHOD SetEnctype(const nsAString & aEnctype); \ |
| 89 NS_IMETHOD GetMethod(nsAString & aMethod); \ |
| 90 NS_IMETHOD SetMethod(const nsAString & aMethod); \ |
| 91 NS_IMETHOD GetTarget(nsAString & aTarget); \ |
| 92 NS_IMETHOD SetTarget(const nsAString & aTarget); \ |
| 93 NS_IMETHOD Submit(void); \ |
| 94 NS_IMETHOD Reset(void); |
| 95 |
| 96 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 97 #define NS_FORWARD_NSIDOMHTMLFORMELEMENT(_to) \ |
| 98 NS_IMETHOD GetElements(nsIDOMHTMLCollection * *aElements) { return _to GetElem
ents(aElements); } \ |
| 99 NS_IMETHOD GetLength(PRInt32 *aLength) { return _to GetLength(aLength); } \ |
| 100 NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \ |
| 101 NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } \ |
| 102 NS_IMETHOD GetAcceptCharset(nsAString & aAcceptCharset) { return _to GetAccept
Charset(aAcceptCharset); } \ |
| 103 NS_IMETHOD SetAcceptCharset(const nsAString & aAcceptCharset) { return _to Set
AcceptCharset(aAcceptCharset); } \ |
| 104 NS_IMETHOD GetAction(nsAString & aAction) { return _to GetAction(aAction); } \ |
| 105 NS_IMETHOD SetAction(const nsAString & aAction) { return _to SetAction(aAction
); } \ |
| 106 NS_IMETHOD GetEnctype(nsAString & aEnctype) { return _to GetEnctype(aEnctype);
} \ |
| 107 NS_IMETHOD SetEnctype(const nsAString & aEnctype) { return _to SetEnctype(aEnc
type); } \ |
| 108 NS_IMETHOD GetMethod(nsAString & aMethod) { return _to GetMethod(aMethod); } \ |
| 109 NS_IMETHOD SetMethod(const nsAString & aMethod) { return _to SetMethod(aMethod
); } \ |
| 110 NS_IMETHOD GetTarget(nsAString & aTarget) { return _to GetTarget(aTarget); } \ |
| 111 NS_IMETHOD SetTarget(const nsAString & aTarget) { return _to SetTarget(aTarget
); } \ |
| 112 NS_IMETHOD Submit(void) { return _to Submit(); } \ |
| 113 NS_IMETHOD Reset(void) { return _to Reset(); } |
| 114 |
| 115 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 116 #define NS_FORWARD_SAFE_NSIDOMHTMLFORMELEMENT(_to) \ |
| 117 NS_IMETHOD GetElements(nsIDOMHTMLCollection * *aElements) { return !_to ? NS_E
RROR_NULL_POINTER : _to->GetElements(aElements); } \ |
| 118 NS_IMETHOD GetLength(PRInt32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER :
_to->GetLength(aLength); } \ |
| 119 NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER :
_to->GetName(aName); } \ |
| 120 NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POIN
TER : _to->SetName(aName); } \ |
| 121 NS_IMETHOD GetAcceptCharset(nsAString & aAcceptCharset) { return !_to ? NS_ERR
OR_NULL_POINTER : _to->GetAcceptCharset(aAcceptCharset); } \ |
| 122 NS_IMETHOD SetAcceptCharset(const nsAString & aAcceptCharset) { return !_to ?
NS_ERROR_NULL_POINTER : _to->SetAcceptCharset(aAcceptCharset); } \ |
| 123 NS_IMETHOD GetAction(nsAString & aAction) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->GetAction(aAction); } \ |
| 124 NS_IMETHOD SetAction(const nsAString & aAction) { return !_to ? NS_ERROR_NULL_
POINTER : _to->SetAction(aAction); } \ |
| 125 NS_IMETHOD GetEnctype(nsAString & aEnctype) { return !_to ? NS_ERROR_NULL_POIN
TER : _to->GetEnctype(aEnctype); } \ |
| 126 NS_IMETHOD SetEnctype(const nsAString & aEnctype) { return !_to ? NS_ERROR_NUL
L_POINTER : _to->SetEnctype(aEnctype); } \ |
| 127 NS_IMETHOD GetMethod(nsAString & aMethod) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->GetMethod(aMethod); } \ |
| 128 NS_IMETHOD SetMethod(const nsAString & aMethod) { return !_to ? NS_ERROR_NULL_
POINTER : _to->SetMethod(aMethod); } \ |
| 129 NS_IMETHOD GetTarget(nsAString & aTarget) { return !_to ? NS_ERROR_NULL_POINTE
R : _to->GetTarget(aTarget); } \ |
| 130 NS_IMETHOD SetTarget(const nsAString & aTarget) { return !_to ? NS_ERROR_NULL_
POINTER : _to->SetTarget(aTarget); } \ |
| 131 NS_IMETHOD Submit(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Submit();
} \ |
| 132 NS_IMETHOD Reset(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Reset(); }
|
| 133 |
| 134 #if 0 |
| 135 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 136 |
| 137 /* Header file */ |
| 138 class nsDOMHTMLFormElement : public nsIDOMHTMLFormElement |
| 139 { |
| 140 public: |
| 141 NS_DECL_ISUPPORTS |
| 142 NS_DECL_NSIDOMHTMLFORMELEMENT |
| 143 |
| 144 nsDOMHTMLFormElement(); |
| 145 |
| 146 private: |
| 147 ~nsDOMHTMLFormElement(); |
| 148 |
| 149 protected: |
| 150 /* additional members */ |
| 151 }; |
| 152 |
| 153 /* Implementation file */ |
| 154 NS_IMPL_ISUPPORTS1(nsDOMHTMLFormElement, nsIDOMHTMLFormElement) |
| 155 |
| 156 nsDOMHTMLFormElement::nsDOMHTMLFormElement() |
| 157 { |
| 158 /* member initializers and constructor code */ |
| 159 } |
| 160 |
| 161 nsDOMHTMLFormElement::~nsDOMHTMLFormElement() |
| 162 { |
| 163 /* destructor code */ |
| 164 } |
| 165 |
| 166 /* readonly attribute nsIDOMHTMLCollection elements; */ |
| 167 NS_IMETHODIMP nsDOMHTMLFormElement::GetElements(nsIDOMHTMLCollection * *aElement
s) |
| 168 { |
| 169 return NS_ERROR_NOT_IMPLEMENTED; |
| 170 } |
| 171 |
| 172 /* readonly attribute long length; */ |
| 173 NS_IMETHODIMP nsDOMHTMLFormElement::GetLength(PRInt32 *aLength) |
| 174 { |
| 175 return NS_ERROR_NOT_IMPLEMENTED; |
| 176 } |
| 177 |
| 178 /* attribute DOMString name; */ |
| 179 NS_IMETHODIMP nsDOMHTMLFormElement::GetName(nsAString & aName) |
| 180 { |
| 181 return NS_ERROR_NOT_IMPLEMENTED; |
| 182 } |
| 183 NS_IMETHODIMP nsDOMHTMLFormElement::SetName(const nsAString & aName) |
| 184 { |
| 185 return NS_ERROR_NOT_IMPLEMENTED; |
| 186 } |
| 187 |
| 188 /* attribute DOMString acceptCharset; */ |
| 189 NS_IMETHODIMP nsDOMHTMLFormElement::GetAcceptCharset(nsAString & aAcceptCharset) |
| 190 { |
| 191 return NS_ERROR_NOT_IMPLEMENTED; |
| 192 } |
| 193 NS_IMETHODIMP nsDOMHTMLFormElement::SetAcceptCharset(const nsAString & aAcceptCh
arset) |
| 194 { |
| 195 return NS_ERROR_NOT_IMPLEMENTED; |
| 196 } |
| 197 |
| 198 /* attribute DOMString action; */ |
| 199 NS_IMETHODIMP nsDOMHTMLFormElement::GetAction(nsAString & aAction) |
| 200 { |
| 201 return NS_ERROR_NOT_IMPLEMENTED; |
| 202 } |
| 203 NS_IMETHODIMP nsDOMHTMLFormElement::SetAction(const nsAString & aAction) |
| 204 { |
| 205 return NS_ERROR_NOT_IMPLEMENTED; |
| 206 } |
| 207 |
| 208 /* attribute DOMString enctype; */ |
| 209 NS_IMETHODIMP nsDOMHTMLFormElement::GetEnctype(nsAString & aEnctype) |
| 210 { |
| 211 return NS_ERROR_NOT_IMPLEMENTED; |
| 212 } |
| 213 NS_IMETHODIMP nsDOMHTMLFormElement::SetEnctype(const nsAString & aEnctype) |
| 214 { |
| 215 return NS_ERROR_NOT_IMPLEMENTED; |
| 216 } |
| 217 |
| 218 /* attribute DOMString method; */ |
| 219 NS_IMETHODIMP nsDOMHTMLFormElement::GetMethod(nsAString & aMethod) |
| 220 { |
| 221 return NS_ERROR_NOT_IMPLEMENTED; |
| 222 } |
| 223 NS_IMETHODIMP nsDOMHTMLFormElement::SetMethod(const nsAString & aMethod) |
| 224 { |
| 225 return NS_ERROR_NOT_IMPLEMENTED; |
| 226 } |
| 227 |
| 228 /* attribute DOMString target; */ |
| 229 NS_IMETHODIMP nsDOMHTMLFormElement::GetTarget(nsAString & aTarget) |
| 230 { |
| 231 return NS_ERROR_NOT_IMPLEMENTED; |
| 232 } |
| 233 NS_IMETHODIMP nsDOMHTMLFormElement::SetTarget(const nsAString & aTarget) |
| 234 { |
| 235 return NS_ERROR_NOT_IMPLEMENTED; |
| 236 } |
| 237 |
| 238 /* void submit (); */ |
| 239 NS_IMETHODIMP nsDOMHTMLFormElement::Submit() |
| 240 { |
| 241 return NS_ERROR_NOT_IMPLEMENTED; |
| 242 } |
| 243 |
| 244 /* void reset (); */ |
| 245 NS_IMETHODIMP nsDOMHTMLFormElement::Reset() |
| 246 { |
| 247 return NS_ERROR_NOT_IMPLEMENTED; |
| 248 } |
| 249 |
| 250 /* End of implementation class template. */ |
| 251 #endif |
| 252 |
| 253 |
| 254 #endif /* __gen_nsIDOMHTMLFormElement_h__ */ |
OLD | NEW |