Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/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 0 : class NS_NO_VTABLE 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_IMETHOD GetIndexFromName(const nsAString & uri, const nsAString & localName, int32_t *_retval) = 0;
32 :
33 : /* long getIndexFromQName (in AString qName); */
34 : NS_IMETHOD GetIndexFromQName(const nsAString & qName, int32_t *_retval) = 0;
35 :
36 : /* readonly attribute long length; */
37 : NS_IMETHOD GetLength(int32_t *aLength) = 0;
38 :
39 : /* AString getLocalName (in unsigned long index); */
40 : NS_IMETHOD GetLocalName(uint32_t index, nsAString & _retval) = 0;
41 :
42 : /* AString getQName (in unsigned long index); */
43 : NS_IMETHOD GetQName(uint32_t index, nsAString & _retval) = 0;
44 :
45 : /* AString getType (in unsigned long index); */
46 : NS_IMETHOD GetType(uint32_t index, nsAString & _retval) = 0;
47 :
48 : /* AString getTypeFromName (in AString uri, in AString localName); */
49 : NS_IMETHOD GetTypeFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval) = 0;
50 :
51 : /* AString getTypeFromQName (in AString qName); */
52 : NS_IMETHOD GetTypeFromQName(const nsAString & qName, nsAString & _retval) = 0;
53 :
54 : /* AString getURI (in unsigned long index); */
55 : NS_IMETHOD GetURI(uint32_t index, nsAString & _retval) = 0;
56 :
57 : /* AString getValue (in unsigned long index); */
58 : NS_IMETHOD GetValue(uint32_t index, nsAString & _retval) = 0;
59 :
60 : /* AString getValueFromName (in AString uri, in AString localName); */
61 : NS_IMETHOD GetValueFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval) = 0;
62 :
63 : /* AString getValueFromQName (in AString qName); */
64 : NS_IMETHOD GetValueFromQName(const nsAString & qName, nsAString & _retval) = 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_IMETHOD GetIndexFromName(const nsAString & uri, const nsAString & localName, int32_t *_retval) override; \
73 : NS_IMETHOD GetIndexFromQName(const nsAString & qName, int32_t *_retval) override; \
74 : NS_IMETHOD GetLength(int32_t *aLength) override; \
75 : NS_IMETHOD GetLocalName(uint32_t index, nsAString & _retval) override; \
76 : NS_IMETHOD GetQName(uint32_t index, nsAString & _retval) override; \
77 : NS_IMETHOD GetType(uint32_t index, nsAString & _retval) override; \
78 : NS_IMETHOD GetTypeFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval) override; \
79 : NS_IMETHOD GetTypeFromQName(const nsAString & qName, nsAString & _retval) override; \
80 : NS_IMETHOD GetURI(uint32_t index, nsAString & _retval) override; \
81 : NS_IMETHOD GetValue(uint32_t index, nsAString & _retval) override; \
82 : NS_IMETHOD GetValueFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval) override; \
83 : NS_IMETHOD GetValueFromQName(const nsAString & qName, nsAString & _retval) override;
84 :
85 : /* Use this macro when declaring the members of this interface when the
86 : class doesn't implement the interface. This is useful for forwarding. */
87 : #define NS_DECL_NON_VIRTUAL_NSISAXATTRIBUTES \
88 : nsresult GetIndexFromName(const nsAString & uri, const nsAString & localName, int32_t *_retval); \
89 : nsresult GetIndexFromQName(const nsAString & qName, int32_t *_retval); \
90 : nsresult GetLength(int32_t *aLength); \
91 : nsresult GetLocalName(uint32_t index, nsAString & _retval); \
92 : nsresult GetQName(uint32_t index, nsAString & _retval); \
93 : nsresult GetType(uint32_t index, nsAString & _retval); \
94 : nsresult GetTypeFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval); \
95 : nsresult GetTypeFromQName(const nsAString & qName, nsAString & _retval); \
96 : nsresult GetURI(uint32_t index, nsAString & _retval); \
97 : nsresult GetValue(uint32_t index, nsAString & _retval); \
98 : nsresult GetValueFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval); \
99 : nsresult GetValueFromQName(const nsAString & qName, nsAString & _retval);
100 :
101 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
102 : #define NS_FORWARD_NSISAXATTRIBUTES(_to) \
103 : NS_IMETHOD GetIndexFromName(const nsAString & uri, const nsAString & localName, int32_t *_retval) override { return _to GetIndexFromName(uri, localName, _retval); } \
104 : NS_IMETHOD GetIndexFromQName(const nsAString & qName, int32_t *_retval) override { return _to GetIndexFromQName(qName, _retval); } \
105 : NS_IMETHOD GetLength(int32_t *aLength) override { return _to GetLength(aLength); } \
106 : NS_IMETHOD GetLocalName(uint32_t index, nsAString & _retval) override { return _to GetLocalName(index, _retval); } \
107 : NS_IMETHOD GetQName(uint32_t index, nsAString & _retval) override { return _to GetQName(index, _retval); } \
108 : NS_IMETHOD GetType(uint32_t index, nsAString & _retval) override { return _to GetType(index, _retval); } \
109 : NS_IMETHOD GetTypeFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval) override { return _to GetTypeFromName(uri, localName, _retval); } \
110 : NS_IMETHOD GetTypeFromQName(const nsAString & qName, nsAString & _retval) override { return _to GetTypeFromQName(qName, _retval); } \
111 : NS_IMETHOD GetURI(uint32_t index, nsAString & _retval) override { return _to GetURI(index, _retval); } \
112 : NS_IMETHOD GetValue(uint32_t index, nsAString & _retval) override { return _to GetValue(index, _retval); } \
113 : NS_IMETHOD GetValueFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval) override { return _to GetValueFromName(uri, localName, _retval); } \
114 : NS_IMETHOD GetValueFromQName(const nsAString & qName, nsAString & _retval) override { return _to GetValueFromQName(qName, _retval); }
115 :
116 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
117 : #define NS_FORWARD_SAFE_NSISAXATTRIBUTES(_to) \
118 : NS_IMETHOD GetIndexFromName(const nsAString & uri, const nsAString & localName, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexFromName(uri, localName, _retval); } \
119 : NS_IMETHOD GetIndexFromQName(const nsAString & qName, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexFromQName(qName, _retval); } \
120 : NS_IMETHOD GetLength(int32_t *aLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLength(aLength); } \
121 : NS_IMETHOD GetLocalName(uint32_t index, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocalName(index, _retval); } \
122 : NS_IMETHOD GetQName(uint32_t index, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetQName(index, _retval); } \
123 : NS_IMETHOD GetType(uint32_t index, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetType(index, _retval); } \
124 : NS_IMETHOD GetTypeFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTypeFromName(uri, localName, _retval); } \
125 : NS_IMETHOD GetTypeFromQName(const nsAString & qName, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTypeFromQName(qName, _retval); } \
126 : NS_IMETHOD GetURI(uint32_t index, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(index, _retval); } \
127 : NS_IMETHOD GetValue(uint32_t index, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValue(index, _retval); } \
128 : NS_IMETHOD GetValueFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueFromName(uri, localName, _retval); } \
129 : NS_IMETHOD GetValueFromQName(const nsAString & qName, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValueFromQName(qName, _retval); }
130 :
131 : #if 0
132 : /* Use the code below as a template for the implementation class for this interface. */
133 :
134 : /* Header file */
135 : class nsSAXAttributes : public nsISAXAttributes
136 : {
137 : public:
138 : NS_DECL_ISUPPORTS
139 : NS_DECL_NSISAXATTRIBUTES
140 :
141 : nsSAXAttributes();
142 :
143 : private:
144 : ~nsSAXAttributes();
145 :
146 : protected:
147 : /* additional members */
148 : };
149 :
150 : /* Implementation file */
151 : NS_IMPL_ISUPPORTS(nsSAXAttributes, nsISAXAttributes)
152 :
153 : nsSAXAttributes::nsSAXAttributes()
154 : {
155 : /* member initializers and constructor code */
156 : }
157 :
158 : nsSAXAttributes::~nsSAXAttributes()
159 : {
160 : /* destructor code */
161 : }
162 :
163 : /* long getIndexFromName (in AString uri, in AString localName); */
164 : NS_IMETHODIMP nsSAXAttributes::GetIndexFromName(const nsAString & uri, const nsAString & localName, int32_t *_retval)
165 : {
166 : return NS_ERROR_NOT_IMPLEMENTED;
167 : }
168 :
169 : /* long getIndexFromQName (in AString qName); */
170 : NS_IMETHODIMP nsSAXAttributes::GetIndexFromQName(const nsAString & qName, int32_t *_retval)
171 : {
172 : return NS_ERROR_NOT_IMPLEMENTED;
173 : }
174 :
175 : /* readonly attribute long length; */
176 : NS_IMETHODIMP nsSAXAttributes::GetLength(int32_t *aLength)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 :
181 : /* AString getLocalName (in unsigned long index); */
182 : NS_IMETHODIMP nsSAXAttributes::GetLocalName(uint32_t index, nsAString & _retval)
183 : {
184 : return NS_ERROR_NOT_IMPLEMENTED;
185 : }
186 :
187 : /* AString getQName (in unsigned long index); */
188 : NS_IMETHODIMP nsSAXAttributes::GetQName(uint32_t index, nsAString & _retval)
189 : {
190 : return NS_ERROR_NOT_IMPLEMENTED;
191 : }
192 :
193 : /* AString getType (in unsigned long index); */
194 : NS_IMETHODIMP nsSAXAttributes::GetType(uint32_t index, nsAString & _retval)
195 : {
196 : return NS_ERROR_NOT_IMPLEMENTED;
197 : }
198 :
199 : /* AString getTypeFromName (in AString uri, in AString localName); */
200 : NS_IMETHODIMP nsSAXAttributes::GetTypeFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval)
201 : {
202 : return NS_ERROR_NOT_IMPLEMENTED;
203 : }
204 :
205 : /* AString getTypeFromQName (in AString qName); */
206 : NS_IMETHODIMP nsSAXAttributes::GetTypeFromQName(const nsAString & qName, nsAString & _retval)
207 : {
208 : return NS_ERROR_NOT_IMPLEMENTED;
209 : }
210 :
211 : /* AString getURI (in unsigned long index); */
212 : NS_IMETHODIMP nsSAXAttributes::GetURI(uint32_t index, nsAString & _retval)
213 : {
214 : return NS_ERROR_NOT_IMPLEMENTED;
215 : }
216 :
217 : /* AString getValue (in unsigned long index); */
218 : NS_IMETHODIMP nsSAXAttributes::GetValue(uint32_t index, nsAString & _retval)
219 : {
220 : return NS_ERROR_NOT_IMPLEMENTED;
221 : }
222 :
223 : /* AString getValueFromName (in AString uri, in AString localName); */
224 : NS_IMETHODIMP nsSAXAttributes::GetValueFromName(const nsAString & uri, const nsAString & localName, nsAString & _retval)
225 : {
226 : return NS_ERROR_NOT_IMPLEMENTED;
227 : }
228 :
229 : /* AString getValueFromQName (in AString qName); */
230 : NS_IMETHODIMP nsSAXAttributes::GetValueFromQName(const nsAString & qName, nsAString & _retval)
231 : {
232 : return NS_ERROR_NOT_IMPLEMENTED;
233 : }
234 :
235 : /* End of implementation class template. */
236 : #endif
237 :
238 :
239 : #endif /* __gen_nsISAXAttributes_h__ */
|