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

A wrapper that holds a com.sun.star.container.XEnumeration or a com.sun.star.container.XIndexAccess and provides an enumeration of VBA objects. More...

#include <vbacollectionimpl.hxx>

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

Public Member Functions

 SimpleEnumerationBase (const css::uno::Reference< css::container::XIndexAccess > &rxIndexAccess)
 
virtual sal_Bool SAL_CALL hasMoreElements () override
 
virtual css::uno::Any SAL_CALL nextElement () override
 
virtual css::uno::Any createCollectionObject (const css::uno::Any &rSource)=0
 Derived classes implement creation of a VBA implementation object from the passed container element. More...
 

Private Attributes

css::uno::Reference< css::container::XEnumeration > mxEnumeration
 

Detailed Description

A wrapper that holds a com.sun.star.container.XEnumeration or a com.sun.star.container.XIndexAccess and provides an enumeration of VBA objects.

The method createCollectionObject() needs to be implemented by the derived class. This class can be used to convert an enumeration or an index container containing UNO objects to an enumeration providing the related VBA objects.

Definition at line 103 of file vbacollectionimpl.hxx.

Constructor & Destructor Documentation

◆ SimpleEnumerationBase()

SimpleEnumerationBase::SimpleEnumerationBase ( const css::uno::Reference< css::container::XIndexAccess > &  rxIndexAccess)
inlineexplicit
Exceptions
css::uno::RuntimeException

Definition at line 107 of file vbacollectionimpl.hxx.

Member Function Documentation

◆ createCollectionObject()

virtual css::uno::Any SimpleEnumerationBase::createCollectionObject ( const css::uno::Any &  rSource)
pure virtual

Derived classes implement creation of a VBA implementation object from the passed container element.

◆ hasMoreElements()

virtual sal_Bool SAL_CALL SimpleEnumerationBase::hasMoreElements ( )
inlineoverridevirtual

Definition at line 111 of file vbacollectionimpl.hxx.

◆ nextElement()

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

Definition at line 116 of file vbacollectionimpl.hxx.

Member Data Documentation

◆ mxEnumeration

css::uno::Reference< css::container::XEnumeration > SimpleEnumerationBase::mxEnumeration
private

Definition at line 126 of file vbacollectionimpl.hxx.


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