Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMElement.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMElement_h__
6 : #define __gen_nsIDOMElement_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 : class nsIDOMMozNamedAttrMap; /* forward declaration */
18 :
19 : // Undo the windows.h damage
20 : #undef GetMessage
21 : #undef CreateEvent
22 : #undef GetClassName
23 : #undef GetBinaryType
24 : #undef RemoveDirectory
25 :
26 : /* starting interface: nsIDOMElement */
27 : #define NS_IDOMELEMENT_IID_STR "6289999b-1008-4269-b42a-413ec5a9d3f4"
28 :
29 : #define NS_IDOMELEMENT_IID \
30 : {0x6289999b, 0x1008, 0x4269, \
31 : { 0xb4, 0x2a, 0x41, 0x3e, 0xc5, 0xa9, 0xd3, 0xf4 }}
32 :
33 3168 : class NS_NO_VTABLE nsIDOMElement : public nsIDOMNode {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMELEMENT_IID)
37 :
38 : /* readonly attribute DOMString tagName; */
39 : NS_IMETHOD GetTagName(nsAString & aTagName) = 0;
40 :
41 : /* readonly attribute nsIDOMMozNamedAttrMap attributes; */
42 : NS_IMETHOD GetAttributes(nsIDOMMozNamedAttrMap * *aAttributes) = 0;
43 :
44 : /* DOMString getAttribute (in DOMString name); */
45 : NS_IMETHOD GetAttribute(const nsAString & name, nsAString & _retval) = 0;
46 :
47 : /* void setAttribute (in DOMString name, in DOMString value); */
48 : NS_IMETHOD SetAttribute(const nsAString & name, const nsAString & value) = 0;
49 :
50 : /* boolean hasAttribute (in DOMString name); */
51 : NS_IMETHOD HasAttribute(const nsAString & name, bool *_retval) = 0;
52 :
53 : /* nsIDOMAttr getAttributeNode (in DOMString name); */
54 : NS_IMETHOD GetAttributeNode(const nsAString & name, nsIDOMAttr * *_retval) = 0;
55 :
56 : /* nsIDOMAttr getAttributeNodeNS (in DOMString namespaceURI, in DOMString localName); */
57 : NS_IMETHOD GetAttributeNodeNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMAttr * *_retval) = 0;
58 :
59 : };
60 :
61 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMElement, NS_IDOMELEMENT_IID)
62 :
63 : /* Use this macro when declaring classes that implement this interface. */
64 : #define NS_DECL_NSIDOMELEMENT \
65 : NS_IMETHOD GetTagName(nsAString & aTagName) override; \
66 : NS_IMETHOD GetAttributes(nsIDOMMozNamedAttrMap * *aAttributes) override; \
67 : NS_IMETHOD GetAttribute(const nsAString & name, nsAString & _retval) override; \
68 : NS_IMETHOD SetAttribute(const nsAString & name, const nsAString & value) override; \
69 : NS_IMETHOD HasAttribute(const nsAString & name, bool *_retval) override; \
70 : NS_IMETHOD GetAttributeNode(const nsAString & name, nsIDOMAttr * *_retval) override; \
71 : NS_IMETHOD GetAttributeNodeNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMAttr * *_retval) override;
72 :
73 : /* Use this macro when declaring the members of this interface when the
74 : class doesn't implement the interface. This is useful for forwarding. */
75 : #define NS_DECL_NON_VIRTUAL_NSIDOMELEMENT \
76 : nsresult GetTagName(nsAString & aTagName); \
77 : nsresult GetAttributes(nsIDOMMozNamedAttrMap * *aAttributes); \
78 : nsresult GetAttribute(const nsAString & name, nsAString & _retval); \
79 : nsresult SetAttribute(const nsAString & name, const nsAString & value); \
80 : nsresult HasAttribute(const nsAString & name, bool *_retval); \
81 : nsresult GetAttributeNode(const nsAString & name, nsIDOMAttr * *_retval); \
82 : nsresult GetAttributeNodeNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMAttr * *_retval);
83 :
84 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
85 : #define NS_FORWARD_NSIDOMELEMENT(_to) \
86 : NS_IMETHOD GetTagName(nsAString & aTagName) override { return _to GetTagName(aTagName); } \
87 : NS_IMETHOD GetAttributes(nsIDOMMozNamedAttrMap * *aAttributes) override { return _to GetAttributes(aAttributes); } \
88 : NS_IMETHOD GetAttribute(const nsAString & name, nsAString & _retval) override { return _to GetAttribute(name, _retval); } \
89 : NS_IMETHOD SetAttribute(const nsAString & name, const nsAString & value) override { return _to SetAttribute(name, value); } \
90 : NS_IMETHOD HasAttribute(const nsAString & name, bool *_retval) override { return _to HasAttribute(name, _retval); } \
91 : NS_IMETHOD GetAttributeNode(const nsAString & name, nsIDOMAttr * *_retval) override { return _to GetAttributeNode(name, _retval); } \
92 : NS_IMETHOD GetAttributeNodeNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMAttr * *_retval) override { return _to GetAttributeNodeNS(namespaceURI, localName, _retval); }
93 :
94 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
95 : #define NS_FORWARD_SAFE_NSIDOMELEMENT(_to) \
96 : NS_IMETHOD GetTagName(nsAString & aTagName) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTagName(aTagName); } \
97 : NS_IMETHOD GetAttributes(nsIDOMMozNamedAttrMap * *aAttributes) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttributes(aAttributes); } \
98 : NS_IMETHOD GetAttribute(const nsAString & name, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttribute(name, _retval); } \
99 : NS_IMETHOD SetAttribute(const nsAString & name, const nsAString & value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAttribute(name, value); } \
100 : NS_IMETHOD HasAttribute(const nsAString & name, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->HasAttribute(name, _retval); } \
101 : NS_IMETHOD GetAttributeNode(const nsAString & name, nsIDOMAttr * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttributeNode(name, _retval); } \
102 : NS_IMETHOD GetAttributeNodeNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMAttr * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAttributeNodeNS(namespaceURI, localName, _retval); }
103 :
104 : #if 0
105 : /* Use the code below as a template for the implementation class for this interface. */
106 :
107 : /* Header file */
108 : class nsDOMElement : public nsIDOMElement
109 : {
110 : public:
111 : NS_DECL_ISUPPORTS
112 : NS_DECL_NSIDOMELEMENT
113 :
114 : nsDOMElement();
115 :
116 : private:
117 : ~nsDOMElement();
118 :
119 : protected:
120 : /* additional members */
121 : };
122 :
123 : /* Implementation file */
124 : NS_IMPL_ISUPPORTS(nsDOMElement, nsIDOMElement)
125 :
126 : nsDOMElement::nsDOMElement()
127 : {
128 : /* member initializers and constructor code */
129 : }
130 :
131 : nsDOMElement::~nsDOMElement()
132 : {
133 : /* destructor code */
134 : }
135 :
136 : /* readonly attribute DOMString tagName; */
137 : NS_IMETHODIMP nsDOMElement::GetTagName(nsAString & aTagName)
138 : {
139 : return NS_ERROR_NOT_IMPLEMENTED;
140 : }
141 :
142 : /* readonly attribute nsIDOMMozNamedAttrMap attributes; */
143 : NS_IMETHODIMP nsDOMElement::GetAttributes(nsIDOMMozNamedAttrMap * *aAttributes)
144 : {
145 : return NS_ERROR_NOT_IMPLEMENTED;
146 : }
147 :
148 : /* DOMString getAttribute (in DOMString name); */
149 : NS_IMETHODIMP nsDOMElement::GetAttribute(const nsAString & name, nsAString & _retval)
150 : {
151 : return NS_ERROR_NOT_IMPLEMENTED;
152 : }
153 :
154 : /* void setAttribute (in DOMString name, in DOMString value); */
155 : NS_IMETHODIMP nsDOMElement::SetAttribute(const nsAString & name, const nsAString & value)
156 : {
157 : return NS_ERROR_NOT_IMPLEMENTED;
158 : }
159 :
160 : /* boolean hasAttribute (in DOMString name); */
161 : NS_IMETHODIMP nsDOMElement::HasAttribute(const nsAString & name, bool *_retval)
162 : {
163 : return NS_ERROR_NOT_IMPLEMENTED;
164 : }
165 :
166 : /* nsIDOMAttr getAttributeNode (in DOMString name); */
167 : NS_IMETHODIMP nsDOMElement::GetAttributeNode(const nsAString & name, nsIDOMAttr * *_retval)
168 : {
169 : return NS_ERROR_NOT_IMPLEMENTED;
170 : }
171 :
172 : /* nsIDOMAttr getAttributeNodeNS (in DOMString namespaceURI, in DOMString localName); */
173 : NS_IMETHODIMP nsDOMElement::GetAttributeNodeNS(const nsAString & namespaceURI, const nsAString & localName, nsIDOMAttr * *_retval)
174 : {
175 : return NS_ERROR_NOT_IMPLEMENTED;
176 : }
177 :
178 : /* End of implementation class template. */
179 : #endif
180 :
181 :
182 : #endif /* __gen_nsIDOMElement_h__ */
|