Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / offapi / com / sun / star / accessibility / XAccessibleValue.idl
blob842f8776ae252746b43264b8c631b46726c44064
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 module com { module sun { module star { module accessibility {
22 /** Implement this interface to give access to a single numerical value.
24 <p>The XAccessibleValue interface represents a single
25 numerical value and should be implemented by any class that supports
26 numerical value like scroll bars and spin boxes. This interface lets
27 you access the value and its upper and lower bounds.</p>
29 @since OOo 1.1.2
31 interface XAccessibleValue : ::com::sun::star::uno::XInterface
33 /** Returns the value of this object as a number.
35 <p>The exact return type is implementation dependent. Typical types
36 are long and double.</p>
38 @return
39 Returns the current value represented by this object.
41 any getCurrentValue ();
43 /** Sets the value of this object to the given number.
45 <p>The argument is clipped to the valid interval whose upper and
46 lower bounds are returned by the methods
47 getMaximumAccessibleValue() and
48 getMinimumAccessibleValue(), i.e. if it is lower than
49 the minimum value the new value will be the minimum and if it is
50 greater than the maximum then the new value will be the maximum.</p>
52 @param aNumber
53 The new value represented by this object. The set of admissible
54 types for this argument is implementation dependent.
56 @return
57 Returns `TRUE` if the new value could successfully be set and
58 `FALSE` otherwise.
60 boolean setCurrentValue ([in] any aNumber);
62 /** Returns the maximal value that can be represented by this object.
64 <p>The type of the returned value is implementation dependent. It
65 does not have to be the same type as that returned by
66 getCurrentAccessibleValue().</p>
68 @return
69 Returns the maximal value in an implementation dependent type.
70 If this object has no upper bound then an empty object is
71 returned.
73 any getMaximumValue ();
75 /** Returns the minimal value that can be represented by this object.
77 <p>The type of the returned value is implementation dependent. It
78 does not have to be the same type as that returned by
79 getCurrentAccessibleValue().</p>
81 @return
82 Returns the minimal value in an implementation dependent type.
83 If this object has no lower bound then an empty object is
84 returned.
86 any getMinimumValue ();
88 /** Returns the minimal increment by which the value represented by this
89 object can be adjusted.
91 <p>The type of the returned value is implementation dependent. It
92 does not have to be the same type as that returned by
93 getCurrentAccessibleValue().</p>
95 @return
96 Returns the minimal increment value in an implementation dependent type.
97 If this object has no minimum increment value, then an empty object is
98 returned.
100 @since LibreOffice 7.3
102 any getMinimumIncrement ();
105 }; }; }; };
107 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */