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

CEnumVariant implements IEnumVARIANT interface. More...

#include <EnumVariant.h>

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

Public Member Functions

 CEnumVariant ()
 
virtual ~CEnumVariant ()
 
STDMETHOD() ClearEnumeration () override
 Set member m_pXAccessibleSelection to NULL and m_nCurrent to 0. More...
 
HRESULT STDMETHODCALLTYPE Next (ULONG cElements, VARIANT __RPC_FAR *pvar, ULONG __RPC_FAR *pcElementFetched) override
 enumerate method,get next element More...
 
HRESULT STDMETHODCALLTYPE Skip (ULONG cElements) override
 skip the elements in the given range when enumerate elements More...
 
HRESULT STDMETHODCALLTYPE Reset (void) override
 reset the enumaration position to initial value More...
 
HRESULT STDMETHODCALLTYPE Clone (IEnumVARIANT __RPC_FAR *__RPC_FAR *ppenum) override
 create a new IEnumVariant object, copy current enumaration container and its state to the new object AT will use the copy object to get elements More...
 
HRESULT STDMETHODCALLTYPE PutSelection (hyper pXSelection) override
 Put valid UNO XAccessible interface. More...
 
long GetCountOfElements ()
 Return count of elements in current container. More...
 

Static Public Member Functions

static HRESULT STDMETHODCALLTYPE Create (CEnumVariant __RPC_FAR *__RPC_FAR *ppenum)
 Static public method to create a CLSID_EnumVariant com object. More...
 

Private Attributes

sal_Int64 m_nCurrent
 
css::accessibility::XAccessible * pUNOInterface
 
css::uno::Reference< css::accessibility::XAccessibleSelection > m_pXAccessibleSelection
 

Detailed Description

CEnumVariant implements IEnumVARIANT interface.

Definition at line 31 of file EnumVariant.h.

Constructor & Destructor Documentation

◆ CEnumVariant()

CEnumVariant::CEnumVariant ( )
inline

Definition at line 37 of file EnumVariant.h.

◆ ~CEnumVariant()

virtual CEnumVariant::~CEnumVariant ( )
inlinevirtual

Definition at line 43 of file EnumVariant.h.

Member Function Documentation

◆ ClearEnumeration()

COM_DECLSPEC_NOTHROW STDMETHODIMP CEnumVariant::ClearEnumeration ( )
override

Set member m_pXAccessibleSelection to NULL and m_nCurrent to 0.

Parameters
.
Returns
Result

Definition at line 216 of file EnumVariant.cxx.

References m_nCurrent, m_pXAccessibleSelection, and pUNOInterface.

◆ Clone()

HRESULT STDMETHODCALLTYPE CEnumVariant::Clone ( IEnumVARIANT __RPC_FAR *__RPC_FAR *  ppenum)
override

create a new IEnumVariant object, copy current enumaration container and its state to the new object AT will use the copy object to get elements

Parameters
ppenumOn return, pointer to the location of the clone enumerator
Returns
Result.

Definition at line 147 of file EnumVariant.cxx.

References Create(), hr, pUNOInterface, and PutSelection().

Referenced by CMAccessible::get_accSelection().

◆ Create()

HRESULT STDMETHODCALLTYPE CEnumVariant::Create ( CEnumVariant __RPC_FAR *__RPC_FAR *  ppenum)
static

Static public method to create a CLSID_EnumVariant com object.

Parameters
ppenumPointer to accept com object.
Returns
Result.

Definition at line 177 of file EnumVariant.cxx.

References hr.

Referenced by Clone(), and CMAccessible::CMAccessible().

◆ GetCountOfElements()

long CEnumVariant::GetCountOfElements ( )

Return count of elements in current container.

Parameters
.
Returns
count of elements in current container.

Definition at line 195 of file EnumVariant.cxx.

References m_pXAccessibleSelection, nCount, and SAL_WARN.

Referenced by CMAccessible::get_accSelection().

◆ Next()

HRESULT STDMETHODCALLTYPE CEnumVariant::Next ( ULONG  cElements,
VARIANT __RPC_FAR *  pvar,
ULONG __RPC_FAR *  pcElementFetched 
)
override

enumerate method,get next element

Parameters
cElementsThe number of elements to be returned.
pvarAn array of at least size celt in which the elements are to be returned.
pcElementFetchedPointer to the number of elements returned in rgVar, or Null
Returns
Result.

Definition at line 42 of file EnumVariant.cxx.

References CMAccessible::g_pAgent, CMAccessible::get_IAccessibleFromXAccessible(), AccObjectManagerAgent::InsertAccObj(), m_nCurrent, m_pXAccessibleSelection, pUNOInterface, and SAL_WARN.

Referenced by CMAccessible::get_accSelection().

◆ PutSelection()

STDMETHODIMP CEnumVariant::PutSelection ( hyper  pXSelection)
override

Put valid UNO XAccessible interface.

Parameters
pXSelectionXAccessible interface.
Returns
Result...

Definition at line 252 of file EnumVariant.cxx.

References GetXAccessibleSelection(), m_pXAccessibleSelection, and pUNOInterface.

Referenced by Clone(), and CMAccessible::SetXAccessible().

◆ Reset()

HRESULT STDMETHODCALLTYPE CEnumVariant::Reset ( void  )
override

reset the enumaration position to initial value

Parameters

return Result.

Definition at line 130 of file EnumVariant.cxx.

References m_nCurrent.

Referenced by CMAccessible::get_accSelection().

◆ Skip()

HRESULT STDMETHODCALLTYPE CEnumVariant::Skip ( ULONG  cElements)
override

skip the elements in the given range when enumerate elements

Parameters
cElementsThe number of elements to skip.
Returns
Result.

Definition at line 103 of file EnumVariant.cxx.

References m_nCurrent, m_pXAccessibleSelection, and SAL_WARN.

Member Data Documentation

◆ m_nCurrent

sal_Int64 CEnumVariant::m_nCurrent
private

Definition at line 93 of file EnumVariant.h.

Referenced by ClearEnumeration(), Next(), Reset(), and Skip().

◆ m_pXAccessibleSelection

css::uno::Reference<css::accessibility::XAccessibleSelection> CEnumVariant::m_pXAccessibleSelection
private

Definition at line 96 of file EnumVariant.h.

Referenced by ClearEnumeration(), GetCountOfElements(), Next(), PutSelection(), and Skip().

◆ pUNOInterface

css::accessibility::XAccessible* CEnumVariant::pUNOInterface
private

Definition at line 94 of file EnumVariant.h.

Referenced by ClearEnumeration(), Clone(), Next(), and PutSelection().


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