LibreOffice Module vbahelper (master) 1
Public Member Functions | Private Attributes | List of all members
SimpleIndexAccessToEnumeration Class Referencefinal

A wrapper that holds a com.sun.star.container.XIndexAccess and provides a com.sun.star.container.XEnumeration. More...

#include <vbacollectionimpl.hxx>

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

Public Member Functions

 SimpleIndexAccessToEnumeration (css::uno::Reference< css::container::XIndexAccess > xIndexAccess)
 
virtual sal_Bool SAL_CALL hasMoreElements () override
 
virtual css::uno::Any SAL_CALL nextElement () override
 

Private Attributes

css::uno::Reference< css::container::XIndexAccess > mxIndexAccess
 
sal_Int32 mnIndex
 

Detailed Description

A wrapper that holds a com.sun.star.container.XIndexAccess and provides a com.sun.star.container.XEnumeration.

Can be used to provide an enumeration from an index container that contains completely constructed/initialized VBA implementation objects. CANNOT be used to provide an enumeration from an index container with other objects (e.g. UNO objects) where construction of the VBA objects is needed first.

Definition at line 70 of file vbacollectionimpl.hxx.

Constructor & Destructor Documentation

◆ SimpleIndexAccessToEnumeration()

SimpleIndexAccessToEnumeration::SimpleIndexAccessToEnumeration ( css::uno::Reference< css::container::XIndexAccess >  xIndexAccess)
inlineexplicit
Exceptions
css::uno::RuntimeException

Definition at line 74 of file vbacollectionimpl.hxx.

References mnIndex.

Member Function Documentation

◆ hasMoreElements()

virtual sal_Bool SAL_CALL SimpleIndexAccessToEnumeration::hasMoreElements ( )
inlineoverridevirtual

Definition at line 78 of file vbacollectionimpl.hxx.

References mnIndex.

◆ nextElement()

virtual css::uno::Any SAL_CALL SimpleIndexAccessToEnumeration::nextElement ( )
inlineoverridevirtual

Definition at line 83 of file vbacollectionimpl.hxx.

References mnIndex.

Member Data Documentation

◆ mnIndex

sal_Int32 SimpleIndexAccessToEnumeration::mnIndex
private

Definition at line 92 of file vbacollectionimpl.hxx.

◆ mxIndexAccess

css::uno::Reference< css::container::XIndexAccess > SimpleIndexAccessToEnumeration::mxIndexAccess
private

Definition at line 91 of file vbacollectionimpl.hxx.


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