1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/parser/xml/public/nsISAXAttributes.idl
3 : */
4 :
5 : #ifndef __gen_nsISAXAttributes_h__
6 : #define __gen_nsISAXAttributes_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.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: nsISAXAttributes */
19 : #define NS_ISAXATTRIBUTES_IID_STR "e347005e-6cd0-11da-be43-001422106990"
20 :
21 : #define NS_ISAXATTRIBUTES_IID \
22 : {0xe347005e, 0x6cd0, 0x11da, \
23 : { 0xbe, 0x43, 0x00, 0x14, 0x22, 0x10, 0x69, 0x90 }}
24 :
25 2563 : class NS_NO_VTABLE NS_SCRIPTABLE nsISAXAttributes : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISAXATTRIBUTES_IID)
29 :
30 : /* long getIndexFromName (in AString uri, in AString localName); */
31 : NS_SCRIPTABLE NS_IMETHOD GetIndexFromName(const nsAString & uri, const nsAString & localName, PRInt32 *_retval NS_OUTPARAM) = 0;
32 :
33 : /* long getIndexFromQName (in AString qName); */
34 : NS_SCRIPTABLE NS_IMETHOD GetIndexFromQName(const nsAString & qName, PRInt32 *_retval NS_OUTPARAM) = 0;
35 :
36 : /* readonly attribute long length; */
37 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength) = 0;
38 :
39 : /* AString getLocalName (in unsigned long index); */
40 : NS_SCRIPTABLE NS_IMETHOD GetLocalName(PRUint32 index, nsAString & _retval NS_OUTPARAM) = 0;
41 :
42 : /* AString getQName (in unsigned long index); */
43 : NS_SCRIPTABLE NS_IMETHOD GetQName(PRUint32 index, nsAString & _retval NS_OUTPARAM) = 0;
44 :
45 : /* AString getType (in unsigned long index); */
46 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 index, nsAString & _retval NS_OUTPARAM) = 0;
47 :
48 : /* AString getTypeFromName (in AString uri, in AString localName); */
49 : NS_SCRIPTABLE NS_IMETHOD GetTypeFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval NS_OUTPARAM) = 0;
50 :
51 : /* AString getTypeFromQName (in AString qName); */
52 : NS_SCRIPTABLE NS_IMETHOD GetTypeFromQName(const nsAString & qName, nsAString & _retval NS_OUTPARAM) = 0;
53 :
54 : /* AString getURI (in unsigned long index); */
55 : NS_SCRIPTABLE NS_IMETHOD GetURI(PRUint32 index, nsAString & _retval NS_OUTPARAM) = 0;
56 :
57 : /* AString getValue (in unsigned long index); */
58 : NS_SCRIPTABLE NS_IMETHOD GetValue(PRUint32 index, nsAString & _retval NS_OUTPARAM) = 0;
59 :
60 : /* AString getValueFromName (in AString uri, in AString localName); */
61 : NS_SCRIPTABLE NS_IMETHOD GetValueFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval NS_OUTPARAM) = 0;
62 :
63 : /* AString getValueFromQName (in AString qName); */
64 : NS_SCRIPTABLE NS_IMETHOD GetValueFromQName(const nsAString & qName, nsAString & _retval NS_OUTPARAM) = 0;
65 :
66 : };
67 :
68 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISAXAttributes, NS_ISAXATTRIBUTES_IID)
69 :
70 : /* Use this macro when declaring classes that implement this interface. */
71 : #define NS_DECL_NSISAXATTRIBUTES \
72 : NS_SCRIPTABLE NS_IMETHOD GetIndexFromName(const nsAString & uri, const nsAString & localName, PRInt32 *_retval NS_OUTPARAM); \
73 : NS_SCRIPTABLE NS_IMETHOD GetIndexFromQName(const nsAString & qName, PRInt32 *_retval NS_OUTPARAM); \
74 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength); \
75 : NS_SCRIPTABLE NS_IMETHOD GetLocalName(PRUint32 index, nsAString & _retval NS_OUTPARAM); \
76 : NS_SCRIPTABLE NS_IMETHOD GetQName(PRUint32 index, nsAString & _retval NS_OUTPARAM); \
77 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 index, nsAString & _retval NS_OUTPARAM); \
78 : NS_SCRIPTABLE NS_IMETHOD GetTypeFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval NS_OUTPARAM); \
79 : NS_SCRIPTABLE NS_IMETHOD GetTypeFromQName(const nsAString & qName, nsAString & _retval NS_OUTPARAM); \
80 : NS_SCRIPTABLE NS_IMETHOD GetURI(PRUint32 index, nsAString & _retval NS_OUTPARAM); \
81 : NS_SCRIPTABLE NS_IMETHOD GetValue(PRUint32 index, nsAString & _retval NS_OUTPARAM); \
82 : NS_SCRIPTABLE NS_IMETHOD GetValueFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval NS_OUTPARAM); \
83 : NS_SCRIPTABLE NS_IMETHOD GetValueFromQName(const nsAString & qName, nsAString & _retval NS_OUTPARAM);
84 :
85 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
86 : #define NS_FORWARD_NSISAXATTRIBUTES(_to) \
87 : NS_SCRIPTABLE NS_IMETHOD GetIndexFromName(const nsAString & uri, const nsAString & localName, PRInt32 *_retval NS_OUTPARAM) { return _to GetIndexFromName(uri, localName, _retval); } \
88 : NS_SCRIPTABLE NS_IMETHOD GetIndexFromQName(const nsAString & qName, PRInt32 *_retval NS_OUTPARAM) { return _to GetIndexFromQName(qName, _retval); } \
89 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength) { return _to GetLength(aLength); } \
90 : NS_SCRIPTABLE NS_IMETHOD GetLocalName(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return _to GetLocalName(index, _retval); } \
91 : NS_SCRIPTABLE NS_IMETHOD GetQName(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return _to GetQName(index, _retval); } \
92 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return _to GetType(index, _retval); } \
93 : NS_SCRIPTABLE NS_IMETHOD GetTypeFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval NS_OUTPARAM) { return _to GetTypeFromName(uri, localName, _retval); } \
94 : NS_SCRIPTABLE NS_IMETHOD GetTypeFromQName(const nsAString & qName, nsAString & _retval NS_OUTPARAM) { return _to GetTypeFromQName(qName, _retval); } \
95 : NS_SCRIPTABLE NS_IMETHOD GetURI(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return _to GetURI(index, _retval); } \
96 : NS_SCRIPTABLE NS_IMETHOD GetValue(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return _to GetValue(index, _retval); } \
97 : NS_SCRIPTABLE NS_IMETHOD GetValueFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval NS_OUTPARAM) { return _to GetValueFromName(uri, localName, _retval); } \
98 : NS_SCRIPTABLE NS_IMETHOD GetValueFromQName(const nsAString & qName, nsAString & _retval NS_OUTPARAM) { return _to GetValueFromQName(qName, _retval); }
99 :
100 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
101 : #define NS_FORWARD_SAFE_NSISAXATTRIBUTES(_to) \
102 : NS_SCRIPTABLE NS_IMETHOD GetIndexFromName(const nsAString & uri, const nsAString & localName, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexFromName(uri, localName, _retval); } \
103 : NS_SCRIPTABLE NS_IMETHOD GetIndexFromQName(const nsAString & qName, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexFromQName(qName, _retval); } \
104 : NS_SCRIPTABLE NS_IMETHOD GetLength(PRInt32 *aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
105 : NS_SCRIPTABLE NS_IMETHOD GetLocalName(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalName(index, _retval); } \
106 : NS_SCRIPTABLE NS_IMETHOD GetQName(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetQName(index, _retval); } \
107 : NS_SCRIPTABLE NS_IMETHOD GetType(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(index, _retval); } \
108 : NS_SCRIPTABLE NS_IMETHOD GetTypeFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTypeFromName(uri, localName, _retval); } \
109 : NS_SCRIPTABLE NS_IMETHOD GetTypeFromQName(const nsAString & qName, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTypeFromQName(qName, _retval); } \
110 : NS_SCRIPTABLE NS_IMETHOD GetURI(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(index, _retval); } \
111 : NS_SCRIPTABLE NS_IMETHOD GetValue(PRUint32 index, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(index, _retval); } \
112 : NS_SCRIPTABLE NS_IMETHOD GetValueFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueFromName(uri, localName, _retval); } \
113 : NS_SCRIPTABLE NS_IMETHOD GetValueFromQName(const nsAString & qName, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueFromQName(qName, _retval); }
114 :
115 : #if 0
116 : /* Use the code below as a template for the implementation class for this interface. */
117 :
118 : /* Header file */
119 : class nsSAXAttributes : public nsISAXAttributes
120 : {
121 : public:
122 : NS_DECL_ISUPPORTS
123 : NS_DECL_NSISAXATTRIBUTES
124 :
125 : nsSAXAttributes();
126 :
127 : private:
128 : ~nsSAXAttributes();
129 :
130 : protected:
131 : /* additional members */
132 : };
133 :
134 : /* Implementation file */
135 : NS_IMPL_ISUPPORTS1(nsSAXAttributes, nsISAXAttributes)
136 :
137 : nsSAXAttributes::nsSAXAttributes()
138 : {
139 : /* member initializers and constructor code */
140 : }
141 :
142 : nsSAXAttributes::~nsSAXAttributes()
143 : {
144 : /* destructor code */
145 : }
146 :
147 : /* long getIndexFromName (in AString uri, in AString localName); */
148 : NS_IMETHODIMP nsSAXAttributes::GetIndexFromName(const nsAString & uri, const nsAString & localName, PRInt32 *_retval NS_OUTPARAM)
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 :
153 : /* long getIndexFromQName (in AString qName); */
154 : NS_IMETHODIMP nsSAXAttributes::GetIndexFromQName(const nsAString & qName, PRInt32 *_retval NS_OUTPARAM)
155 : {
156 : return NS_ERROR_NOT_IMPLEMENTED;
157 : }
158 :
159 : /* readonly attribute long length; */
160 : NS_IMETHODIMP nsSAXAttributes::GetLength(PRInt32 *aLength)
161 : {
162 : return NS_ERROR_NOT_IMPLEMENTED;
163 : }
164 :
165 : /* AString getLocalName (in unsigned long index); */
166 : NS_IMETHODIMP nsSAXAttributes::GetLocalName(PRUint32 index, nsAString & _retval NS_OUTPARAM)
167 : {
168 : return NS_ERROR_NOT_IMPLEMENTED;
169 : }
170 :
171 : /* AString getQName (in unsigned long index); */
172 : NS_IMETHODIMP nsSAXAttributes::GetQName(PRUint32 index, nsAString & _retval NS_OUTPARAM)
173 : {
174 : return NS_ERROR_NOT_IMPLEMENTED;
175 : }
176 :
177 : /* AString getType (in unsigned long index); */
178 : NS_IMETHODIMP nsSAXAttributes::GetType(PRUint32 index, nsAString & _retval NS_OUTPARAM)
179 : {
180 : return NS_ERROR_NOT_IMPLEMENTED;
181 : }
182 :
183 : /* AString getTypeFromName (in AString uri, in AString localName); */
184 : NS_IMETHODIMP nsSAXAttributes::GetTypeFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval NS_OUTPARAM)
185 : {
186 : return NS_ERROR_NOT_IMPLEMENTED;
187 : }
188 :
189 : /* AString getTypeFromQName (in AString qName); */
190 : NS_IMETHODIMP nsSAXAttributes::GetTypeFromQName(const nsAString & qName, nsAString & _retval NS_OUTPARAM)
191 : {
192 : return NS_ERROR_NOT_IMPLEMENTED;
193 : }
194 :
195 : /* AString getURI (in unsigned long index); */
196 : NS_IMETHODIMP nsSAXAttributes::GetURI(PRUint32 index, nsAString & _retval NS_OUTPARAM)
197 : {
198 : return NS_ERROR_NOT_IMPLEMENTED;
199 : }
200 :
201 : /* AString getValue (in unsigned long index); */
202 : NS_IMETHODIMP nsSAXAttributes::GetValue(PRUint32 index, nsAString & _retval NS_OUTPARAM)
203 : {
204 : return NS_ERROR_NOT_IMPLEMENTED;
205 : }
206 :
207 : /* AString getValueFromName (in AString uri, in AString localName); */
208 : NS_IMETHODIMP nsSAXAttributes::GetValueFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval NS_OUTPARAM)
209 : {
210 : return NS_ERROR_NOT_IMPLEMENTED;
211 : }
212 :
213 : /* AString getValueFromQName (in AString qName); */
214 : NS_IMETHODIMP nsSAXAttributes::GetValueFromQName(const nsAString & qName, nsAString & _retval NS_OUTPARAM)
215 : {
216 : return NS_ERROR_NOT_IMPLEMENTED;
217 : }
218 :
219 : /* End of implementation class template. */
220 : #endif
221 :
222 :
223 : #endif /* __gen_nsISAXAttributes_h__ */
|