|
LibreOffice Module dbaccess (master) 1
|
#include <bookmarkcontainer.hxx>
Public Member Functions | |
| OBookmarkContainer (::cppu::OWeakObject &_rParent, ::osl::Mutex &_rMutex) | |
| constructs the container. More... | |
| virtual | ~OBookmarkContainer () override |
| looks like the dtor ... More... | |
| virtual void SAL_CALL | acquire () noexcept override |
| virtual void SAL_CALL | release () noexcept override |
| virtual OUString SAL_CALL | getImplementationName () override |
| virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
| virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
| virtual css::uno::Type SAL_CALL | getElementType () override |
| virtual sal_Bool SAL_CALL | hasElements () override |
| virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL | createEnumeration () override |
| virtual sal_Int32 SAL_CALL | getCount () override |
| virtual css::uno::Any SAL_CALL | getByIndex (sal_Int32 _nIndex) override |
| virtual void SAL_CALL | insertByName (const OUString &_rName, const css::uno::Any &aElement) override |
| virtual void SAL_CALL | removeByName (const OUString &_rName) override |
| virtual void SAL_CALL | replaceByName (const OUString &_rName, const css::uno::Any &aElement) override |
| virtual css::uno::Any SAL_CALL | getByName (const OUString &aName) override |
| virtual css::uno::Sequence< OUString > SAL_CALL | getElementNames () override |
| virtual sal_Bool SAL_CALL | hasByName (const OUString &aName) override |
| virtual void SAL_CALL | addContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener) override |
| virtual void SAL_CALL | removeContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener) override |
| virtual css::uno::Reference< css::uno::XInterface > SAL_CALL | getParent () override |
| virtual void SAL_CALL | setParent (const css::uno::Reference< css::uno::XInterface > &Parent) override |
Private Types | |
| typedef std::map< OUString, OUString > | MapString2String |
| typedef std::vector< MapString2String::iterator > | MapIteratorVector |
Private Member Functions | |
| bool | checkExistence (const OUString &_rName) |
| quickly checks if there already is an element with a given name. More... | |
| void | implAppend (const OUString &_rName, const OUString &_rDocumentLocation) |
| void | implRemove (const OUString &_rName) |
| void | implReplace (const OUString &_rName, const OUString &_rNewLink) |
Private Attributes | |
| MapString2String | m_aBookmarks |
| MapIteratorVector | m_aBookmarksIndexed |
| ::cppu::OWeakObject & | m_rParent |
| ::comphelper::OInterfaceContainerHelper3< css::container::XContainerListener > | m_aContainerListeners |
| ::osl::Mutex & | m_rMutex |
Definition at line 51 of file bookmarkcontainer.hxx.
|
private |
Definition at line 55 of file bookmarkcontainer.hxx.
|
private |
Definition at line 54 of file bookmarkcontainer.hxx.
| dbaccess::OBookmarkContainer::OBookmarkContainer | ( | ::cppu::OWeakObject & | _rParent, |
| ::osl::Mutex & | _rMutex | ||
| ) |
constructs the container.
after the construction of the object the creator has to call initialize.
| _rParent | the parent object which is used for ref counting |
| _rMutex | the parent's mutex object for access safety |
Definition at line 41 of file bookmarkcontainer.cxx.
References m_rParent.
|
overridevirtual |
looks like the dtor ...
Definition at line 59 of file bookmarkcontainer.cxx.
|
overridevirtualnoexcept |
Definition at line 49 of file bookmarkcontainer.cxx.
References cppu::OWeakObject::acquire(), and m_rParent.
|
overridevirtual |
Definition at line 166 of file bookmarkcontainer.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::addInterface(), m_aContainerListeners, and m_rMutex.
|
inlineprivate |
quickly checks if there already is an element with a given name.
No access to the configuration occurs, i.e. if there is such an object which is not already loaded, it won't be loaded now.
| _rName | the object name to check |
Definition at line 141 of file bookmarkcontainer.hxx.
References m_aBookmarks.
Referenced by getByName(), hasByName(), implReplace(), insertByName(), removeByName(), and replaceByName().
|
overridevirtual |
Definition at line 193 of file bookmarkcontainer.cxx.
References m_rMutex.
|
overridevirtual |
Definition at line 206 of file bookmarkcontainer.cxx.
References Any, m_aBookmarksIndexed, m_rMutex, and o3tl::make_unsigned().
|
overridevirtual |
Definition at line 216 of file bookmarkcontainer.cxx.
References Any, checkExistence(), m_aBookmarks, and m_rMutex.
|
overridevirtual |
Definition at line 200 of file bookmarkcontainer.cxx.
References m_aBookmarks, and m_rMutex.
|
overridevirtual |
Definition at line 226 of file bookmarkcontainer.cxx.
References m_aBookmarks, m_aBookmarksIndexed, and m_rMutex.
|
overridevirtual |
Definition at line 181 of file bookmarkcontainer.cxx.
|
overridevirtual |
Definition at line 64 of file bookmarkcontainer.cxx.
|
overridevirtual |
Definition at line 289 of file bookmarkcontainer.cxx.
References m_rParent.
|
overridevirtual |
Definition at line 74 of file bookmarkcontainer.cxx.
|
overridevirtual |
Definition at line 242 of file bookmarkcontainer.cxx.
References checkExistence(), and m_rMutex.
|
overridevirtual |
Definition at line 186 of file bookmarkcontainer.cxx.
References m_aBookmarks, and m_rMutex.
|
private |
Definition at line 273 of file bookmarkcontainer.cxx.
References m_aBookmarks, m_aBookmarksIndexed, and m_rMutex.
Referenced by insertByName().
|
private |
Definition at line 249 of file bookmarkcontainer.cxx.
References m_aBookmarks, m_aBookmarksIndexed, and m_rMutex.
Referenced by removeByName().
|
private |
Definition at line 281 of file bookmarkcontainer.cxx.
References checkExistence(), m_aBookmarks, and m_rMutex.
Referenced by replaceByName().
|
overridevirtual |
Definition at line 80 of file bookmarkcontainer.cxx.
References aEvent, Any, checkExistence(), comphelper::OInterfaceContainerHelper3< class ListenerT >::getLength(), implAppend(), m_aContainerListeners, m_rMutex, and comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach().
|
overridevirtualnoexcept |
Definition at line 54 of file bookmarkcontainer.cxx.
References m_rParent, and cppu::OWeakObject::release().
|
overridevirtual |
Definition at line 105 of file bookmarkcontainer.cxx.
References aEvent, Any, checkExistence(), comphelper::OInterfaceContainerHelper3< class ListenerT >::getLength(), implRemove(), m_aBookmarks, m_aContainerListeners, m_rMutex, and comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach().
|
overridevirtual |
Definition at line 173 of file bookmarkcontainer.cxx.
References m_aContainerListeners, m_rMutex, and comphelper::OInterfaceContainerHelper3< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 134 of file bookmarkcontainer.cxx.
References aEvent, Any, checkExistence(), comphelper::OInterfaceContainerHelper3< class ListenerT >::getLength(), implReplace(), m_aBookmarks, m_aContainerListeners, m_rMutex, and comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach().
|
overridevirtual |
Definition at line 294 of file bookmarkcontainer.cxx.
|
overridevirtual |
Definition at line 69 of file bookmarkcontainer.cxx.
References cppu::supportsService().
|
private |
Definition at line 57 of file bookmarkcontainer.hxx.
Referenced by checkExistence(), getByName(), getCount(), getElementNames(), hasElements(), implAppend(), implRemove(), implReplace(), removeByName(), and replaceByName().
|
private |
Definition at line 58 of file bookmarkcontainer.hxx.
Referenced by getByIndex(), getElementNames(), implAppend(), and implRemove().
|
private |
Definition at line 62 of file bookmarkcontainer.hxx.
Referenced by addContainerListener(), insertByName(), removeByName(), removeContainerListener(), and replaceByName().
|
private |
Definition at line 63 of file bookmarkcontainer.hxx.
Referenced by addContainerListener(), createEnumeration(), getByIndex(), getByName(), getCount(), getElementNames(), hasByName(), hasElements(), implAppend(), implRemove(), implReplace(), insertByName(), removeByName(), removeContainerListener(), and replaceByName().
|
private |
Definition at line 60 of file bookmarkcontainer.hxx.
Referenced by acquire(), getParent(), and release().