1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/parser/htmlparser/public/nsIExpatSink.idl
3 : */
4 :
5 : #ifndef __gen_nsIExpatSink_h__
6 : #define __gen_nsIExpatSink_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 : class nsIScriptError; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIExpatSink */
21 : #define NS_IEXPATSINK_IID_STR "f61c56b5-ea5b-42b4-ad3c-17416e72e238"
22 :
23 : #define NS_IEXPATSINK_IID \
24 : {0xf61c56b5, 0xea5b, 0x42b4, \
25 : { 0xad, 0x3c, 0x17, 0x41, 0x6e, 0x72, 0xe2, 0x38 }}
26 :
27 3316 : class NS_NO_VTABLE NS_SCRIPTABLE nsIExpatSink : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IEXPATSINK_IID)
31 :
32 : /* void HandleStartElement (in wstring aName, [array, size_is (aAttsCount)] in wstring aAtts, in unsigned long aAttsCount, in long aIndex, in unsigned long aLineNumber); */
33 : NS_SCRIPTABLE NS_IMETHOD HandleStartElement(const PRUnichar * aName, const PRUnichar * *aAtts, PRUint32 aAttsCount, PRInt32 aIndex, PRUint32 aLineNumber) = 0;
34 :
35 : /* void HandleEndElement (in wstring aName); */
36 : NS_SCRIPTABLE NS_IMETHOD HandleEndElement(const PRUnichar * aName) = 0;
37 :
38 : /* void HandleComment (in wstring aCommentText); */
39 : NS_SCRIPTABLE NS_IMETHOD HandleComment(const PRUnichar * aCommentText) = 0;
40 :
41 : /* void HandleCDataSection ([size_is (aLength)] in wstring aData, in unsigned long aLength); */
42 : NS_SCRIPTABLE NS_IMETHOD HandleCDataSection(const PRUnichar * aData, PRUint32 aLength) = 0;
43 :
44 : /* void HandleDoctypeDecl (in AString aSubset, in AString aName, in AString aSystemId, in AString aPublicId, in nsISupports aCatalogData); */
45 : NS_SCRIPTABLE NS_IMETHOD HandleDoctypeDecl(const nsAString & aSubset, const nsAString & aName, const nsAString & aSystemId, const nsAString & aPublicId, nsISupports *aCatalogData) = 0;
46 :
47 : /* void HandleCharacterData ([size_is (aLength)] in wstring aData, in unsigned long aLength); */
48 : NS_SCRIPTABLE NS_IMETHOD HandleCharacterData(const PRUnichar * aData, PRUint32 aLength) = 0;
49 :
50 : /* void HandleProcessingInstruction (in wstring aTarget, in wstring aData); */
51 : NS_SCRIPTABLE NS_IMETHOD HandleProcessingInstruction(const PRUnichar * aTarget, const PRUnichar * aData) = 0;
52 :
53 : /* void HandleXMLDeclaration (in wstring aVersion, in wstring aEncoding, in long aStandalone); */
54 : NS_SCRIPTABLE NS_IMETHOD HandleXMLDeclaration(const PRUnichar * aVersion, const PRUnichar * aEncoding, PRInt32 aStandalone) = 0;
55 :
56 : /* boolean ReportError (in wstring aErrorText, in wstring aSourceText, in nsIScriptError aError); */
57 : NS_SCRIPTABLE NS_IMETHOD ReportError(const PRUnichar * aErrorText, const PRUnichar * aSourceText, nsIScriptError *aError, bool *_retval NS_OUTPARAM) = 0;
58 :
59 : };
60 :
61 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIExpatSink, NS_IEXPATSINK_IID)
62 :
63 : /* Use this macro when declaring classes that implement this interface. */
64 : #define NS_DECL_NSIEXPATSINK \
65 : NS_SCRIPTABLE NS_IMETHOD HandleStartElement(const PRUnichar * aName, const PRUnichar * *aAtts, PRUint32 aAttsCount, PRInt32 aIndex, PRUint32 aLineNumber); \
66 : NS_SCRIPTABLE NS_IMETHOD HandleEndElement(const PRUnichar * aName); \
67 : NS_SCRIPTABLE NS_IMETHOD HandleComment(const PRUnichar * aCommentText); \
68 : NS_SCRIPTABLE NS_IMETHOD HandleCDataSection(const PRUnichar * aData, PRUint32 aLength); \
69 : NS_SCRIPTABLE NS_IMETHOD HandleDoctypeDecl(const nsAString & aSubset, const nsAString & aName, const nsAString & aSystemId, const nsAString & aPublicId, nsISupports *aCatalogData); \
70 : NS_SCRIPTABLE NS_IMETHOD HandleCharacterData(const PRUnichar * aData, PRUint32 aLength); \
71 : NS_SCRIPTABLE NS_IMETHOD HandleProcessingInstruction(const PRUnichar * aTarget, const PRUnichar * aData); \
72 : NS_SCRIPTABLE NS_IMETHOD HandleXMLDeclaration(const PRUnichar * aVersion, const PRUnichar * aEncoding, PRInt32 aStandalone); \
73 : NS_SCRIPTABLE NS_IMETHOD ReportError(const PRUnichar * aErrorText, const PRUnichar * aSourceText, nsIScriptError *aError, bool *_retval NS_OUTPARAM);
74 :
75 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
76 : #define NS_FORWARD_NSIEXPATSINK(_to) \
77 : NS_SCRIPTABLE NS_IMETHOD HandleStartElement(const PRUnichar * aName, const PRUnichar * *aAtts, PRUint32 aAttsCount, PRInt32 aIndex, PRUint32 aLineNumber) { return _to HandleStartElement(aName, aAtts, aAttsCount, aIndex, aLineNumber); } \
78 : NS_SCRIPTABLE NS_IMETHOD HandleEndElement(const PRUnichar * aName) { return _to HandleEndElement(aName); } \
79 : NS_SCRIPTABLE NS_IMETHOD HandleComment(const PRUnichar * aCommentText) { return _to HandleComment(aCommentText); } \
80 : NS_SCRIPTABLE NS_IMETHOD HandleCDataSection(const PRUnichar * aData, PRUint32 aLength) { return _to HandleCDataSection(aData, aLength); } \
81 : NS_SCRIPTABLE NS_IMETHOD HandleDoctypeDecl(const nsAString & aSubset, const nsAString & aName, const nsAString & aSystemId, const nsAString & aPublicId, nsISupports *aCatalogData) { return _to HandleDoctypeDecl(aSubset, aName, aSystemId, aPublicId, aCatalogData); } \
82 : NS_SCRIPTABLE NS_IMETHOD HandleCharacterData(const PRUnichar * aData, PRUint32 aLength) { return _to HandleCharacterData(aData, aLength); } \
83 : NS_SCRIPTABLE NS_IMETHOD HandleProcessingInstruction(const PRUnichar * aTarget, const PRUnichar * aData) { return _to HandleProcessingInstruction(aTarget, aData); } \
84 : NS_SCRIPTABLE NS_IMETHOD HandleXMLDeclaration(const PRUnichar * aVersion, const PRUnichar * aEncoding, PRInt32 aStandalone) { return _to HandleXMLDeclaration(aVersion, aEncoding, aStandalone); } \
85 : NS_SCRIPTABLE NS_IMETHOD ReportError(const PRUnichar * aErrorText, const PRUnichar * aSourceText, nsIScriptError *aError, bool *_retval NS_OUTPARAM) { return _to ReportError(aErrorText, aSourceText, aError, _retval); }
86 :
87 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
88 : #define NS_FORWARD_SAFE_NSIEXPATSINK(_to) \
89 : NS_SCRIPTABLE NS_IMETHOD HandleStartElement(const PRUnichar * aName, const PRUnichar * *aAtts, PRUint32 aAttsCount, PRInt32 aIndex, PRUint32 aLineNumber) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleStartElement(aName, aAtts, aAttsCount, aIndex, aLineNumber); } \
90 : NS_SCRIPTABLE NS_IMETHOD HandleEndElement(const PRUnichar * aName) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleEndElement(aName); } \
91 : NS_SCRIPTABLE NS_IMETHOD HandleComment(const PRUnichar * aCommentText) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleComment(aCommentText); } \
92 : NS_SCRIPTABLE NS_IMETHOD HandleCDataSection(const PRUnichar * aData, PRUint32 aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleCDataSection(aData, aLength); } \
93 : NS_SCRIPTABLE NS_IMETHOD HandleDoctypeDecl(const nsAString & aSubset, const nsAString & aName, const nsAString & aSystemId, const nsAString & aPublicId, nsISupports *aCatalogData) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleDoctypeDecl(aSubset, aName, aSystemId, aPublicId, aCatalogData); } \
94 : NS_SCRIPTABLE NS_IMETHOD HandleCharacterData(const PRUnichar * aData, PRUint32 aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleCharacterData(aData, aLength); } \
95 : NS_SCRIPTABLE NS_IMETHOD HandleProcessingInstruction(const PRUnichar * aTarget, const PRUnichar * aData) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleProcessingInstruction(aTarget, aData); } \
96 : NS_SCRIPTABLE NS_IMETHOD HandleXMLDeclaration(const PRUnichar * aVersion, const PRUnichar * aEncoding, PRInt32 aStandalone) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleXMLDeclaration(aVersion, aEncoding, aStandalone); } \
97 : NS_SCRIPTABLE NS_IMETHOD ReportError(const PRUnichar * aErrorText, const PRUnichar * aSourceText, nsIScriptError *aError, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReportError(aErrorText, aSourceText, aError, _retval); }
98 :
99 : #if 0
100 : /* Use the code below as a template for the implementation class for this interface. */
101 :
102 : /* Header file */
103 : class nsExpatSink : public nsIExpatSink
104 : {
105 : public:
106 : NS_DECL_ISUPPORTS
107 : NS_DECL_NSIEXPATSINK
108 :
109 : nsExpatSink();
110 :
111 : private:
112 : ~nsExpatSink();
113 :
114 : protected:
115 : /* additional members */
116 : };
117 :
118 : /* Implementation file */
119 : NS_IMPL_ISUPPORTS1(nsExpatSink, nsIExpatSink)
120 :
121 : nsExpatSink::nsExpatSink()
122 : {
123 : /* member initializers and constructor code */
124 : }
125 :
126 : nsExpatSink::~nsExpatSink()
127 : {
128 : /* destructor code */
129 : }
130 :
131 : /* void HandleStartElement (in wstring aName, [array, size_is (aAttsCount)] in wstring aAtts, in unsigned long aAttsCount, in long aIndex, in unsigned long aLineNumber); */
132 : NS_IMETHODIMP nsExpatSink::HandleStartElement(const PRUnichar * aName, const PRUnichar * *aAtts, PRUint32 aAttsCount, PRInt32 aIndex, PRUint32 aLineNumber)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* void HandleEndElement (in wstring aName); */
138 : NS_IMETHODIMP nsExpatSink::HandleEndElement(const PRUnichar * aName)
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* void HandleComment (in wstring aCommentText); */
144 : NS_IMETHODIMP nsExpatSink::HandleComment(const PRUnichar * aCommentText)
145 : {
146 : return NS_ERROR_NOT_IMPLEMENTED;
147 : }
148 :
149 : /* void HandleCDataSection ([size_is (aLength)] in wstring aData, in unsigned long aLength); */
150 : NS_IMETHODIMP nsExpatSink::HandleCDataSection(const PRUnichar * aData, PRUint32 aLength)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 :
155 : /* void HandleDoctypeDecl (in AString aSubset, in AString aName, in AString aSystemId, in AString aPublicId, in nsISupports aCatalogData); */
156 : NS_IMETHODIMP nsExpatSink::HandleDoctypeDecl(const nsAString & aSubset, const nsAString & aName, const nsAString & aSystemId, const nsAString & aPublicId, nsISupports *aCatalogData)
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 :
161 : /* void HandleCharacterData ([size_is (aLength)] in wstring aData, in unsigned long aLength); */
162 : NS_IMETHODIMP nsExpatSink::HandleCharacterData(const PRUnichar * aData, PRUint32 aLength)
163 : {
164 : return NS_ERROR_NOT_IMPLEMENTED;
165 : }
166 :
167 : /* void HandleProcessingInstruction (in wstring aTarget, in wstring aData); */
168 : NS_IMETHODIMP nsExpatSink::HandleProcessingInstruction(const PRUnichar * aTarget, const PRUnichar * aData)
169 : {
170 : return NS_ERROR_NOT_IMPLEMENTED;
171 : }
172 :
173 : /* void HandleXMLDeclaration (in wstring aVersion, in wstring aEncoding, in long aStandalone); */
174 : NS_IMETHODIMP nsExpatSink::HandleXMLDeclaration(const PRUnichar * aVersion, const PRUnichar * aEncoding, PRInt32 aStandalone)
175 : {
176 : return NS_ERROR_NOT_IMPLEMENTED;
177 : }
178 :
179 : /* boolean ReportError (in wstring aErrorText, in wstring aSourceText, in nsIScriptError aError); */
180 : NS_IMETHODIMP nsExpatSink::ReportError(const PRUnichar * aErrorText, const PRUnichar * aSourceText, nsIScriptError *aError, bool *_retval NS_OUTPARAM)
181 : {
182 : return NS_ERROR_NOT_IMPLEMENTED;
183 : }
184 :
185 : /* End of implementation class template. */
186 : #endif
187 :
188 :
189 : #endif /* __gen_nsIExpatSink_h__ */
|