PageRenderTime 113ms CodeModel.GetById 50ms app.highlight 7ms RepoModel.GetById 53ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLScriptElement.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 228 lines | 152 code | 38 blank | 38 comment | 0 complexity | 139d97f2c0389c07d851ae6660c4994c 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/nsIDOMHTMLScriptElement.idl
  3 */
  4
  5#ifndef __gen_nsIDOMHTMLScriptElement_h__
  6#define __gen_nsIDOMHTMLScriptElement_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:    nsIDOMHTMLScriptElement */
 19#define NS_IDOMHTMLSCRIPTELEMENT_IID_STR "a6cf90b1-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMHTMLSCRIPTELEMENT_IID \
 22  {0xa6cf90b1, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25/**
 26 * The nsIDOMHTMLScriptElement interface is the interface to a [X]HTML
 27 * script 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 nsIDOMHTMLScriptElement : public nsIDOMHTMLElement {
 35 public: 
 36
 37  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLSCRIPTELEMENT_IID)
 38
 39  /* attribute DOMString text; */
 40  NS_SCRIPTABLE NS_IMETHOD GetText(nsAString & aText) = 0;
 41  NS_SCRIPTABLE NS_IMETHOD SetText(const nsAString & aText) = 0;
 42
 43  /* attribute DOMString htmlFor; */
 44  NS_SCRIPTABLE NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) = 0;
 45  NS_SCRIPTABLE NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) = 0;
 46
 47  /* attribute DOMString event; */
 48  NS_SCRIPTABLE NS_IMETHOD GetEvent(nsAString & aEvent) = 0;
 49  NS_SCRIPTABLE NS_IMETHOD SetEvent(const nsAString & aEvent) = 0;
 50
 51  /* attribute DOMString charset; */
 52  NS_SCRIPTABLE NS_IMETHOD GetCharset(nsAString & aCharset) = 0;
 53  NS_SCRIPTABLE NS_IMETHOD SetCharset(const nsAString & aCharset) = 0;
 54
 55  /* attribute boolean defer; */
 56  NS_SCRIPTABLE NS_IMETHOD GetDefer(PRBool *aDefer) = 0;
 57  NS_SCRIPTABLE NS_IMETHOD SetDefer(PRBool aDefer) = 0;
 58
 59  /* attribute DOMString src; */
 60  NS_SCRIPTABLE NS_IMETHOD GetSrc(nsAString & aSrc) = 0;
 61  NS_SCRIPTABLE NS_IMETHOD SetSrc(const nsAString & aSrc) = 0;
 62
 63  /* attribute DOMString type; */
 64  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) = 0;
 65  NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) = 0;
 66
 67};
 68
 69  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLScriptElement, NS_IDOMHTMLSCRIPTELEMENT_IID)
 70
 71/* Use this macro when declaring classes that implement this interface. */
 72#define NS_DECL_NSIDOMHTMLSCRIPTELEMENT \
 73  NS_SCRIPTABLE NS_IMETHOD GetText(nsAString & aText); \
 74  NS_SCRIPTABLE NS_IMETHOD SetText(const nsAString & aText); \
 75  NS_SCRIPTABLE NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor); \
 76  NS_SCRIPTABLE NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor); \
 77  NS_SCRIPTABLE NS_IMETHOD GetEvent(nsAString & aEvent); \
 78  NS_SCRIPTABLE NS_IMETHOD SetEvent(const nsAString & aEvent); \
 79  NS_SCRIPTABLE NS_IMETHOD GetCharset(nsAString & aCharset); \
 80  NS_SCRIPTABLE NS_IMETHOD SetCharset(const nsAString & aCharset); \
 81  NS_SCRIPTABLE NS_IMETHOD GetDefer(PRBool *aDefer); \
 82  NS_SCRIPTABLE NS_IMETHOD SetDefer(PRBool aDefer); \
 83  NS_SCRIPTABLE NS_IMETHOD GetSrc(nsAString & aSrc); \
 84  NS_SCRIPTABLE NS_IMETHOD SetSrc(const nsAString & aSrc); \
 85  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType); \
 86  NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType); 
 87
 88/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 89#define NS_FORWARD_NSIDOMHTMLSCRIPTELEMENT(_to) \
 90  NS_SCRIPTABLE NS_IMETHOD GetText(nsAString & aText) { return _to GetText(aText); } \
 91  NS_SCRIPTABLE NS_IMETHOD SetText(const nsAString & aText) { return _to SetText(aText); } \
 92  NS_SCRIPTABLE NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) { return _to GetHtmlFor(aHtmlFor); } \
 93  NS_SCRIPTABLE NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) { return _to SetHtmlFor(aHtmlFor); } \
 94  NS_SCRIPTABLE NS_IMETHOD GetEvent(nsAString & aEvent) { return _to GetEvent(aEvent); } \
 95  NS_SCRIPTABLE NS_IMETHOD SetEvent(const nsAString & aEvent) { return _to SetEvent(aEvent); } \
 96  NS_SCRIPTABLE NS_IMETHOD GetCharset(nsAString & aCharset) { return _to GetCharset(aCharset); } \
 97  NS_SCRIPTABLE NS_IMETHOD SetCharset(const nsAString & aCharset) { return _to SetCharset(aCharset); } \
 98  NS_SCRIPTABLE NS_IMETHOD GetDefer(PRBool *aDefer) { return _to GetDefer(aDefer); } \
 99  NS_SCRIPTABLE NS_IMETHOD SetDefer(PRBool aDefer) { return _to SetDefer(aDefer); } \
100  NS_SCRIPTABLE NS_IMETHOD GetSrc(nsAString & aSrc) { return _to GetSrc(aSrc); } \
101  NS_SCRIPTABLE NS_IMETHOD SetSrc(const nsAString & aSrc) { return _to SetSrc(aSrc); } \
102  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return _to GetType(aType); } \
103  NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) { return _to SetType(aType); } 
104
105/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
106#define NS_FORWARD_SAFE_NSIDOMHTMLSCRIPTELEMENT(_to) \
107  NS_SCRIPTABLE NS_IMETHOD GetText(nsAString & aText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetText(aText); } \
108  NS_SCRIPTABLE NS_IMETHOD SetText(const nsAString & aText) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetText(aText); } \
109  NS_SCRIPTABLE NS_IMETHOD GetHtmlFor(nsAString & aHtmlFor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHtmlFor(aHtmlFor); } \
110  NS_SCRIPTABLE NS_IMETHOD SetHtmlFor(const nsAString & aHtmlFor) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetHtmlFor(aHtmlFor); } \
111  NS_SCRIPTABLE NS_IMETHOD GetEvent(nsAString & aEvent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEvent(aEvent); } \
112  NS_SCRIPTABLE NS_IMETHOD SetEvent(const nsAString & aEvent) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEvent(aEvent); } \
113  NS_SCRIPTABLE NS_IMETHOD GetCharset(nsAString & aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharset(aCharset); } \
114  NS_SCRIPTABLE NS_IMETHOD SetCharset(const nsAString & aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCharset(aCharset); } \
115  NS_SCRIPTABLE NS_IMETHOD GetDefer(PRBool *aDefer) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefer(aDefer); } \
116  NS_SCRIPTABLE NS_IMETHOD SetDefer(PRBool aDefer) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefer(aDefer); } \
117  NS_SCRIPTABLE NS_IMETHOD GetSrc(nsAString & aSrc) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSrc(aSrc); } \
118  NS_SCRIPTABLE NS_IMETHOD SetSrc(const nsAString & aSrc) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSrc(aSrc); } \
119  NS_SCRIPTABLE NS_IMETHOD GetType(nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(aType); } \
120  NS_SCRIPTABLE NS_IMETHOD SetType(const nsAString & aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(aType); } 
121
122#if 0
123/* Use the code below as a template for the implementation class for this interface. */
124
125/* Header file */
126class nsDOMHTMLScriptElement : public nsIDOMHTMLScriptElement
127{
128public:
129  NS_DECL_ISUPPORTS
130  NS_DECL_NSIDOMHTMLSCRIPTELEMENT
131
132  nsDOMHTMLScriptElement();
133
134private:
135  ~nsDOMHTMLScriptElement();
136
137protected:
138  /* additional members */
139};
140
141/* Implementation file */
142NS_IMPL_ISUPPORTS1(nsDOMHTMLScriptElement, nsIDOMHTMLScriptElement)
143
144nsDOMHTMLScriptElement::nsDOMHTMLScriptElement()
145{
146  /* member initializers and constructor code */
147}
148
149nsDOMHTMLScriptElement::~nsDOMHTMLScriptElement()
150{
151  /* destructor code */
152}
153
154/* attribute DOMString text; */
155NS_IMETHODIMP nsDOMHTMLScriptElement::GetText(nsAString & aText)
156{
157    return NS_ERROR_NOT_IMPLEMENTED;
158}
159NS_IMETHODIMP nsDOMHTMLScriptElement::SetText(const nsAString & aText)
160{
161    return NS_ERROR_NOT_IMPLEMENTED;
162}
163
164/* attribute DOMString htmlFor; */
165NS_IMETHODIMP nsDOMHTMLScriptElement::GetHtmlFor(nsAString & aHtmlFor)
166{
167    return NS_ERROR_NOT_IMPLEMENTED;
168}
169NS_IMETHODIMP nsDOMHTMLScriptElement::SetHtmlFor(const nsAString & aHtmlFor)
170{
171    return NS_ERROR_NOT_IMPLEMENTED;
172}
173
174/* attribute DOMString event; */
175NS_IMETHODIMP nsDOMHTMLScriptElement::GetEvent(nsAString & aEvent)
176{
177    return NS_ERROR_NOT_IMPLEMENTED;
178}
179NS_IMETHODIMP nsDOMHTMLScriptElement::SetEvent(const nsAString & aEvent)
180{
181    return NS_ERROR_NOT_IMPLEMENTED;
182}
183
184/* attribute DOMString charset; */
185NS_IMETHODIMP nsDOMHTMLScriptElement::GetCharset(nsAString & aCharset)
186{
187    return NS_ERROR_NOT_IMPLEMENTED;
188}
189NS_IMETHODIMP nsDOMHTMLScriptElement::SetCharset(const nsAString & aCharset)
190{
191    return NS_ERROR_NOT_IMPLEMENTED;
192}
193
194/* attribute boolean defer; */
195NS_IMETHODIMP nsDOMHTMLScriptElement::GetDefer(PRBool *aDefer)
196{
197    return NS_ERROR_NOT_IMPLEMENTED;
198}
199NS_IMETHODIMP nsDOMHTMLScriptElement::SetDefer(PRBool aDefer)
200{
201    return NS_ERROR_NOT_IMPLEMENTED;
202}
203
204/* attribute DOMString src; */
205NS_IMETHODIMP nsDOMHTMLScriptElement::GetSrc(nsAString & aSrc)
206{
207    return NS_ERROR_NOT_IMPLEMENTED;
208}
209NS_IMETHODIMP nsDOMHTMLScriptElement::SetSrc(const nsAString & aSrc)
210{
211    return NS_ERROR_NOT_IMPLEMENTED;
212}
213
214/* attribute DOMString type; */
215NS_IMETHODIMP nsDOMHTMLScriptElement::GetType(nsAString & aType)
216{
217    return NS_ERROR_NOT_IMPLEMENTED;
218}
219NS_IMETHODIMP nsDOMHTMLScriptElement::SetType(const nsAString & aType)
220{
221    return NS_ERROR_NOT_IMPLEMENTED;
222}
223
224/* End of implementation class template. */
225#endif
226
227
228#endif /* __gen_nsIDOMHTMLScriptElement_h__ */