1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/parser/xml/public/nsISAXLocator.idl
3 : */
4 :
5 : #ifndef __gen_nsISAXLocator_h__
6 : #define __gen_nsISAXLocator_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: nsISAXLocator */
19 : #define NS_ISAXLOCATOR_IID_STR "7a307c6c-6cc9-11da-be43-001422106990"
20 :
21 : #define NS_ISAXLOCATOR_IID \
22 : {0x7a307c6c, 0x6cc9, 0x11da, \
23 : { 0xbe, 0x43, 0x00, 0x14, 0x22, 0x10, 0x69, 0x90 }}
24 :
25 2 : class NS_NO_VTABLE NS_SCRIPTABLE nsISAXLocator : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISAXLOCATOR_IID)
29 :
30 : /* readonly attribute long columnNumber; */
31 : NS_SCRIPTABLE NS_IMETHOD GetColumnNumber(PRInt32 *aColumnNumber) = 0;
32 :
33 : /* readonly attribute long lineNumber; */
34 : NS_SCRIPTABLE NS_IMETHOD GetLineNumber(PRInt32 *aLineNumber) = 0;
35 :
36 : /* readonly attribute AString publicId; */
37 : NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId) = 0;
38 :
39 : /* readonly attribute AString systemId; */
40 : NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId) = 0;
41 :
42 : };
43 :
44 : NS_DEFINE_STATIC_IID_ACCESSOR(nsISAXLocator, NS_ISAXLOCATOR_IID)
45 :
46 : /* Use this macro when declaring classes that implement this interface. */
47 : #define NS_DECL_NSISAXLOCATOR \
48 : NS_SCRIPTABLE NS_IMETHOD GetColumnNumber(PRInt32 *aColumnNumber); \
49 : NS_SCRIPTABLE NS_IMETHOD GetLineNumber(PRInt32 *aLineNumber); \
50 : NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId); \
51 : NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSISAXLOCATOR(_to) \
55 : NS_SCRIPTABLE NS_IMETHOD GetColumnNumber(PRInt32 *aColumnNumber) { return _to GetColumnNumber(aColumnNumber); } \
56 : NS_SCRIPTABLE NS_IMETHOD GetLineNumber(PRInt32 *aLineNumber) { return _to GetLineNumber(aLineNumber); } \
57 : NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId) { return _to GetPublicId(aPublicId); } \
58 : NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId) { return _to GetSystemId(aSystemId); }
59 :
60 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
61 : #define NS_FORWARD_SAFE_NSISAXLOCATOR(_to) \
62 : NS_SCRIPTABLE NS_IMETHOD GetColumnNumber(PRInt32 *aColumnNumber) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnNumber(aColumnNumber); } \
63 : NS_SCRIPTABLE NS_IMETHOD GetLineNumber(PRInt32 *aLineNumber) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineNumber(aLineNumber); } \
64 : NS_SCRIPTABLE NS_IMETHOD GetPublicId(nsAString & aPublicId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPublicId(aPublicId); } \
65 : NS_SCRIPTABLE NS_IMETHOD GetSystemId(nsAString & aSystemId) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSystemId(aSystemId); }
66 :
67 : #if 0
68 : /* Use the code below as a template for the implementation class for this interface. */
69 :
70 : /* Header file */
71 : class nsSAXLocator : public nsISAXLocator
72 : {
73 : public:
74 : NS_DECL_ISUPPORTS
75 : NS_DECL_NSISAXLOCATOR
76 :
77 : nsSAXLocator();
78 :
79 : private:
80 : ~nsSAXLocator();
81 :
82 : protected:
83 : /* additional members */
84 : };
85 :
86 : /* Implementation file */
87 : NS_IMPL_ISUPPORTS1(nsSAXLocator, nsISAXLocator)
88 :
89 : nsSAXLocator::nsSAXLocator()
90 : {
91 : /* member initializers and constructor code */
92 : }
93 :
94 : nsSAXLocator::~nsSAXLocator()
95 : {
96 : /* destructor code */
97 : }
98 :
99 : /* readonly attribute long columnNumber; */
100 : NS_IMETHODIMP nsSAXLocator::GetColumnNumber(PRInt32 *aColumnNumber)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* readonly attribute long lineNumber; */
106 : NS_IMETHODIMP nsSAXLocator::GetLineNumber(PRInt32 *aLineNumber)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* readonly attribute AString publicId; */
112 : NS_IMETHODIMP nsSAXLocator::GetPublicId(nsAString & aPublicId)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* readonly attribute AString systemId; */
118 : NS_IMETHODIMP nsSAXLocator::GetSystemId(nsAString & aSystemId)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* End of implementation class template. */
124 : #endif
125 :
126 :
127 : #endif /* __gen_nsISAXLocator_h__ */
|