1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/accessible/public/nsIAccessibleDocument.idl
3 : */
4 :
5 : #ifndef __gen_nsIAccessibleDocument_h__
6 : #define __gen_nsIAccessibleDocument_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 nsIAccessible; /* forward declaration */
18 :
19 : class nsIDOMDocument; /* forward declaration */
20 :
21 : class nsIDOMNode; /* forward declaration */
22 :
23 : class nsIDOMWindow; /* forward declaration */
24 :
25 :
26 : /* starting interface: nsIAccessibleDocument */
27 : #define NS_IACCESSIBLEDOCUMENT_IID_STR "451242bd-8a0c-4198-ae88-c053609a4e5d"
28 :
29 : #define NS_IACCESSIBLEDOCUMENT_IID \
30 : {0x451242bd, 0x8a0c, 0x4198, \
31 : { 0xae, 0x88, 0xc0, 0x53, 0x60, 0x9a, 0x4e, 0x5d }}
32 :
33 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIAccessibleDocument : public nsISupports {
34 : public:
35 :
36 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLEDOCUMENT_IID)
37 :
38 : /* readonly attribute AString URL; */
39 : NS_SCRIPTABLE NS_IMETHOD GetURL(nsAString & aURL) = 0;
40 :
41 : /* readonly attribute AString title; */
42 : NS_SCRIPTABLE NS_IMETHOD GetTitle(nsAString & aTitle) = 0;
43 :
44 : /* readonly attribute AString mimeType; */
45 : NS_SCRIPTABLE NS_IMETHOD GetMimeType(nsAString & aMimeType) = 0;
46 :
47 : /* readonly attribute AString docType; */
48 : NS_SCRIPTABLE NS_IMETHOD GetDocType(nsAString & aDocType) = 0;
49 :
50 : /* readonly attribute nsIDOMDocument DOMDocument; */
51 : NS_SCRIPTABLE NS_IMETHOD GetDOMDocument(nsIDOMDocument * *aDOMDocument) = 0;
52 :
53 : /* readonly attribute nsIDOMWindow window; */
54 : NS_SCRIPTABLE NS_IMETHOD GetWindow(nsIDOMWindow * *aWindow) = 0;
55 :
56 : /* AString getNameSpaceURIForID (in short nameSpaceID); */
57 : NS_SCRIPTABLE NS_IMETHOD GetNameSpaceURIForID(PRInt16 nameSpaceID, nsAString & _retval NS_OUTPARAM) = 0;
58 :
59 : /* [noscript] readonly attribute voidPtr windowHandle; */
60 : NS_IMETHOD GetWindowHandle(void **aWindowHandle) = 0;
61 :
62 : /* readonly attribute nsIAccessibleDocument parentDocument; */
63 : NS_SCRIPTABLE NS_IMETHOD GetParentDocument(nsIAccessibleDocument * *aParentDocument) = 0;
64 :
65 : /* readonly attribute unsigned long childDocumentCount; */
66 : NS_SCRIPTABLE NS_IMETHOD GetChildDocumentCount(PRUint32 *aChildDocumentCount) = 0;
67 :
68 : /* nsIAccessibleDocument getChildDocumentAt (in unsigned long index); */
69 : NS_SCRIPTABLE NS_IMETHOD GetChildDocumentAt(PRUint32 index, nsIAccessibleDocument * *_retval NS_OUTPARAM) = 0;
70 :
71 : };
72 :
73 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessibleDocument, NS_IACCESSIBLEDOCUMENT_IID)
74 :
75 : /* Use this macro when declaring classes that implement this interface. */
76 : #define NS_DECL_NSIACCESSIBLEDOCUMENT \
77 : NS_SCRIPTABLE NS_IMETHOD GetURL(nsAString & aURL); \
78 : NS_SCRIPTABLE NS_IMETHOD GetTitle(nsAString & aTitle); \
79 : NS_SCRIPTABLE NS_IMETHOD GetMimeType(nsAString & aMimeType); \
80 : NS_SCRIPTABLE NS_IMETHOD GetDocType(nsAString & aDocType); \
81 : NS_SCRIPTABLE NS_IMETHOD GetDOMDocument(nsIDOMDocument * *aDOMDocument); \
82 : NS_SCRIPTABLE NS_IMETHOD GetWindow(nsIDOMWindow * *aWindow); \
83 : NS_SCRIPTABLE NS_IMETHOD GetNameSpaceURIForID(PRInt16 nameSpaceID, nsAString & _retval NS_OUTPARAM); \
84 : NS_IMETHOD GetWindowHandle(void **aWindowHandle); \
85 : NS_SCRIPTABLE NS_IMETHOD GetParentDocument(nsIAccessibleDocument * *aParentDocument); \
86 : NS_SCRIPTABLE NS_IMETHOD GetChildDocumentCount(PRUint32 *aChildDocumentCount); \
87 : NS_SCRIPTABLE NS_IMETHOD GetChildDocumentAt(PRUint32 index, nsIAccessibleDocument * *_retval NS_OUTPARAM);
88 :
89 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
90 : #define NS_FORWARD_NSIACCESSIBLEDOCUMENT(_to) \
91 : NS_SCRIPTABLE NS_IMETHOD GetURL(nsAString & aURL) { return _to GetURL(aURL); } \
92 : NS_SCRIPTABLE NS_IMETHOD GetTitle(nsAString & aTitle) { return _to GetTitle(aTitle); } \
93 : NS_SCRIPTABLE NS_IMETHOD GetMimeType(nsAString & aMimeType) { return _to GetMimeType(aMimeType); } \
94 : NS_SCRIPTABLE NS_IMETHOD GetDocType(nsAString & aDocType) { return _to GetDocType(aDocType); } \
95 : NS_SCRIPTABLE NS_IMETHOD GetDOMDocument(nsIDOMDocument * *aDOMDocument) { return _to GetDOMDocument(aDOMDocument); } \
96 : NS_SCRIPTABLE NS_IMETHOD GetWindow(nsIDOMWindow * *aWindow) { return _to GetWindow(aWindow); } \
97 : NS_SCRIPTABLE NS_IMETHOD GetNameSpaceURIForID(PRInt16 nameSpaceID, nsAString & _retval NS_OUTPARAM) { return _to GetNameSpaceURIForID(nameSpaceID, _retval); } \
98 : NS_IMETHOD GetWindowHandle(void **aWindowHandle) { return _to GetWindowHandle(aWindowHandle); } \
99 : NS_SCRIPTABLE NS_IMETHOD GetParentDocument(nsIAccessibleDocument * *aParentDocument) { return _to GetParentDocument(aParentDocument); } \
100 : NS_SCRIPTABLE NS_IMETHOD GetChildDocumentCount(PRUint32 *aChildDocumentCount) { return _to GetChildDocumentCount(aChildDocumentCount); } \
101 : NS_SCRIPTABLE NS_IMETHOD GetChildDocumentAt(PRUint32 index, nsIAccessibleDocument * *_retval NS_OUTPARAM) { return _to GetChildDocumentAt(index, _retval); }
102 :
103 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
104 : #define NS_FORWARD_SAFE_NSIACCESSIBLEDOCUMENT(_to) \
105 : NS_SCRIPTABLE NS_IMETHOD GetURL(nsAString & aURL) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURL(aURL); } \
106 : NS_SCRIPTABLE NS_IMETHOD GetTitle(nsAString & aTitle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTitle(aTitle); } \
107 : NS_SCRIPTABLE NS_IMETHOD GetMimeType(nsAString & aMimeType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMimeType(aMimeType); } \
108 : NS_SCRIPTABLE NS_IMETHOD GetDocType(nsAString & aDocType) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocType(aDocType); } \
109 : NS_SCRIPTABLE NS_IMETHOD GetDOMDocument(nsIDOMDocument * *aDOMDocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDOMDocument(aDOMDocument); } \
110 : NS_SCRIPTABLE NS_IMETHOD GetWindow(nsIDOMWindow * *aWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindow(aWindow); } \
111 : NS_SCRIPTABLE NS_IMETHOD GetNameSpaceURIForID(PRInt16 nameSpaceID, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNameSpaceURIForID(nameSpaceID, _retval); } \
112 : NS_IMETHOD GetWindowHandle(void **aWindowHandle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWindowHandle(aWindowHandle); } \
113 : NS_SCRIPTABLE NS_IMETHOD GetParentDocument(nsIAccessibleDocument * *aParentDocument) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentDocument(aParentDocument); } \
114 : NS_SCRIPTABLE NS_IMETHOD GetChildDocumentCount(PRUint32 *aChildDocumentCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildDocumentCount(aChildDocumentCount); } \
115 : NS_SCRIPTABLE NS_IMETHOD GetChildDocumentAt(PRUint32 index, nsIAccessibleDocument * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChildDocumentAt(index, _retval); }
116 :
117 : #if 0
118 : /* Use the code below as a template for the implementation class for this interface. */
119 :
120 : /* Header file */
121 : class nsAccessibleDocument : public nsIAccessibleDocument
122 : {
123 : public:
124 : NS_DECL_ISUPPORTS
125 : NS_DECL_NSIACCESSIBLEDOCUMENT
126 :
127 : nsAccessibleDocument();
128 :
129 : private:
130 : ~nsAccessibleDocument();
131 :
132 : protected:
133 : /* additional members */
134 : };
135 :
136 : /* Implementation file */
137 : NS_IMPL_ISUPPORTS1(nsAccessibleDocument, nsIAccessibleDocument)
138 :
139 : nsAccessibleDocument::nsAccessibleDocument()
140 : {
141 : /* member initializers and constructor code */
142 : }
143 :
144 : nsAccessibleDocument::~nsAccessibleDocument()
145 : {
146 : /* destructor code */
147 : }
148 :
149 : /* readonly attribute AString URL; */
150 : NS_IMETHODIMP nsAccessibleDocument::GetURL(nsAString & aURL)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 :
155 : /* readonly attribute AString title; */
156 : NS_IMETHODIMP nsAccessibleDocument::GetTitle(nsAString & aTitle)
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 :
161 : /* readonly attribute AString mimeType; */
162 : NS_IMETHODIMP nsAccessibleDocument::GetMimeType(nsAString & aMimeType)
163 : {
164 : return NS_ERROR_NOT_IMPLEMENTED;
165 : }
166 :
167 : /* readonly attribute AString docType; */
168 : NS_IMETHODIMP nsAccessibleDocument::GetDocType(nsAString & aDocType)
169 : {
170 : return NS_ERROR_NOT_IMPLEMENTED;
171 : }
172 :
173 : /* readonly attribute nsIDOMDocument DOMDocument; */
174 : NS_IMETHODIMP nsAccessibleDocument::GetDOMDocument(nsIDOMDocument * *aDOMDocument)
175 : {
176 : return NS_ERROR_NOT_IMPLEMENTED;
177 : }
178 :
179 : /* readonly attribute nsIDOMWindow window; */
180 : NS_IMETHODIMP nsAccessibleDocument::GetWindow(nsIDOMWindow * *aWindow)
181 : {
182 : return NS_ERROR_NOT_IMPLEMENTED;
183 : }
184 :
185 : /* AString getNameSpaceURIForID (in short nameSpaceID); */
186 : NS_IMETHODIMP nsAccessibleDocument::GetNameSpaceURIForID(PRInt16 nameSpaceID, nsAString & _retval NS_OUTPARAM)
187 : {
188 : return NS_ERROR_NOT_IMPLEMENTED;
189 : }
190 :
191 : /* [noscript] readonly attribute voidPtr windowHandle; */
192 : NS_IMETHODIMP nsAccessibleDocument::GetWindowHandle(void **aWindowHandle)
193 : {
194 : return NS_ERROR_NOT_IMPLEMENTED;
195 : }
196 :
197 : /* readonly attribute nsIAccessibleDocument parentDocument; */
198 : NS_IMETHODIMP nsAccessibleDocument::GetParentDocument(nsIAccessibleDocument * *aParentDocument)
199 : {
200 : return NS_ERROR_NOT_IMPLEMENTED;
201 : }
202 :
203 : /* readonly attribute unsigned long childDocumentCount; */
204 : NS_IMETHODIMP nsAccessibleDocument::GetChildDocumentCount(PRUint32 *aChildDocumentCount)
205 : {
206 : return NS_ERROR_NOT_IMPLEMENTED;
207 : }
208 :
209 : /* nsIAccessibleDocument getChildDocumentAt (in unsigned long index); */
210 : NS_IMETHODIMP nsAccessibleDocument::GetChildDocumentAt(PRUint32 index, nsIAccessibleDocument * *_retval NS_OUTPARAM)
211 : {
212 : return NS_ERROR_NOT_IMPLEMENTED;
213 : }
214 :
215 : /* End of implementation class template. */
216 : #endif
217 :
218 :
219 : #endif /* __gen_nsIAccessibleDocument_h__ */
|