Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / awt / XSpinValue.idl
blob1001ce0d8ce721aeecf02ac03b316ff201af77f6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __com_sun_star_awt_XSpinValue_idl__
20 #define __com_sun_star_awt_XSpinValue_idl__
22 #include <com/sun/star/uno/XInterface.idl>
23 #include <com/sun/star/awt/XAdjustmentListener.idl>
24 #include <com/sun/star/lang/NoSupportException.idl>
27 module com { module sun { module star { module awt {
30 /** gives access to the value and settings of a control which is associated with
31 a spinnable value.
33 interface XSpinValue : com::sun::star::uno::XInterface
36 /** registers an adjustment event listener.
38 void addAdjustmentListener( [in] com::sun::star::awt::XAdjustmentListener listener );
41 /** unregisters an adjustment event listener.
43 void removeAdjustmentListener( [in] com::sun::star::awt::XAdjustmentListener listener );
46 /** sets the current value of the control
48 void setValue( [in] long value );
51 /** sets the value and value range of the control
53 @see setValue
54 @see setMinimum
55 @see setMaximum
57 void setValues( [in] long minValue, [in] long maxValue, [in] long currentValue );
60 /** returns the current value of the control.
62 long getValue();
65 /** sets the minimum value which can be set on the control
67 void setMinimum( [in] long minValue );
70 /** sets the maximum value which can be set on the control
72 void setMaximum( [in] long maxValue );
75 /** returns the currently set minimum value of the control
77 long getMinimum();
80 /** returns the currently set maximum value of the control
82 long getMaximum();
85 /** sets the value by which the current value of the control
86 should be incremented or decremented upon spinning.
88 void setSpinIncrement( [in] long spinIncrement );
91 /** returns the value by which the current value of the control
92 should be incremented or decremented upon spinning.
94 long getSpinIncrement();
97 /** controls the orientation of the control
98 @param orientation
99 one of the ScrollBarOrientation values specifying the orientation
100 @throws com::sun::star::lang::NoSupportException
101 in case the given orientation is not supported
103 void setOrientation( [in] long orientation )
104 raises( com::sun::star::lang::NoSupportException );
107 /** returns the current orientation of the control
109 long getOrientation();
114 }; }; }; };
116 #endif
118 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */