1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/dom/interfaces/xul/nsIDOMXULDocument.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMXULDocument_h__
6 : #define __gen_nsIDOMXULDocument_h__
7 :
8 :
9 : #ifndef __gen_domstubs_h__
10 : #include "domstubs.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 nsIDOMXULCommandDispatcher; /* forward declaration */
18 :
19 : class nsIObserver; /* forward declaration */
20 :
21 : class nsIBoxObject; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIDOMXULDocument */
25 : #define NS_IDOMXULDOCUMENT_IID_STR "b16d13c3-837d-445d-8f56-05d83d9b9eae"
26 :
27 : #define NS_IDOMXULDOCUMENT_IID \
28 : {0xb16d13c3, 0x837d, 0x445d, \
29 : { 0x8f, 0x56, 0x05, 0xd8, 0x3d, 0x9b, 0x9e, 0xae }}
30 :
31 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMXULDocument : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMXULDOCUMENT_IID)
35 :
36 : /* attribute nsIDOMNode popupNode; */
37 : NS_SCRIPTABLE NS_IMETHOD GetPopupNode(nsIDOMNode * *aPopupNode) = 0;
38 : NS_SCRIPTABLE NS_IMETHOD SetPopupNode(nsIDOMNode *aPopupNode) = 0;
39 :
40 : /* readonly attribute nsIDOMNode popupRangeParent; */
41 : NS_SCRIPTABLE NS_IMETHOD GetPopupRangeParent(nsIDOMNode * *aPopupRangeParent) = 0;
42 :
43 : /* readonly attribute long popupRangeOffset; */
44 : NS_SCRIPTABLE NS_IMETHOD GetPopupRangeOffset(PRInt32 *aPopupRangeOffset) = 0;
45 :
46 : /* attribute nsIDOMNode tooltipNode; */
47 : NS_SCRIPTABLE NS_IMETHOD GetTooltipNode(nsIDOMNode * *aTooltipNode) = 0;
48 : NS_SCRIPTABLE NS_IMETHOD SetTooltipNode(nsIDOMNode *aTooltipNode) = 0;
49 :
50 : /* readonly attribute nsIDOMXULCommandDispatcher commandDispatcher; */
51 : NS_SCRIPTABLE NS_IMETHOD GetCommandDispatcher(nsIDOMXULCommandDispatcher * *aCommandDispatcher) = 0;
52 :
53 : /* readonly attribute long width; */
54 : NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth) = 0;
55 :
56 : /* readonly attribute long height; */
57 : NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight) = 0;
58 :
59 : /* nsIDOMNodeList getElementsByAttribute (in DOMString name, in DOMString value); */
60 : NS_SCRIPTABLE NS_IMETHOD GetElementsByAttribute(const nsAString & name, const nsAString & value, nsIDOMNodeList * *_retval NS_OUTPARAM) = 0;
61 :
62 : /* nsIDOMNodeList getElementsByAttributeNS (in DOMString namespaceURI, in DOMString name, in DOMString value); */
63 : NS_SCRIPTABLE NS_IMETHOD GetElementsByAttributeNS(const nsAString & namespaceURI, const nsAString & name, const nsAString & value, nsIDOMNodeList * *_retval NS_OUTPARAM) = 0;
64 :
65 : /* void addBroadcastListenerFor (in nsIDOMElement broadcaster, in nsIDOMElement observer, in DOMString attr); */
66 : NS_SCRIPTABLE NS_IMETHOD AddBroadcastListenerFor(nsIDOMElement *broadcaster, nsIDOMElement *observer, const nsAString & attr) = 0;
67 :
68 : /* void removeBroadcastListenerFor (in nsIDOMElement broadcaster, in nsIDOMElement observer, in DOMString attr); */
69 : NS_SCRIPTABLE NS_IMETHOD RemoveBroadcastListenerFor(nsIDOMElement *broadcaster, nsIDOMElement *observer, const nsAString & attr) = 0;
70 :
71 : /* void persist (in DOMString id, in DOMString attr); */
72 : NS_SCRIPTABLE NS_IMETHOD Persist(const nsAString & id, const nsAString & attr) = 0;
73 :
74 : /* nsIBoxObject getBoxObjectFor (in nsIDOMElement elt); */
75 : NS_SCRIPTABLE NS_IMETHOD GetBoxObjectFor(nsIDOMElement *elt, nsIBoxObject * *_retval NS_OUTPARAM) = 0;
76 :
77 : /* void loadOverlay (in DOMString url, in nsIObserver aObserver); */
78 : NS_SCRIPTABLE NS_IMETHOD LoadOverlay(const nsAString & url, nsIObserver *aObserver) = 0;
79 :
80 : };
81 :
82 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMXULDocument, NS_IDOMXULDOCUMENT_IID)
83 :
84 : /* Use this macro when declaring classes that implement this interface. */
85 : #define NS_DECL_NSIDOMXULDOCUMENT \
86 : NS_SCRIPTABLE NS_IMETHOD GetPopupNode(nsIDOMNode * *aPopupNode); \
87 : NS_SCRIPTABLE NS_IMETHOD SetPopupNode(nsIDOMNode *aPopupNode); \
88 : NS_SCRIPTABLE NS_IMETHOD GetPopupRangeParent(nsIDOMNode * *aPopupRangeParent); \
89 : NS_SCRIPTABLE NS_IMETHOD GetPopupRangeOffset(PRInt32 *aPopupRangeOffset); \
90 : NS_SCRIPTABLE NS_IMETHOD GetTooltipNode(nsIDOMNode * *aTooltipNode); \
91 : NS_SCRIPTABLE NS_IMETHOD SetTooltipNode(nsIDOMNode *aTooltipNode); \
92 : NS_SCRIPTABLE NS_IMETHOD GetCommandDispatcher(nsIDOMXULCommandDispatcher * *aCommandDispatcher); \
93 : NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth); \
94 : NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight); \
95 : NS_SCRIPTABLE NS_IMETHOD GetElementsByAttribute(const nsAString & name, const nsAString & value, nsIDOMNodeList * *_retval NS_OUTPARAM); \
96 : NS_SCRIPTABLE NS_IMETHOD GetElementsByAttributeNS(const nsAString & namespaceURI, const nsAString & name, const nsAString & value, nsIDOMNodeList * *_retval NS_OUTPARAM); \
97 : NS_SCRIPTABLE NS_IMETHOD AddBroadcastListenerFor(nsIDOMElement *broadcaster, nsIDOMElement *observer, const nsAString & attr); \
98 : NS_SCRIPTABLE NS_IMETHOD RemoveBroadcastListenerFor(nsIDOMElement *broadcaster, nsIDOMElement *observer, const nsAString & attr); \
99 : NS_SCRIPTABLE NS_IMETHOD Persist(const nsAString & id, const nsAString & attr); \
100 : NS_SCRIPTABLE NS_IMETHOD GetBoxObjectFor(nsIDOMElement *elt, nsIBoxObject * *_retval NS_OUTPARAM); \
101 : NS_SCRIPTABLE NS_IMETHOD LoadOverlay(const nsAString & url, nsIObserver *aObserver);
102 :
103 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
104 : #define NS_FORWARD_NSIDOMXULDOCUMENT(_to) \
105 : NS_SCRIPTABLE NS_IMETHOD GetPopupNode(nsIDOMNode * *aPopupNode) { return _to GetPopupNode(aPopupNode); } \
106 : NS_SCRIPTABLE NS_IMETHOD SetPopupNode(nsIDOMNode *aPopupNode) { return _to SetPopupNode(aPopupNode); } \
107 : NS_SCRIPTABLE NS_IMETHOD GetPopupRangeParent(nsIDOMNode * *aPopupRangeParent) { return _to GetPopupRangeParent(aPopupRangeParent); } \
108 : NS_SCRIPTABLE NS_IMETHOD GetPopupRangeOffset(PRInt32 *aPopupRangeOffset) { return _to GetPopupRangeOffset(aPopupRangeOffset); } \
109 : NS_SCRIPTABLE NS_IMETHOD GetTooltipNode(nsIDOMNode * *aTooltipNode) { return _to GetTooltipNode(aTooltipNode); } \
110 : NS_SCRIPTABLE NS_IMETHOD SetTooltipNode(nsIDOMNode *aTooltipNode) { return _to SetTooltipNode(aTooltipNode); } \
111 : NS_SCRIPTABLE NS_IMETHOD GetCommandDispatcher(nsIDOMXULCommandDispatcher * *aCommandDispatcher) { return _to GetCommandDispatcher(aCommandDispatcher); } \
112 : NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth) { return _to GetWidth(aWidth); } \
113 : NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight) { return _to GetHeight(aHeight); } \
114 : NS_SCRIPTABLE NS_IMETHOD GetElementsByAttribute(const nsAString & name, const nsAString & value, nsIDOMNodeList * *_retval NS_OUTPARAM) { return _to GetElementsByAttribute(name, value, _retval); } \
115 : NS_SCRIPTABLE NS_IMETHOD GetElementsByAttributeNS(const nsAString & namespaceURI, const nsAString & name, const nsAString & value, nsIDOMNodeList * *_retval NS_OUTPARAM) { return _to GetElementsByAttributeNS(namespaceURI, name, value, _retval); } \
116 : NS_SCRIPTABLE NS_IMETHOD AddBroadcastListenerFor(nsIDOMElement *broadcaster, nsIDOMElement *observer, const nsAString & attr) { return _to AddBroadcastListenerFor(broadcaster, observer, attr); } \
117 : NS_SCRIPTABLE NS_IMETHOD RemoveBroadcastListenerFor(nsIDOMElement *broadcaster, nsIDOMElement *observer, const nsAString & attr) { return _to RemoveBroadcastListenerFor(broadcaster, observer, attr); } \
118 : NS_SCRIPTABLE NS_IMETHOD Persist(const nsAString & id, const nsAString & attr) { return _to Persist(id, attr); } \
119 : NS_SCRIPTABLE NS_IMETHOD GetBoxObjectFor(nsIDOMElement *elt, nsIBoxObject * *_retval NS_OUTPARAM) { return _to GetBoxObjectFor(elt, _retval); } \
120 : NS_SCRIPTABLE NS_IMETHOD LoadOverlay(const nsAString & url, nsIObserver *aObserver) { return _to LoadOverlay(url, aObserver); }
121 :
122 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
123 : #define NS_FORWARD_SAFE_NSIDOMXULDOCUMENT(_to) \
124 : NS_SCRIPTABLE NS_IMETHOD GetPopupNode(nsIDOMNode * *aPopupNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPopupNode(aPopupNode); } \
125 : NS_SCRIPTABLE NS_IMETHOD SetPopupNode(nsIDOMNode *aPopupNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPopupNode(aPopupNode); } \
126 : NS_SCRIPTABLE NS_IMETHOD GetPopupRangeParent(nsIDOMNode * *aPopupRangeParent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPopupRangeParent(aPopupRangeParent); } \
127 : NS_SCRIPTABLE NS_IMETHOD GetPopupRangeOffset(PRInt32 *aPopupRangeOffset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPopupRangeOffset(aPopupRangeOffset); } \
128 : NS_SCRIPTABLE NS_IMETHOD GetTooltipNode(nsIDOMNode * *aTooltipNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTooltipNode(aTooltipNode); } \
129 : NS_SCRIPTABLE NS_IMETHOD SetTooltipNode(nsIDOMNode *aTooltipNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTooltipNode(aTooltipNode); } \
130 : NS_SCRIPTABLE NS_IMETHOD GetCommandDispatcher(nsIDOMXULCommandDispatcher * *aCommandDispatcher) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCommandDispatcher(aCommandDispatcher); } \
131 : NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
132 : NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeight(aHeight); } \
133 : NS_SCRIPTABLE NS_IMETHOD GetElementsByAttribute(const nsAString & name, const nsAString & value, nsIDOMNodeList * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElementsByAttribute(name, value, _retval); } \
134 : NS_SCRIPTABLE NS_IMETHOD GetElementsByAttributeNS(const nsAString & namespaceURI, const nsAString & name, const nsAString & value, nsIDOMNodeList * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElementsByAttributeNS(namespaceURI, name, value, _retval); } \
135 : NS_SCRIPTABLE NS_IMETHOD AddBroadcastListenerFor(nsIDOMElement *broadcaster, nsIDOMElement *observer, const nsAString & attr) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddBroadcastListenerFor(broadcaster, observer, attr); } \
136 : NS_SCRIPTABLE NS_IMETHOD RemoveBroadcastListenerFor(nsIDOMElement *broadcaster, nsIDOMElement *observer, const nsAString & attr) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveBroadcastListenerFor(broadcaster, observer, attr); } \
137 : NS_SCRIPTABLE NS_IMETHOD Persist(const nsAString & id, const nsAString & attr) { return !_to ? NS_ERROR_NULL_POINTER : _to->Persist(id, attr); } \
138 : NS_SCRIPTABLE NS_IMETHOD GetBoxObjectFor(nsIDOMElement *elt, nsIBoxObject * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBoxObjectFor(elt, _retval); } \
139 : NS_SCRIPTABLE NS_IMETHOD LoadOverlay(const nsAString & url, nsIObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadOverlay(url, aObserver); }
140 :
141 : #if 0
142 : /* Use the code below as a template for the implementation class for this interface. */
143 :
144 : /* Header file */
145 : class nsDOMXULDocument : public nsIDOMXULDocument
146 : {
147 : public:
148 : NS_DECL_ISUPPORTS
149 : NS_DECL_NSIDOMXULDOCUMENT
150 :
151 : nsDOMXULDocument();
152 :
153 : private:
154 : ~nsDOMXULDocument();
155 :
156 : protected:
157 : /* additional members */
158 : };
159 :
160 : /* Implementation file */
161 : NS_IMPL_ISUPPORTS1(nsDOMXULDocument, nsIDOMXULDocument)
162 :
163 : nsDOMXULDocument::nsDOMXULDocument()
164 : {
165 : /* member initializers and constructor code */
166 : }
167 :
168 : nsDOMXULDocument::~nsDOMXULDocument()
169 : {
170 : /* destructor code */
171 : }
172 :
173 : /* attribute nsIDOMNode popupNode; */
174 : NS_IMETHODIMP nsDOMXULDocument::GetPopupNode(nsIDOMNode * *aPopupNode)
175 : {
176 : return NS_ERROR_NOT_IMPLEMENTED;
177 : }
178 : NS_IMETHODIMP nsDOMXULDocument::SetPopupNode(nsIDOMNode *aPopupNode)
179 : {
180 : return NS_ERROR_NOT_IMPLEMENTED;
181 : }
182 :
183 : /* readonly attribute nsIDOMNode popupRangeParent; */
184 : NS_IMETHODIMP nsDOMXULDocument::GetPopupRangeParent(nsIDOMNode * *aPopupRangeParent)
185 : {
186 : return NS_ERROR_NOT_IMPLEMENTED;
187 : }
188 :
189 : /* readonly attribute long popupRangeOffset; */
190 : NS_IMETHODIMP nsDOMXULDocument::GetPopupRangeOffset(PRInt32 *aPopupRangeOffset)
191 : {
192 : return NS_ERROR_NOT_IMPLEMENTED;
193 : }
194 :
195 : /* attribute nsIDOMNode tooltipNode; */
196 : NS_IMETHODIMP nsDOMXULDocument::GetTooltipNode(nsIDOMNode * *aTooltipNode)
197 : {
198 : return NS_ERROR_NOT_IMPLEMENTED;
199 : }
200 : NS_IMETHODIMP nsDOMXULDocument::SetTooltipNode(nsIDOMNode *aTooltipNode)
201 : {
202 : return NS_ERROR_NOT_IMPLEMENTED;
203 : }
204 :
205 : /* readonly attribute nsIDOMXULCommandDispatcher commandDispatcher; */
206 : NS_IMETHODIMP nsDOMXULDocument::GetCommandDispatcher(nsIDOMXULCommandDispatcher * *aCommandDispatcher)
207 : {
208 : return NS_ERROR_NOT_IMPLEMENTED;
209 : }
210 :
211 : /* readonly attribute long width; */
212 : NS_IMETHODIMP nsDOMXULDocument::GetWidth(PRInt32 *aWidth)
213 : {
214 : return NS_ERROR_NOT_IMPLEMENTED;
215 : }
216 :
217 : /* readonly attribute long height; */
218 : NS_IMETHODIMP nsDOMXULDocument::GetHeight(PRInt32 *aHeight)
219 : {
220 : return NS_ERROR_NOT_IMPLEMENTED;
221 : }
222 :
223 : /* nsIDOMNodeList getElementsByAttribute (in DOMString name, in DOMString value); */
224 : NS_IMETHODIMP nsDOMXULDocument::GetElementsByAttribute(const nsAString & name, const nsAString & value, nsIDOMNodeList * *_retval NS_OUTPARAM)
225 : {
226 : return NS_ERROR_NOT_IMPLEMENTED;
227 : }
228 :
229 : /* nsIDOMNodeList getElementsByAttributeNS (in DOMString namespaceURI, in DOMString name, in DOMString value); */
230 : NS_IMETHODIMP nsDOMXULDocument::GetElementsByAttributeNS(const nsAString & namespaceURI, const nsAString & name, const nsAString & value, nsIDOMNodeList * *_retval NS_OUTPARAM)
231 : {
232 : return NS_ERROR_NOT_IMPLEMENTED;
233 : }
234 :
235 : /* void addBroadcastListenerFor (in nsIDOMElement broadcaster, in nsIDOMElement observer, in DOMString attr); */
236 : NS_IMETHODIMP nsDOMXULDocument::AddBroadcastListenerFor(nsIDOMElement *broadcaster, nsIDOMElement *observer, const nsAString & attr)
237 : {
238 : return NS_ERROR_NOT_IMPLEMENTED;
239 : }
240 :
241 : /* void removeBroadcastListenerFor (in nsIDOMElement broadcaster, in nsIDOMElement observer, in DOMString attr); */
242 : NS_IMETHODIMP nsDOMXULDocument::RemoveBroadcastListenerFor(nsIDOMElement *broadcaster, nsIDOMElement *observer, const nsAString & attr)
243 : {
244 : return NS_ERROR_NOT_IMPLEMENTED;
245 : }
246 :
247 : /* void persist (in DOMString id, in DOMString attr); */
248 : NS_IMETHODIMP nsDOMXULDocument::Persist(const nsAString & id, const nsAString & attr)
249 : {
250 : return NS_ERROR_NOT_IMPLEMENTED;
251 : }
252 :
253 : /* nsIBoxObject getBoxObjectFor (in nsIDOMElement elt); */
254 : NS_IMETHODIMP nsDOMXULDocument::GetBoxObjectFor(nsIDOMElement *elt, nsIBoxObject * *_retval NS_OUTPARAM)
255 : {
256 : return NS_ERROR_NOT_IMPLEMENTED;
257 : }
258 :
259 : /* void loadOverlay (in DOMString url, in nsIObserver aObserver); */
260 : NS_IMETHODIMP nsDOMXULDocument::LoadOverlay(const nsAString & url, nsIObserver *aObserver)
261 : {
262 : return NS_ERROR_NOT_IMPLEMENTED;
263 : }
264 :
265 : /* End of implementation class template. */
266 : #endif
267 :
268 :
269 : #endif /* __gen_nsIDOMXULDocument_h__ */
|