LibreOffice Module winaccessibility (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
CAccValue Class Reference

CAccValue implements IAccessibleValue interface. More...

#include <AccValue.h>

Inheritance diagram for CAccValue:
[legend]
Collaboration diagram for CAccValue:
[legend]

Public Member Functions

 CAccValue ()
 
virtual ~CAccValue ()
 
HRESULT SmartQI (REFIID iid, void **ppvObject)
 
STDMETHOD() get_currentValue (VARIANT *currentValue) override
 Get current value. More...
 
STDMETHOD() setCurrentValue (VARIANT value) override
 Set current value. More...
 
STDMETHOD() get_maximumValue (VARIANT *maximumValue) override
 Get maximum value. More...
 
STDMETHOD() get_minimumValue (VARIANT *minimumValue) override
 Get minimum value. More...
 
STDMETHOD() put_XInterface (hyper pXInterface) override
 Put valid UNO interface into com class. More...
 
HRESULT setCurrentValue ([in] VARIANT value)
 Sets the value of this object to the given number. More...
 
- Public Member Functions inherited from CUNOXWrapper
 CUNOXWrapper ()
 
STDMETHOD() put_XInterface (hyper pXInterface) override
 
STDMETHOD() put_XSubInterface (hyper) override
 
HRESULT put_XInterface (hyper pXInterface)
 
HRESULT put_XSubInterface (hyper pXSubInterface)
 

Static Public Member Functions

static HRESULT WINAPI SmartQI_ (void *pv, REFIID iid, void **ppvObject, DWORD_PTR)
 

Private Member Functions

css::accessibility::XAccessibleValue * GetXInterface ()
 

Private Attributes

css::uno::Reference< css::accessibility::XAccessibleValue > pRXVal
 

Additional Inherited Members

- Protected Member Functions inherited from CUNOXWrapper
 ~CUNOXWrapper ()
 
- Protected Attributes inherited from CUNOXWrapper
css::accessibility::XAccessible * pUNOInterface
 
- Properties inherited from IAccessibleValue
VARIANT currentValue [get]
 Returns the value of this object as a number. More...
 
VARIANT maximumValue [get]
 Returns the maximal value that can be represented by this object. More...
 
VARIANT minimumValue [get]
 Returns the minimal value that can be represented by this object. More...
 

Detailed Description

CAccValue implements IAccessibleValue interface.

Definition at line 31 of file AccValue.h.

Constructor & Destructor Documentation

◆ CAccValue()

CAccValue::CAccValue ( )
inline

Definition at line 38 of file AccValue.h.

◆ ~CAccValue()

virtual CAccValue::~CAccValue ( )
inlinevirtual

Definition at line 41 of file AccValue.h.

Member Function Documentation

◆ get_currentValue()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::get_currentValue ( VARIANT *  currentValue)
override

Get current value.

Parameters
currentValueVariant that accepts current value.
Returns
Result.

Definition at line 39 of file AccValue.cxx.

References CMAccessible::ConvertAnyToVariant(), IAccessibleValue::currentValue, GetXInterface(), and pRXVal.

◆ get_maximumValue()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::get_maximumValue ( VARIANT *  maximumValue)
override

Get maximum value.

Parameters
maximumValueVariant that accepts maximum value.
Returns
Result.

Definition at line 151 of file AccValue.cxx.

References CMAccessible::ConvertAnyToVariant(), GetXInterface(), IAccessibleValue::maximumValue, and pRXVal.

◆ get_minimumValue()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::get_minimumValue ( VARIANT *  minimumValue)
override

Get minimum value.

Parameters
minimumValueVariant that accepts minimum value.
Returns
Result.

Definition at line 180 of file AccValue.cxx.

References CMAccessible::ConvertAnyToVariant(), GetXInterface(), IAccessibleValue::minimumValue, and pRXVal.

◆ GetXInterface()

css::accessibility::XAccessibleValue * CAccValue::GetXInterface ( )
inlineprivate

Definition at line 95 of file AccValue.h.

References pRXVal.

Referenced by get_currentValue(), get_maximumValue(), and get_minimumValue().

◆ put_XInterface()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::put_XInterface ( hyper  pXInterface)
override

Put valid UNO interface into com class.

Parameters
pXInterfaceUNO interface.
Returns
Result.

Implements IUNOXWrapper.

Definition at line 209 of file AccValue.cxx.

References pRXVal, CUNOXWrapper::pUNOInterface, and CUNOXWrapper::put_XInterface().

◆ setCurrentValue()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccValue::setCurrentValue ( VARIANT  value)
override

Set current value.

Parameters
ValueNew value should be set.
successIf the method is successfully called.
Returns
Result.

Implements IAccessibleValue.

Definition at line 69 of file AccValue.cxx.

References pRXVal, value, VT_BOOL, VT_I2, VT_I4, VT_R4, VT_R8, and VT_UI1.

◆ SmartQI()

HRESULT CAccValue::SmartQI ( REFIID  iid,
void **  ppvObject 
)
inline

Definition at line 64 of file AccValue.h.

Referenced by SmartQI_().

◆ SmartQI_()

static HRESULT WINAPI CAccValue::SmartQI_ ( void *  pv,
REFIID  iid,
void **  ppvObject,
DWORD_PTR   
)
inlinestatic

Definition at line 58 of file AccValue.h.

References SmartQI().

Member Data Documentation

◆ pRXVal

css::uno::Reference<css::accessibility::XAccessibleValue> CAccValue::pRXVal
private

The documentation for this class was generated from the following files: