LibreOffice Module winaccessibility (master) 1
|
CEnumVariant implements IEnumVARIANT interface. More...
#include <EnumVariant.h>
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 |
CEnumVariant implements IEnumVARIANT interface.
Definition at line 31 of file EnumVariant.h.
|
inline |
Definition at line 37 of file EnumVariant.h.
|
inlinevirtual |
Definition at line 43 of file EnumVariant.h.
|
override |
Set member m_pXAccessibleSelection to NULL and m_nCurrent to 0.
. |
Definition at line 216 of file EnumVariant.cxx.
References m_nCurrent, m_pXAccessibleSelection, and pUNOInterface.
|
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
ppenum | On return, pointer to the location of the clone enumerator |
Definition at line 147 of file EnumVariant.cxx.
References Create(), hr, pUNOInterface, and PutSelection().
Referenced by CMAccessible::get_accSelection().
|
static |
Static public method to create a CLSID_EnumVariant com object.
ppenum | Pointer to accept com object. |
Definition at line 177 of file EnumVariant.cxx.
References hr.
Referenced by Clone(), and CMAccessible::CMAccessible().
long CEnumVariant::GetCountOfElements | ( | ) |
Return 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().
|
override |
enumerate method,get next element
cElements | The number of elements to be returned. |
pvar | An array of at least size celt in which the elements are to be returned. |
pcElementFetched | Pointer to the number of elements returned in rgVar, or Null |
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().
|
override |
Put valid UNO XAccessible interface.
pXSelection | XAccessible interface. |
Definition at line 252 of file EnumVariant.cxx.
References GetXAccessibleSelection(), m_pXAccessibleSelection, and pUNOInterface.
Referenced by Clone(), and CMAccessible::SetXAccessible().
|
override |
reset the enumaration position to initial value
return Result.
Definition at line 130 of file EnumVariant.cxx.
References m_nCurrent.
Referenced by CMAccessible::get_accSelection().
|
override |
skip the elements in the given range when enumerate elements
cElements | The number of elements to skip. |
Definition at line 103 of file EnumVariant.cxx.
References m_nCurrent, m_pXAccessibleSelection, and SAL_WARN.
|
private |
Definition at line 93 of file EnumVariant.h.
Referenced by ClearEnumeration(), Next(), Reset(), and Skip().
|
private |
Definition at line 96 of file EnumVariant.h.
Referenced by ClearEnumeration(), GetCountOfElements(), Next(), PutSelection(), and Skip().
|
private |
Definition at line 94 of file EnumVariant.h.
Referenced by ClearEnumeration(), Clone(), Next(), and PutSelection().