LibreOffice Module desktop (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
dp_registry::backend::BackendDb Class Referenceabstract

#include <dp_backenddb.hxx>

Inheritance diagram for dp_registry::backend::BackendDb:
[legend]

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
 
BackendDboperator= (BackendDb const &)=delete
 

Private Attributes

css::uno::Reference< css::xml::dom::XDocument > m_doc
 
css::uno::Reference< css::xml::xpath::XXPathAPI > m_xpathApi
 

Detailed Description

Definition at line 43 of file dp_backenddb.hxx.

Constructor & Destructor Documentation

◆ BackendDb() [1/2]

dp_registry::backend::BackendDb::BackendDb ( BackendDb const &  )
privatedelete

◆ BackendDb() [2/2]

dp_registry::backend::BackendDb::BackendDb ( css::uno::Reference< css::uno::XComponentContext > const &  xContext,
OUString const &  url 
)

◆ ~BackendDb()

virtual dp_registry::backend::BackendDb::~BackendDb ( )
inlinevirtual

Definition at line 135 of file dp_backenddb.hxx.

Member Function Documentation

◆ activateEntry()

bool dp_registry::backend::BackendDb::activateEntry ( std::u16string_view  url)

◆ getDbNSName()

virtual OUString dp_registry::backend::BackendDb::getDbNSName ( )
protectedpure virtual

◆ getDocument()

css::uno::Reference< css::xml::dom::XDocument > const & dp_registry::backend::BackendDb::getDocument ( )
protected

◆ getKeyElement()

Reference< css::xml::dom::XNode > dp_registry::backend::BackendDb::getKeyElement ( std::u16string_view  url)
protected

◆ getKeyElementName()

virtual OUString dp_registry::backend::BackendDb::getKeyElementName ( )
protectedpure virtual

◆ getNSPrefix()

virtual OUString dp_registry::backend::BackendDb::getNSPrefix ( )
protectedpure virtual

◆ getOneChildFromAllEntries()

std::vector< OUString > dp_registry::backend::BackendDb::getOneChildFromAllEntries ( std::u16string_view  sElementName)
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().

◆ getRootElementName()

virtual OUString dp_registry::backend::BackendDb::getRootElementName ( )
protectedpure virtual

◆ getXPathAPI()

Reference< css::xml::xpath::XXPathAPI > const & dp_registry::backend::BackendDb::getXPathAPI ( )
protected

◆ hasActiveEntry()

bool dp_registry::backend::BackendDb::hasActiveEntry ( std::u16string_view  url)

Definition at line 209 of file dp_backenddb.cxx.

References Any.

◆ operator=()

BackendDb & dp_registry::backend::BackendDb::operator= ( BackendDb const &  )
privatedelete

◆ readList()

std::deque< OUString > dp_registry::backend::BackendDb::readList ( css::uno::Reference< css::xml::dom::XNode > const &  parent,
std::u16string_view  sListTagName,
std::u16string_view  sMemberTagName 
)
protected

Definition at line 527 of file dp_backenddb.cxx.

References Any, i, length, and sPrefix.

Referenced by dp_registry::backend::component::ComponentBackendDb::getEntry().

◆ readSimpleElement()

OUString dp_registry::backend::BackendDb::readSimpleElement ( std::u16string_view  sElementName,
css::uno::Reference< css::xml::dom::XNode > const &  xParent 
)
protected

◆ readVectorOfPair()

std::vector< std::pair< OUString, OUString > > dp_registry::backend::BackendDb::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 
)
protected

◆ removeElement()

void dp_registry::backend::BackendDb::removeElement ( OUString const &  sXPathExpression)
protected

Definition at line 117 of file dp_backenddb.cxx.

References Any.

◆ removeEntry()

void dp_registry::backend::BackendDb::removeEntry ( std::u16string_view  url)

Definition at line 150 of file dp_backenddb.cxx.

References sPrefix.

◆ revokeEntry()

void dp_registry::backend::BackendDb::revokeEntry ( std::u16string_view  url)

Definition at line 165 of file dp_backenddb.cxx.

References Any.

◆ save()

void dp_registry::backend::BackendDb::save ( )
protected

◆ writeKeyElement()

Reference< css::xml::dom::XNode > dp_registry::backend::BackendDb::writeKeyElement ( OUString const &  url)
protected

◆ writeSimpleElement()

void dp_registry::backend::BackendDb::writeSimpleElement ( std::u16string_view  sElementName,
OUString const &  value,
css::uno::Reference< css::xml::dom::XNode > const &  xParent 
)
protected

◆ writeSimpleList()

void dp_registry::backend::BackendDb::writeSimpleList ( std::deque< OUString > const &  list,
std::u16string_view  sListTagName,
std::u16string_view  sMemberTagName,
css::uno::Reference< css::xml::dom::XNode > const &  xParent 
)
protected

Definition at line 379 of file dp_backenddb.cxx.

References Any, and sPrefix.

Referenced by dp_registry::backend::component::ComponentBackendDb::addEntry().

◆ writeVectorOfPair()

void dp_registry::backend::BackendDb::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 
)
protected

Member Data Documentation

◆ m_doc

css::uno::Reference<css::xml::dom::XDocument> dp_registry::backend::BackendDb::m_doc
private

Definition at line 47 of file dp_backenddb.hxx.

◆ m_urlDb

OUString dp_registry::backend::BackendDb::m_urlDb
protected

◆ m_xContext

const css::uno::Reference<css::uno::XComponentContext> dp_registry::backend::BackendDb::m_xContext
protected

Definition at line 54 of file dp_backenddb.hxx.

◆ m_xpathApi

css::uno::Reference<css::xml::xpath::XXPathAPI> dp_registry::backend::BackendDb::m_xpathApi
private

Definition at line 48 of file dp_backenddb.hxx.


The documentation for this class was generated from the following files: