LibreOffice Module unoxml (master) 1
|
#include <elementlist.hxx>
Public Member Functions | |
CElementListImpl (::rtl::Reference< CElement > pElement, ::osl::Mutex &rMutex, std::u16string_view rName, OUString const *const pURI) | |
void | registerListener (CElement &rElement) |
virtual | ~CElementListImpl () override |
virtual sal_Int32 SAL_CALL | getLength () override |
The number of nodes in the list. More... | |
virtual css::uno::Reference< css::xml::dom::XNode > SAL_CALL | item (sal_Int32 index) override |
Returns the indexth item in the collection. More... | |
virtual void SAL_CALL | handleEvent (const css::uno::Reference< css::xml::dom::events::XEvent > &evt) override |
Private Member Functions | |
void | buildlist (xmlNodePtr pNode, bool start=true) |
Private Attributes | |
css::uno::Reference< css::xml::dom::events::XEventListener > | m_xEventListener |
proxy weak binding to forward Events to ourself without an ownership cycle More... | |
::rtl::Reference< CElement > const | m_pElement |
::osl::Mutex & | m_rMutex |
::std::unique_ptr< xmlChar[]> const | m_pName |
::std::unique_ptr< xmlChar[]> const | m_pURI |
bool | m_bRebuild |
std::vector< xmlNodePtr > | m_nodevector |
Definition at line 43 of file elementlist.hxx.
DOM::CElementListImpl::CElementListImpl | ( | ::rtl::Reference< CElement > | pElement, |
::osl::Mutex & | rMutex, | ||
std::u16string_view | rName, | ||
OUString const *const | pURI | ||
) |
Definition at line 82 of file elementlist.cxx.
References m_rMutex.
|
overridevirtual |
Definition at line 93 of file elementlist.cxx.
References m_pElement, m_xEventListener, and xTarget.
|
private |
Definition at line 117 of file elementlist.cxx.
References buildlist(), m_bRebuild, m_nodevector, m_pName, m_pURI, and start.
Referenced by buildlist(), getLength(), and item().
|
overridevirtual |
The number of nodes in the list.
Definition at line 155 of file elementlist.cxx.
References buildlist(), m_nodevector, m_pElement, and m_rMutex.
|
overridevirtual |
Definition at line 184 of file elementlist.cxx.
References m_bRebuild, and m_rMutex.
|
overridevirtual |
Returns the indexth item in the collection.
Definition at line 168 of file elementlist.cxx.
References buildlist(), index, m_nodevector, m_pElement, m_rMutex, and o3tl::make_unsigned().
void DOM::CElementListImpl::registerListener | ( | CElement & | rElement | ) |
Definition at line 105 of file elementlist.cxx.
References Exception, m_xEventListener, TOOLS_WARN_EXCEPTION, and xTarget.
|
private |
Definition at line 57 of file elementlist.hxx.
Referenced by buildlist(), and handleEvent().
|
private |
Definition at line 58 of file elementlist.hxx.
Referenced by buildlist(), getLength(), and item().
|
private |
Definition at line 53 of file elementlist.hxx.
Referenced by getLength(), item(), and ~CElementListImpl().
|
private |
Definition at line 55 of file elementlist.hxx.
Referenced by buildlist().
|
private |
Definition at line 56 of file elementlist.hxx.
Referenced by buildlist().
|
private |
Definition at line 54 of file elementlist.hxx.
Referenced by getLength(), handleEvent(), and item().
|
private |
proxy weak binding to forward Events to ourself without an ownership cycle
Definition at line 51 of file elementlist.hxx.
Referenced by registerListener(), and ~CElementListImpl().