LibreOffice Module desktop (master) 1
|
#include <dp_compbackenddb.hxx>
Classes | |
struct | Data |
Public Member Functions | |
ComponentBackendDb (css::uno::Reference< css::uno::XComponentContext > const &xContext, OUString const &url) | |
void | addEntry (OUString const &url, Data const &data) |
Data | getEntry (std::u16string_view url) |
Public Member Functions inherited from dp_registry::backend::BackendDb | |
BackendDb (css::uno::Reference< css::uno::XComponentContext > const &xContext, OUString const &url) | |
virtual | ~BackendDb () |
void | removeEntry (std::u16string_view url) |
void | revokeEntry (std::u16string_view url) |
bool | activateEntry (std::u16string_view url) |
bool | hasActiveEntry (std::u16string_view url) |
Protected Member Functions | |
virtual OUString | getDbNSName () override |
virtual OUString | getNSPrefix () override |
virtual OUString | getRootElementName () override |
virtual OUString | getKeyElementName () override |
Protected Member Functions inherited from dp_registry::backend::BackendDb | |
css::uno::Reference< css::xml::dom::XDocument > const & | getDocument () |
css::uno::Reference< css::xml::xpath::XXPathAPI > const & | getXPathAPI () |
void | save () |
void | removeElement (OUString const &sXPathExpression) |
css::uno::Reference< css::xml::dom::XNode > | getKeyElement (std::u16string_view url) |
void | writeSimpleList (std::deque< OUString > const &list, std::u16string_view sListTagName, std::u16string_view sMemberTagName, css::uno::Reference< css::xml::dom::XNode > const &xParent) |
void | writeVectorOfPair (std::vector< std::pair< OUString, OUString > > const &vecPairs, std::u16string_view sVectorTagName, std::u16string_view sPairTagName, std::u16string_view sFirstTagName, std::u16string_view sSecondTagName, css::uno::Reference< css::xml::dom::XNode > const &xParent) |
void | writeSimpleElement (std::u16string_view sElementName, OUString const &value, css::uno::Reference< css::xml::dom::XNode > const &xParent) |
css::uno::Reference< css::xml::dom::XNode > | writeKeyElement (OUString const &url) |
The key elements have a url attribute and are always children of the root element. More... | |
OUString | readSimpleElement (std::u16string_view sElementName, css::uno::Reference< css::xml::dom::XNode > const &xParent) |
std::vector< std::pair< OUString, OUString > > | readVectorOfPair (css::uno::Reference< css::xml::dom::XNode > const &parent, std::u16string_view sListTagName, std::u16string_view sPairTagName, std::u16string_view sFirstTagName, std::u16string_view sSecondTagName) |
std::deque< OUString > | readList (css::uno::Reference< css::xml::dom::XNode > const &parent, std::u16string_view sListTagName, std::u16string_view sMemberTagName) |
std::vector< OUString > | getOneChildFromAllEntries (std::u16string_view sElementName) |
virtual OUString | getDbNSName ()=0 |
virtual OUString | getNSPrefix ()=0 |
virtual OUString | getRootElementName ()=0 |
virtual OUString | getKeyElementName ()=0 |
Additional Inherited Members | |
Protected Attributes inherited from dp_registry::backend::BackendDb | |
const css::uno::Reference< css::uno::XComponentContext > | m_xContext |
OUString | m_urlDb |
Definition at line 60 of file dp_compbackenddb.hxx.
dp_registry::backend::component::ComponentBackendDb::ComponentBackendDb | ( | css::uno::Reference< css::uno::XComponentContext > const & | xContext, |
OUString const & | url | ||
) |
Definition at line 37 of file dp_compbackenddb.cxx.
void dp_registry::backend::component::ComponentBackendDb::addEntry | ( | OUString const & | url, |
Data const & | data | ||
) |
Definition at line 64 of file dp_compbackenddb.cxx.
References dp_registry::backend::BackendDb::activateEntry(), Any, dp_registry::backend::component::ComponentBackendDb::Data::implementationNames, dp_registry::backend::component::ComponentBackendDb::Data::javaTypeLibrary, dp_registry::backend::BackendDb::m_urlDb, dp_registry::backend::BackendDb::save(), dp_registry::backend::component::ComponentBackendDb::Data::singletons, u, dp_registry::backend::BackendDb::writeKeyElement(), dp_registry::backend::BackendDb::writeSimpleElement(), dp_registry::backend::BackendDb::writeSimpleList(), and dp_registry::backend::BackendDb::writeVectorOfPair().
|
overrideprotectedvirtual |
Implements dp_registry::backend::BackendDb.
Definition at line 44 of file dp_compbackenddb.cxx.
References EXTENSION_REG_NS.
ComponentBackendDb::Data dp_registry::backend::component::ComponentBackendDb::getEntry | ( | std::u16string_view | url | ) |
Definition at line 100 of file dp_compbackenddb.cxx.
References Any, dp_registry::backend::BackendDb::getKeyElement(), dp_registry::backend::component::ComponentBackendDb::Data::implementationNames, dp_registry::backend::component::ComponentBackendDb::Data::javaTypeLibrary, dp_registry::backend::BackendDb::m_urlDb, dp_registry::backend::BackendDb::readList(), dp_registry::backend::BackendDb::readSimpleElement(), dp_registry::backend::BackendDb::readVectorOfPair(), dp_registry::backend::component::ComponentBackendDb::Data::singletons, and u.
|
overrideprotectedvirtual |
Implements dp_registry::backend::BackendDb.
Definition at line 59 of file dp_compbackenddb.cxx.
References KEY_ELEMENT_NAME.
|
overrideprotectedvirtual |
Implements dp_registry::backend::BackendDb.
Definition at line 49 of file dp_compbackenddb.cxx.
References NS_PREFIX.
|
overrideprotectedvirtual |
Implements dp_registry::backend::BackendDb.
Definition at line 54 of file dp_compbackenddb.cxx.
References ROOT_ELEMENT_NAME.