LibreOffice Module unotools (master) 1
|
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 | |
ConfigItem & | operator= (ConfigItem const &)=delete |
ConfigItem & | operator= (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 () |
ConfigurationBroadcaster & | operator= (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_Bool > | GetReadOnlyStates (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) |
Definition at line 89 of file eventcfg.cxx.
GlobalEventConfig_Impl::GlobalEventConfig_Impl | ( | ) |
Definition at line 126 of file eventcfg.cxx.
References utl::ConfigItem::EnableNotification(), initBindingInfo(), m_supportedEvents, NONE, and pEventAsciiNames.
|
overridevirtual |
Definition at line 144 of file eventcfg.cxx.
References utl::ConfigItem::IsModified().
css::uno::Sequence< css::beans::PropertyValue > GlobalEventConfig_Impl::getByName | ( | const OUString & | aName | ) |
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().
Sequence< OUString > GlobalEventConfig_Impl::getElementNames | ( | ) |
css::uno::RuntimeException |
Definition at line 267 of file eventcfg.cxx.
References o3tl::enumarray< typename E, typename V >::data(), m_supportedEvents, and o3tl::enumarray< GlobalEventId, OUString >::size().
Referenced by GlobalEventConfig::getElementNames().
|
static |
css::uno::RuntimeException |
Definition at line 283 of file eventcfg.cxx.
References Translate::get().
Referenced by GlobalEventConfig::getElementType().
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().
bool GlobalEventConfig_Impl::hasByName | ( | const OUString & | aName | ) |
css::uno::RuntimeException |
Definition at line 272 of file eventcfg.cxx.
References aName, o3tl::enumarray< typename E, typename V >::begin(), o3tl::enumarray< typename E, typename V >::end(), m_eventBindingHash, m_supportedEvents, and pos.
Referenced by GlobalEventConfig::hasByName().
bool GlobalEventConfig_Impl::hasElements | ( | ) | const |
css::uno::RuntimeException |
Definition at line 289 of file eventcfg.cxx.
References m_eventBindingHash.
Referenced by GlobalEventConfig::hasElements().
|
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().
|
private |
Definition at line 189 of file eventcfg.cxx.
References utl::ConfigItem::GetNodeNames(), utl::ConfigItem::GetProperties(), utl::LocalPath, m_eventBindingHash, PATHDELIMITER, PROPERTYNAME_BINDINGURL, SAL_INFO, and SETNODE_BINDINGS.
Referenced by GlobalEventConfig_Impl(), and Notify().
|
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().
void GlobalEventConfig_Impl::replaceByName | ( | const OUString & | aName, |
const css::uno::Any & | aElement | ||
) |
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().
|
private |
Definition at line 92 of file eventcfg.cxx.
Referenced by getByName(), hasByName(), hasElements(), ImplCommit(), initBindingInfo(), and replaceByName().
|
private |
Definition at line 93 of file eventcfg.cxx.
Referenced by getByName(), getElementNames(), GetEventName(), GlobalEventConfig_Impl(), and hasByName().