PageRenderTime 351ms CodeModel.GetById 130ms app.highlight 8ms RepoModel.GetById 117ms app.codeStats 92ms

/gecko_api/include/nsIDOMHTMLButtonElement.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 212 lines | 136 code | 38 blank | 38 comment | 0 complexity | a96bbbbcf784af4c4f7a338cbb5cea9c 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/nsIDOMHTMLButtonElement.idl
  3 */
  4
  5#ifndef __gen_nsIDOMHTMLButtonElement_h__
  6#define __gen_nsIDOMHTMLButtonElement_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:    nsIDOMHTMLButtonElement */
 19#define NS_IDOMHTMLBUTTONELEMENT_IID_STR "a6cf9095-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMHTMLBUTTONELEMENT_IID \
 22  {0xa6cf9095, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25/**
 26 * The nsIDOMHTMLButtonElement interface is the interface to a [X]HTML
 27 * button 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 nsIDOMHTMLButtonElement : public nsIDOMHTMLElement {
 35 public: 
 36
 37  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLBUTTONELEMENT_IID)
 38
 39  /* readonly attribute nsIDOMHTMLFormElement form; */
 40  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) = 0;
 41
 42  /* attribute DOMString accessKey; */
 43  NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey) = 0;
 44  NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) = 0;
 45
 46  /* attribute boolean disabled; */
 47  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) = 0;
 48  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) = 0;
 49
 50  /* attribute DOMString name; */
 51  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;
 52  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) = 0;
 53
 54  /* attribute long tabIndex; */
 55  NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) = 0;
 56  NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) = 0;
 57
 58  /* [noscript] readonly attribute DOMString type; */
 59  NS_IMETHOD GetType(nsAString & aType) = 0;
 60
 61  /* attribute DOMString value; */
 62  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) = 0;
 63  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) = 0;
 64
 65};
 66
 67  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLButtonElement, NS_IDOMHTMLBUTTONELEMENT_IID)
 68
 69/* Use this macro when declaring classes that implement this interface. */
 70#define NS_DECL_NSIDOMHTMLBUTTONELEMENT \
 71  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm); \
 72  NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey); \
 73  NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey); \
 74  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled); \
 75  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled); \
 76  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
 77  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName); \
 78  NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex); \
 79  NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex); \
 80  NS_IMETHOD GetType(nsAString & aType); \
 81  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue); \
 82  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue); 
 83
 84/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 85#define NS_FORWARD_NSIDOMHTMLBUTTONELEMENT(_to) \
 86  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return _to GetForm(aForm); } \
 87  NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return _to GetAccessKey(aAccessKey); } \
 88  NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return _to SetAccessKey(aAccessKey); } \
 89  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return _to GetDisabled(aDisabled); } \
 90  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return _to SetDisabled(aDisabled); } \
 91  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
 92  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return _to SetName(aName); } \
 93  NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return _to GetTabIndex(aTabIndex); } \
 94  NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return _to SetTabIndex(aTabIndex); } \
 95  NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
 96  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
 97  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); } 
 98
 99/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
100#define NS_FORWARD_SAFE_NSIDOMHTMLBUTTONELEMENT(_to) \
101  NS_SCRIPTABLE NS_IMETHOD GetForm(nsIDOMHTMLFormElement * *aForm) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForm(aForm); } \
102  NS_SCRIPTABLE NS_IMETHOD GetAccessKey(nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAccessKey(aAccessKey); } \
103  NS_SCRIPTABLE NS_IMETHOD SetAccessKey(const nsAString & aAccessKey) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAccessKey(aAccessKey); } \
104  NS_SCRIPTABLE NS_IMETHOD GetDisabled(PRBool *aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDisabled(aDisabled); } \
105  NS_SCRIPTABLE NS_IMETHOD SetDisabled(PRBool aDisabled) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDisabled(aDisabled); } \
106  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
107  NS_SCRIPTABLE NS_IMETHOD SetName(const nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetName(aName); } \
108  NS_SCRIPTABLE NS_IMETHOD GetTabIndex(PRInt32 *aTabIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTabIndex(aTabIndex); } \
109  NS_SCRIPTABLE NS_IMETHOD SetTabIndex(PRInt32 aTabIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTabIndex(aTabIndex); } \
110  NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
111  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
112  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } 
113
114#if 0
115/* Use the code below as a template for the implementation class for this interface. */
116
117/* Header file */
118class nsDOMHTMLButtonElement : public nsIDOMHTMLButtonElement
119{
120public:
121  NS_DECL_ISUPPORTS
122  NS_DECL_NSIDOMHTMLBUTTONELEMENT
123
124  nsDOMHTMLButtonElement();
125
126private:
127  ~nsDOMHTMLButtonElement();
128
129protected:
130  /* additional members */
131};
132
133/* Implementation file */
134NS_IMPL_ISUPPORTS1(nsDOMHTMLButtonElement, nsIDOMHTMLButtonElement)
135
136nsDOMHTMLButtonElement::nsDOMHTMLButtonElement()
137{
138  /* member initializers and constructor code */
139}
140
141nsDOMHTMLButtonElement::~nsDOMHTMLButtonElement()
142{
143  /* destructor code */
144}
145
146/* readonly attribute nsIDOMHTMLFormElement form; */
147NS_IMETHODIMP nsDOMHTMLButtonElement::GetForm(nsIDOMHTMLFormElement * *aForm)
148{
149    return NS_ERROR_NOT_IMPLEMENTED;
150}
151
152/* attribute DOMString accessKey; */
153NS_IMETHODIMP nsDOMHTMLButtonElement::GetAccessKey(nsAString & aAccessKey)
154{
155    return NS_ERROR_NOT_IMPLEMENTED;
156}
157NS_IMETHODIMP nsDOMHTMLButtonElement::SetAccessKey(const nsAString & aAccessKey)
158{
159    return NS_ERROR_NOT_IMPLEMENTED;
160}
161
162/* attribute boolean disabled; */
163NS_IMETHODIMP nsDOMHTMLButtonElement::GetDisabled(PRBool *aDisabled)
164{
165    return NS_ERROR_NOT_IMPLEMENTED;
166}
167NS_IMETHODIMP nsDOMHTMLButtonElement::SetDisabled(PRBool aDisabled)
168{
169    return NS_ERROR_NOT_IMPLEMENTED;
170}
171
172/* attribute DOMString name; */
173NS_IMETHODIMP nsDOMHTMLButtonElement::GetName(nsAString & aName)
174{
175    return NS_ERROR_NOT_IMPLEMENTED;
176}
177NS_IMETHODIMP nsDOMHTMLButtonElement::SetName(const nsAString & aName)
178{
179    return NS_ERROR_NOT_IMPLEMENTED;
180}
181
182/* attribute long tabIndex; */
183NS_IMETHODIMP nsDOMHTMLButtonElement::GetTabIndex(PRInt32 *aTabIndex)
184{
185    return NS_ERROR_NOT_IMPLEMENTED;
186}
187NS_IMETHODIMP nsDOMHTMLButtonElement::SetTabIndex(PRInt32 aTabIndex)
188{
189    return NS_ERROR_NOT_IMPLEMENTED;
190}
191
192/* [noscript] readonly attribute DOMString type; */
193NS_IMETHODIMP nsDOMHTMLButtonElement::GetType(nsAString & aType)
194{
195    return NS_ERROR_NOT_IMPLEMENTED;
196}
197
198/* attribute DOMString value; */
199NS_IMETHODIMP nsDOMHTMLButtonElement::GetValue(nsAString & aValue)
200{
201    return NS_ERROR_NOT_IMPLEMENTED;
202}
203NS_IMETHODIMP nsDOMHTMLButtonElement::SetValue(const nsAString & aValue)
204{
205    return NS_ERROR_NOT_IMPLEMENTED;
206}
207
208/* End of implementation class template. */
209#endif
210
211
212#endif /* __gen_nsIDOMHTMLButtonElement_h__ */