Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIAccessibleHyperText.idl
3 : */
4 :
5 : #ifndef __gen_nsIAccessibleHyperText_h__
6 : #define __gen_nsIAccessibleHyperText_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #ifndef __gen_nsIAccessibleHyperLink_h__
14 : #include "nsIAccessibleHyperLink.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 :
22 : /* starting interface: nsIAccessibleHyperText */
23 : #define NS_IACCESSIBLEHYPERTEXT_IID_STR "b33684e2-090c-4e1d-a3d9-f4b46f4237b9"
24 :
25 : #define NS_IACCESSIBLEHYPERTEXT_IID \
26 : {0xb33684e2, 0x090c, 0x4e1d, \
27 : { 0xa3, 0xd9, 0xf4, 0xb4, 0x6f, 0x42, 0x37, 0xb9 }}
28 :
29 0 : class NS_NO_VTABLE nsIAccessibleHyperText : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLEHYPERTEXT_IID)
33 :
34 : /* readonly attribute long linkCount; */
35 : NS_IMETHOD GetLinkCount(int32_t *aLinkCount) = 0;
36 :
37 : /* nsIAccessibleHyperLink getLinkAt (in long index); */
38 : NS_IMETHOD GetLinkAt(int32_t index, nsIAccessibleHyperLink * *_retval) = 0;
39 :
40 : /* long getLinkIndex (in nsIAccessibleHyperLink link); */
41 : NS_IMETHOD GetLinkIndex(nsIAccessibleHyperLink *link, int32_t *_retval) = 0;
42 :
43 : /* long getLinkIndexAtOffset (in long offset); */
44 : NS_IMETHOD GetLinkIndexAtOffset(int32_t offset, int32_t *_retval) = 0;
45 :
46 : };
47 :
48 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIAccessibleHyperText, NS_IACCESSIBLEHYPERTEXT_IID)
49 :
50 : /* Use this macro when declaring classes that implement this interface. */
51 : #define NS_DECL_NSIACCESSIBLEHYPERTEXT \
52 : NS_IMETHOD GetLinkCount(int32_t *aLinkCount) override; \
53 : NS_IMETHOD GetLinkAt(int32_t index, nsIAccessibleHyperLink * *_retval) override; \
54 : NS_IMETHOD GetLinkIndex(nsIAccessibleHyperLink *link, int32_t *_retval) override; \
55 : NS_IMETHOD GetLinkIndexAtOffset(int32_t offset, int32_t *_retval) override;
56 :
57 : /* Use this macro when declaring the members of this interface when the
58 : class doesn't implement the interface. This is useful for forwarding. */
59 : #define NS_DECL_NON_VIRTUAL_NSIACCESSIBLEHYPERTEXT \
60 : nsresult GetLinkCount(int32_t *aLinkCount); \
61 : nsresult GetLinkAt(int32_t index, nsIAccessibleHyperLink * *_retval); \
62 : nsresult GetLinkIndex(nsIAccessibleHyperLink *link, int32_t *_retval); \
63 : nsresult GetLinkIndexAtOffset(int32_t offset, int32_t *_retval);
64 :
65 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
66 : #define NS_FORWARD_NSIACCESSIBLEHYPERTEXT(_to) \
67 : NS_IMETHOD GetLinkCount(int32_t *aLinkCount) override { return _to GetLinkCount(aLinkCount); } \
68 : NS_IMETHOD GetLinkAt(int32_t index, nsIAccessibleHyperLink * *_retval) override { return _to GetLinkAt(index, _retval); } \
69 : NS_IMETHOD GetLinkIndex(nsIAccessibleHyperLink *link, int32_t *_retval) override { return _to GetLinkIndex(link, _retval); } \
70 : NS_IMETHOD GetLinkIndexAtOffset(int32_t offset, int32_t *_retval) override { return _to GetLinkIndexAtOffset(offset, _retval); }
71 :
72 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
73 : #define NS_FORWARD_SAFE_NSIACCESSIBLEHYPERTEXT(_to) \
74 : NS_IMETHOD GetLinkCount(int32_t *aLinkCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLinkCount(aLinkCount); } \
75 : NS_IMETHOD GetLinkAt(int32_t index, nsIAccessibleHyperLink * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLinkAt(index, _retval); } \
76 : NS_IMETHOD GetLinkIndex(nsIAccessibleHyperLink *link, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLinkIndex(link, _retval); } \
77 : NS_IMETHOD GetLinkIndexAtOffset(int32_t offset, int32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLinkIndexAtOffset(offset, _retval); }
78 :
79 : #if 0
80 : /* Use the code below as a template for the implementation class for this interface. */
81 :
82 : /* Header file */
83 : class nsAccessibleHyperText : public nsIAccessibleHyperText
84 : {
85 : public:
86 : NS_DECL_ISUPPORTS
87 : NS_DECL_NSIACCESSIBLEHYPERTEXT
88 :
89 : nsAccessibleHyperText();
90 :
91 : private:
92 : ~nsAccessibleHyperText();
93 :
94 : protected:
95 : /* additional members */
96 : };
97 :
98 : /* Implementation file */
99 : NS_IMPL_ISUPPORTS(nsAccessibleHyperText, nsIAccessibleHyperText)
100 :
101 : nsAccessibleHyperText::nsAccessibleHyperText()
102 : {
103 : /* member initializers and constructor code */
104 : }
105 :
106 : nsAccessibleHyperText::~nsAccessibleHyperText()
107 : {
108 : /* destructor code */
109 : }
110 :
111 : /* readonly attribute long linkCount; */
112 : NS_IMETHODIMP nsAccessibleHyperText::GetLinkCount(int32_t *aLinkCount)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* nsIAccessibleHyperLink getLinkAt (in long index); */
118 : NS_IMETHODIMP nsAccessibleHyperText::GetLinkAt(int32_t index, nsIAccessibleHyperLink * *_retval)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* long getLinkIndex (in nsIAccessibleHyperLink link); */
124 : NS_IMETHODIMP nsAccessibleHyperText::GetLinkIndex(nsIAccessibleHyperLink *link, int32_t *_retval)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* long getLinkIndexAtOffset (in long offset); */
130 : NS_IMETHODIMP nsAccessibleHyperText::GetLinkIndexAtOffset(int32_t offset, int32_t *_retval)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* End of implementation class template. */
136 : #endif
137 :
138 :
139 : #endif /* __gen_nsIAccessibleHyperText_h__ */
|