1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/docshell/base/nsIScrollable.idl
3 : */
4 :
5 : #ifndef __gen_nsIScrollable_h__
6 : #define __gen_nsIScrollable_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 :
18 : /* starting interface: nsIScrollable */
19 : #define NS_ISCROLLABLE_IID_STR "919e792a-6490-40b8-bba5-f9e9ad5640c8"
20 :
21 : #define NS_ISCROLLABLE_IID \
22 : {0x919e792a, 0x6490, 0x40b8, \
23 : { 0xbb, 0xa5, 0xf9, 0xe9, 0xad, 0x56, 0x40, 0xc8 }}
24 :
25 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIScrollable : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCROLLABLE_IID)
29 :
30 : enum {
31 : ScrollOrientation_X = 1,
32 : ScrollOrientation_Y = 2
33 : };
34 :
35 : /* long getCurScrollPos (in long scrollOrientation); */
36 : NS_SCRIPTABLE NS_IMETHOD GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *_retval NS_OUTPARAM) = 0;
37 :
38 : /* void setCurScrollPos (in long scrollOrientation, in long curPos); */
39 : NS_SCRIPTABLE NS_IMETHOD SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos) = 0;
40 :
41 : /* void setCurScrollPosEx (in long curHorizontalPos, in long curVerticalPos); */
42 : NS_SCRIPTABLE NS_IMETHOD SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos) = 0;
43 :
44 : /* void getScrollRange (in long scrollOrientation, out long minPos, out long maxPos); */
45 : NS_SCRIPTABLE NS_IMETHOD GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos NS_OUTPARAM, PRInt32 *maxPos NS_OUTPARAM) = 0;
46 :
47 : /* void setScrollRange (in long scrollOrientation, in long minPos, in long maxPos); */
48 : NS_SCRIPTABLE NS_IMETHOD SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos) = 0;
49 :
50 : /* void setScrollRangeEx (in long minHorizontalPos, in long maxHorizontalPos, in long minVerticalPos, in long maxVerticalPos); */
51 : NS_SCRIPTABLE NS_IMETHOD SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos, PRInt32 minVerticalPos, PRInt32 maxVerticalPos) = 0;
52 :
53 : enum {
54 : Scrollbar_Auto = 1,
55 : Scrollbar_Never = 2,
56 : Scrollbar_Always = 3
57 : };
58 :
59 : /* long getDefaultScrollbarPreferences (in long scrollOrientation); */
60 : NS_SCRIPTABLE NS_IMETHOD GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *_retval NS_OUTPARAM) = 0;
61 :
62 : /* void setDefaultScrollbarPreferences (in long scrollOrientation, in long scrollbarPref); */
63 : NS_SCRIPTABLE NS_IMETHOD SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref) = 0;
64 :
65 : /* void getScrollbarVisibility (out boolean verticalVisible, out boolean horizontalVisible); */
66 : NS_SCRIPTABLE NS_IMETHOD GetScrollbarVisibility(bool *verticalVisible NS_OUTPARAM, bool *horizontalVisible NS_OUTPARAM) = 0;
67 :
68 : };
69 :
70 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIScrollable, NS_ISCROLLABLE_IID)
71 :
72 : /* Use this macro when declaring classes that implement this interface. */
73 : #define NS_DECL_NSISCROLLABLE \
74 : NS_SCRIPTABLE NS_IMETHOD GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *_retval NS_OUTPARAM); \
75 : NS_SCRIPTABLE NS_IMETHOD SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos); \
76 : NS_SCRIPTABLE NS_IMETHOD SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos); \
77 : NS_SCRIPTABLE NS_IMETHOD GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos NS_OUTPARAM, PRInt32 *maxPos NS_OUTPARAM); \
78 : NS_SCRIPTABLE NS_IMETHOD SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos); \
79 : NS_SCRIPTABLE NS_IMETHOD SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos, PRInt32 minVerticalPos, PRInt32 maxVerticalPos); \
80 : NS_SCRIPTABLE NS_IMETHOD GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *_retval NS_OUTPARAM); \
81 : NS_SCRIPTABLE NS_IMETHOD SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref); \
82 : NS_SCRIPTABLE NS_IMETHOD GetScrollbarVisibility(bool *verticalVisible NS_OUTPARAM, bool *horizontalVisible NS_OUTPARAM);
83 :
84 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
85 : #define NS_FORWARD_NSISCROLLABLE(_to) \
86 : NS_SCRIPTABLE NS_IMETHOD GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *_retval NS_OUTPARAM) { return _to GetCurScrollPos(scrollOrientation, _retval); } \
87 : NS_SCRIPTABLE NS_IMETHOD SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos) { return _to SetCurScrollPos(scrollOrientation, curPos); } \
88 : NS_SCRIPTABLE NS_IMETHOD SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos) { return _to SetCurScrollPosEx(curHorizontalPos, curVerticalPos); } \
89 : NS_SCRIPTABLE NS_IMETHOD GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos NS_OUTPARAM, PRInt32 *maxPos NS_OUTPARAM) { return _to GetScrollRange(scrollOrientation, minPos, maxPos); } \
90 : NS_SCRIPTABLE NS_IMETHOD SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos) { return _to SetScrollRange(scrollOrientation, minPos, maxPos); } \
91 : NS_SCRIPTABLE NS_IMETHOD SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos, PRInt32 minVerticalPos, PRInt32 maxVerticalPos) { return _to SetScrollRangeEx(minHorizontalPos, maxHorizontalPos, minVerticalPos, maxVerticalPos); } \
92 : NS_SCRIPTABLE NS_IMETHOD GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *_retval NS_OUTPARAM) { return _to GetDefaultScrollbarPreferences(scrollOrientation, _retval); } \
93 : NS_SCRIPTABLE NS_IMETHOD SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref) { return _to SetDefaultScrollbarPreferences(scrollOrientation, scrollbarPref); } \
94 : NS_SCRIPTABLE NS_IMETHOD GetScrollbarVisibility(bool *verticalVisible NS_OUTPARAM, bool *horizontalVisible NS_OUTPARAM) { return _to GetScrollbarVisibility(verticalVisible, horizontalVisible); }
95 :
96 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
97 : #define NS_FORWARD_SAFE_NSISCROLLABLE(_to) \
98 : NS_SCRIPTABLE NS_IMETHOD GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurScrollPos(scrollOrientation, _retval); } \
99 : NS_SCRIPTABLE NS_IMETHOD SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurScrollPos(scrollOrientation, curPos); } \
100 : NS_SCRIPTABLE NS_IMETHOD SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurScrollPosEx(curHorizontalPos, curVerticalPos); } \
101 : NS_SCRIPTABLE NS_IMETHOD GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos NS_OUTPARAM, PRInt32 *maxPos NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrollRange(scrollOrientation, minPos, maxPos); } \
102 : NS_SCRIPTABLE NS_IMETHOD SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetScrollRange(scrollOrientation, minPos, maxPos); } \
103 : NS_SCRIPTABLE NS_IMETHOD SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos, PRInt32 minVerticalPos, PRInt32 maxVerticalPos) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetScrollRangeEx(minHorizontalPos, maxHorizontalPos, minVerticalPos, maxVerticalPos); } \
104 : NS_SCRIPTABLE NS_IMETHOD GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultScrollbarPreferences(scrollOrientation, _retval); } \
105 : NS_SCRIPTABLE NS_IMETHOD SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDefaultScrollbarPreferences(scrollOrientation, scrollbarPref); } \
106 : NS_SCRIPTABLE NS_IMETHOD GetScrollbarVisibility(bool *verticalVisible NS_OUTPARAM, bool *horizontalVisible NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrollbarVisibility(verticalVisible, horizontalVisible); }
107 :
108 : #if 0
109 : /* Use the code below as a template for the implementation class for this interface. */
110 :
111 : /* Header file */
112 : class nsScrollable : public nsIScrollable
113 : {
114 : public:
115 : NS_DECL_ISUPPORTS
116 : NS_DECL_NSISCROLLABLE
117 :
118 : nsScrollable();
119 :
120 : private:
121 : ~nsScrollable();
122 :
123 : protected:
124 : /* additional members */
125 : };
126 :
127 : /* Implementation file */
128 : NS_IMPL_ISUPPORTS1(nsScrollable, nsIScrollable)
129 :
130 : nsScrollable::nsScrollable()
131 : {
132 : /* member initializers and constructor code */
133 : }
134 :
135 : nsScrollable::~nsScrollable()
136 : {
137 : /* destructor code */
138 : }
139 :
140 : /* long getCurScrollPos (in long scrollOrientation); */
141 : NS_IMETHODIMP nsScrollable::GetCurScrollPos(PRInt32 scrollOrientation, PRInt32 *_retval NS_OUTPARAM)
142 : {
143 : return NS_ERROR_NOT_IMPLEMENTED;
144 : }
145 :
146 : /* void setCurScrollPos (in long scrollOrientation, in long curPos); */
147 : NS_IMETHODIMP nsScrollable::SetCurScrollPos(PRInt32 scrollOrientation, PRInt32 curPos)
148 : {
149 : return NS_ERROR_NOT_IMPLEMENTED;
150 : }
151 :
152 : /* void setCurScrollPosEx (in long curHorizontalPos, in long curVerticalPos); */
153 : NS_IMETHODIMP nsScrollable::SetCurScrollPosEx(PRInt32 curHorizontalPos, PRInt32 curVerticalPos)
154 : {
155 : return NS_ERROR_NOT_IMPLEMENTED;
156 : }
157 :
158 : /* void getScrollRange (in long scrollOrientation, out long minPos, out long maxPos); */
159 : NS_IMETHODIMP nsScrollable::GetScrollRange(PRInt32 scrollOrientation, PRInt32 *minPos NS_OUTPARAM, PRInt32 *maxPos NS_OUTPARAM)
160 : {
161 : return NS_ERROR_NOT_IMPLEMENTED;
162 : }
163 :
164 : /* void setScrollRange (in long scrollOrientation, in long minPos, in long maxPos); */
165 : NS_IMETHODIMP nsScrollable::SetScrollRange(PRInt32 scrollOrientation, PRInt32 minPos, PRInt32 maxPos)
166 : {
167 : return NS_ERROR_NOT_IMPLEMENTED;
168 : }
169 :
170 : /* void setScrollRangeEx (in long minHorizontalPos, in long maxHorizontalPos, in long minVerticalPos, in long maxVerticalPos); */
171 : NS_IMETHODIMP nsScrollable::SetScrollRangeEx(PRInt32 minHorizontalPos, PRInt32 maxHorizontalPos, PRInt32 minVerticalPos, PRInt32 maxVerticalPos)
172 : {
173 : return NS_ERROR_NOT_IMPLEMENTED;
174 : }
175 :
176 : /* long getDefaultScrollbarPreferences (in long scrollOrientation); */
177 : NS_IMETHODIMP nsScrollable::GetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 *_retval NS_OUTPARAM)
178 : {
179 : return NS_ERROR_NOT_IMPLEMENTED;
180 : }
181 :
182 : /* void setDefaultScrollbarPreferences (in long scrollOrientation, in long scrollbarPref); */
183 : NS_IMETHODIMP nsScrollable::SetDefaultScrollbarPreferences(PRInt32 scrollOrientation, PRInt32 scrollbarPref)
184 : {
185 : return NS_ERROR_NOT_IMPLEMENTED;
186 : }
187 :
188 : /* void getScrollbarVisibility (out boolean verticalVisible, out boolean horizontalVisible); */
189 : NS_IMETHODIMP nsScrollable::GetScrollbarVisibility(bool *verticalVisible NS_OUTPARAM, bool *horizontalVisible NS_OUTPARAM)
190 : {
191 : return NS_ERROR_NOT_IMPLEMENTED;
192 : }
193 :
194 : /* End of implementation class template. */
195 : #endif
196 :
197 :
198 : #endif /* __gen_nsIScrollable_h__ */
|