gecko/other-licenses/ia2/AccessibleValue.idl
Alexander Surkov 162d6d3e9c Bug 512424 - implement IAccessibleTable2, r=marcoz, davidb, sr=neil
--HG--
rename : accessible/src/atk/nsXULTreeAccessibleWrap.h => accessible/src/atk/nsXULTreeGridAccessibleWrap.h
rename : accessible/src/mac/nsXULTreeAccessibleWrap.h => accessible/src/mac/nsXULTreeGridAccessibleWrap.h
rename : accessible/src/msaa/nsXULTreeAccessibleWrap.cpp => accessible/src/msaa/nsXULTreeGridAccessibleWrap.cpp
rename : accessible/src/msaa/nsXULTreeAccessibleWrap.h => accessible/src/msaa/nsXULTreeGridAccessibleWrap.h
rename : accessible/src/other/nsXULTreeAccessibleWrap.h => accessible/src/other/nsXULTreeGridAccessibleWrap.h
rename : accessible/src/xul/nsXULSelectAccessible.cpp => accessible/src/xul/nsXULListboxAccessible.cpp
rename : accessible/src/xul/nsXULSelectAccessible.h => accessible/src/xul/nsXULListboxAccessible.h
rename : accessible/tests/mochitest/test_relations_table.html => accessible/tests/mochitest/test_table_headers.html
rename : accessible/tests/mochitest/test_nsIAccessibleTable_listboxes.xul => accessible/tests/mochitest/test_table_sels_listbox.xul
rename : accessible/tests/mochitest/test_elm_table.html => accessible/tests/mochitest/test_table_struct.html
2009-09-11 09:07:56 +08:00

108 lines
3.9 KiB
Plaintext

/*************************************************************************
*
* File Name (AccessibleValue)
*
* IAccessible2 IDL Specification
*
* Copyright (c) Linux Foundation 2007, 2008
* Copyright (c) IBM Corp. 2006
* Copyright (c) Sun Microsystems, Inc. 2000, 2006
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02110-1301 USA
*
************************************************************************/
import "objidl.idl";
import "oaidl.idl";
import "oleacc.idl";
/** @brief This interface gives access to a single numerical value.
The %IAccessibleValue interface represents a single numerical value and should
be implemented by any class that supports numerical value like progress bars
and spin boxes. This interface lets you access the value and its upper and
lower bounds.
*/
[object, uuid(35855B5B-C566-4fd0-A7B1-E65465600394)]
interface IAccessibleValue : IUnknown
{
/** @brief Returns the value of this object as a number.
The exact return type is implementation dependent. Typical types are long and
double.
@param [out] currentValue
Returns the current value represented by this object. See the section about
@ref _variants "VARIANTs" for additional information.
@retval S_OK
@retval S_FALSE if there is nothing to return, [out] value is NULL
*/
[propget] HRESULT currentValue
(
[out, retval] VARIANT *currentValue
);
/** @brief Sets the value of this object to the given number.
The argument is clipped to the valid interval whose upper and lower
bounds are returned by the methods IAccessibleValue::maximumValue and
IAccessibleValue::minimumValue, i.e. if it is lower than the minimum
value the new value will be the minimum and if it is greater than the
maximum then the new value will be the maximum.
@param [out] value
The new value represented by this object. The set of admissible types for
this argument is implementation dependent.
@retval S_OK
*/
HRESULT setCurrentValue
(
[in] VARIANT value
);
/** @brief Returns the maximal value that can be represented by this object.
The type of the returned value is implementation dependent. It does not have
to be the same type as that returned by method IAccessibleValue::currentValue.
@param [out] maximumValue
Returns the maximal value in an implementation dependent type. If this object
has no upper bound then an empty object is returned. See the section about
@ref _variants "VARIANTs" for additional information.
@retval S_OK
*/
[propget] HRESULT maximumValue
(
[out, retval] VARIANT *maximumValue
);
/** @brief Returns the minimal value that can be represented by this object.
The type of the returned value is implementation dependent. It does not have
to be the same type as that returned by method IAccessibleValue::currentValue.
@param [out] minimumValue
Returns the minimal value in an implementation dependent type. If this object
has no lower bound then an empty object is returned. See the section about
@ref _variants "VARIANTs" for additional information.
@retval S_OK
*/
[propget] HRESULT minimumValue
(
[out, retval] VARIANT *minimumValue
);
};