1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/accessible/public/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 NS_SCRIPTABLE nsIAccessibleHyperText : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IACCESSIBLEHYPERTEXT_IID)
33 :
34 : /* readonly attribute long linkCount; */
35 : NS_SCRIPTABLE NS_IMETHOD GetLinkCount(PRInt32 *aLinkCount) = 0;
36 :
37 : /* nsIAccessibleHyperLink getLinkAt (in long index); */
38 : NS_SCRIPTABLE NS_IMETHOD GetLinkAt(PRInt32 index, nsIAccessibleHyperLink * *_retval NS_OUTPARAM) = 0;
39 :
40 : /* long getLinkIndex (in nsIAccessibleHyperLink link); */
41 : NS_SCRIPTABLE NS_IMETHOD GetLinkIndex(nsIAccessibleHyperLink *link, PRInt32 *_retval NS_OUTPARAM) = 0;
42 :
43 : /* long getLinkIndexAtOffset (in long offset); */
44 : NS_SCRIPTABLE NS_IMETHOD GetLinkIndexAtOffset(PRInt32 offset, PRInt32 *_retval NS_OUTPARAM) = 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_SCRIPTABLE NS_IMETHOD GetLinkCount(PRInt32 *aLinkCount); \
53 : NS_SCRIPTABLE NS_IMETHOD GetLinkAt(PRInt32 index, nsIAccessibleHyperLink * *_retval NS_OUTPARAM); \
54 : NS_SCRIPTABLE NS_IMETHOD GetLinkIndex(nsIAccessibleHyperLink *link, PRInt32 *_retval NS_OUTPARAM); \
55 : NS_SCRIPTABLE NS_IMETHOD GetLinkIndexAtOffset(PRInt32 offset, PRInt32 *_retval NS_OUTPARAM);
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
58 : #define NS_FORWARD_NSIACCESSIBLEHYPERTEXT(_to) \
59 : NS_SCRIPTABLE NS_IMETHOD GetLinkCount(PRInt32 *aLinkCount) { return _to GetLinkCount(aLinkCount); } \
60 : NS_SCRIPTABLE NS_IMETHOD GetLinkAt(PRInt32 index, nsIAccessibleHyperLink * *_retval NS_OUTPARAM) { return _to GetLinkAt(index, _retval); } \
61 : NS_SCRIPTABLE NS_IMETHOD GetLinkIndex(nsIAccessibleHyperLink *link, PRInt32 *_retval NS_OUTPARAM) { return _to GetLinkIndex(link, _retval); } \
62 : NS_SCRIPTABLE NS_IMETHOD GetLinkIndexAtOffset(PRInt32 offset, PRInt32 *_retval NS_OUTPARAM) { return _to GetLinkIndexAtOffset(offset, _retval); }
63 :
64 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
65 : #define NS_FORWARD_SAFE_NSIACCESSIBLEHYPERTEXT(_to) \
66 : NS_SCRIPTABLE NS_IMETHOD GetLinkCount(PRInt32 *aLinkCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLinkCount(aLinkCount); } \
67 : NS_SCRIPTABLE NS_IMETHOD GetLinkAt(PRInt32 index, nsIAccessibleHyperLink * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLinkAt(index, _retval); } \
68 : NS_SCRIPTABLE NS_IMETHOD GetLinkIndex(nsIAccessibleHyperLink *link, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLinkIndex(link, _retval); } \
69 : NS_SCRIPTABLE NS_IMETHOD GetLinkIndexAtOffset(PRInt32 offset, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLinkIndexAtOffset(offset, _retval); }
70 :
71 : #if 0
72 : /* Use the code below as a template for the implementation class for this interface. */
73 :
74 : /* Header file */
75 : class nsAccessibleHyperText : public nsIAccessibleHyperText
76 : {
77 : public:
78 : NS_DECL_ISUPPORTS
79 : NS_DECL_NSIACCESSIBLEHYPERTEXT
80 :
81 : nsAccessibleHyperText();
82 :
83 : private:
84 : ~nsAccessibleHyperText();
85 :
86 : protected:
87 : /* additional members */
88 : };
89 :
90 : /* Implementation file */
91 : NS_IMPL_ISUPPORTS1(nsAccessibleHyperText, nsIAccessibleHyperText)
92 :
93 : nsAccessibleHyperText::nsAccessibleHyperText()
94 : {
95 : /* member initializers and constructor code */
96 : }
97 :
98 : nsAccessibleHyperText::~nsAccessibleHyperText()
99 : {
100 : /* destructor code */
101 : }
102 :
103 : /* readonly attribute long linkCount; */
104 : NS_IMETHODIMP nsAccessibleHyperText::GetLinkCount(PRInt32 *aLinkCount)
105 : {
106 : return NS_ERROR_NOT_IMPLEMENTED;
107 : }
108 :
109 : /* nsIAccessibleHyperLink getLinkAt (in long index); */
110 : NS_IMETHODIMP nsAccessibleHyperText::GetLinkAt(PRInt32 index, nsIAccessibleHyperLink * *_retval NS_OUTPARAM)
111 : {
112 : return NS_ERROR_NOT_IMPLEMENTED;
113 : }
114 :
115 : /* long getLinkIndex (in nsIAccessibleHyperLink link); */
116 : NS_IMETHODIMP nsAccessibleHyperText::GetLinkIndex(nsIAccessibleHyperLink *link, PRInt32 *_retval NS_OUTPARAM)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 :
121 : /* long getLinkIndexAtOffset (in long offset); */
122 : NS_IMETHODIMP nsAccessibleHyperText::GetLinkIndexAtOffset(PRInt32 offset, PRInt32 *_retval NS_OUTPARAM)
123 : {
124 : return NS_ERROR_NOT_IMPLEMENTED;
125 : }
126 :
127 : /* End of implementation class template. */
128 : #endif
129 :
130 :
131 : #endif /* __gen_nsIAccessibleHyperText_h__ */
|