Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/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 0 : class NS_NO_VTABLE nsISAXLocator : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISAXLOCATOR_IID)
29 :
30 : /* readonly attribute long columnNumber; */
31 : NS_IMETHOD GetColumnNumber(int32_t *aColumnNumber) = 0;
32 :
33 : /* readonly attribute long lineNumber; */
34 : NS_IMETHOD GetLineNumber(int32_t *aLineNumber) = 0;
35 :
36 : /* readonly attribute AString publicId; */
37 : NS_IMETHOD GetPublicId(nsAString & aPublicId) = 0;
38 :
39 : /* readonly attribute AString systemId; */
40 : 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_IMETHOD GetColumnNumber(int32_t *aColumnNumber) override; \
49 : NS_IMETHOD GetLineNumber(int32_t *aLineNumber) override; \
50 : NS_IMETHOD GetPublicId(nsAString & aPublicId) override; \
51 : NS_IMETHOD GetSystemId(nsAString & aSystemId) override;
52 :
53 : /* Use this macro when declaring the members of this interface when the
54 : class doesn't implement the interface. This is useful for forwarding. */
55 : #define NS_DECL_NON_VIRTUAL_NSISAXLOCATOR \
56 : nsresult GetColumnNumber(int32_t *aColumnNumber); \
57 : nsresult GetLineNumber(int32_t *aLineNumber); \
58 : nsresult GetPublicId(nsAString & aPublicId); \
59 : nsresult GetSystemId(nsAString & aSystemId);
60 :
61 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
62 : #define NS_FORWARD_NSISAXLOCATOR(_to) \
63 : NS_IMETHOD GetColumnNumber(int32_t *aColumnNumber) override { return _to GetColumnNumber(aColumnNumber); } \
64 : NS_IMETHOD GetLineNumber(int32_t *aLineNumber) override { return _to GetLineNumber(aLineNumber); } \
65 : NS_IMETHOD GetPublicId(nsAString & aPublicId) override { return _to GetPublicId(aPublicId); } \
66 : NS_IMETHOD GetSystemId(nsAString & aSystemId) override { return _to GetSystemId(aSystemId); }
67 :
68 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
69 : #define NS_FORWARD_SAFE_NSISAXLOCATOR(_to) \
70 : NS_IMETHOD GetColumnNumber(int32_t *aColumnNumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnNumber(aColumnNumber); } \
71 : NS_IMETHOD GetLineNumber(int32_t *aLineNumber) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLineNumber(aLineNumber); } \
72 : NS_IMETHOD GetPublicId(nsAString & aPublicId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPublicId(aPublicId); } \
73 : NS_IMETHOD GetSystemId(nsAString & aSystemId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSystemId(aSystemId); }
74 :
75 : #if 0
76 : /* Use the code below as a template for the implementation class for this interface. */
77 :
78 : /* Header file */
79 : class nsSAXLocator : public nsISAXLocator
80 : {
81 : public:
82 : NS_DECL_ISUPPORTS
83 : NS_DECL_NSISAXLOCATOR
84 :
85 : nsSAXLocator();
86 :
87 : private:
88 : ~nsSAXLocator();
89 :
90 : protected:
91 : /* additional members */
92 : };
93 :
94 : /* Implementation file */
95 : NS_IMPL_ISUPPORTS(nsSAXLocator, nsISAXLocator)
96 :
97 : nsSAXLocator::nsSAXLocator()
98 : {
99 : /* member initializers and constructor code */
100 : }
101 :
102 : nsSAXLocator::~nsSAXLocator()
103 : {
104 : /* destructor code */
105 : }
106 :
107 : /* readonly attribute long columnNumber; */
108 : NS_IMETHODIMP nsSAXLocator::GetColumnNumber(int32_t *aColumnNumber)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* readonly attribute long lineNumber; */
114 : NS_IMETHODIMP nsSAXLocator::GetLineNumber(int32_t *aLineNumber)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 :
119 : /* readonly attribute AString publicId; */
120 : NS_IMETHODIMP nsSAXLocator::GetPublicId(nsAString & aPublicId)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* readonly attribute AString systemId; */
126 : NS_IMETHODIMP nsSAXLocator::GetSystemId(nsAString & aSystemId)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* End of implementation class template. */
132 : #endif
133 :
134 :
135 : #endif /* __gen_nsISAXLocator_h__ */
|