1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XScrollBar.idl,v $
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
>
37 #ifndef __com_sun_star_awt_XAdjustmentListener_idl__
38 #include
<com
/sun
/star
/awt
/XAdjustmentListener.idl
>
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
76 [oneway
] void setValues
( [in] long nValue
,
80 //-------------------------------------------------------------------------
82 /** returns the current scroll value of the scroll bar.
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.
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
145 long getOrientation
();
149 //=============================================================================