merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / accessibility / XAccessibleValue.idl
blobb5d8cb8482ffa1295ec34b9db0e0932faf26777d
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef __com_sun_star_accessibility_XAccessibleValue_idl__
29 #define __com_sun_star_accessibility_XAccessibleValue_idl__
31 #ifndef __com_sun_star_uno_XInterface_idl__
32 #include <com/sun/star/uno/XInterface.idl>
33 #endif
35 module com { module sun { module star { module accessibility {
37 /** Implement this interface to give access to a single numerical value.
39 <p>The <type>XAccessibleValue</type> interface represents a single
40 numerical value and should be implemented by any class that supports
41 numerical value like scroll bars and spin boxes. This interface lets
42 you access the value and its upper and lower bounds.</p>
44 @since OOo 1.1.2
46 published interface XAccessibleValue : ::com::sun::star::uno::XInterface
48 /** Returns the value of this object as a number.
50 <p>The exact return type is implementation dependent. Typical types
51 are long and double.</p>
53 @return
54 Returns the current value represented by this object.
56 any getCurrentValue ();
58 /** Sets the value of this object to the given number.
60 <p>The argument is clipped to the valid interval whose upper and
61 lower bounds are returned by the methods
62 <member>getMaximumAccessibleValue</member> and
63 <member>getMinimumAccessibleValue</member>, i.e. if it is lower than
64 the minimum value the new value will be the minimum and if it is
65 greater than the maximum then the new value will be the maximum.</p>
67 @param aNumber
68 The new value represented by this object. The set of admissible
69 types for this argument is implementation dependent.
71 @return
72 Returns <TRUE/> if the new value could successfully be set and
73 <FALSE/> otherwise.
75 boolean setCurrentValue ([in] any aNumber);
77 /** Returns the maximal value that can be represented by this object.
79 <p>The type of the returned value is implementation dependent. It
80 does not have to be the same type as that returned by
81 <member>getCurrentAccessibleValue</member>.</p>
83 @return
84 Returns the maximal value in an implementation dependent type.
85 If this object has no upper bound then an empty object is
86 returned.
88 any getMaximumValue ();
90 /** Returns the minimal value that can be represented by this object.
92 <p>The type of the returned value is implementation dependent. It
93 does not have to be the same type as that returned by
94 <member>getCurrentAccessibleValue</member>.</p>
96 @return
97 Returns the minimal value in an implementation dependent type.
98 If this object has no upper bound then an empty object is
99 returned.
101 any getMinimumValue ();
104 }; }; }; };
106 #endif