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 ************************************************************************/
29 #ifndef __com_sun_star_accessibility_XAccessibleValue_idl__
30 #define __com_sun_star_accessibility_XAccessibleValue_idl__
32 #include
<com
/sun
/star
/uno
/XInterface.idl
>
34 module com
{ module sun
{ module star
{ module accessibility
{
36 /** Implement this interface to give access to a single numerical value.
38 <p>The <type>XAccessibleValue</type> interface represents a single
39 numerical value and should be implemented by any class that supports
40 numerical value like scroll bars and spin boxes. This interface lets
41 you access the value and its upper and lower bounds.</p>
45 published
interface XAccessibleValue
: ::com
::sun
::star
::uno
::XInterface
47 /** Returns the value of this object as a number.
49 <p>The exact return type is implementation dependent. Typical types
50 are long and double.</p>
53 Returns the current value represented by this object.
55 any getCurrentValue
();
57 /** Sets the value of this object to the given number.
59 <p>The argument is clipped to the valid interval whose upper and
60 lower bounds are returned by the methods
61 <member>getMaximumAccessibleValue</member> and
62 <member>getMinimumAccessibleValue</member>, i.e. if it is lower than
63 the minimum value the new value will be the minimum and if it is
64 greater than the maximum then the new value will be the maximum.</p>
67 The new value represented by this object. The set of admissible
68 types for this argument is implementation dependent.
71 Returns <TRUE/> if the new value could successfully be set and
74 boolean setCurrentValue
([in] any aNumber
);
76 /** Returns the maximal value that can be represented by this object.
78 <p>The type of the returned value is implementation dependent. It
79 does not have to be the same type as that returned by
80 <member>getCurrentAccessibleValue</member>.</p>
83 Returns the maximal value in an implementation dependent type.
84 If this object has no upper bound then an empty object is
87 any getMaximumValue
();
89 /** Returns the minimal value that can be represented by this object.
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 <member>getCurrentAccessibleValue</member>.</p>
96 Returns the minimal value in an implementation dependent type.
97 If this object has no upper bound then an empty object is
100 any getMinimumValue
();
107 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */