merge the formfield patch from ooo-build
[ooovba.git] / offapi / com / sun / star / awt / XScrollBar.idl
blob0362e28dd3f738b644b67988f5392d100c4fb695
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XScrollBar.idl,v $
10 * $Revision: 1.8 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_awt_XScrollBar_idl__
31 #define __com_sun_star_awt_XScrollBar_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include <com/sun/star/uno/XInterface.idl>
35 #endif
37 #ifndef __com_sun_star_awt_XAdjustmentListener_idl__
38 #include <com/sun/star/awt/XAdjustmentListener.idl>
39 #endif
42 //=============================================================================
44 module com { module sun { module star { module awt {
46 //=============================================================================
48 /** gives access to the value and settings of a scroll bar and makes it possible
49 to register adjustment event listeners.
51 published interface XScrollBar: com::sun::star::uno::XInterface
53 //-------------------------------------------------------------------------
55 /** registers an adjustment event listener.
57 [oneway] void addAdjustmentListener( [in] com::sun::star::awt::XAdjustmentListener l );
59 //-------------------------------------------------------------------------
61 /** unregisters an adjustment event listener.
63 [oneway] void removeAdjustmentListener( [in] com::sun::star::awt::XAdjustmentListener l );
65 //-------------------------------------------------------------------------
67 /** sets the scroll value of the scroll bar.
69 [oneway] void setValue( [in] long n );
71 //-------------------------------------------------------------------------
73 /** sets the scroll value, visible area and maximum scroll value
74 of the scoll bar.
76 [oneway] void setValues( [in] long nValue,
77 [in] long nVisible,
78 [in] long nMax );
80 //-------------------------------------------------------------------------
82 /** returns the current scroll value of the scroll bar.
84 long getValue();
86 //-------------------------------------------------------------------------
88 /** sets the maximum scroll value of the scroll bar.
90 [oneway] void setMaximum( [in] long n );
92 //-------------------------------------------------------------------------
94 /** returns the currently set maximum scroll value of the scroll bar.
96 long getMaximum();
98 //-------------------------------------------------------------------------
100 /** sets the increment for a single line move.
102 [oneway] void setLineIncrement( [in] long n );
104 //-------------------------------------------------------------------------
106 /** returns the currently set increment for a single line move.
108 long getLineIncrement();
110 //-------------------------------------------------------------------------
112 /** sets the increment for a block move.
114 [oneway] void setBlockIncrement( [in] long n );
116 //-------------------------------------------------------------------------
118 /** returns the currently set increment for a block move.
120 long getBlockIncrement();
122 //-------------------------------------------------------------------------
124 /** sets the visible size of the scroll bar.
126 [oneway] void setVisibleSize( [in] long n );
128 //-------------------------------------------------------------------------
130 /** returns the currently visible size of the scroll bar.
132 long getVisibleSize();
134 //-------------------------------------------------------------------------
136 /** sets the <type>ScrollBarOrientation</type> of the scroll bar.
138 [oneway] void setOrientation( [in] long n );
140 //-------------------------------------------------------------------------
142 /** returns the currently set <type>ScrollBarOrientation</type> of the
143 scroll bar.
145 long getOrientation();
149 //=============================================================================
151 }; }; }; };
153 #endif