PageRenderTime 142ms CodeModel.GetById 60ms app.highlight 4ms RepoModel.GetById 76ms app.codeStats 1ms

/gecko_api/include/nsIDOMAttr.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 145 lines | 80 code | 32 blank | 33 comment | 0 complexity | e43c3433542d0b01d36d81e2ebb19b90 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/core/nsIDOMAttr.idl
  3 */
  4
  5#ifndef __gen_nsIDOMAttr_h__
  6#define __gen_nsIDOMAttr_h__
  7
  8
  9#ifndef __gen_nsIDOMNode_h__
 10#include "nsIDOMNode.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:    nsIDOMAttr */
 19#define NS_IDOMATTR_IID_STR "a6cf9070-15b3-11d2-932e-00805f8add32"
 20
 21#define NS_IDOMATTR_IID \
 22  {0xa6cf9070, 0x15b3, 0x11d2, \
 23    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
 24
 25class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMAttr : public nsIDOMNode {
 26 public: 
 27
 28  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMATTR_IID)
 29
 30  /**
 31 * The nsIDOMAttr interface represents an attribute in an "Element" object. 
 32 * Typically the allowable values for the attribute are defined in a document 
 33 * type definition.
 34 * 
 35 * For more information on this interface please see 
 36 * http://www.w3.org/TR/DOM-Level-2-Core/
 37 *
 38 * @status FROZEN
 39 */
 40  /* readonly attribute DOMString name; */
 41  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) = 0;
 42
 43  /* readonly attribute boolean specified; */
 44  NS_SCRIPTABLE NS_IMETHOD GetSpecified(PRBool *aSpecified) = 0;
 45
 46  /* attribute DOMString value; */
 47  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) = 0;
 48  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) = 0;
 49
 50  /* readonly attribute nsIDOMElement ownerElement; */
 51  NS_SCRIPTABLE NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) = 0;
 52
 53};
 54
 55  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMAttr, NS_IDOMATTR_IID)
 56
 57/* Use this macro when declaring classes that implement this interface. */
 58#define NS_DECL_NSIDOMATTR \
 59  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName); \
 60  NS_SCRIPTABLE NS_IMETHOD GetSpecified(PRBool *aSpecified); \
 61  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue); \
 62  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue); \
 63  NS_SCRIPTABLE NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement); 
 64
 65/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 66#define NS_FORWARD_NSIDOMATTR(_to) \
 67  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return _to GetName(aName); } \
 68  NS_SCRIPTABLE NS_IMETHOD GetSpecified(PRBool *aSpecified) { return _to GetSpecified(aSpecified); } \
 69  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return _to GetValue(aValue); } \
 70  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return _to SetValue(aValue); } \
 71  NS_SCRIPTABLE NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) { return _to GetOwnerElement(aOwnerElement); } 
 72
 73/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 74#define NS_FORWARD_SAFE_NSIDOMATTR(_to) \
 75  NS_SCRIPTABLE NS_IMETHOD GetName(nsAString & aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetName(aName); } \
 76  NS_SCRIPTABLE NS_IMETHOD GetSpecified(PRBool *aSpecified) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSpecified(aSpecified); } \
 77  NS_SCRIPTABLE NS_IMETHOD GetValue(nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(aValue); } \
 78  NS_SCRIPTABLE NS_IMETHOD SetValue(const nsAString & aValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(aValue); } \
 79  NS_SCRIPTABLE NS_IMETHOD GetOwnerElement(nsIDOMElement * *aOwnerElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetOwnerElement(aOwnerElement); } 
 80
 81#if 0
 82/* Use the code below as a template for the implementation class for this interface. */
 83
 84/* Header file */
 85class nsDOMAttr : public nsIDOMAttr
 86{
 87public:
 88  NS_DECL_ISUPPORTS
 89  NS_DECL_NSIDOMATTR
 90
 91  nsDOMAttr();
 92
 93private:
 94  ~nsDOMAttr();
 95
 96protected:
 97  /* additional members */
 98};
 99
100/* Implementation file */
101NS_IMPL_ISUPPORTS1(nsDOMAttr, nsIDOMAttr)
102
103nsDOMAttr::nsDOMAttr()
104{
105  /* member initializers and constructor code */
106}
107
108nsDOMAttr::~nsDOMAttr()
109{
110  /* destructor code */
111}
112
113/* readonly attribute DOMString name; */
114NS_IMETHODIMP nsDOMAttr::GetName(nsAString & aName)
115{
116    return NS_ERROR_NOT_IMPLEMENTED;
117}
118
119/* readonly attribute boolean specified; */
120NS_IMETHODIMP nsDOMAttr::GetSpecified(PRBool *aSpecified)
121{
122    return NS_ERROR_NOT_IMPLEMENTED;
123}
124
125/* attribute DOMString value; */
126NS_IMETHODIMP nsDOMAttr::GetValue(nsAString & aValue)
127{
128    return NS_ERROR_NOT_IMPLEMENTED;
129}
130NS_IMETHODIMP nsDOMAttr::SetValue(const nsAString & aValue)
131{
132    return NS_ERROR_NOT_IMPLEMENTED;
133}
134
135/* readonly attribute nsIDOMElement ownerElement; */
136NS_IMETHODIMP nsDOMAttr::GetOwnerElement(nsIDOMElement * *aOwnerElement)
137{
138    return NS_ERROR_NOT_IMPLEMENTED;
139}
140
141/* End of implementation class template. */
142#endif
143
144
145#endif /* __gen_nsIDOMAttr_h__ */