LibreOffice Module unotools (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
GlobalEventConfig_Impl Class Reference
Inheritance diagram for GlobalEventConfig_Impl:
[legend]
Collaboration diagram for GlobalEventConfig_Impl:
[legend]

Public Member Functions

 GlobalEventConfig_Impl ()
 
virtual ~GlobalEventConfig_Impl () override
 
void Notify (const css::uno::Sequence< OUString > &aPropertyNames) override
 is called from the ConfigManager before application ends of from the PropertyChangeListener if the sub tree broadcasts changes. More...
 
void replaceByName (const OUString &aName, const css::uno::Any &aElement)
 
css::uno::Sequence< css::beans::PropertyValue > getByName (const OUString &aName)
 
css::uno::Sequence< OUString > getElementNames ()
 
bool hasByName (const OUString &aName)
 
bool hasElements () const
 
OUString const & GetEventName (GlobalEventId nID) const
 
- Public Member Functions inherited from utl::ConfigItem
virtual ~ConfigItem () override
 
 ConfigItem (ConfigItem const &)=default
 
 ConfigItem (ConfigItem &&)=default
 
ConfigItemoperator= (ConfigItem const &)=delete
 
ConfigItemoperator= (ConfigItem &&)=delete
 
virtual void Notify (const css::uno::Sequence< OUString > &aPropertyNames)=0
 is called from the ConfigManager before application ends of from the PropertyChangeListener if the sub tree broadcasts changes. More...
 
const OUString & GetSubTreeName () const
 
bool IsModified () const
 
void Commit ()
 
ConfigItemMode GetMode () const
 
- Public Member Functions inherited from utl::ConfigurationBroadcaster
void AddListener (utl::ConfigurationListener *pListener)
 
void RemoveListener (utl::ConfigurationListener const *pListener)
 
void NotifyListeners (ConfigurationHints nHint)
 
 ConfigurationBroadcaster ()
 
 ConfigurationBroadcaster (ConfigurationBroadcaster const &)
 
virtual ~ConfigurationBroadcaster ()
 
ConfigurationBroadcasteroperator= (ConfigurationBroadcaster const &other)
 
virtual void BlockBroadcasts (bool bBlock)
 

Static Public Member Functions

static css::uno::Type const & getElementType ()
 
- Static Public Member Functions inherited from utl::ConfigItem
static css::uno::Sequence< OUString > GetNodeNames (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, ConfigNameFormat eFormat)
 
static css::uno::Sequence< css::uno::Any > GetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, bool bAllLocales)
 
static bool PutProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues, bool bAllLocales)
 
static bool ClearNodeSet (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode)
 
static bool ReplaceSetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues, bool bAllLocales)
 
static bool SetSetProperties (css::uno::Reference< css::container::XHierarchicalNameAccess > const &xHierarchyAccess, const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues)
 

Private Member Functions

void initBindingInfo ()
 
virtual void ImplCommit () override
 writes the changed values into the sub tree. More...
 

Private Attributes

EventBindingHash m_eventBindingHash
 
SupportedEventsVector m_supportedEvents
 

Additional Inherited Members

- Protected Member Functions inherited from utl::ConfigItem
 ConfigItem (OUString aSubTree, ConfigItemMode nMode=ConfigItemMode::NONE)
 
void SetModified ()
 
void ClearModified ()
 
css::uno::Sequence< css::uno::Any > GetProperties (const css::uno::Sequence< OUString > &rNames)
 
css::uno::Sequence< sal_BoolGetReadOnlyStates (const css::uno::Sequence< OUString > &rNames)
 
bool PutProperties (const css::uno::Sequence< OUString > &rNames, const css::uno::Sequence< css::uno::Any > &rValues)
 
bool EnableNotification (const css::uno::Sequence< OUString > &rNames, bool bEnableInternalNotification=false)
 enables notifications about changes on selected sub nodes/values More...
 
void DisableNotification ()
 disables notifications about changes on sub nodes/values, which previously had been enabled with EnableNotification More...
 
css::uno::Sequence< OUString > GetNodeNames (const OUString &rNode)
 
css::uno::Sequence< OUString > GetNodeNames (const OUString &rNode, ConfigNameFormat eFormat)
 
bool ClearNodeSet (const OUString &rNode)
 
bool ClearNodeElements (const OUString &rNode, css::uno::Sequence< OUString > const &rElements)
 
bool SetSetProperties (const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
bool ReplaceSetProperties (const OUString &rNode, const css::uno::Sequence< css::beans::PropertyValue > &rValues)
 
bool AddNode (const OUString &rNode, const OUString &rNewNode)
 

Detailed Description

Definition at line 89 of file eventcfg.cxx.

Constructor & Destructor Documentation

◆ GlobalEventConfig_Impl()

GlobalEventConfig_Impl::GlobalEventConfig_Impl ( )

◆ ~GlobalEventConfig_Impl()

GlobalEventConfig_Impl::~GlobalEventConfig_Impl ( )
overridevirtual

Definition at line 144 of file eventcfg.cxx.

References utl::ConfigItem::IsModified().

Member Function Documentation

◆ getByName()

css::uno::Sequence< css::beans::PropertyValue > GlobalEventConfig_Impl::getByName ( const OUString &  aName)
Exceptions
css::container::NoSuchElementException
css::lang::WrappedTargetException
css::uno::RuntimeException

Definition at line 240 of file eventcfg.cxx.

References aName, o3tl::enumarray< typename E, typename V >::begin(), o3tl::enumarray< typename E, typename V >::end(), m_eventBindingHash, m_supportedEvents, pos, props, sEventType, sScript, and u.

Referenced by GlobalEventConfig::getByName2().

◆ getElementNames()

Sequence< OUString > GlobalEventConfig_Impl::getElementNames ( )

◆ getElementType()

Type const & GlobalEventConfig_Impl::getElementType ( )
static
Exceptions
css::uno::RuntimeException

Definition at line 283 of file eventcfg.cxx.

References Translate::get().

Referenced by GlobalEventConfig::getElementType().

◆ GetEventName()

OUString const & GlobalEventConfig_Impl::GetEventName ( GlobalEventId  nID) const

Definition at line 149 of file eventcfg.cxx.

References m_supportedEvents, and nIndex.

Referenced by GlobalEventConfig::GetEventName().

◆ hasByName()

bool GlobalEventConfig_Impl::hasByName ( const OUString &  aName)

◆ hasElements()

bool GlobalEventConfig_Impl::hasElements ( ) const
Exceptions
css::uno::RuntimeException

Definition at line 289 of file eventcfg.cxx.

References m_eventBindingHash.

Referenced by GlobalEventConfig::hasElements().

◆ ImplCommit()

void GlobalEventConfig_Impl::ImplCommit ( )
overrideprivatevirtual

writes the changed values into the sub tree.

Private and only called from non-virtual public Commit().

Implements utl::ConfigItem.

Definition at line 165 of file eventcfg.cxx.

References utl::ConfigItem::ClearNodeSet(), m_eventBindingHash, comphelper::makePropertyValue(), PATHDELIMITER, PROPERTYNAME_BINDINGURL, SAL_INFO, SETNODE_BINDINGS, and utl::ConfigItem::SetSetProperties().

◆ initBindingInfo()

void GlobalEventConfig_Impl::initBindingInfo ( )
private

◆ Notify()

void GlobalEventConfig_Impl::Notify ( const css::uno::Sequence< OUString > &  aPropertyNames)
overridevirtual

is called from the ConfigManager before application ends of from the PropertyChangeListener if the sub tree broadcasts changes.

Implements utl::ConfigItem.

Definition at line 156 of file eventcfg.cxx.

References GetOwnStaticMutex(), and initBindingInfo().

◆ replaceByName()

void GlobalEventConfig_Impl::replaceByName ( const OUString &  aName,
const css::uno::Any &  aElement 
)
Exceptions
css::lang::IllegalArgumentException
css::container::NoSuchElementException
css::lang::WrappedTargetException
css::uno::RuntimeException

Definition at line 221 of file eventcfg.cxx.

References aName, m_eventBindingHash, props, and utl::ConfigItem::SetModified().

Referenced by GlobalEventConfig::replaceByName().

Member Data Documentation

◆ m_eventBindingHash

EventBindingHash GlobalEventConfig_Impl::m_eventBindingHash
private

◆ m_supportedEvents

SupportedEventsVector GlobalEventConfig_Impl::m_supportedEvents
private

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