22 #include <com/sun/star/deployment/DeploymentException.hpp>
23 #include <com/sun/star/uno/XComponentContext.hpp>
30 constexpr OUStringLiteral
EXTENSION_REG_NS =
u"http://openoffice.org/extensionmanager/help-registry/2010";
39 OUString
const & url):
BackendDb(xContext, url)
70 Reference<css::xml::dom::XNode> helpNode
77 catch (
const css::deployment::DeploymentException& )
81 catch(
const css::uno::Exception &)
84 throw css::deployment::DeploymentException(
85 "Extension Manager: failed to write data entry in help backend db: " +
m_urlDb,
nullptr, exc);
90 ::std::optional<HelpBackendDb::Data>
103 return ::std::optional<Data>();
105 return ::std::optional<Data>(retData);
107 catch (
const css::deployment::DeploymentException& )
111 catch(
const css::uno::Exception &)
114 throw css::deployment::DeploymentException(
115 "Extension Manager: failed to read data entry in help backend db: " +
m_urlDb,
nullptr, exc);
void addEntry(OUString const &url, Data const &data)
virtual OUString getKeyElementName() override
constexpr OUStringLiteral ROOT_ELEMENT_NAME
std::vector< OUString > getAllDataUrls()
constexpr OUStringLiteral NS_PREFIX
bool activateEntry(std::u16string_view url)
OUString readSimpleElement(std::u16string_view sElementName, css::uno::Reference< css::xml::dom::XNode > const &xParent)
std::vector< OUString > getOneChildFromAllEntries(std::u16string_view sElementName)
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.
constexpr OUStringLiteral EXTENSION_REG_NS
Any SAL_CALL getCaughtException()
virtual OUString getRootElementName() override
css::uno::Reference< css::xml::dom::XNode > getKeyElement(std::u16string_view url)
constexpr OUStringLiteral KEY_ELEMENT_NAME
void writeSimpleElement(std::u16string_view sElementName, OUString const &value, css::uno::Reference< css::xml::dom::XNode > const &xParent)
virtual OUString getDbNSName() override
static uno::Reference< css::uno::XComponentContext > xContext
::std::optional< Data > getEntry(std::u16string_view url)
HelpBackendDb(css::uno::Reference< css::uno::XComponentContext > const &xContext, OUString const &url)
virtual OUString getNSPrefix() override