PageRenderTime 74ms CodeModel.GetById 40ms app.highlight 8ms RepoModel.GetById 22ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLFormElement.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 256 lines | 168 code | 44 blank | 44 comment | 0 complexity | f99b858b7283fbdd6cb1cf509885ae86 MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_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
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMHTMLFormElement : public nsIDOMHTMLElement {
 26 public: 
 27
 28  NS_DECLARE_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_SCRIPTABLE NS_IMETHOD GetElements(nsIDOMHTMLCollection * *aElements) = 0;
 41
 42  /* readonly attribute long length; */
 43  NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength) = 0;
 44
 45  /* attribute DOMString name; */
 46  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;
 47  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) = 0;
 48
 49  /* attribute DOMString acceptCharset; */
 50  NS_SCRIPTABLE NS_IMETHOD GetAcceptCharset(nsAString & aAcceptCharset) = 0;
 51  NS_SCRIPTABLE NS_IMETHOD SetAcceptCharset(const nsAString & aAcceptCharset) = 0;
 52
 53  /* attribute DOMString action; */
 54  NS_SCRIPTABLE NS_IMETHOD GetAction(nsAString & aAction) = 0;
 55  NS_SCRIPTABLE NS_IMETHOD SetAction(const nsAString & aAction) = 0;
 56
 57  /* attribute DOMString enctype; */
 58  NS_SCRIPTABLE NS_IMETHOD GetEnctype(nsAString & aEnctype) = 0;
 59  NS_SCRIPTABLE NS_IMETHOD SetEnctype(const nsAString & aEnctype) = 0;
 60
 61  /* attribute DOMString method; */
 62  NS_SCRIPTABLE NS_IMETHOD GetMethod(nsAString & aMethod) = 0;
 63  NS_SCRIPTABLE NS_IMETHOD SetMethod(const nsAString & aMethod) = 0;
 64
 65  /* attribute DOMString target; */
 66  NS_SCRIPTABLE NS_IMETHOD GetTarget(nsAString & aTarget) = 0;
 67  NS_SCRIPTABLE NS_IMETHOD SetTarget(const nsAString & aTarget) = 0;
 68
 69  /* void submit (); */
 70  NS_SCRIPTABLE NS_IMETHOD Submit(void) = 0;
 71
 72  /* void reset (); */
 73  NS_SCRIPTABLE NS_IMETHOD Reset(void) = 0;
 74
 75};
 76
 77  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLFormElement, NS_IDOMHTMLFORMELEMENT_IID)
 78
 79/* Use this macro when declaring classes that implement this interface. */
 80#define NS_DECL_NSIDOMHTMLFORMELEMENT \
 81  NS_SCRIPTABLE NS_IMETHOD GetElements(nsIDOMHTMLCollection * *aElements); \
 82  NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength); \
 83  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
 84  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName); \
 85  NS_SCRIPTABLE NS_IMETHOD GetAcceptCharset(nsAString & aAcceptCharset); \
 86  NS_SCRIPTABLE NS_IMETHOD SetAcceptCharset(const nsAString & aAcceptCharset); \
 87  NS_SCRIPTABLE NS_IMETHOD GetAction(nsAString & aAction); \
 88  NS_SCRIPTABLE NS_IMETHOD SetAction(const nsAString & aAction); \
 89  NS_SCRIPTABLE NS_IMETHOD GetEnctype(nsAString & aEnctype); \
 90  NS_SCRIPTABLE NS_IMETHOD SetEnctype(const nsAString & aEnctype); \
 91  NS_SCRIPTABLE NS_IMETHOD GetMethod(nsAString & aMethod); \
 92  NS_SCRIPTABLE NS_IMETHOD SetMethod(const nsAString & aMethod); \
 93  NS_SCRIPTABLE NS_IMETHOD GetTarget(nsAString & aTarget); \
 94  NS_SCRIPTABLE NS_IMETHOD SetTarget(const nsAString & aTarget); \
 95  NS_SCRIPTABLE NS_IMETHOD Submit(void); \
 96  NS_SCRIPTABLE NS_IMETHOD Reset(void); 
 97
 98/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 99#define NS_FORWARD_NSIDOMHTMLFORMELEMENT(_to) \
100  NS_SCRIPTABLE NS_IMETHOD GetElements(nsIDOMHTMLCollection * *aElements) { return _to GetElements(aElements); } \
101  NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength) { return _to GetLength(aLength); } \
102  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
103  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } \
104  NS_SCRIPTABLE NS_IMETHOD GetAcceptCharset(nsAString & aAcceptCharset) { return _to GetAcceptCharset(aAcceptCharset); } \
105  NS_SCRIPTABLE NS_IMETHOD SetAcceptCharset(const nsAString & aAcceptCharset) { return _to SetAcceptCharset(aAcceptCharset); } \
106  NS_SCRIPTABLE NS_IMETHOD GetAction(nsAString & aAction) { return _to GetAction(aAction); } \
107  NS_SCRIPTABLE NS_IMETHOD SetAction(const nsAString & aAction) { return _to SetAction(aAction); } \
108  NS_SCRIPTABLE NS_IMETHOD GetEnctype(nsAString & aEnctype) { return _to GetEnctype(aEnctype); } \
109  NS_SCRIPTABLE NS_IMETHOD SetEnctype(const nsAString & aEnctype) { return _to SetEnctype(aEnctype); } \
110  NS_SCRIPTABLE NS_IMETHOD GetMethod(nsAString & aMethod) { return _to GetMethod(aMethod); } \
111  NS_SCRIPTABLE NS_IMETHOD SetMethod(const nsAString & aMethod) { return _to SetMethod(aMethod); } \
112  NS_SCRIPTABLE NS_IMETHOD GetTarget(nsAString & aTarget) { return _to GetTarget(aTarget); } \
113  NS_SCRIPTABLE NS_IMETHOD SetTarget(const nsAString & aTarget) { return _to SetTarget(aTarget); } \
114  NS_SCRIPTABLE NS_IMETHOD Submit(void) { return _to Submit(); } \
115  NS_SCRIPTABLE NS_IMETHOD Reset(void) { return _to Reset(); } 
116
117/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
118#define NS_FORWARD_SAFE_NSIDOMHTMLFORMELEMENT(_to) \
119  NS_SCRIPTABLE NS_IMETHOD GetElements(nsIDOMHTMLCollection * *aElements) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElements(aElements); } \
120  NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
121  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
122  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
123  NS_SCRIPTABLE NS_IMETHOD GetAcceptCharset(nsAString & aAcceptCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAcceptCharset(aAcceptCharset); } \
124  NS_SCRIPTABLE NS_IMETHOD SetAcceptCharset(const nsAString & aAcceptCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAcceptCharset(aAcceptCharset); } \
125  NS_SCRIPTABLE NS_IMETHOD GetAction(nsAString & aAction) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAction(aAction); } \
126  NS_SCRIPTABLE NS_IMETHOD SetAction(const nsAString & aAction) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAction(aAction); } \
127  NS_SCRIPTABLE NS_IMETHOD GetEnctype(nsAString & aEnctype) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEnctype(aEnctype); } \
128  NS_SCRIPTABLE NS_IMETHOD SetEnctype(const nsAString & aEnctype) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEnctype(aEnctype); } \
129  NS_SCRIPTABLE NS_IMETHOD GetMethod(nsAString & aMethod) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMethod(aMethod); } \
130  NS_SCRIPTABLE NS_IMETHOD SetMethod(const nsAString & aMethod) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMethod(aMethod); } \
131  NS_SCRIPTABLE NS_IMETHOD GetTarget(nsAString & aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTarget(aTarget); } \
132  NS_SCRIPTABLE NS_IMETHOD SetTarget(const nsAString & aTarget) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTarget(aTarget); } \
133  NS_SCRIPTABLE NS_IMETHOD Submit(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Submit(); } \
134  NS_SCRIPTABLE NS_IMETHOD Reset(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Reset(); } 
135
136#if 0
137/* Use the code below as a template for the implementation class for this interface. */
138
139/* Header file */
140class nsDOMHTMLFormElement : public nsIDOMHTMLFormElement
141{
142public:
143  NS_DECL_ISUPPORTS
144  NS_DECL_NSIDOMHTMLFORMELEMENT
145
146  nsDOMHTMLFormElement();
147
148private:
149  ~nsDOMHTMLFormElement();
150
151protected:
152  /* additional members */
153};
154
155/* Implementation file */
156NS_IMPL_ISUPPORTS1(nsDOMHTMLFormElement, nsIDOMHTMLFormElement)
157
158nsDOMHTMLFormElement::nsDOMHTMLFormElement()
159{
160  /* member initializers and constructor code */
161}
162
163nsDOMHTMLFormElement::~nsDOMHTMLFormElement()
164{
165  /* destructor code */
166}
167
168/* readonly attribute nsIDOMHTMLCollection elements; */
169NS_IMETHODIMP nsDOMHTMLFormElement::GetElements(nsIDOMHTMLCollection * *aElements)
170{
171    return NS_ERROR_NOT_IMPLEMENTED;
172}
173
174/* readonly attribute long length; */
175NS_IMETHODIMP nsDOMHTMLFormElement::GetLength(PRInt32 *aLength)
176{
177    return NS_ERROR_NOT_IMPLEMENTED;
178}
179
180/* attribute DOMString name; */
181NS_IMETHODIMP nsDOMHTMLFormElement::GetName(nsAString & aName)
182{
183    return NS_ERROR_NOT_IMPLEMENTED;
184}
185NS_IMETHODIMP nsDOMHTMLFormElement::SetName(const nsAString & aName)
186{
187    return NS_ERROR_NOT_IMPLEMENTED;
188}
189
190/* attribute DOMString acceptCharset; */
191NS_IMETHODIMP nsDOMHTMLFormElement::GetAcceptCharset(nsAString & aAcceptCharset)
192{
193    return NS_ERROR_NOT_IMPLEMENTED;
194}
195NS_IMETHODIMP nsDOMHTMLFormElement::SetAcceptCharset(const nsAString & aAcceptCharset)
196{
197    return NS_ERROR_NOT_IMPLEMENTED;
198}
199
200/* attribute DOMString action; */
201NS_IMETHODIMP nsDOMHTMLFormElement::GetAction(nsAString & aAction)
202{
203    return NS_ERROR_NOT_IMPLEMENTED;
204}
205NS_IMETHODIMP nsDOMHTMLFormElement::SetAction(const nsAString & aAction)
206{
207    return NS_ERROR_NOT_IMPLEMENTED;
208}
209
210/* attribute DOMString enctype; */
211NS_IMETHODIMP nsDOMHTMLFormElement::GetEnctype(nsAString & aEnctype)
212{
213    return NS_ERROR_NOT_IMPLEMENTED;
214}
215NS_IMETHODIMP nsDOMHTMLFormElement::SetEnctype(const nsAString & aEnctype)
216{
217    return NS_ERROR_NOT_IMPLEMENTED;
218}
219
220/* attribute DOMString method; */
221NS_IMETHODIMP nsDOMHTMLFormElement::GetMethod(nsAString & aMethod)
222{
223    return NS_ERROR_NOT_IMPLEMENTED;
224}
225NS_IMETHODIMP nsDOMHTMLFormElement::SetMethod(const nsAString & aMethod)
226{
227    return NS_ERROR_NOT_IMPLEMENTED;
228}
229
230/* attribute DOMString target; */
231NS_IMETHODIMP nsDOMHTMLFormElement::GetTarget(nsAString & aTarget)
232{
233    return NS_ERROR_NOT_IMPLEMENTED;
234}
235NS_IMETHODIMP nsDOMHTMLFormElement::SetTarget(const nsAString & aTarget)
236{
237    return NS_ERROR_NOT_IMPLEMENTED;
238}
239
240/* void submit (); */
241NS_IMETHODIMP nsDOMHTMLFormElement::Submit()
242{
243    return NS_ERROR_NOT_IMPLEMENTED;
244}
245
246/* void reset (); */
247NS_IMETHODIMP nsDOMHTMLFormElement::Reset()
248{
249    return NS_ERROR_NOT_IMPLEMENTED;
250}
251
252/* End of implementation class template. */
253#endif
254
255
256#endif /* __gen_nsIDOMHTMLFormElement_h__ */