1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/layout/xul/base/public/nsIListBoxObject.idl
3 : */
4 :
5 : #ifndef __gen_nsIListBoxObject_h__
6 : #define __gen_nsIListBoxObject_h__
7 :
8 :
9 : #ifndef __gen_nsIBoxObject_h__
10 : #include "nsIBoxObject.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 nsIDOMElement; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIListBoxObject */
21 : #define NS_ILISTBOXOBJECT_IID_STR "aa9def4e-2e59-412d-a6df-b76f52167795"
22 :
23 : #define NS_ILISTBOXOBJECT_IID \
24 : {0xaa9def4e, 0x2e59, 0x412d, \
25 : { 0xa6, 0xdf, 0xb7, 0x6f, 0x52, 0x16, 0x77, 0x95 }}
26 :
27 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIListBoxObject : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILISTBOXOBJECT_IID)
31 :
32 : /* long getRowCount (); */
33 : NS_SCRIPTABLE NS_IMETHOD GetRowCount(PRInt32 *_retval NS_OUTPARAM) = 0;
34 :
35 : /* long getNumberOfVisibleRows (); */
36 : NS_SCRIPTABLE NS_IMETHOD GetNumberOfVisibleRows(PRInt32 *_retval NS_OUTPARAM) = 0;
37 :
38 : /* long getIndexOfFirstVisibleRow (); */
39 : NS_SCRIPTABLE NS_IMETHOD GetIndexOfFirstVisibleRow(PRInt32 *_retval NS_OUTPARAM) = 0;
40 :
41 : /* void ensureIndexIsVisible (in long rowIndex); */
42 : NS_SCRIPTABLE NS_IMETHOD EnsureIndexIsVisible(PRInt32 rowIndex) = 0;
43 :
44 : /* void scrollToIndex (in long rowIndex); */
45 : NS_SCRIPTABLE NS_IMETHOD ScrollToIndex(PRInt32 rowIndex) = 0;
46 :
47 : /* void scrollByLines (in long numLines); */
48 : NS_SCRIPTABLE NS_IMETHOD ScrollByLines(PRInt32 numLines) = 0;
49 :
50 : /* nsIDOMElement getItemAtIndex (in long index); */
51 : NS_SCRIPTABLE NS_IMETHOD GetItemAtIndex(PRInt32 index, nsIDOMElement * *_retval NS_OUTPARAM) = 0;
52 :
53 : /* long getIndexOfItem (in nsIDOMElement item); */
54 : NS_SCRIPTABLE NS_IMETHOD GetIndexOfItem(nsIDOMElement *item, PRInt32 *_retval NS_OUTPARAM) = 0;
55 :
56 : };
57 :
58 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIListBoxObject, NS_ILISTBOXOBJECT_IID)
59 :
60 : /* Use this macro when declaring classes that implement this interface. */
61 : #define NS_DECL_NSILISTBOXOBJECT \
62 : NS_SCRIPTABLE NS_IMETHOD GetRowCount(PRInt32 *_retval NS_OUTPARAM); \
63 : NS_SCRIPTABLE NS_IMETHOD GetNumberOfVisibleRows(PRInt32 *_retval NS_OUTPARAM); \
64 : NS_SCRIPTABLE NS_IMETHOD GetIndexOfFirstVisibleRow(PRInt32 *_retval NS_OUTPARAM); \
65 : NS_SCRIPTABLE NS_IMETHOD EnsureIndexIsVisible(PRInt32 rowIndex); \
66 : NS_SCRIPTABLE NS_IMETHOD ScrollToIndex(PRInt32 rowIndex); \
67 : NS_SCRIPTABLE NS_IMETHOD ScrollByLines(PRInt32 numLines); \
68 : NS_SCRIPTABLE NS_IMETHOD GetItemAtIndex(PRInt32 index, nsIDOMElement * *_retval NS_OUTPARAM); \
69 : NS_SCRIPTABLE NS_IMETHOD GetIndexOfItem(nsIDOMElement *item, PRInt32 *_retval NS_OUTPARAM);
70 :
71 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
72 : #define NS_FORWARD_NSILISTBOXOBJECT(_to) \
73 : NS_SCRIPTABLE NS_IMETHOD GetRowCount(PRInt32 *_retval NS_OUTPARAM) { return _to GetRowCount(_retval); } \
74 : NS_SCRIPTABLE NS_IMETHOD GetNumberOfVisibleRows(PRInt32 *_retval NS_OUTPARAM) { return _to GetNumberOfVisibleRows(_retval); } \
75 : NS_SCRIPTABLE NS_IMETHOD GetIndexOfFirstVisibleRow(PRInt32 *_retval NS_OUTPARAM) { return _to GetIndexOfFirstVisibleRow(_retval); } \
76 : NS_SCRIPTABLE NS_IMETHOD EnsureIndexIsVisible(PRInt32 rowIndex) { return _to EnsureIndexIsVisible(rowIndex); } \
77 : NS_SCRIPTABLE NS_IMETHOD ScrollToIndex(PRInt32 rowIndex) { return _to ScrollToIndex(rowIndex); } \
78 : NS_SCRIPTABLE NS_IMETHOD ScrollByLines(PRInt32 numLines) { return _to ScrollByLines(numLines); } \
79 : NS_SCRIPTABLE NS_IMETHOD GetItemAtIndex(PRInt32 index, nsIDOMElement * *_retval NS_OUTPARAM) { return _to GetItemAtIndex(index, _retval); } \
80 : NS_SCRIPTABLE NS_IMETHOD GetIndexOfItem(nsIDOMElement *item, PRInt32 *_retval NS_OUTPARAM) { return _to GetIndexOfItem(item, _retval); }
81 :
82 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
83 : #define NS_FORWARD_SAFE_NSILISTBOXOBJECT(_to) \
84 : NS_SCRIPTABLE NS_IMETHOD GetRowCount(PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRowCount(_retval); } \
85 : NS_SCRIPTABLE NS_IMETHOD GetNumberOfVisibleRows(PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNumberOfVisibleRows(_retval); } \
86 : NS_SCRIPTABLE NS_IMETHOD GetIndexOfFirstVisibleRow(PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexOfFirstVisibleRow(_retval); } \
87 : NS_SCRIPTABLE NS_IMETHOD EnsureIndexIsVisible(PRInt32 rowIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnsureIndexIsVisible(rowIndex); } \
88 : NS_SCRIPTABLE NS_IMETHOD ScrollToIndex(PRInt32 rowIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollToIndex(rowIndex); } \
89 : NS_SCRIPTABLE NS_IMETHOD ScrollByLines(PRInt32 numLines) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollByLines(numLines); } \
90 : NS_SCRIPTABLE NS_IMETHOD GetItemAtIndex(PRInt32 index, nsIDOMElement * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItemAtIndex(index, _retval); } \
91 : NS_SCRIPTABLE NS_IMETHOD GetIndexOfItem(nsIDOMElement *item, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIndexOfItem(item, _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 nsListBoxObject : public nsIListBoxObject
98 : {
99 : public:
100 : NS_DECL_ISUPPORTS
101 : NS_DECL_NSILISTBOXOBJECT
102 :
103 : nsListBoxObject();
104 :
105 : private:
106 : ~nsListBoxObject();
107 :
108 : protected:
109 : /* additional members */
110 : };
111 :
112 : /* Implementation file */
113 : NS_IMPL_ISUPPORTS1(nsListBoxObject, nsIListBoxObject)
114 :
115 : nsListBoxObject::nsListBoxObject()
116 : {
117 : /* member initializers and constructor code */
118 : }
119 :
120 : nsListBoxObject::~nsListBoxObject()
121 : {
122 : /* destructor code */
123 : }
124 :
125 : /* long getRowCount (); */
126 : NS_IMETHODIMP nsListBoxObject::GetRowCount(PRInt32 *_retval NS_OUTPARAM)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* long getNumberOfVisibleRows (); */
132 : NS_IMETHODIMP nsListBoxObject::GetNumberOfVisibleRows(PRInt32 *_retval NS_OUTPARAM)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* long getIndexOfFirstVisibleRow (); */
138 : NS_IMETHODIMP nsListBoxObject::GetIndexOfFirstVisibleRow(PRInt32 *_retval NS_OUTPARAM)
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* void ensureIndexIsVisible (in long rowIndex); */
144 : NS_IMETHODIMP nsListBoxObject::EnsureIndexIsVisible(PRInt32 rowIndex)
145 : {
146 : return NS_ERROR_NOT_IMPLEMENTED;
147 : }
148 :
149 : /* void scrollToIndex (in long rowIndex); */
150 : NS_IMETHODIMP nsListBoxObject::ScrollToIndex(PRInt32 rowIndex)
151 : {
152 : return NS_ERROR_NOT_IMPLEMENTED;
153 : }
154 :
155 : /* void scrollByLines (in long numLines); */
156 : NS_IMETHODIMP nsListBoxObject::ScrollByLines(PRInt32 numLines)
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 :
161 : /* nsIDOMElement getItemAtIndex (in long index); */
162 : NS_IMETHODIMP nsListBoxObject::GetItemAtIndex(PRInt32 index, nsIDOMElement * *_retval NS_OUTPARAM)
163 : {
164 : return NS_ERROR_NOT_IMPLEMENTED;
165 : }
166 :
167 : /* long getIndexOfItem (in nsIDOMElement item); */
168 : NS_IMETHODIMP nsListBoxObject::GetIndexOfItem(nsIDOMElement *item, PRInt32 *_retval NS_OUTPARAM)
169 : {
170 : return NS_ERROR_NOT_IMPLEMENTED;
171 : }
172 :
173 : /* End of implementation class template. */
174 : #endif
175 :
176 : nsresult
177 : NS_NewListBoxObject(nsIBoxObject** aResult);
178 :
179 : #endif /* __gen_nsIListBoxObject_h__ */
|