LibreOffice Module comphelper (master) 1
|
provides a com.sun.star.container::XEnumeration access based on an object implementing the com.sun.star.container::XNameAccess interface More...
#include <enumhelper.hxx>
Public Member Functions | |
OEnumerationByName (css::uno::Reference< css::container::XNameAccess > _xAccess) | |
OEnumerationByName (css::uno::Reference< css::container::XNameAccess > _xAccess, std::vector< 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 | |
sal_Int32 | getLength () const |
const OUString & | getElement (sal_Int32 nIndex) const |
COMPHELPER_DLLPRIVATE void | impl_startDisposeListening () |
COMPHELPER_DLLPRIVATE void | impl_stopDisposeListening () |
Private Attributes | |
std::variant< css::uno::Sequence< OUString >, std::vector< OUString > > | m_aNames |
css::uno::Reference< css::container::XNameAccess > | m_xAccess |
sal_Int32 | m_nPos |
bool | m_bListening |
std::mutex | m_aLock |
provides a com.sun.star.container::XEnumeration access based on an object implementing the com.sun.star.container::XNameAccess interface
Definition at line 40 of file enumhelper.hxx.
comphelper::OEnumerationByName::OEnumerationByName | ( | css::uno::Reference< css::container::XNameAccess > | _xAccess | ) |
Definition at line 29 of file enumhelper.cxx.
References impl_startDisposeListening(), and m_nPos.
comphelper::OEnumerationByName::OEnumerationByName | ( | css::uno::Reference< css::container::XNameAccess > | _xAccess, |
std::vector< OUString > | _aNames | ||
) |
Definition at line 39 of file enumhelper.cxx.
References impl_startDisposeListening(), and m_nPos.
|
overridevirtual |
Definition at line 49 of file enumhelper.cxx.
References impl_stopDisposeListening(), and m_aLock.
|
overridevirtual |
Definition at line 94 of file enumhelper.cxx.
|
private |
Definition at line 142 of file enumhelper.cxx.
References m_aNames, and nIndex.
Referenced by nextElement().
|
private |
Definition at line 134 of file enumhelper.cxx.
References getLength(), m_aNames, and size.
Referenced by getLength(), hasMoreElements(), and nextElement().
|
overridevirtual |
Definition at line 57 of file enumhelper.cxx.
References getLength(), impl_stopDisposeListening(), m_aLock, m_nPos, and m_xAccess.
|
private |
Definition at line 103 of file enumhelper.cxx.
References m_bListening, m_refCount, and m_xAccess.
Referenced by OEnumerationByName().
|
private |
Definition at line 119 of file enumhelper.cxx.
References m_bListening, m_refCount, and m_xAccess.
Referenced by hasMoreElements(), nextElement(), and ~OEnumerationByName().
|
overridevirtual |
Definition at line 74 of file enumhelper.cxx.
References getElement(), getLength(), impl_stopDisposeListening(), m_aLock, m_nPos, and m_xAccess.
|
private |
Definition at line 48 of file enumhelper.hxx.
Referenced by disposing(), hasMoreElements(), nextElement(), and ~OEnumerationByName().
|
private |
Definition at line 44 of file enumhelper.hxx.
Referenced by getElement(), and getLength().
|
private |
Definition at line 47 of file enumhelper.hxx.
Referenced by impl_startDisposeListening(), and impl_stopDisposeListening().
|
private |
Definition at line 46 of file enumhelper.hxx.
Referenced by hasMoreElements(), and nextElement().
|
private |
Definition at line 45 of file enumhelper.hxx.
Referenced by disposing(), hasMoreElements(), impl_startDisposeListening(), impl_stopDisposeListening(), and nextElement().