LibreOffice Module comphelper (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
comphelper::OEnumerationByName Class Reference

provides a com.sun.star.container::XEnumeration access based on an object implementing the com.sun.star.container::XNameAccess interface More...

#include <enumhelper.hxx>

Inheritance diagram for comphelper::OEnumerationByName:
[legend]
Collaboration diagram for comphelper::OEnumerationByName:
[legend]

Public Member Functions

 OEnumerationByName (const css::uno::Reference< css::container::XNameAccess > &_rxAccess)
 
 OEnumerationByName (const css::uno::Reference< css::container::XNameAccess > &_rxAccess, const css::uno::Sequence< OUString > &_aNames)
 
virtual ~OEnumerationByName () override
 
virtual sal_Bool SAL_CALL hasMoreElements () override
 
virtual css::uno::Any SAL_CALL nextElement () override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &aEvent) override
 

Private Member Functions

COMPHELPER_DLLPRIVATE void impl_startDisposeListening ()
 
COMPHELPER_DLLPRIVATE void impl_stopDisposeListening ()
 

Private Attributes

css::uno::Sequence< OUString > const m_aNames
 
sal_Int32 m_nPos
 
css::uno::Reference< css::container::XNameAccess > m_xAccess
 
bool m_bListening
 
- Private Attributes inherited from comphelper::OEnumerationLock
::osl::Mutex m_aLock
 

Detailed Description

provides a com.sun.star.container::XEnumeration access based on an object implementing the com.sun.star.container::XNameAccess interface

Definition at line 44 of file enumhelper.hxx.

Constructor & Destructor Documentation

comphelper::OEnumerationByName::OEnumerationByName ( const css::uno::Reference< css::container::XNameAccess > &  _rxAccess)

Definition at line 28 of file enumhelper.cxx.

References impl_startDisposeListening().

comphelper::OEnumerationByName::OEnumerationByName ( const css::uno::Reference< css::container::XNameAccess > &  _rxAccess,
const css::uno::Sequence< OUString > &  _aNames 
)

Definition at line 38 of file enumhelper.cxx.

References impl_startDisposeListening().

comphelper::OEnumerationByName::~OEnumerationByName ( )
overridevirtual

Definition at line 49 of file enumhelper.cxx.

References impl_stopDisposeListening().

Member Function Documentation

void SAL_CALL comphelper::OEnumerationByName::disposing ( const css::lang::EventObject &  aEvent)
overridevirtual

Definition at line 93 of file enumhelper.cxx.

References comphelper::OEnumerationLock::m_aLock, and m_xAccess.

sal_Bool SAL_CALL comphelper::OEnumerationByName::hasMoreElements ( )
overridevirtual
void comphelper::OEnumerationByName::impl_startDisposeListening ( )
private

Definition at line 102 of file enumhelper.cxx.

References comphelper::OEnumerationLock::m_aLock, m_bListening, and m_xAccess.

Referenced by OEnumerationByName().

void comphelper::OEnumerationByName::impl_stopDisposeListening ( )
private
css::uno::Any SAL_CALL comphelper::OEnumerationByName::nextElement ( )
overridevirtual

Member Data Documentation

css::uno::Sequence< OUString > const comphelper::OEnumerationByName::m_aNames
private

Definition at line 48 of file enumhelper.hxx.

Referenced by hasMoreElements(), and nextElement().

bool comphelper::OEnumerationByName::m_bListening
private

Definition at line 51 of file enumhelper.hxx.

Referenced by impl_startDisposeListening(), and impl_stopDisposeListening().

sal_Int32 comphelper::OEnumerationByName::m_nPos
private

Definition at line 49 of file enumhelper.hxx.

Referenced by hasMoreElements(), and nextElement().

css::uno::Reference< css::container::XNameAccess > comphelper::OEnumerationByName::m_xAccess
private

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