Bump for 3.6-28
[LibreOffice.git] / offapi / com / sun / star / awt / XSpinValue.idl
blob1eab94e4a0be16e8fcbf698ef780f82839f3b3ce
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef __com_sun_star_awt_XSpinValue_idl__
29 #define __com_sun_star_awt_XSpinValue_idl__
31 #include <com/sun/star/uno/XInterface.idl>
32 #include <com/sun/star/awt/XAdjustmentListener.idl>
33 #include <com/sun/star/lang/NoSupportException.idl>
35 //=============================================================================
37 module com { module sun { module star { module awt {
39 //=============================================================================
41 /** gives access to the value and settings of a control which is associated with
42 a spinnable value.
44 interface XSpinValue : com::sun::star::uno::XInterface
46 //-------------------------------------------------------------------------
48 /** registers an adjustment event listener.
50 [oneway] void addAdjustmentListener( [in] com::sun::star::awt::XAdjustmentListener listener );
52 //-------------------------------------------------------------------------
54 /** unregisters an adjustment event listener.
56 [oneway] void removeAdjustmentListener( [in] com::sun::star::awt::XAdjustmentListener listener );
58 //-------------------------------------------------------------------------
60 /** sets the current value of the control
62 [oneway] void setValue( [in] long value );
64 //-------------------------------------------------------------------------
66 /** sets the value and value range of the control
68 @see setValue
69 @see setMinimum
70 @see setMaximum
72 [oneway] void setValues( [in] long minValue, [in] long maxValue, [in] long currentValue );
74 //-------------------------------------------------------------------------
76 /** returns the current value of the control.
78 long getValue();
80 //-------------------------------------------------------------------------
82 /** sets the minimum value which can be set on the control
84 [oneway] void setMinimum( [in] long minValue );
86 //-------------------------------------------------------------------------
88 /** sets the maximum value which can be set on the control
90 [oneway] void setMaximum( [in] long maxValue );
92 //-------------------------------------------------------------------------
94 /** returns the currently set minimum value of the control
96 long getMinimum();
98 //-------------------------------------------------------------------------
100 /** returns the currently set maximum value of the control
102 long getMaximum();
104 //-------------------------------------------------------------------------
106 /** sets the value by which the current value of the control
107 should be incremented or decremented upon spinning.
109 [oneway] void setSpinIncrement( [in] long spinIncrement );
111 //-------------------------------------------------------------------------
113 /** returns the value by which the current value of the control
114 should be incremented or decremented upon spinning.
116 long getSpinIncrement();
118 //-------------------------------------------------------------------------
120 /** controls the orientation of the control
121 @param orientation
122 one of the <type>ScrollBarOrientation</type> values specifying the orientation
123 @throws com::sun::star::lang::NoSupportException
124 in case the given orientation is not supported
126 void setOrientation( [in] long orientation )
127 raises( com::sun::star::lang::NoSupportException );
129 //-------------------------------------------------------------------------
131 /** returns the current orientation of the control
133 long getOrientation();
137 //=============================================================================
139 }; }; }; };
141 #endif
143 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */