Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / accessibility / XAccessibleValue.idl
blobd25c814354f0abcd39a8a218c863206a50f849ab
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 .
20 #ifndef __com_sun_star_accessibility_XAccessibleValue_idl__
21 #define __com_sun_star_accessibility_XAccessibleValue_idl__
23 #include <com/sun/star/uno/XInterface.idl>
25 module com { module sun { module star { module accessibility {
27 /** Implement this interface to give access to a single numerical value.
29 <p>The XAccessibleValue interface represents a single
30 numerical value and should be implemented by any class that supports
31 numerical value like scroll bars and spin boxes. This interface lets
32 you access the value and its upper and lower bounds.</p>
34 @since OOo 1.1.2
36 interface XAccessibleValue : ::com::sun::star::uno::XInterface
38 /** Returns the value of this object as a number.
40 <p>The exact return type is implementation dependent. Typical types
41 are long and double.</p>
43 @return
44 Returns the current value represented by this object.
46 any getCurrentValue ();
48 /** Sets the value of this object to the given number.
50 <p>The argument is clipped to the valid interval whose upper and
51 lower bounds are returned by the methods
52 getMaximumAccessibleValue() and
53 getMinimumAccessibleValue(), i.e. if it is lower than
54 the minimum value the new value will be the minimum and if it is
55 greater than the maximum then the new value will be the maximum.</p>
57 @param aNumber
58 The new value represented by this object. The set of admissible
59 types for this argument is implementation dependent.
61 @return
62 Returns `TRUE` if the new value could successfully be set and
63 `FALSE` otherwise.
65 boolean setCurrentValue ([in] any aNumber);
67 /** Returns the maximal value that can be represented by this object.
69 <p>The type of the returned value is implementation dependent. It
70 does not have to be the same type as that returned by
71 getCurrentAccessibleValue().</p>
73 @return
74 Returns the maximal value in an implementation dependent type.
75 If this object has no upper bound then an empty object is
76 returned.
78 any getMaximumValue ();
80 /** Returns the minimal value that can be represented by this object.
82 <p>The type of the returned value is implementation dependent. It
83 does not have to be the same type as that returned by
84 getCurrentAccessibleValue().</p>
86 @return
87 Returns the minimal value in an implementation dependent type.
88 If this object has no upper bound then an empty object is
89 returned.
91 any getMinimumValue ();
94 }; }; }; };
96 #endif
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */