LibreOffice Module configmgr (master) 1
|
#include <rootaccess.hxx>
Public Member Functions | |
RootAccess (Components &components, OUString pathRepresentation, OUString locale, bool update) | |
virtual std::vector< OUString > | getAbsolutePath () override |
virtual void | initBroadcaster (Modifications::Node const &modifications, Broadcaster *broadcaster) override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
OUString const & | getAbsolutePathRepresentation () |
const OUString & | getLocale () const |
bool | isUpdate () const |
void | setAlive (bool b) |
virtual void SAL_CALL | addChangesListener (css::uno::Reference< css::util::XChangesListener > const &aListener) override |
virtual void SAL_CALL | removeChangesListener (css::uno::Reference< css::util::XChangesListener > const &aListener) override |
virtual void SAL_CALL | commitChanges () override |
virtual sal_Bool SAL_CALL | hasPendingChanges () override |
virtual css::uno::Sequence< ::css::util::ElementChange > SAL_CALL | getPendingChanges () override |
Public Member Functions inherited from configmgr::Access | |
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< Node > | getNode ()=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 > () |
Private Types | |
typedef std::multiset< css::uno::Reference< css::util::XChangesListener > > | ChangesListeners |
Private Member Functions | |
virtual | ~RootAccess () override |
virtual std::vector< OUString > | getRelativePath () override |
virtual OUString | getRelativePathRepresentation () override |
virtual rtl::Reference< Node > | getNode () override |
virtual bool | isFinalized () override |
virtual const OUString & | getNameInternal () override |
virtual rtl::Reference< RootAccess > | getRootAccess () override |
virtual rtl::Reference< Access > | getParentAccess () override |
virtual void | addTypes (std::vector< css::uno::Type > *types) const override |
virtual void | addSupportedServiceNames (std::vector< OUString > *services) override |
virtual void | initDisposeBroadcaster (Broadcaster *broadcaster) override |
virtual void | clearListeners () noexcept override |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &aType) override |
virtual OUString SAL_CALL | getImplementationName () override |
Private Attributes | |
OUString | pathRepresentation_ |
OUString | locale_ |
std::vector< OUString > | path_ |
rtl::Reference< Node > | node_ |
OUString | name_ |
ChangesListeners | changesListeners_ |
std::shared_ptr< osl::Mutex > | lock_ |
bool | update_:1 |
bool | finalized_:1 |
bool | alive_:1 |
Additional Inherited Members | |
Protected Types inherited from configmgr::Access | |
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 inherited from configmgr::Access | |
Access (Components &components) | |
virtual | ~Access () override |
virtual const OUString & | getNameInternal ()=0 |
virtual rtl::Reference< RootAccess > | getRootAccess ()=0 |
virtual rtl::Reference< Access > | getParentAccess ()=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 |
Components & | getComponents () const |
void | checkLocalizedPropertyAccess () |
rtl::Reference< Node > | getParentNode () |
rtl::Reference< ChildAccess > | getChild (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 () |
Protected Attributes inherited from cppu::OWeakObject | |
oslInterlockedCount | m_refCount |
Definition at line 50 of file rootaccess.hxx.
|
private |
Definition at line 126 of file rootaccess.hxx.
configmgr::RootAccess::RootAccess | ( | Components & | components, |
OUString | pathRepresentation, | ||
OUString | locale, | ||
bool | update | ||
) |
Definition at line 57 of file rootaccess.cxx.
References update().
|
overrideprivatevirtual |
Definition at line 192 of file rootaccess.cxx.
References alive_, configmgr::Access::getComponents(), lock_, and configmgr::Components::removeRootAccess().
|
overridevirtualnoexcept |
Reimplemented from cppu::OWeakObject.
Definition at line 94 of file rootaccess.cxx.
References cppu::OWeakObject::acquire().
|
overridevirtual |
Definition at line 112 of file rootaccess.cxx.
References changesListeners_, configmgr::Access::checkLocalizedPropertyAccess(), configmgr::Access::IS_ANY, configmgr::Access::isDisposed(), lock_, and configmgr::Access::thisIs().
|
overrideprivatevirtual |
|
overrideprivatevirtual |
Implements configmgr::Access.
Definition at line 250 of file rootaccess.cxx.
|
overrideprivatevirtualnoexcept |
Reimplemented from configmgr::Access.
Definition at line 277 of file rootaccess.cxx.
References changesListeners_, and configmgr::Access::clearListeners().
|
overridevirtual |
Definition at line 146 of file rootaccess.cxx.
References alive_, configmgr::Access::checkLocalizedPropertyAccess(), configmgr::Access::commitChildChanges(), configmgr::Access::getComponents(), configmgr::Components::initGlobalBroadcaster(), configmgr::Access::IS_UPDATE, lock_, configmgr::Data::NO_LAYER, node_, pathRepresentation_, configmgr::Broadcaster::send(), configmgr::Access::thisIs(), and configmgr::Components::writeModifications().
|
overridevirtual |
Implements configmgr::Access.
Definition at line 67 of file rootaccess.cxx.
OUString const & configmgr::RootAccess::getAbsolutePathRepresentation | ( | ) |
Definition at line 102 of file rootaccess.cxx.
References getNode(), and pathRepresentation_.
|
overrideprivatevirtual |
Reimplemented from configmgr::Access.
Definition at line 303 of file rootaccess.cxx.
References configmgr::Access::checkLocalizedPropertyAccess(), configmgr::Access::IS_ANY, lock_, and configmgr::Access::thisIs().
|
inline |
Definition at line 70 of file rootaccess.hxx.
References locale_.
|
overrideprivatevirtual |
Implements configmgr::Access.
Definition at line 237 of file rootaccess.cxx.
|
overrideprivatevirtual |
Implements configmgr::Access.
Definition at line 207 of file rootaccess.cxx.
References finalized_, configmgr::Access::getComponents(), configmgr::Node::KIND_ROOT, name_, configmgr::Data::NO_LAYER, node_, path_, pathRepresentation_, and configmgr::Components::resolvePathRepresentation().
Referenced by getAbsolutePath(), getAbsolutePathRepresentation(), getNameInternal(), and isFinalized().
|
overrideprivatevirtual |
Implements configmgr::Access.
Definition at line 246 of file rootaccess.cxx.
|
overridevirtual |
Definition at line 182 of file rootaccess.cxx.
References configmgr::Access::checkLocalizedPropertyAccess(), comphelper::containerToSequence(), configmgr::Access::IS_UPDATE, lock_, configmgr::Access::reportChildChanges(), and configmgr::Access::thisIs().
|
overrideprivatevirtual |
Implements configmgr::Access.
Definition at line 199 of file rootaccess.cxx.
|
overrideprivatevirtual |
Implements configmgr::Access.
Definition at line 203 of file rootaccess.cxx.
|
overrideprivatevirtual |
Implements configmgr::Access.
Definition at line 242 of file rootaccess.cxx.
|
overridevirtual |
Definition at line 172 of file rootaccess.cxx.
References configmgr::Access::checkLocalizedPropertyAccess(), configmgr::Access::IS_UPDATE, lock_, configmgr::Access::reportChildChanges(), and configmgr::Access::thisIs().
|
overridevirtual |
Reimplemented from configmgr::Access.
Definition at line 72 of file rootaccess.cxx.
References configmgr::Broadcaster::addChangesNotification(), changesListeners_, comphelper::containerToSequence(), configmgr::Access::initBroadcasterAndChanges(), path_, and set().
|
overrideprivatevirtual |
Reimplemented from configmgr::Access.
Definition at line 266 of file rootaccess.cxx.
References configmgr::Broadcaster::addDisposeNotification(), changesListeners_, and configmgr::Access::initDisposeBroadcaster().
|
overrideprivatevirtual |
Implements configmgr::Access.
Definition at line 232 of file rootaccess.cxx.
References finalized_, and getNode().
|
inline |
Definition at line 72 of file rootaccess.hxx.
References update_.
|
overrideprivatevirtual |
Reimplemented from configmgr::Access.
Definition at line 282 of file rootaccess.cxx.
References configmgr::Access::checkLocalizedPropertyAccess(), configmgr::Access::IS_ANY, lock_, cppu::queryInterface(), configmgr::Access::queryInterface(), configmgr::Access::thisIs(), and update_.
|
overridevirtualnoexcept |
Reimplemented from cppu::OWeakObject.
Definition at line 98 of file rootaccess.cxx.
References cppu::OWeakObject::release().
|
overridevirtual |
Definition at line 134 of file rootaccess.cxx.
References changesListeners_, configmgr::Access::checkLocalizedPropertyAccess(), i, configmgr::Access::IS_ANY, lock_, and configmgr::Access::thisIs().
void configmgr::RootAccess::setAlive | ( | bool | b | ) |
Definition at line 108 of file rootaccess.cxx.
References alive_.
|
private |
Definition at line 139 of file rootaccess.hxx.
Referenced by commitChanges(), setAlive(), and ~RootAccess().
|
private |
Definition at line 133 of file rootaccess.hxx.
Referenced by addChangesListener(), clearListeners(), initBroadcaster(), initDisposeBroadcaster(), and removeChangesListener().
|
private |
Definition at line 138 of file rootaccess.hxx.
Referenced by getNode(), and isFinalized().
|
private |
Definition at line 129 of file rootaccess.hxx.
Referenced by getLocale().
|
private |
Definition at line 135 of file rootaccess.hxx.
Referenced by addChangesListener(), commitChanges(), getImplementationName(), getPendingChanges(), hasPendingChanges(), queryInterface(), removeChangesListener(), and ~RootAccess().
|
private |
Definition at line 132 of file rootaccess.hxx.
Referenced by getNameInternal(), and getNode().
|
private |
Definition at line 131 of file rootaccess.hxx.
Referenced by commitChanges(), and getNode().
|
private |
Definition at line 130 of file rootaccess.hxx.
Referenced by getAbsolutePath(), getNode(), and initBroadcaster().
|
private |
Definition at line 128 of file rootaccess.hxx.
Referenced by commitChanges(), getAbsolutePathRepresentation(), and getNode().
|
private |
Definition at line 137 of file rootaccess.hxx.
Referenced by addSupportedServiceNames(), isUpdate(), and queryInterface().