LibreOffice Module configmgr (master) 1
Classes | Public Member Functions | Protected Types | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
configmgr::Access Class Referenceabstract

#include <access.hxx>

Inheritance diagram for configmgr::Access:
[legend]
Collaboration diagram for configmgr::Access:
[legend]

Classes

struct  ModifiedChild
 

Public Member Functions

oslInterlockedCount acquireCounting ()
 
void releaseNondeleting ()
 
bool isValue ()
 
void markChildAsModified (rtl::Reference< ChildAccess > const &child)
 
void releaseChild (OUString const &name)
 
virtual std::vector< OUString > getAbsolutePath ()=0
 
virtual std::vector< OUString > getRelativePath ()=0
 
virtual OUString getRelativePathRepresentation ()=0
 
virtual rtl::Reference< NodegetNode ()=0
 
virtual bool isFinalized ()=0
 
virtual void initBroadcaster (Modifications::Node const &modifications, Broadcaster *broadcaster)
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (OUString const &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &xListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &aListener) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 
virtual css::uno::Any SAL_CALL getByName (OUString const &aName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames () override
 
virtual sal_Bool SAL_CALL hasByName (OUString const &aName) override
 
virtual css::uno::Any SAL_CALL getByHierarchicalName (OUString const &aName) override
 
virtual sal_Bool SAL_CALL hasByHierarchicalName (OUString const &aName) override
 
virtual void SAL_CALL replaceByHierarchicalName (OUString const &aName, css::uno::Any const &aElement) override
 
virtual void SAL_CALL addContainerListener (css::uno::Reference< css::container::XContainerListener > const &xListener) override
 
virtual void SAL_CALL removeContainerListener (css::uno::Reference< css::container::XContainerListener > const &xListener) override
 
virtual OUString SAL_CALL getExactName (OUString const &aApproximateName) override
 
virtual css::uno::Sequence< css::beans::Property > SAL_CALL getProperties () override
 
virtual css::beans::Property SAL_CALL getPropertyByName (OUString const &aName) override
 
virtual sal_Bool SAL_CALL hasPropertyByName (OUString const &Name) override
 
virtual OUString SAL_CALL getHierarchicalName () override
 
virtual OUString SAL_CALL composeHierarchicalName (OUString const &aRelativeName) override
 
virtual OUString SAL_CALL getName () override
 
virtual void SAL_CALL setName (OUString const &aName) override
 
virtual css::beans::Property SAL_CALL getAsProperty () override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual void SAL_CALL setPropertyValue (OUString const &aPropertyName, css::uno::Any const &aValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (OUString const &PropertyName) override
 
virtual void SAL_CALL addPropertyChangeListener (OUString const &aPropertyName, css::uno::Reference< css::beans::XPropertyChangeListener > const &xListener) override
 
virtual void SAL_CALL removePropertyChangeListener (OUString const &aPropertyName, css::uno::Reference< css::beans::XPropertyChangeListener > const &aListener) override
 
virtual void SAL_CALL addVetoableChangeListener (OUString const &PropertyName, css::uno::Reference< css::beans::XVetoableChangeListener > const &aListener) override
 
virtual void SAL_CALL removeVetoableChangeListener (OUString const &PropertyName, css::uno::Reference< css::beans::XVetoableChangeListener > const &aListener) override
 
virtual void SAL_CALL setPropertyValues (css::uno::Sequence< OUString > const &aPropertyNames, css::uno::Sequence< css::uno::Any > const &aValues) override
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues (css::uno::Sequence< OUString > const &aPropertyNames) override
 
virtual void SAL_CALL addPropertiesChangeListener (css::uno::Sequence< OUString > const &aPropertyNames, css::uno::Reference< css::beans::XPropertiesChangeListener > const &xListener) override
 
virtual void SAL_CALL removePropertiesChangeListener (css::uno::Reference< css::beans::XPropertiesChangeListener > const &xListener) override
 
virtual void SAL_CALL firePropertiesChangeEvent (css::uno::Sequence< OUString > const &aPropertyNames, css::uno::Reference< css::beans::XPropertiesChangeListener > const &xListener) override
 
virtual css::uno::Reference< css::beans::XHierarchicalPropertySetInfo > SAL_CALL getHierarchicalPropertySetInfo () override
 
virtual void SAL_CALL setHierarchicalPropertyValue (OUString const &aHierarchicalPropertyName, css::uno::Any const &aValue) override
 
virtual css::uno::Any SAL_CALL getHierarchicalPropertyValue (OUString const &aHierarchicalPropertyName) override
 
virtual void SAL_CALL setHierarchicalPropertyValues (css::uno::Sequence< OUString > const &aHierarchicalPropertyNames, css::uno::Sequence< css::uno::Any > const &Values) override
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getHierarchicalPropertyValues (css::uno::Sequence< OUString > const &aHierarchicalPropertyNames) override
 
virtual css::beans::Property SAL_CALL getPropertyByHierarchicalName (OUString const &aHierarchicalName) override
 
virtual sal_Bool SAL_CALL hasPropertyByHierarchicalName (OUString const &aHierarchicalName) override
 
virtual void SAL_CALL replaceByName (OUString const &aName, css::uno::Any const &aElement) override
 
virtual void SAL_CALL insertByName (OUString const &aName, css::uno::Any const &aElement) override
 
virtual void SAL_CALL removeByName (OUString const &aName) override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance () override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments (css::uno::Sequence< css::uno::Any > const &aArguments) override
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 

Protected Types

enum  {
  IS_ANY = 0 ,
  IS_GROUP = 0x01 ,
  IS_SET = 0x02 ,
  IS_EXTENSIBLE = 0x04 ,
  IS_GROUP_MEMBER = 0x08 ,
  IS_SET_MEMBER = 0x10 ,
  IS_UPDATE = 0x20
}
 

Protected Member Functions

 Access (Components &components)
 
virtual ~Access () override
 
virtual const OUString & getNameInternal ()=0
 
virtual rtl::Reference< RootAccessgetRootAccess ()=0
 
virtual rtl::Reference< AccessgetParentAccess ()=0
 
virtual void addTypes (std::vector< css::uno::Type > *types) const =0
 
virtual void addSupportedServiceNames (std::vector< OUString > *services)=0
 
virtual void initDisposeBroadcaster (Broadcaster *broadcaster)
 
virtual void clearListeners () noexcept
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &aType) override
 
ComponentsgetComponents () const
 
void checkLocalizedPropertyAccess ()
 
rtl::Reference< NodegetParentNode ()
 
rtl::Reference< ChildAccessgetChild (OUString const &name)
 
std::vector< rtl::Reference< ChildAccess > > getAllChildren ()
 
void checkValue (css::uno::Any const &value, Type type, bool nillable)
 
void insertLocalizedValueChild (OUString const &name, css::uno::Any const &value, Modifications *localModifications)
 
void reportChildChanges (std::vector< css::util::ElementChange > *changes)
 
void commitChildChanges (bool valid, Modifications *globalModifications)
 
void initBroadcasterAndChanges (Modifications::Node const &modifications, Broadcaster *broadcaster, std::vector< css::util::ElementChange > *changes)
 
bool isDisposed () const
 
bool thisIs (int what)
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 

Private Types

typedef config_map< ModifiedChildModifiedChildren
 
typedef config_map< ChildAccess * > WeakChildMap
 
typedef std::multiset< css::uno::Reference< css::lang::XEventListener > > DisposeListeners
 
typedef std::multiset< css::uno::Reference< css::container::XContainerListener > > ContainerListeners
 
typedef std::multiset< css::uno::Reference< css::beans::XPropertyChangeListener > > PropertyChangeListenersElement
 
typedef config_map< PropertyChangeListenersElementPropertyChangeListeners
 
typedef std::multiset< css::uno::Reference< css::beans::XVetoableChangeListener > > VetoableChangeListenersElement
 
typedef config_map< VetoableChangeListenersElementVetoableChangeListeners
 
typedef std::multiset< css::uno::Reference< css::beans::XPropertiesChangeListener > > PropertiesChangeListeners
 

Private Member Functions

 Access (const Access &)=delete
 
Accessoperator= (const Access &)=delete
 
rtl::Reference< ChildAccessgetModifiedChild (ModifiedChildren::iterator const &childIterator)
 
rtl::Reference< ChildAccessgetUnmodifiedChild (OUString const &name)
 
rtl::Reference< ChildAccessgetSubChild (OUString const &path)
 
bool setChildProperty (OUString const &name, css::uno::Any const &value, Modifications *localModifications)
 
css::beans::Property asProperty ()
 
bool getByNameFast (const OUString &name, css::uno::Any &value)
 
rtl::Reference< ChildAccesscreateUnmodifiedChild (const OUString &name, const rtl::Reference< Node > &node)
 
void checkFinalized ()
 
void checkKnownProperty (OUString const &descriptor)
 
rtl::Reference< ChildAccessgetFreeSetMember (css::uno::Any const &value)
 
rtl::Reference< AccessgetNotificationRoot ()
 

Private Attributes

Componentscomponents_
 
ModifiedChildren modifiedChildren_
 
WeakChildMap cachedChildren_
 
DisposeListeners disposeListeners_
 
ContainerListeners containerListeners_
 
PropertyChangeListeners propertyChangeListeners_
 
VetoableChangeListeners vetoableChangeListeners_
 
PropertiesChangeListeners propertiesChangeListeners_
 
bool disposed_
 
std::shared_ptr< osl::Mutex > lock_
 

Additional Inherited Members

- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 

Detailed Description

Definition at line 81 of file access.hxx.

Member Typedef Documentation

◆ ContainerListeners

typedef std::multiset< css::uno::Reference< css::container::XContainerListener > > configmgr::Access::ContainerListeners
private

Definition at line 401 of file access.hxx.

◆ DisposeListeners

typedef std::multiset< css::uno::Reference< css::lang::XEventListener > > configmgr::Access::DisposeListeners
private

Definition at line 395 of file access.hxx.

◆ ModifiedChildren

Definition at line 361 of file access.hxx.

◆ PropertiesChangeListeners

typedef std::multiset< css::uno::Reference< css::beans::XPropertiesChangeListener > > configmgr::Access::PropertiesChangeListeners
private

Definition at line 425 of file access.hxx.

◆ PropertyChangeListeners

Definition at line 410 of file access.hxx.

◆ PropertyChangeListenersElement

typedef std::multiset< css::uno::Reference< css::beans::XPropertyChangeListener > > configmgr::Access::PropertyChangeListenersElement
private

Definition at line 407 of file access.hxx.

◆ VetoableChangeListeners

Definition at line 419 of file access.hxx.

◆ VetoableChangeListenersElement

typedef std::multiset< css::uno::Reference< css::beans::XVetoableChangeListener > > configmgr::Access::VetoableChangeListenersElement
private

Definition at line 416 of file access.hxx.

◆ WeakChildMap

Definition at line 389 of file access.hxx.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
IS_ANY 
IS_GROUP 
IS_SET 
IS_EXTENSIBLE 
IS_GROUP_MEMBER 
IS_SET_MEMBER 
IS_UPDATE 

Definition at line 441 of file access.hxx.

Constructor & Destructor Documentation

◆ Access() [1/2]

configmgr::Access::Access ( Components components)
explicitprotected

Definition at line 1219 of file access.cxx.

◆ ~Access()

configmgr::Access::~Access ( )
overrideprotectedvirtual

Definition at line 1224 of file access.cxx.

◆ Access() [2/2]

configmgr::Access::Access ( const Access )
privatedelete

Member Function Documentation

◆ acquireCounting()

oslInterlockedCount configmgr::Access::acquireCounting ( )

Definition at line 126 of file access.cxx.

References cppu::OWeakObject::m_refCount.

◆ addContainerListener()

void configmgr::Access::addContainerListener ( css::uno::Reference< css::container::XContainerListener > const &  xListener)
overridevirtual

◆ addEventListener()

void configmgr::Access::addEventListener ( css::uno::Reference< css::lang::XEventListener > const &  xListener)
overridevirtual

◆ addPropertiesChangeListener()

void configmgr::Access::addPropertiesChangeListener ( css::uno::Sequence< OUString > const &  aPropertyNames,
css::uno::Reference< css::beans::XPropertiesChangeListener > const &  xListener 
)
overridevirtual

Definition at line 872 of file access.cxx.

References disposed_, IS_GROUP, lock_, propertiesChangeListeners_, and thisIs().

◆ addPropertyChangeListener()

void configmgr::Access::addPropertyChangeListener ( OUString const &  aPropertyName,
css::uno::Reference< css::beans::XPropertyChangeListener > const &  xListener 
)
overridevirtual

Definition at line 731 of file access.cxx.

References checkKnownProperty(), disposed_, IS_GROUP, lock_, propertyChangeListeners_, and thisIs().

◆ addSupportedServiceNames()

virtual void configmgr::Access::addSupportedServiceNames ( std::vector< OUString > *  services)
protectedpure virtual

◆ addTypes()

virtual void configmgr::Access::addTypes ( std::vector< css::uno::Type > *  types) const
protectedpure virtual

Implemented in configmgr::ChildAccess, and configmgr::RootAccess.

Referenced by getTypes().

◆ addVetoableChangeListener()

void configmgr::Access::addVetoableChangeListener ( OUString const &  PropertyName,
css::uno::Reference< css::beans::XVetoableChangeListener > const &  aListener 
)
overridevirtual

Definition at line 776 of file access.cxx.

References checkKnownProperty(), disposed_, IS_GROUP, lock_, thisIs(), and vetoableChangeListeners_.

◆ asProperty()

css::beans::Property configmgr::Access::asProperty ( )
private

◆ checkFinalized()

void configmgr::Access::checkFinalized ( )
private

Definition at line 2130 of file access.cxx.

References isFinalized().

Referenced by insertByName(), and setName().

◆ checkKnownProperty()

void configmgr::Access::checkKnownProperty ( OUString const &  descriptor)
private

◆ checkLocalizedPropertyAccess()

void configmgr::Access::checkLocalizedPropertyAccess ( )
protected

◆ checkValue()

void configmgr::Access::checkValue ( css::uno::Any const &  value,
Type  type,
bool  nillable 
)
protected

◆ clearListeners()

void configmgr::Access::clearListeners ( )
protectedvirtualnoexcept

◆ commitChildChanges()

void configmgr::Access::commitChildChanges ( bool  valid,
Modifications globalModifications 
)
protected

◆ composeHierarchicalName()

OUString configmgr::Access::composeHierarchicalName ( OUString const &  aRelativeName)
overridevirtual

◆ createInstance()

css::uno::Reference< css::uno::XInterface > configmgr::Access::createInstance ( )
overridevirtual

◆ createInstanceWithArguments()

css::uno::Reference< css::uno::XInterface > configmgr::Access::createInstanceWithArguments ( css::uno::Sequence< css::uno::Any > const &  aArguments)
overridevirtual

Definition at line 1206 of file access.cxx.

References aArguments, createInstance(), IS_SET, IS_UPDATE, and thisIs().

◆ createUnmodifiedChild()

rtl::Reference< ChildAccess > configmgr::Access::createUnmodifiedChild ( const OUString &  name,
const rtl::Reference< Node > &  node 
)
private

Definition at line 1947 of file access.cxx.

References cachedChildren_, components_, getRootAccess(), and name.

Referenced by getUnmodifiedChild().

◆ dispose()

void configmgr::Access::dispose ( void  )
overridevirtual

◆ firePropertiesChangeEvent()

void configmgr::Access::firePropertiesChangeEvent ( css::uno::Sequence< OUString > const &  aPropertyNames,
css::uno::Reference< css::beans::XPropertiesChangeListener > const &  xListener 
)
overridevirtual

Definition at line 908 of file access.cxx.

References i, IS_GROUP, and thisIs().

◆ getAbsolutePath()

virtual std::vector< OUString > configmgr::Access::getAbsolutePath ( )
pure virtual

◆ getAllChildren()

std::vector< rtl::Reference< ChildAccess > > configmgr::Access::getAllChildren ( )
protected

◆ getAsProperty()

css::beans::Property configmgr::Access::getAsProperty ( )
overridevirtual

Definition at line 683 of file access.cxx.

References asProperty(), checkLocalizedPropertyAccess(), IS_ANY, lock_, and thisIs().

◆ getByHierarchicalName()

css::uno::Any configmgr::Access::getByHierarchicalName ( OUString const &  aName)
overridevirtual

Definition at line 431 of file access.cxx.

References aName, checkLocalizedPropertyAccess(), getSubChild(), IS_ANY, lock_, and thisIs().

◆ getByName()

css::uno::Any configmgr::Access::getByName ( OUString const &  aName)
overridevirtual

Definition at line 396 of file access.cxx.

References aName, checkLocalizedPropertyAccess(), getByNameFast(), IS_ANY, lock_, thisIs(), and value.

◆ getByNameFast()

bool configmgr::Access::getByNameFast ( const OUString &  name,
css::uno::Any &  value 
)
private

◆ getChild()

rtl::Reference< ChildAccess > configmgr::Access::getChild ( OUString const &  name)
protected

◆ getComponents()

Components & configmgr::Access::getComponents ( ) const
inlineprotected

◆ getElementNames()

css::uno::Sequence< OUString > configmgr::Access::getElementNames ( )
overridevirtual

Definition at line 408 of file access.cxx.

References checkLocalizedPropertyAccess(), getAllChildren(), IS_ANY, lock_, and thisIs().

◆ getElementType()

css::uno::Type configmgr::Access::getElementType ( )
overridevirtual

◆ getExactName()

OUString configmgr::Access::getExactName ( OUString const &  aApproximateName)
overridevirtual

Definition at line 528 of file access.cxx.

References checkLocalizedPropertyAccess(), IS_ANY, lock_, and thisIs().

◆ getFreeSetMember()

rtl::Reference< ChildAccess > configmgr::Access::getFreeSetMember ( css::uno::Any const &  value)
private

Definition at line 2165 of file access.cxx.

References get(), getNode(), getRootAccess(), and value.

Referenced by insertByName(), and replaceByName().

◆ getHierarchicalName()

OUString configmgr::Access::getHierarchicalName ( )
overridevirtual

◆ getHierarchicalPropertySetInfo()

css::uno::Reference< css::beans::XHierarchicalPropertySetInfo > configmgr::Access::getHierarchicalPropertySetInfo ( )
overridevirtual

Definition at line 927 of file access.cxx.

References IS_GROUP, and thisIs().

◆ getHierarchicalPropertyValue()

css::uno::Any configmgr::Access::getHierarchicalPropertyValue ( OUString const &  aHierarchicalPropertyName)
overridevirtual

Definition at line 960 of file access.cxx.

References getSubChild(), IS_GROUP, lock_, and thisIs().

◆ getHierarchicalPropertyValues()

css::uno::Sequence< css::uno::Any > configmgr::Access::getHierarchicalPropertyValues ( css::uno::Sequence< OUString > const &  aHierarchicalPropertyNames)
overridevirtual

Definition at line 1011 of file access.cxx.

References getSubChild(), i, IS_GROUP, lock_, and thisIs().

◆ getImplementationId()

css::uno::Sequence< sal_Int8 > configmgr::Access::getImplementationId ( )
overridevirtual

Definition at line 224 of file access.cxx.

References checkLocalizedPropertyAccess(), IS_ANY, lock_, and thisIs().

◆ getImplementationName()

OUString configmgr::Access::getImplementationName ( )
overridevirtual

Reimplemented in configmgr::RootAccess.

Definition at line 232 of file access.cxx.

References checkLocalizedPropertyAccess(), IS_ANY, lock_, and thisIs().

◆ getModifiedChild()

rtl::Reference< ChildAccess > configmgr::Access::getModifiedChild ( ModifiedChildren::iterator const &  childIterator)
private

◆ getName()

OUString configmgr::Access::getName ( )
overridevirtual

Definition at line 608 of file access.cxx.

References checkLocalizedPropertyAccess(), getNameInternal(), IS_ANY, lock_, and thisIs().

◆ getNameInternal()

virtual const OUString & configmgr::Access::getNameInternal ( )
protectedpure virtual

Implemented in configmgr::ChildAccess, and configmgr::RootAccess.

Referenced by asProperty(), and getName().

◆ getNode()

virtual rtl::Reference< Node > configmgr::Access::getNode ( )
pure virtual

◆ getNotificationRoot()

rtl::Reference< Access > configmgr::Access::getNotificationRoot ( )
private

◆ getParentAccess()

virtual rtl::Reference< Access > configmgr::Access::getParentAccess ( )
protectedpure virtual

◆ getParentNode()

rtl::Reference< Node > configmgr::Access::getParentNode ( )
protected

◆ getProperties()

css::uno::Sequence< css::beans::Property > configmgr::Access::getProperties ( )
overridevirtual

Definition at line 536 of file access.cxx.

References comphelper::containerToSequence(), getAllChildren(), IS_GROUP, lock_, and thisIs().

◆ getPropertyByHierarchicalName()

css::beans::Property configmgr::Access::getPropertyByHierarchicalName ( OUString const &  aHierarchicalName)
overridevirtual

Definition at line 1033 of file access.cxx.

References getSubChild(), IS_GROUP, lock_, and thisIs().

◆ getPropertyByName()

css::beans::Property configmgr::Access::getPropertyByName ( OUString const &  aName)
overridevirtual

Definition at line 550 of file access.cxx.

References aName, getChild(), IS_GROUP, lock_, and thisIs().

◆ getPropertySetInfo()

css::uno::Reference< css::beans::XPropertySetInfo > configmgr::Access::getPropertySetInfo ( )
overridevirtual

Definition at line 691 of file access.cxx.

References IS_GROUP, and thisIs().

◆ getPropertyValue()

css::uno::Any configmgr::Access::getPropertyValue ( OUString const &  PropertyName)
overridevirtual

Definition at line 719 of file access.cxx.

References getByNameFast(), IS_GROUP, lock_, thisIs(), and value.

◆ getPropertyValues()

css::uno::Sequence< css::uno::Any > configmgr::Access::getPropertyValues ( css::uno::Sequence< OUString > const &  aPropertyNames)
overridevirtual

Definition at line 854 of file access.cxx.

References getByNameFast(), i, IS_GROUP, lock_, and thisIs().

◆ getRelativePath()

virtual std::vector< OUString > configmgr::Access::getRelativePath ( )
pure virtual

Implemented in configmgr::ChildAccess, and configmgr::RootAccess.

Referenced by setName().

◆ getRelativePathRepresentation()

virtual OUString configmgr::Access::getRelativePathRepresentation ( )
pure virtual

◆ getRootAccess()

virtual rtl::Reference< RootAccess > configmgr::Access::getRootAccess ( )
protectedpure virtual

◆ getSubChild()

rtl::Reference< ChildAccess > configmgr::Access::getSubChild ( OUString const &  path)
private

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > configmgr::Access::getSupportedServiceNames ( )
overridevirtual

◆ getTypes()

css::uno::Sequence< css::uno::Type > configmgr::Access::getTypes ( )
overridevirtual

◆ getUnmodifiedChild()

rtl::Reference< ChildAccess > configmgr::Access::getUnmodifiedChild ( OUString const &  name)
private

Definition at line 1956 of file access.cxx.

References cachedChildren_, createUnmodifiedChild(), getNode(), i, modifiedChildren_, and name.

Referenced by getAllChildren(), and getChild().

◆ hasByHierarchicalName()

sal_Bool configmgr::Access::hasByHierarchicalName ( OUString const &  aName)
overridevirtual

Definition at line 444 of file access.cxx.

References aName, checkLocalizedPropertyAccess(), getSubChild(), IS_ANY, lock_, and thisIs().

◆ hasByName()

sal_Bool configmgr::Access::hasByName ( OUString const &  aName)
overridevirtual

Definition at line 423 of file access.cxx.

References aName, checkLocalizedPropertyAccess(), getChild(), IS_ANY, lock_, and thisIs().

◆ hasElements()

sal_Bool configmgr::Access::hasElements ( )
overridevirtual

Definition at line 353 of file access.cxx.

References checkLocalizedPropertyAccess(), getAllChildren(), IS_ANY, lock_, and thisIs().

◆ hasPropertyByHierarchicalName()

sal_Bool configmgr::Access::hasPropertyByHierarchicalName ( OUString const &  aHierarchicalName)
overridevirtual

Definition at line 1046 of file access.cxx.

References getSubChild(), IS_GROUP, lock_, and thisIs().

◆ hasPropertyByName()

sal_Bool configmgr::Access::hasPropertyByName ( OUString const &  Name)
overridevirtual

Definition at line 562 of file access.cxx.

References getChild(), IS_GROUP, lock_, Name, and thisIs().

◆ initBroadcaster()

void configmgr::Access::initBroadcaster ( Modifications::Node const &  modifications,
Broadcaster broadcaster 
)
virtual

Reimplemented in configmgr::RootAccess.

Definition at line 167 of file access.cxx.

References initBroadcasterAndChanges().

◆ initBroadcasterAndChanges()

void configmgr::Access::initBroadcasterAndChanges ( Modifications::Node const &  modifications,
Broadcaster broadcaster,
std::vector< css::util::ElementChange > *  changes 
)
protected

◆ initDisposeBroadcaster()

void configmgr::Access::initDisposeBroadcaster ( Broadcaster broadcaster)
protectedvirtual

◆ insertByName()

void configmgr::Access::insertByName ( OUString const &  aName,
css::uno::Any const &  aElement 
)
overridevirtual

◆ insertLocalizedValueChild()

void configmgr::Access::insertLocalizedValueChild ( OUString const &  name,
css::uno::Any const &  value,
Modifications localModifications 
)
protected

◆ isDisposed()

bool configmgr::Access::isDisposed ( ) const
inlineprotected

Definition at line 344 of file access.hxx.

References disposed_.

Referenced by configmgr::RootAccess::addChangesListener().

◆ isFinalized()

virtual bool configmgr::Access::isFinalized ( )
pure virtual

Implemented in configmgr::ChildAccess, and configmgr::RootAccess.

Referenced by checkFinalized().

◆ isValue()

bool configmgr::Access::isValue ( )

◆ markChildAsModified()

void configmgr::Access::markChildAsModified ( rtl::Reference< ChildAccess > const &  child)

Definition at line 147 of file access.cxx.

References modifiedChildren_, and p.

Referenced by insertByName(), insertLocalizedValueChild(), removeByName(), and replaceByName().

◆ operator=()

Access & configmgr::Access::operator= ( const Access )
privatedelete

◆ queryInterface()

css::uno::Any configmgr::Access::queryInterface ( css::uno::Type const &  aType)
overrideprotectedvirtual

◆ releaseChild()

void configmgr::Access::releaseChild ( OUString const &  name)

Definition at line 163 of file access.cxx.

References cachedChildren_, and name.

◆ releaseNondeleting()

void configmgr::Access::releaseNondeleting ( )

Definition at line 130 of file access.cxx.

References cppu::OWeakObject::m_refCount.

◆ removeByName()

void configmgr::Access::removeByName ( OUString const &  aName)
overridevirtual

◆ removeContainerListener()

void configmgr::Access::removeContainerListener ( css::uno::Reference< css::container::XContainerListener > const &  xListener)
overridevirtual

Definition at line 516 of file access.cxx.

References checkLocalizedPropertyAccess(), containerListeners_, i, IS_ANY, lock_, and thisIs().

◆ removeEventListener()

void configmgr::Access::removeEventListener ( css::uno::Reference< css::lang::XEventListener > const &  aListener)
overridevirtual

Definition at line 318 of file access.cxx.

References checkLocalizedPropertyAccess(), disposeListeners_, i, IS_ANY, lock_, and thisIs().

◆ removePropertiesChangeListener()

void configmgr::Access::removePropertiesChangeListener ( css::uno::Reference< css::beans::XPropertiesChangeListener > const &  xListener)
overridevirtual

Definition at line 895 of file access.cxx.

References i, IS_GROUP, lock_, propertiesChangeListeners_, and thisIs().

◆ removePropertyChangeListener()

void configmgr::Access::removePropertyChangeListener ( OUString const &  aPropertyName,
css::uno::Reference< css::beans::XPropertyChangeListener > const &  aListener 
)
overridevirtual

Definition at line 755 of file access.cxx.

References checkKnownProperty(), i, IS_GROUP, lock_, propertyChangeListeners_, and thisIs().

◆ removeVetoableChangeListener()

void configmgr::Access::removeVetoableChangeListener ( OUString const &  PropertyName,
css::uno::Reference< css::beans::XVetoableChangeListener > const &  aListener 
)
overridevirtual

Definition at line 801 of file access.cxx.

References checkKnownProperty(), i, IS_GROUP, lock_, thisIs(), and vetoableChangeListeners_.

◆ replaceByHierarchicalName()

void configmgr::Access::replaceByHierarchicalName ( OUString const &  aName,
css::uno::Any const &  aElement 
)
overridevirtual

◆ replaceByName()

void configmgr::Access::replaceByName ( OUString const &  aName,
css::uno::Any const &  aElement 
)
overridevirtual

◆ reportChildChanges()

void configmgr::Access::reportChildChanges ( std::vector< css::util::ElementChange > *  changes)
protected

◆ setChildProperty()

bool configmgr::Access::setChildProperty ( OUString const &  name,
css::uno::Any const &  value,
Modifications localModifications 
)
private

Definition at line 2060 of file access.cxx.

References getChild(), name, and value.

Referenced by setPropertyValue(), and setPropertyValues().

◆ setHierarchicalPropertyValue()

void configmgr::Access::setHierarchicalPropertyValue ( OUString const &  aHierarchicalPropertyName,
css::uno::Any const &  aValue 
)
overridevirtual

◆ setHierarchicalPropertyValues()

void configmgr::Access::setHierarchicalPropertyValues ( css::uno::Sequence< OUString > const &  aHierarchicalPropertyNames,
css::uno::Sequence< css::uno::Any > const &  Values 
)
overridevirtual

◆ setName()

void configmgr::Access::setName ( OUString const &  aName)
overridevirtual

◆ setPropertyValue()

void configmgr::Access::setPropertyValue ( OUString const &  aPropertyName,
css::uno::Any const &  aValue 
)
overridevirtual

◆ setPropertyValues()

void configmgr::Access::setPropertyValues ( css::uno::Sequence< OUString > const &  aPropertyNames,
css::uno::Sequence< css::uno::Any > const &  aValues 
)
overridevirtual

◆ supportsService()

sal_Bool configmgr::Access::supportsService ( OUString const &  ServiceName)
overridevirtual

Definition at line 240 of file access.cxx.

References ServiceName, and cppu::supportsService().

◆ thisIs()

bool configmgr::Access::thisIs ( int  what)
protected

Definition at line 2201 of file access.cxx.

References getNode(), getParentNode(), getRootAccess(), IS_EXTENSIBLE, IS_GROUP, IS_GROUP_MEMBER, IS_SET, IS_SET_MEMBER, IS_UPDATE, configmgr::GroupNode::isExtensible(), configmgr::Node::KIND_GROUP, configmgr::Node::KIND_LOCALIZED_VALUE, configmgr::Node::KIND_PROPERTY, configmgr::Node::KIND_SET, lock_, and p.

Referenced by configmgr::RootAccess::addChangesListener(), addContainerListener(), addEventListener(), addPropertiesChangeListener(), addPropertyChangeListener(), addVetoableChangeListener(), configmgr::RootAccess::commitChanges(), composeHierarchicalName(), createInstance(), createInstanceWithArguments(), dispose(), firePropertiesChangeEvent(), getAsProperty(), getByHierarchicalName(), getByName(), getElementNames(), getElementType(), getExactName(), getHierarchicalName(), getHierarchicalPropertySetInfo(), getHierarchicalPropertyValue(), getHierarchicalPropertyValues(), getImplementationId(), getImplementationName(), configmgr::RootAccess::getImplementationName(), getName(), configmgr::ChildAccess::getParent(), configmgr::RootAccess::getPendingChanges(), getProperties(), getPropertyByHierarchicalName(), getPropertyByName(), getPropertySetInfo(), getPropertyValue(), getPropertyValues(), getSupportedServiceNames(), getTypes(), hasByHierarchicalName(), hasByName(), hasElements(), configmgr::RootAccess::hasPendingChanges(), hasPropertyByHierarchicalName(), hasPropertyByName(), insertByName(), configmgr::ChildAccess::queryInterface(), configmgr::RootAccess::queryInterface(), removeByName(), configmgr::RootAccess::removeChangesListener(), removeContainerListener(), removeEventListener(), removePropertiesChangeListener(), removePropertyChangeListener(), removeVetoableChangeListener(), replaceByHierarchicalName(), replaceByName(), setHierarchicalPropertyValue(), setHierarchicalPropertyValues(), setName(), configmgr::ChildAccess::setParent(), setPropertyValue(), and setPropertyValues().

Member Data Documentation

◆ cachedChildren_

WeakChildMap configmgr::Access::cachedChildren_
private

Definition at line 429 of file access.hxx.

Referenced by createUnmodifiedChild(), getUnmodifiedChild(), and releaseChild().

◆ components_

Components& configmgr::Access::components_
private

◆ containerListeners_

ContainerListeners configmgr::Access::containerListeners_
private

◆ disposed_

bool configmgr::Access::disposed_
private

◆ disposeListeners_

DisposeListeners configmgr::Access::disposeListeners_
private

◆ lock_

std::shared_ptr<osl::Mutex> configmgr::Access::lock_
private

◆ modifiedChildren_

ModifiedChildren configmgr::Access::modifiedChildren_
private

◆ propertiesChangeListeners_

PropertiesChangeListeners configmgr::Access::propertiesChangeListeners_
private

◆ propertyChangeListeners_

PropertyChangeListeners configmgr::Access::propertyChangeListeners_
private

◆ vetoableChangeListeners_

VetoableChangeListeners configmgr::Access::vetoableChangeListeners_
private

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