1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/parser/xml/public/nsISAXMutableAttributes.idl
3 : */
4 :
5 : #ifndef __gen_nsISAXMutableAttributes_h__
6 : #define __gen_nsISAXMutableAttributes_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsISAXAttributes_h__
14 : #include "nsISAXAttributes.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 :
22 : /* starting interface: nsISAXMutableAttributes */
23 : #define NS_ISAXMUTABLEATTRIBUTES_IID_STR "8b1de83d-cebb-49fa-8245-c0fe319eb7b6"
24 :
25 : #define NS_ISAXMUTABLEATTRIBUTES_IID \
26 : {0x8b1de83d, 0xcebb, 0x49fa, \
27 : { 0x82, 0x45, 0xc0, 0xfe, 0x31, 0x9e, 0xb7, 0xb6 }}
28 :
29 2563 : class NS_NO_VTABLE NS_SCRIPTABLE nsISAXMutableAttributes : public nsISAXAttributes {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISAXMUTABLEATTRIBUTES_IID)
33 :
34 : /* void addAttribute (in AString uri, in AString localName, in AString qName, in AString type, in AString value); */
35 : NS_SCRIPTABLE NS_IMETHOD AddAttribute(const nsAString & uri, const nsAString & localName, const nsAString & qName, const nsAString & type, const nsAString & value) = 0;
36 :
37 : /* void clear (); */
38 : NS_SCRIPTABLE NS_IMETHOD Clear(void) = 0;
39 :
40 : /* void removeAttribute (in unsigned long index); */
41 : NS_SCRIPTABLE NS_IMETHOD RemoveAttribute(PRUint32 index) = 0;
42 :
43 : /* void setAttributes (in nsISAXAttributes attributes); */
44 : NS_SCRIPTABLE NS_IMETHOD SetAttributes(nsISAXAttributes *attributes) = 0;
45 :
46 : /* void setAttribute (in unsigned long index, in AString uri, in AString localName, in AString qName, in AString type, in AString value); */
47 : NS_SCRIPTABLE NS_IMETHOD SetAttribute(PRUint32 index, const nsAString & uri, const nsAString & localName, const nsAString & qName, const nsAString & type, const nsAString & value) = 0;
48 :
49 : /* void setLocalName (in unsigned long index, in AString localName); */
50 : NS_SCRIPTABLE NS_IMETHOD SetLocalName(PRUint32 index, const nsAString & localName) = 0;
51 :
52 : /* void setQName (in unsigned long index, in AString qName); */
53 : NS_SCRIPTABLE NS_IMETHOD SetQName(PRUint32 index, const nsAString & qName) = 0;
54 :
55 : /* void setType (in unsigned long index, in AString type); */
56 : NS_SCRIPTABLE NS_IMETHOD SetType(PRUint32 index, const nsAString & type) = 0;
57 :
58 : /* void setURI (in unsigned long index, in AString uri); */
59 : NS_SCRIPTABLE NS_IMETHOD SetURI(PRUint32 index, const nsAString & uri) = 0;
60 :
61 : /* void setValue (in unsigned long index, in AString value); */
62 : NS_SCRIPTABLE NS_IMETHOD SetValue(PRUint32 index, const nsAString & value) = 0;
63 :
64 : };
65 :
66 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISAXMutableAttributes, NS_ISAXMUTABLEATTRIBUTES_IID)
67 :
68 : /* Use this macro when declaring classes that implement this interface. */
69 : #define NS_DECL_NSISAXMUTABLEATTRIBUTES \
70 : NS_SCRIPTABLE NS_IMETHOD AddAttribute(const nsAString & uri, const nsAString & localName, const nsAString & qName, const nsAString & type, const nsAString & value); \
71 : NS_SCRIPTABLE NS_IMETHOD Clear(void); \
72 : NS_SCRIPTABLE NS_IMETHOD RemoveAttribute(PRUint32 index); \
73 : NS_SCRIPTABLE NS_IMETHOD SetAttributes(nsISAXAttributes *attributes); \
74 : NS_SCRIPTABLE NS_IMETHOD SetAttribute(PRUint32 index, const nsAString & uri, const nsAString & localName, const nsAString & qName, const nsAString & type, const nsAString & value); \
75 : NS_SCRIPTABLE NS_IMETHOD SetLocalName(PRUint32 index, const nsAString & localName); \
76 : NS_SCRIPTABLE NS_IMETHOD SetQName(PRUint32 index, const nsAString & qName); \
77 : NS_SCRIPTABLE NS_IMETHOD SetType(PRUint32 index, const nsAString & type); \
78 : NS_SCRIPTABLE NS_IMETHOD SetURI(PRUint32 index, const nsAString & uri); \
79 : NS_SCRIPTABLE NS_IMETHOD SetValue(PRUint32 index, const nsAString & value);
80 :
81 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
82 : #define NS_FORWARD_NSISAXMUTABLEATTRIBUTES(_to) \
83 : NS_SCRIPTABLE NS_IMETHOD AddAttribute(const nsAString & uri, const nsAString & localName, const nsAString & qName, const nsAString & type, const nsAString & value) { return _to AddAttribute(uri, localName, qName, type, value); } \
84 : NS_SCRIPTABLE NS_IMETHOD Clear(void) { return _to Clear(); } \
85 : NS_SCRIPTABLE NS_IMETHOD RemoveAttribute(PRUint32 index) { return _to RemoveAttribute(index); } \
86 : NS_SCRIPTABLE NS_IMETHOD SetAttributes(nsISAXAttributes *attributes) { return _to SetAttributes(attributes); } \
87 : NS_SCRIPTABLE NS_IMETHOD SetAttribute(PRUint32 index, const nsAString & uri, const nsAString & localName, const nsAString & qName, const nsAString & type, const nsAString & value) { return _to SetAttribute(index, uri, localName, qName, type, value); } \
88 : NS_SCRIPTABLE NS_IMETHOD SetLocalName(PRUint32 index, const nsAString & localName) { return _to SetLocalName(index, localName); } \
89 : NS_SCRIPTABLE NS_IMETHOD SetQName(PRUint32 index, const nsAString & qName) { return _to SetQName(index, qName); } \
90 : NS_SCRIPTABLE NS_IMETHOD SetType(PRUint32 index, const nsAString & type) { return _to SetType(index, type); } \
91 : NS_SCRIPTABLE NS_IMETHOD SetURI(PRUint32 index, const nsAString & uri) { return _to SetURI(index, uri); } \
92 : NS_SCRIPTABLE NS_IMETHOD SetValue(PRUint32 index, const nsAString & value) { return _to SetValue(index, value); }
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_NSISAXMUTABLEATTRIBUTES(_to) \
96 : NS_SCRIPTABLE NS_IMETHOD AddAttribute(const nsAString & uri, const nsAString & localName, const nsAString & qName, const nsAString & type, const nsAString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddAttribute(uri, localName, qName, type, value); } \
97 : NS_SCRIPTABLE NS_IMETHOD Clear(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clear(); } \
98 : NS_SCRIPTABLE NS_IMETHOD RemoveAttribute(PRUint32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveAttribute(index); } \
99 : NS_SCRIPTABLE NS_IMETHOD SetAttributes(nsISAXAttributes *attributes) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAttributes(attributes); } \
100 : NS_SCRIPTABLE NS_IMETHOD SetAttribute(PRUint32 index, const nsAString & uri, const nsAString & localName, const nsAString & qName, const nsAString & type, const nsAString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAttribute(index, uri, localName, qName, type, value); } \
101 : NS_SCRIPTABLE NS_IMETHOD SetLocalName(PRUint32 index, const nsAString & localName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetLocalName(index, localName); } \
102 : NS_SCRIPTABLE NS_IMETHOD SetQName(PRUint32 index, const nsAString & qName) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetQName(index, qName); } \
103 : NS_SCRIPTABLE NS_IMETHOD SetType(PRUint32 index, const nsAString & type) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetType(index, type); } \
104 : NS_SCRIPTABLE NS_IMETHOD SetURI(PRUint32 index, const nsAString & uri) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetURI(index, uri); } \
105 : NS_SCRIPTABLE NS_IMETHOD SetValue(PRUint32 index, const nsAString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetValue(index, value); }
106 :
107 : #if 0
108 : /* Use the code below as a template for the implementation class for this interface. */
109 :
110 : /* Header file */
111 : class nsSAXMutableAttributes : public nsISAXMutableAttributes
112 : {
113 : public:
114 : NS_DECL_ISUPPORTS
115 : NS_DECL_NSISAXMUTABLEATTRIBUTES
116 :
117 : nsSAXMutableAttributes();
118 :
119 : private:
120 : ~nsSAXMutableAttributes();
121 :
122 : protected:
123 : /* additional members */
124 : };
125 :
126 : /* Implementation file */
127 : NS_IMPL_ISUPPORTS1(nsSAXMutableAttributes, nsISAXMutableAttributes)
128 :
129 : nsSAXMutableAttributes::nsSAXMutableAttributes()
130 : {
131 : /* member initializers and constructor code */
132 : }
133 :
134 : nsSAXMutableAttributes::~nsSAXMutableAttributes()
135 : {
136 : /* destructor code */
137 : }
138 :
139 : /* void addAttribute (in AString uri, in AString localName, in AString qName, in AString type, in AString value); */
140 : NS_IMETHODIMP nsSAXMutableAttributes::AddAttribute(const nsAString & uri, const nsAString & localName, const nsAString & qName, const nsAString & type, const nsAString & value)
141 : {
142 : return NS_ERROR_NOT_IMPLEMENTED;
143 : }
144 :
145 : /* void clear (); */
146 : NS_IMETHODIMP nsSAXMutableAttributes::Clear()
147 : {
148 : return NS_ERROR_NOT_IMPLEMENTED;
149 : }
150 :
151 : /* void removeAttribute (in unsigned long index); */
152 : NS_IMETHODIMP nsSAXMutableAttributes::RemoveAttribute(PRUint32 index)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 :
157 : /* void setAttributes (in nsISAXAttributes attributes); */
158 : NS_IMETHODIMP nsSAXMutableAttributes::SetAttributes(nsISAXAttributes *attributes)
159 : {
160 : return NS_ERROR_NOT_IMPLEMENTED;
161 : }
162 :
163 : /* void setAttribute (in unsigned long index, in AString uri, in AString localName, in AString qName, in AString type, in AString value); */
164 : NS_IMETHODIMP nsSAXMutableAttributes::SetAttribute(PRUint32 index, const nsAString & uri, const nsAString & localName, const nsAString & qName, const nsAString & type, const nsAString & value)
165 : {
166 : return NS_ERROR_NOT_IMPLEMENTED;
167 : }
168 :
169 : /* void setLocalName (in unsigned long index, in AString localName); */
170 : NS_IMETHODIMP nsSAXMutableAttributes::SetLocalName(PRUint32 index, const nsAString & localName)
171 : {
172 : return NS_ERROR_NOT_IMPLEMENTED;
173 : }
174 :
175 : /* void setQName (in unsigned long index, in AString qName); */
176 : NS_IMETHODIMP nsSAXMutableAttributes::SetQName(PRUint32 index, const nsAString & qName)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 :
181 : /* void setType (in unsigned long index, in AString type); */
182 : NS_IMETHODIMP nsSAXMutableAttributes::SetType(PRUint32 index, const nsAString & type)
183 : {
184 : return NS_ERROR_NOT_IMPLEMENTED;
185 : }
186 :
187 : /* void setURI (in unsigned long index, in AString uri); */
188 : NS_IMETHODIMP nsSAXMutableAttributes::SetURI(PRUint32 index, const nsAString & uri)
189 : {
190 : return NS_ERROR_NOT_IMPLEMENTED;
191 : }
192 :
193 : /* void setValue (in unsigned long index, in AString value); */
194 : NS_IMETHODIMP nsSAXMutableAttributes::SetValue(PRUint32 index, const nsAString & value)
195 : {
196 : return NS_ERROR_NOT_IMPLEMENTED;
197 : }
198 :
199 : /* End of implementation class template. */
200 : #endif
201 :
202 :
203 : #endif /* __gen_nsISAXMutableAttributes_h__ */
|