LibreOffice Module desktop (master) 1
|
#include <dp_backenddb.hxx>
Public Member Functions | |
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 | |
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 |
Protected Attributes | |
const css::uno::Reference< css::uno::XComponentContext > | m_xContext |
OUString | m_urlDb |
Private Member Functions | |
BackendDb (BackendDb const &)=delete | |
BackendDb & | operator= (BackendDb const &)=delete |
Private Attributes | |
css::uno::Reference< css::xml::dom::XDocument > | m_doc |
css::uno::Reference< css::xml::xpath::XXPathAPI > | m_xpathApi |
Definition at line 43 of file dp_backenddb.hxx.
|
privatedelete |
dp_registry::backend::BackendDb::BackendDb | ( | css::uno::Reference< css::uno::XComponentContext > const & | xContext, |
OUString const & | url | ||
) |
|
inlinevirtual |
Definition at line 135 of file dp_backenddb.hxx.
bool dp_registry::backend::BackendDb::activateEntry | ( | std::u16string_view | url | ) |
Definition at line 185 of file dp_backenddb.cxx.
References Any.
Referenced by dp_registry::backend::RegisteredDb::addEntry(), dp_registry::backend::component::ComponentBackendDb::addEntry(), dp_registry::backend::configuration::ConfigurationBackendDb::addEntry(), dp_registry::backend::help::HelpBackendDb::addEntry(), and dp_registry::backend::bundle::ExtensionBackendDb::addEntry().
|
protectedpure virtual |
Implemented in dp_registry::backend::component::ComponentBackendDb, dp_registry::backend::configuration::ConfigurationBackendDb, dp_registry::backend::executable::ExecutableBackendDb, dp_registry::backend::help::HelpBackendDb, dp_registry::backend::bundle::ExtensionBackendDb, and dp_registry::backend::script::ScriptBackendDb.
Referenced by dp_registry::backend::RegisteredDb::addEntry().
|
protected |
Definition at line 62 of file dp_backenddb.cxx.
References dp_registry::backend::bundle::create(), err, m_xContext, and ucbhelper::Content::openStream().
Referenced by dp_registry::backend::RegisteredDb::addEntry(), and dp_registry::backend::configuration::ConfigurationBackendDb::getAllDataUrls().
|
protected |
Definition at line 233 of file dp_backenddb.cxx.
Referenced by dp_registry::backend::component::ComponentBackendDb::getEntry(), dp_registry::backend::configuration::ConfigurationBackendDb::getEntry(), dp_registry::backend::help::HelpBackendDb::getEntry(), and dp_registry::backend::bundle::ExtensionBackendDb::getEntry().
|
protectedpure virtual |
Implemented in dp_registry::backend::component::ComponentBackendDb, dp_registry::backend::configuration::ConfigurationBackendDb, dp_registry::backend::executable::ExecutableBackendDb, dp_registry::backend::help::HelpBackendDb, dp_registry::backend::bundle::ExtensionBackendDb, and dp_registry::backend::script::ScriptBackendDb.
Referenced by dp_registry::backend::RegisteredDb::addEntry().
|
protectedpure virtual |
Implemented in dp_registry::backend::component::ComponentBackendDb, dp_registry::backend::configuration::ConfigurationBackendDb, dp_registry::backend::executable::ExecutableBackendDb, dp_registry::backend::help::HelpBackendDb, dp_registry::backend::bundle::ExtensionBackendDb, and dp_registry::backend::script::ScriptBackendDb.
Referenced by dp_registry::backend::RegisteredDb::addEntry().
|
protected |
Definition at line 560 of file dp_backenddb.cxx.
References Any, i, length, name, and sPrefix.
Referenced by dp_registry::backend::help::HelpBackendDb::getAllDataUrls().
|
protectedpure virtual |
Implemented in dp_registry::backend::component::ComponentBackendDb, dp_registry::backend::configuration::ConfigurationBackendDb, dp_registry::backend::executable::ExecutableBackendDb, dp_registry::backend::help::HelpBackendDb, dp_registry::backend::bundle::ExtensionBackendDb, and dp_registry::backend::script::ScriptBackendDb.
|
protected |
Definition at line 105 of file dp_backenddb.cxx.
References dp_registry::backend::bundle::create(), and m_xContext.
Referenced by dp_registry::backend::RegisteredDb::addEntry(), and dp_registry::backend::configuration::ConfigurationBackendDb::getAllDataUrls().
bool dp_registry::backend::BackendDb::hasActiveEntry | ( | std::u16string_view | url | ) |
Definition at line 209 of file dp_backenddb.cxx.
References Any.
|
protected |
Definition at line 527 of file dp_backenddb.cxx.
References Any, i, length, and sPrefix.
Referenced by dp_registry::backend::component::ComponentBackendDb::getEntry().
|
protected |
Definition at line 503 of file dp_backenddb.cxx.
Referenced by dp_registry::backend::component::ComponentBackendDb::getEntry(), dp_registry::backend::configuration::ConfigurationBackendDb::getEntry(), and dp_registry::backend::help::HelpBackendDb::getEntry().
|
protected |
Definition at line 333 of file dp_backenddb.cxx.
References Any, first, i, length, and sPrefix.
Referenced by dp_registry::backend::component::ComponentBackendDb::getEntry(), and dp_registry::backend::bundle::ExtensionBackendDb::getEntry().
|
protected |
Definition at line 117 of file dp_backenddb.cxx.
References Any.
void dp_registry::backend::BackendDb::removeEntry | ( | std::u16string_view | url | ) |
Definition at line 150 of file dp_backenddb.cxx.
References sPrefix.
void dp_registry::backend::BackendDb::revokeEntry | ( | std::u16string_view | url | ) |
Definition at line 165 of file dp_backenddb.cxx.
References Any.
|
protected |
Definition at line 48 of file dp_backenddb.cxx.
References m_xContext, and ucbhelper::Content::writeStream().
Referenced by dp_registry::backend::RegisteredDb::addEntry(), dp_registry::backend::component::ComponentBackendDb::addEntry(), dp_registry::backend::configuration::ConfigurationBackendDb::addEntry(), dp_registry::backend::help::HelpBackendDb::addEntry(), and dp_registry::backend::bundle::ExtensionBackendDb::addEntry().
|
protected |
The key elements have a url attribute and are always children of the root element.
Definition at line 455 of file dp_backenddb.cxx.
Referenced by dp_registry::backend::component::ComponentBackendDb::addEntry(), dp_registry::backend::configuration::ConfigurationBackendDb::addEntry(), dp_registry::backend::help::HelpBackendDb::addEntry(), and dp_registry::backend::bundle::ExtensionBackendDb::addEntry().
|
protected |
Definition at line 424 of file dp_backenddb.cxx.
References Any, sPrefix, and value.
Referenced by dp_registry::backend::component::ComponentBackendDb::addEntry(), dp_registry::backend::configuration::ConfigurationBackendDb::addEntry(), and dp_registry::backend::help::HelpBackendDb::addEntry().
|
protected |
Definition at line 379 of file dp_backenddb.cxx.
Referenced by dp_registry::backend::component::ComponentBackendDb::addEntry().
|
protected |
Definition at line 263 of file dp_backenddb.cxx.
Referenced by dp_registry::backend::component::ComponentBackendDb::addEntry(), and dp_registry::backend::bundle::ExtensionBackendDb::addEntry().
|
private |
Definition at line 47 of file dp_backenddb.hxx.
|
protected |
Definition at line 55 of file dp_backenddb.hxx.
Referenced by dp_registry::backend::RegisteredDb::addEntry(), dp_registry::backend::component::ComponentBackendDb::addEntry(), dp_registry::backend::configuration::ConfigurationBackendDb::addEntry(), dp_registry::backend::help::HelpBackendDb::addEntry(), dp_registry::backend::bundle::ExtensionBackendDb::addEntry(), dp_registry::backend::configuration::ConfigurationBackendDb::getAllDataUrls(), dp_registry::backend::component::ComponentBackendDb::getEntry(), dp_registry::backend::configuration::ConfigurationBackendDb::getEntry(), dp_registry::backend::help::HelpBackendDb::getEntry(), and dp_registry::backend::bundle::ExtensionBackendDb::getEntry().
|
protected |
Definition at line 54 of file dp_backenddb.hxx.
|
private |
Definition at line 48 of file dp_backenddb.hxx.