PageRenderTime 133ms CodeModel.GetById 70ms app.highlight 7ms RepoModel.GetById 53ms app.codeStats 1ms

/gecko_api/include/nsIDOMHTMLOptionElement.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 224 lines | 144 code | 40 blank | 40 comment | 0 complexity | d73adeeecee49838c4551bc1b97d75ec 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/nsIDOMHTMLOptionElement.idl
  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 */
 34class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMHTMLOptionElement : public nsIDOMHTMLElement {
 35 public: 
 36
 37  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLOPTIONELEMENT_IID)
 38
 39  /* readonly attribute nsIDOMHTMLFormElement form; */
 40  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) = 0;
 41
 42  /* attribute boolean defaultSelected; */
 43  NS_SCRIPTABLE NS_IMETHOD GetDefaultSelected(PRBool *aDefaultSelected) = 0;
 44  NS_SCRIPTABLE NS_IMETHOD SetDefaultSelected(PRBool aDefaultSelected) = 0;
 45
 46  /* readonly attribute DOMString text; */
 47  NS_SCRIPTABLE NS_IMETHOD GetText(nsAString & aText) = 0;
 48
 49  /* readonly attribute long index; */
 50  NS_SCRIPTABLE NS_IMETHOD GetIndex(PRInt32 *aIndex) = 0;
 51
 52  /* attribute boolean disabled; */
 53  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
 54  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
 55
 56  /* attribute DOMString label; */
 57  NS_SCRIPTABLE NS_IMETHOD GetLabel(nsAString & aLabel) = 0;
 58  NS_SCRIPTABLE NS_IMETHOD SetLabel(const nsAString & aLabel) = 0;
 59
 60  /* attribute boolean selected; */
 61  NS_SCRIPTABLE NS_IMETHOD GetSelected(PRBool *aSelected) = 0;
 62  NS_SCRIPTABLE NS_IMETHOD SetSelected(PRBool aSelected) = 0;
 63
 64  /* attribute DOMString value; */
 65  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) = 0;
 66  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) = 0;
 67
 68};
 69
 70  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLOptionElement, NS_IDOMHTMLOPTIONELEMENT_IID)
 71
 72/* Use this macro when declaring classes that implement this interface. */
 73#define NS_DECL_NSIDOMHTMLOPTIONELEMENT \
 74  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm); \
 75  NS_SCRIPTABLE NS_IMETHOD GetDefaultSelected(PRBool *aDefaultSelected); \
 76  NS_SCRIPTABLE NS_IMETHOD SetDefaultSelected(PRBool aDefaultSelected); \
 77  NS_SCRIPTABLE NS_IMETHOD GetText(nsAString & aText); \
 78  NS_SCRIPTABLE NS_IMETHOD GetIndex(PRInt32 *aIndex); \
 79  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled); \
 80  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled); \
 81  NS_SCRIPTABLE NS_IMETHOD GetLabel(nsAString & aLabel); \
 82  NS_SCRIPTABLE NS_IMETHOD SetLabel(const nsAString & aLabel); \
 83  NS_SCRIPTABLE NS_IMETHOD GetSelected(PRBool *aSelected); \
 84  NS_SCRIPTABLE NS_IMETHOD SetSelected(PRBool aSelected); \
 85  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue); \
 86  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue); 
 87
 88/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 89#define NS_FORWARD_NSIDOMHTMLOPTIONELEMENT(_to) \
 90  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return _to GetForm(aForm); } \
 91  NS_SCRIPTABLE NS_IMETHOD GetDefaultSelected(PRBool *aDefaultSelected) { return _to GetDefaultSelected(aDefaultSelected); } \
 92  NS_SCRIPTABLE NS_IMETHOD SetDefaultSelected(PRBool aDefaultSelected) { return _to SetDefaultSelected(aDefaultSelected); } \
 93  NS_SCRIPTABLE NS_IMETHOD GetText(nsAString & aText) { return _to GetText(aText); } \
 94  NS_SCRIPTABLE NS_IMETHOD GetIndex(PRInt32 *aIndex) { return _to GetIndex(aIndex); } \
 95  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
 96  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
 97  NS_SCRIPTABLE NS_IMETHOD GetLabel(nsAString & aLabel) { return _to GetLabel(aLabel); } \
 98  NS_SCRIPTABLE NS_IMETHOD SetLabel(const nsAString & aLabel) { return _to SetLabel(aLabel); } \
 99  NS_SCRIPTABLE NS_IMETHOD GetSelected(PRBool *aSelected) { return _to GetSelected(aSelected); } \
100  NS_SCRIPTABLE NS_IMETHOD SetSelected(PRBool aSelected) { return _to SetSelected(aSelected); } \
101  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
102  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); } 
103
104/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
105#define NS_FORWARD_SAFE_NSIDOMHTMLOPTIONELEMENT(_to) \
106  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForm(aForm); } \
107  NS_SCRIPTABLE NS_IMETHOD GetDefaultSelected(PRBool *aDefaultSelected) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultSelected(aDefaultSelected); } \
108  NS_SCRIPTABLE NS_IMETHOD SetDefaultSelected(PRBool aDefaultSelected) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultSelected(aDefaultSelected); } \
109  NS_SCRIPTABLE NS_IMETHOD GetText(nsAString & aText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetText(aText); } \
110  NS_SCRIPTABLE NS_IMETHOD GetIndex(PRInt32 *aIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndex(aIndex); } \
111  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
112  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
113  NS_SCRIPTABLE NS_IMETHOD GetLabel(nsAString & aLabel) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLabel(aLabel); } \
114  NS_SCRIPTABLE NS_IMETHOD SetLabel(const nsAString & aLabel) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLabel(aLabel); } \
115  NS_SCRIPTABLE NS_IMETHOD GetSelected(PRBool *aSelected) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelected(aSelected); } \
116  NS_SCRIPTABLE NS_IMETHOD SetSelected(PRBool aSelected) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelected(aSelected); } \
117  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
118  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } 
119
120#if 0
121/* Use the code below as a template for the implementation class for this interface. */
122
123/* Header file */
124class nsDOMHTMLOptionElement : public nsIDOMHTMLOptionElement
125{
126public:
127  NS_DECL_ISUPPORTS
128  NS_DECL_NSIDOMHTMLOPTIONELEMENT
129
130  nsDOMHTMLOptionElement();
131
132private:
133  ~nsDOMHTMLOptionElement();
134
135protected:
136  /* additional members */
137};
138
139/* Implementation file */
140NS_IMPL_ISUPPORTS1(nsDOMHTMLOptionElement, nsIDOMHTMLOptionElement)
141
142nsDOMHTMLOptionElement::nsDOMHTMLOptionElement()
143{
144  /* member initializers and constructor code */
145}
146
147nsDOMHTMLOptionElement::~nsDOMHTMLOptionElement()
148{
149  /* destructor code */
150}
151
152/* readonly attribute nsIDOMHTMLFormElement form; */
153NS_IMETHODIMP nsDOMHTMLOptionElement::GetForm(nsIDOMHTMLFormElement * *aForm)
154{
155    return NS_ERROR_NOT_IMPLEMENTED;
156}
157
158/* attribute boolean defaultSelected; */
159NS_IMETHODIMP nsDOMHTMLOptionElement::GetDefaultSelected(PRBool *aDefaultSelected)
160{
161    return NS_ERROR_NOT_IMPLEMENTED;
162}
163NS_IMETHODIMP nsDOMHTMLOptionElement::SetDefaultSelected(PRBool aDefaultSelected)
164{
165    return NS_ERROR_NOT_IMPLEMENTED;
166}
167
168/* readonly attribute DOMString text; */
169NS_IMETHODIMP nsDOMHTMLOptionElement::GetText(nsAString & aText)
170{
171    return NS_ERROR_NOT_IMPLEMENTED;
172}
173
174/* readonly attribute long index; */
175NS_IMETHODIMP nsDOMHTMLOptionElement::GetIndex(PRInt32 *aIndex)
176{
177    return NS_ERROR_NOT_IMPLEMENTED;
178}
179
180/* attribute boolean disabled; */
181NS_IMETHODIMP nsDOMHTMLOptionElement::GetDisabled(PRBool *aDisabled)
182{
183    return NS_ERROR_NOT_IMPLEMENTED;
184}
185NS_IMETHODIMP nsDOMHTMLOptionElement::SetDisabled(PRBool aDisabled)
186{
187    return NS_ERROR_NOT_IMPLEMENTED;
188}
189
190/* attribute DOMString label; */
191NS_IMETHODIMP nsDOMHTMLOptionElement::GetLabel(nsAString & aLabel)
192{
193    return NS_ERROR_NOT_IMPLEMENTED;
194}
195NS_IMETHODIMP nsDOMHTMLOptionElement::SetLabel(const nsAString & aLabel)
196{
197    return NS_ERROR_NOT_IMPLEMENTED;
198}
199
200/* attribute boolean selected; */
201NS_IMETHODIMP nsDOMHTMLOptionElement::GetSelected(PRBool *aSelected)
202{
203    return NS_ERROR_NOT_IMPLEMENTED;
204}
205NS_IMETHODIMP nsDOMHTMLOptionElement::SetSelected(PRBool aSelected)
206{
207    return NS_ERROR_NOT_IMPLEMENTED;
208}
209
210/* attribute DOMString value; */
211NS_IMETHODIMP nsDOMHTMLOptionElement::GetValue(nsAString & aValue)
212{
213    return NS_ERROR_NOT_IMPLEMENTED;
214}
215NS_IMETHODIMP nsDOMHTMLOptionElement::SetValue(const nsAString & aValue)
216{
217    return NS_ERROR_NOT_IMPLEMENTED;
218}
219
220/* End of implementation class template. */
221#endif
222
223
224#endif /* __gen_nsIDOMHTMLOptionElement_h__ */