Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAccessibleHyperLink.idl
3 : */
4 :
5 : #ifndef __gen_nsIAccessibleHyperLink_h__
6 : #define __gen_nsIAccessibleHyperLink_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 nsIURI; /* forward declaration */
18 :
19 : class nsIAccessible; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIAccessibleHyperLink */
23 : #define NS_IACCESSIBLEHYPERLINK_IID_STR "883643d4-93a5-4f32-922c-6f06e01363c1"
24 :
25 : #define NS_IACCESSIBLEHYPERLINK_IID \
26 : {0x883643d4, 0x93a5, 0x4f32, \
27 : { 0x92, 0x2c, 0x6f, 0x06, 0xe0, 0x13, 0x63, 0xc1 }}
28 :
29 0 : class NS_NO_VTABLE nsIAccessibleHyperLink : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLEHYPERLINK_IID)
33 :
34 : /* readonly attribute long startIndex; */
35 : NS_IMETHOD GetStartIndex(int32_t *aStartIndex) = 0;
36 :
37 : /* readonly attribute long endIndex; */
38 : NS_IMETHOD GetEndIndex(int32_t *aEndIndex) = 0;
39 :
40 : /* readonly attribute boolean valid; */
41 : NS_IMETHOD GetValid(bool *aValid) = 0;
42 :
43 : /* readonly attribute long anchorCount; */
44 : NS_IMETHOD GetAnchorCount(int32_t *aAnchorCount) = 0;
45 :
46 : /* nsIURI getURI (in long index); */
47 : NS_IMETHOD GetURI(int32_t index, nsIURI * *_retval) = 0;
48 :
49 : /* nsIAccessible getAnchor (in long index); */
50 : NS_IMETHOD GetAnchor(int32_t index, nsIAccessible * *_retval) = 0;
51 :
52 : };
53 :
54 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessibleHyperLink, NS_IACCESSIBLEHYPERLINK_IID)
55 :
56 : /* Use this macro when declaring classes that implement this interface. */
57 : #define NS_DECL_NSIACCESSIBLEHYPERLINK \
58 : NS_IMETHOD GetStartIndex(int32_t *aStartIndex) override; \
59 : NS_IMETHOD GetEndIndex(int32_t *aEndIndex) override; \
60 : NS_IMETHOD GetValid(bool *aValid) override; \
61 : NS_IMETHOD GetAnchorCount(int32_t *aAnchorCount) override; \
62 : NS_IMETHOD GetURI(int32_t index, nsIURI * *_retval) override; \
63 : NS_IMETHOD GetAnchor(int32_t index, nsIAccessible * *_retval) override;
64 :
65 : /* Use this macro when declaring the members of this interface when the
66 : class doesn't implement the interface. This is useful for forwarding. */
67 : #define NS_DECL_NON_VIRTUAL_NSIACCESSIBLEHYPERLINK \
68 : nsresult GetStartIndex(int32_t *aStartIndex); \
69 : nsresult GetEndIndex(int32_t *aEndIndex); \
70 : nsresult GetValid(bool *aValid); \
71 : nsresult GetAnchorCount(int32_t *aAnchorCount); \
72 : nsresult GetURI(int32_t index, nsIURI * *_retval); \
73 : nsresult GetAnchor(int32_t index, nsIAccessible * *_retval);
74 :
75 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
76 : #define NS_FORWARD_NSIACCESSIBLEHYPERLINK(_to) \
77 : NS_IMETHOD GetStartIndex(int32_t *aStartIndex) override { return _to GetStartIndex(aStartIndex); } \
78 : NS_IMETHOD GetEndIndex(int32_t *aEndIndex) override { return _to GetEndIndex(aEndIndex); } \
79 : NS_IMETHOD GetValid(bool *aValid) override { return _to GetValid(aValid); } \
80 : NS_IMETHOD GetAnchorCount(int32_t *aAnchorCount) override { return _to GetAnchorCount(aAnchorCount); } \
81 : NS_IMETHOD GetURI(int32_t index, nsIURI * *_retval) override { return _to GetURI(index, _retval); } \
82 : NS_IMETHOD GetAnchor(int32_t index, nsIAccessible * *_retval) override { return _to GetAnchor(index, _retval); }
83 :
84 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
85 : #define NS_FORWARD_SAFE_NSIACCESSIBLEHYPERLINK(_to) \
86 : NS_IMETHOD GetStartIndex(int32_t *aStartIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStartIndex(aStartIndex); } \
87 : NS_IMETHOD GetEndIndex(int32_t *aEndIndex) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEndIndex(aEndIndex); } \
88 : NS_IMETHOD GetValid(bool *aValid) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetValid(aValid); } \
89 : NS_IMETHOD GetAnchorCount(int32_t *aAnchorCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnchorCount(aAnchorCount); } \
90 : NS_IMETHOD GetURI(int32_t index, nsIURI * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(index, _retval); } \
91 : NS_IMETHOD GetAnchor(int32_t index, nsIAccessible * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAnchor(index, _retval); }
92 :
93 : #if 0
94 : /* Use the code below as a template for the implementation class for this interface. */
95 :
96 : /* Header file */
97 : class nsAccessibleHyperLink : public nsIAccessibleHyperLink
98 : {
99 : public:
100 : NS_DECL_ISUPPORTS
101 : NS_DECL_NSIACCESSIBLEHYPERLINK
102 :
103 : nsAccessibleHyperLink();
104 :
105 : private:
106 : ~nsAccessibleHyperLink();
107 :
108 : protected:
109 : /* additional members */
110 : };
111 :
112 : /* Implementation file */
113 : NS_IMPL_ISUPPORTS(nsAccessibleHyperLink, nsIAccessibleHyperLink)
114 :
115 : nsAccessibleHyperLink::nsAccessibleHyperLink()
116 : {
117 : /* member initializers and constructor code */
118 : }
119 :
120 : nsAccessibleHyperLink::~nsAccessibleHyperLink()
121 : {
122 : /* destructor code */
123 : }
124 :
125 : /* readonly attribute long startIndex; */
126 : NS_IMETHODIMP nsAccessibleHyperLink::GetStartIndex(int32_t *aStartIndex)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* readonly attribute long endIndex; */
132 : NS_IMETHODIMP nsAccessibleHyperLink::GetEndIndex(int32_t *aEndIndex)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* readonly attribute boolean valid; */
138 : NS_IMETHODIMP nsAccessibleHyperLink::GetValid(bool *aValid)
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* readonly attribute long anchorCount; */
144 : NS_IMETHODIMP nsAccessibleHyperLink::GetAnchorCount(int32_t *aAnchorCount)
145 : {
146 : return NS_ERROR_NOT_IMPLEMENTED;
147 : }
148 :
149 : /* nsIURI getURI (in long index); */
150 : NS_IMETHODIMP nsAccessibleHyperLink::GetURI(int32_t index, nsIURI * *_retval)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 :
155 : /* nsIAccessible getAnchor (in long index); */
156 : NS_IMETHODIMP nsAccessibleHyperLink::GetAnchor(int32_t index, nsIAccessible * *_retval)
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 :
161 : /* End of implementation class template. */
162 : #endif
163 :
164 :
165 : #endif /* __gen_nsIAccessibleHyperLink_h__ */
|