PageRenderTime 143ms CodeModel.GetById 81ms app.highlight 5ms RepoModel.GetById 55ms app.codeStats 0ms

/gecko_api/include/nsIDOMHTMLElement.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 189 lines | 120 code | 34 blank | 35 comment | 0 complexity | 513d9dbeafb088558456995c74c7dccf 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/nsIDOMHTMLElement.idl
  3 */
  4
  5#ifndef __gen_nsIDOMHTMLElement_h__
  6#define __gen_nsIDOMHTMLElement_h__
  7
  8
  9#ifndef __gen_nsIDOMElement_h__
 10#include "nsIDOMElement.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:    nsIDOMHTMLElement */
 19#define NS_IDOMHTMLELEMENT_IID_STR "a6cf9085-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMHTMLELEMENT_IID \
 22  {0xa6cf9085, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMHTMLElement : public nsIDOMElement {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMHTMLELEMENT_IID)
 29
 30  /**
 31 * The nsIDOMHTMLElement interface is the primary [X]HTML element
 32 * interface. It represents a single [X]HTML element in the document
 33 * tree.
 34 *
 35 * For more information on this interface please see
 36 * http://www.w3.org/TR/DOM-Level-2-HTML/
 37 *
 38 * @status FROZEN
 39 */
 40  /* attribute DOMString id; */
 41  NS_SCRIPTABLE NS_IMETHOD GetId(nsAString & aId) = 0;
 42  NS_SCRIPTABLE NS_IMETHOD SetId(const nsAString & aId) = 0;
 43
 44  /* attribute DOMString title; */
 45  NS_SCRIPTABLE NS_IMETHOD GetTitle(nsAString & aTitle) = 0;
 46  NS_SCRIPTABLE NS_IMETHOD SetTitle(const nsAString & aTitle) = 0;
 47
 48  /* attribute DOMString lang; */
 49  NS_SCRIPTABLE NS_IMETHOD GetLang(nsAString & aLang) = 0;
 50  NS_SCRIPTABLE NS_IMETHOD SetLang(const nsAString & aLang) = 0;
 51
 52  /* attribute DOMString dir; */
 53  NS_SCRIPTABLE NS_IMETHOD GetDir(nsAString & aDir) = 0;
 54  NS_SCRIPTABLE NS_IMETHOD SetDir(const nsAString & aDir) = 0;
 55
 56  /* attribute DOMString className; */
 57  NS_SCRIPTABLE NS_IMETHOD GetClassName(nsAString & aClassName) = 0;
 58  NS_SCRIPTABLE NS_IMETHOD SetClassName(const nsAString & aClassName) = 0;
 59
 60};
 61
 62  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMHTMLElement, NS_IDOMHTMLELEMENT_IID)
 63
 64/* Use this macro when declaring classes that implement this interface. */
 65#define NS_DECL_NSIDOMHTMLELEMENT \
 66  NS_SCRIPTABLE NS_IMETHOD GetId(nsAString & aId); \
 67  NS_SCRIPTABLE NS_IMETHOD SetId(const nsAString & aId); \
 68  NS_SCRIPTABLE NS_IMETHOD GetTitle(nsAString & aTitle); \
 69  NS_SCRIPTABLE NS_IMETHOD SetTitle(const nsAString & aTitle); \
 70  NS_SCRIPTABLE NS_IMETHOD GetLang(nsAString & aLang); \
 71  NS_SCRIPTABLE NS_IMETHOD SetLang(const nsAString & aLang); \
 72  NS_SCRIPTABLE NS_IMETHOD GetDir(nsAString & aDir); \
 73  NS_SCRIPTABLE NS_IMETHOD SetDir(const nsAString & aDir); \
 74  NS_SCRIPTABLE NS_IMETHOD GetClassName(nsAString & aClassName); \
 75  NS_SCRIPTABLE NS_IMETHOD SetClassName(const nsAString & aClassName); 
 76
 77/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 78#define NS_FORWARD_NSIDOMHTMLELEMENT(_to) \
 79  NS_SCRIPTABLE NS_IMETHOD GetId(nsAString & aId) { return _to GetId(aId); } \
 80  NS_SCRIPTABLE NS_IMETHOD SetId(const nsAString & aId) { return _to SetId(aId); } \
 81  NS_SCRIPTABLE NS_IMETHOD GetTitle(nsAString & aTitle) { return _to GetTitle(aTitle); } \
 82  NS_SCRIPTABLE NS_IMETHOD SetTitle(const nsAString & aTitle) { return _to SetTitle(aTitle); } \
 83  NS_SCRIPTABLE NS_IMETHOD GetLang(nsAString & aLang) { return _to GetLang(aLang); } \
 84  NS_SCRIPTABLE NS_IMETHOD SetLang(const nsAString & aLang) { return _to SetLang(aLang); } \
 85  NS_SCRIPTABLE NS_IMETHOD GetDir(nsAString & aDir) { return _to GetDir(aDir); } \
 86  NS_SCRIPTABLE NS_IMETHOD SetDir(const nsAString & aDir) { return _to SetDir(aDir); } \
 87  NS_SCRIPTABLE NS_IMETHOD GetClassName(nsAString & aClassName) { return _to GetClassName(aClassName); } \
 88  NS_SCRIPTABLE NS_IMETHOD SetClassName(const nsAString & aClassName) { return _to SetClassName(aClassName); } 
 89
 90/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 91#define NS_FORWARD_SAFE_NSIDOMHTMLELEMENT(_to) \
 92  NS_SCRIPTABLE NS_IMETHOD GetId(nsAString & aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetId(aId); } \
 93  NS_SCRIPTABLE NS_IMETHOD SetId(const nsAString & aId) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetId(aId); } \
 94  NS_SCRIPTABLE NS_IMETHOD GetTitle(nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
 95  NS_SCRIPTABLE NS_IMETHOD SetTitle(const nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTitle(aTitle); } \
 96  NS_SCRIPTABLE NS_IMETHOD GetLang(nsAString & aLang) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLang(aLang); } \
 97  NS_SCRIPTABLE NS_IMETHOD SetLang(const nsAString & aLang) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLang(aLang); } \
 98  NS_SCRIPTABLE NS_IMETHOD GetDir(nsAString & aDir) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDir(aDir); } \
 99  NS_SCRIPTABLE NS_IMETHOD SetDir(const nsAString & aDir) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDir(aDir); } \
100  NS_SCRIPTABLE NS_IMETHOD GetClassName(nsAString & aClassName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClassName(aClassName); } \
101  NS_SCRIPTABLE NS_IMETHOD SetClassName(const nsAString & aClassName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetClassName(aClassName); } 
102
103#if 0
104/* Use the code below as a template for the implementation class for this interface. */
105
106/* Header file */
107class nsDOMHTMLElement : public nsIDOMHTMLElement
108{
109public:
110  NS_DECL_ISUPPORTS
111  NS_DECL_NSIDOMHTMLELEMENT
112
113  nsDOMHTMLElement();
114
115private:
116  ~nsDOMHTMLElement();
117
118protected:
119  /* additional members */
120};
121
122/* Implementation file */
123NS_IMPL_ISUPPORTS1(nsDOMHTMLElement, nsIDOMHTMLElement)
124
125nsDOMHTMLElement::nsDOMHTMLElement()
126{
127  /* member initializers and constructor code */
128}
129
130nsDOMHTMLElement::~nsDOMHTMLElement()
131{
132  /* destructor code */
133}
134
135/* attribute DOMString id; */
136NS_IMETHODIMP nsDOMHTMLElement::GetId(nsAString & aId)
137{
138    return NS_ERROR_NOT_IMPLEMENTED;
139}
140NS_IMETHODIMP nsDOMHTMLElement::SetId(const nsAString & aId)
141{
142    return NS_ERROR_NOT_IMPLEMENTED;
143}
144
145/* attribute DOMString title; */
146NS_IMETHODIMP nsDOMHTMLElement::GetTitle(nsAString & aTitle)
147{
148    return NS_ERROR_NOT_IMPLEMENTED;
149}
150NS_IMETHODIMP nsDOMHTMLElement::SetTitle(const nsAString & aTitle)
151{
152    return NS_ERROR_NOT_IMPLEMENTED;
153}
154
155/* attribute DOMString lang; */
156NS_IMETHODIMP nsDOMHTMLElement::GetLang(nsAString & aLang)
157{
158    return NS_ERROR_NOT_IMPLEMENTED;
159}
160NS_IMETHODIMP nsDOMHTMLElement::SetLang(const nsAString & aLang)
161{
162    return NS_ERROR_NOT_IMPLEMENTED;
163}
164
165/* attribute DOMString dir; */
166NS_IMETHODIMP nsDOMHTMLElement::GetDir(nsAString & aDir)
167{
168    return NS_ERROR_NOT_IMPLEMENTED;
169}
170NS_IMETHODIMP nsDOMHTMLElement::SetDir(const nsAString & aDir)
171{
172    return NS_ERROR_NOT_IMPLEMENTED;
173}
174
175/* attribute DOMString className; */
176NS_IMETHODIMP nsDOMHTMLElement::GetClassName(nsAString & aClassName)
177{
178    return NS_ERROR_NOT_IMPLEMENTED;
179}
180NS_IMETHODIMP nsDOMHTMLElement::SetClassName(const nsAString & aClassName)
181{
182    return NS_ERROR_NOT_IMPLEMENTED;
183}
184
185/* End of implementation class template. */
186#endif
187
188
189#endif /* __gen_nsIDOMHTMLElement_h__ */