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

CAccRelation implements IAccessibleRelation interface. More...

#include <AccRelation.h>

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

Public Member Functions

 CAccRelation ()
 
virtual ~CAccRelation ()
 
STDMETHOD() get_relationType (BSTR *relationType) override
 Get relation type. More...
 
STDMETHOD() get_localizedRelationType (BSTR *relationType) override
 
STDMETHOD() get_nTargets (long *nTargets) override
 Get targets length. More...
 
STDMETHOD() get_target (long targetIndex, IUnknown **target) override
 Get special target. More...
 
STDMETHOD() get_targets (long maxTargets, IUnknown **target, long *nTargets) override
 Get special targets. More...
 
STDMETHOD() put_XSubInterface (hyper pXSubInterface) override
 Put UNO interface. 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 BSTR getRelationTypeBSTR (int type)
 Get relation type string by type. More...
 

Private Attributes

css::accessibility::AccessibleRelation relation
 

Additional Inherited Members

- Protected Member Functions inherited from CUNOXWrapper
 ~CUNOXWrapper ()
 
- Protected Attributes inherited from CUNOXWrapper
css::accessibility::XAccessible * pUNOInterface
 
- Properties inherited from IAccessibleRelation
BSTR relationType [get]
 Returns the type of the relation. More...
 
BSTR localizedRelationType [get]
 Returns a localized version of the relation type. More...
 
long nTargets [get]
 Returns the number of targets for this relation. More...
 
IUnknown target ([in] long targetIndex) [get]
 Returns one accessible relation target. More...
 
long targets ([in] long maxTargets,[out, size_is(maxTargets), length_is(*nTargets)] IUnknown targets) [get]
 Returns multiple accessible relation targets. More...
 

Detailed Description

CAccRelation implements IAccessibleRelation interface.

Definition at line 31 of file AccRelation.h.

Constructor & Destructor Documentation

◆ CAccRelation()

CAccRelation::CAccRelation ( )
inline

Definition at line 38 of file AccRelation.h.

◆ ~CAccRelation()

virtual CAccRelation::~CAccRelation ( )
inlinevirtual

Definition at line 41 of file AccRelation.h.

Member Function Documentation

◆ get_localizedRelationType()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccRelation::get_localizedRelationType ( BSTR *  relationType)
override

Definition at line 58 of file AccRelation.cxx.

◆ get_nTargets()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccRelation::get_nTargets ( long *  nTargets)
override

Get targets length.

Parameters
nTargetsVariant to get targets length.
Returns
Result.

Definition at line 74 of file AccRelation.cxx.

References IAccessibleRelation::nTargets, and relation.

◆ get_relationType()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccRelation::get_relationType ( BSTR *  relationType)
override

Get relation type.

Parameters
relationTypeVariant to get relation type.
Returns
Result.

Definition at line 39 of file AccRelation.cxx.

References getRelationTypeBSTR(), relation, IAccessibleRelation::relationType, and type.

◆ get_target()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccRelation::get_target ( long  targetIndex,
IUnknown **  target 
)
override

Get special target.

Parameters
targetIndextarget index.
targetVariant to get special target.
Returns
Result.

Definition at line 96 of file AccRelation.cxx.

References CMAccessible::get_IAccessibleFromXAccessible(), nCount, relation, and IAccessibleRelation::target.

Referenced by get_targets().

◆ get_targets()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccRelation::get_targets ( long  maxTargets,
IUnknown **  target,
long *  nTargets 
)
override

Get special targets.

Parameters
maxTargetsSpecial targets count.
targetVariant to get special target.
nTargetsVariant to accept actual target length.
Returns
Result.

Definition at line 133 of file AccRelation.cxx.

References get_target(), hr, i, nCount, IAccessibleRelation::nTargets, relation, and IAccessibleRelation::target.

◆ getRelationTypeBSTR()

BSTR CAccRelation::getRelationTypeBSTR ( int  type)
static

◆ put_XSubInterface()

COM_DECLSPEC_NOTHROW STDMETHODIMP CAccRelation::put_XSubInterface ( hyper  pXSubInterface)
override

Put UNO interface.

Parameters
pXSubInterfaceAccessibleRelation pointer.
Returns
Result.

Implements IUNOXWrapper.

Definition at line 175 of file AccRelation.cxx.

References relation.

Member Data Documentation

◆ relation

css::accessibility::AccessibleRelation CAccRelation::relation
private

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