LibreOffice Module framework (master) 1
|
#include <factoryconfiguration.hxx>
Classes | |
struct | ControllerInfo |
class | MenuControllerMap |
Public Member Functions | |
ConfigurationAccess_ControllerFactory (const css::uno::Reference< css::uno::XComponentContext > &rxContext, OUString _sRoot) | |
virtual | ~ConfigurationAccess_ControllerFactory () override |
void | readConfigurationData () |
OUString | getServiceFromCommandModule (std::u16string_view rCommandURL, std::u16string_view rModule) const |
OUString | getValueFromCommandModule (std::u16string_view rCommandURL, std::u16string_view rModule) const |
void | addServiceToCommandModule (std::u16string_view rCommandURL, std::u16string_view rModule, const OUString &rServiceSpecifier) |
void | removeServiceFromCommandModule (std::u16string_view rCommandURL, std::u16string_view rModule) |
virtual void SAL_CALL | elementInserted (const css::container::ContainerEvent &Event) override |
virtual void SAL_CALL | elementRemoved (const css::container::ContainerEvent &Event) override |
virtual void SAL_CALL | elementReplaced (const css::container::ContainerEvent &Event) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
Private Member Functions | |
void | updateConfigurationDataImpl () |
bool | impl_getElementProps (const css::uno::Any &aElement, OUString &aCommand, OUString &aModule, OUString &aServiceSpecifier, OUString &aValue) const |
Private Attributes | |
std::mutex | m_mutex |
OUString | m_aPropCommand |
OUString | m_aPropModule |
OUString | m_aPropController |
OUString | m_aPropValue |
OUString | m_sRoot |
MenuControllerMap | m_aMenuControllerMap |
css::uno::Reference< css::lang::XMultiServiceFactory > | m_xConfigProvider |
css::uno::Reference< css::container::XNameAccess > | m_xConfigAccess |
css::uno::Reference< css::container::XContainerListener > | m_xConfigAccessListener |
bool | m_bConfigAccessInitialized |
Definition at line 42 of file factoryconfiguration.hxx.
framework::ConfigurationAccess_ControllerFactory::ConfigurationAccess_ControllerFactory | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
OUString | _sRoot | ||
) |
Definition at line 57 of file factoryconfiguration.cxx.
References m_xConfigProvider.
|
overridevirtual |
Definition at line 68 of file factoryconfiguration.cxx.
References m_mutex, m_xConfigAccess, and m_xConfigAccessListener.
void framework::ConfigurationAccess_ControllerFactory::addServiceToCommandModule | ( | std::u16string_view | rCommandURL, |
std::u16string_view | rModule, | ||
const OUString & | rServiceSpecifier | ||
) |
Definition at line 117 of file factoryconfiguration.cxx.
References framework::getHashKeyFromStrings(), m_aMenuControllerMap, and m_mutex.
|
overridevirtual |
Definition at line 183 of file factoryconfiguration.cxx.
References m_mutex, and m_xConfigAccess.
|
overridevirtual |
Definition at line 139 of file factoryconfiguration.cxx.
References aCommand, aEvent, framework::getHashKeyFromStrings(), impl_getElementProps(), framework::ConfigurationAccess_ControllerFactory::ControllerInfo::m_aImplementationName, m_aMenuControllerMap, framework::ConfigurationAccess_ControllerFactory::ControllerInfo::m_aValue, and m_mutex.
Referenced by elementReplaced().
|
overridevirtual |
Definition at line 159 of file factoryconfiguration.cxx.
References aCommand, aEvent, framework::getHashKeyFromStrings(), impl_getElementProps(), m_aMenuControllerMap, and m_mutex.
|
overridevirtual |
Definition at line 177 of file factoryconfiguration.cxx.
References aEvent, and elementInserted().
OUString framework::ConfigurationAccess_ControllerFactory::getServiceFromCommandModule | ( | std::u16string_view | rCommandURL, |
std::u16string_view | rModule | ||
) | const |
Definition at line 77 of file factoryconfiguration.cxx.
References framework::getHashKeyFromStrings(), m_aMenuControllerMap, and m_mutex.
OUString framework::ConfigurationAccess_ControllerFactory::getValueFromCommandModule | ( | std::u16string_view | rCommandURL, |
std::u16string_view | rModule | ||
) | const |
Definition at line 96 of file factoryconfiguration.cxx.
References framework::getHashKeyFromStrings(), m_aMenuControllerMap, and m_mutex.
|
private |
Definition at line 261 of file factoryconfiguration.cxx.
References aCommand, m_aPropCommand, m_aPropController, m_aPropModule, and m_aPropValue.
Referenced by elementInserted(), elementRemoved(), and updateConfigurationDataImpl().
void framework::ConfigurationAccess_ControllerFactory::readConfigurationData | ( | ) |
Definition at line 190 of file factoryconfiguration.cxx.
References comphelper::InitAnyPropertySequence(), m_bConfigAccessInitialized, m_mutex, m_sRoot, m_xConfigAccess, m_xConfigAccessListener, m_xConfigProvider, framework::SERVICENAME_CFGREADACCESS, and updateConfigurationDataImpl().
void framework::ConfigurationAccess_ControllerFactory::removeServiceFromCommandModule | ( | std::u16string_view | rCommandURL, |
std::u16string_view | rModule | ||
) |
Definition at line 128 of file factoryconfiguration.cxx.
References framework::getHashKeyFromStrings(), m_aMenuControllerMap, and m_mutex.
|
private |
Definition at line 229 of file factoryconfiguration.cxx.
References aCommand, framework::getHashKeyFromStrings(), impl_getElementProps(), m_aMenuControllerMap, m_xConfigAccess, and name.
Referenced by readConfigurationData().
|
private |
Definition at line 87 of file factoryconfiguration.hxx.
Referenced by addServiceToCommandModule(), elementInserted(), elementRemoved(), getServiceFromCommandModule(), getValueFromCommandModule(), removeServiceFromCommandModule(), and updateConfigurationDataImpl().
|
private |
Definition at line 82 of file factoryconfiguration.hxx.
Referenced by impl_getElementProps().
|
private |
Definition at line 84 of file factoryconfiguration.hxx.
Referenced by impl_getElementProps().
|
private |
Definition at line 83 of file factoryconfiguration.hxx.
Referenced by impl_getElementProps().
|
private |
Definition at line 85 of file factoryconfiguration.hxx.
Referenced by impl_getElementProps().
|
private |
Definition at line 91 of file factoryconfiguration.hxx.
Referenced by readConfigurationData().
|
mutableprivate |
Definition at line 81 of file factoryconfiguration.hxx.
Referenced by addServiceToCommandModule(), disposing(), elementInserted(), elementRemoved(), getServiceFromCommandModule(), getValueFromCommandModule(), readConfigurationData(), removeServiceFromCommandModule(), and ~ConfigurationAccess_ControllerFactory().
|
private |
Definition at line 86 of file factoryconfiguration.hxx.
Referenced by readConfigurationData().
|
private |
Definition at line 89 of file factoryconfiguration.hxx.
Referenced by disposing(), readConfigurationData(), updateConfigurationDataImpl(), and ~ConfigurationAccess_ControllerFactory().
|
private |
Definition at line 90 of file factoryconfiguration.hxx.
Referenced by readConfigurationData(), and ~ConfigurationAccess_ControllerFactory().
|
private |
Definition at line 88 of file factoryconfiguration.hxx.
Referenced by ConfigurationAccess_ControllerFactory(), and readConfigurationData().