LibreOffice Module framework (master) 1
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
framework::ConfigurationAccess_ControllerFactory Class Referencefinal

#include <factoryconfiguration.hxx>

Inheritance diagram for framework::ConfigurationAccess_ControllerFactory:
[legend]
Collaboration diagram for framework::ConfigurationAccess_ControllerFactory:
[legend]

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
 

Detailed Description

Definition at line 42 of file factoryconfiguration.hxx.

Constructor & Destructor Documentation

◆ ConfigurationAccess_ControllerFactory()

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.

◆ ~ConfigurationAccess_ControllerFactory()

framework::ConfigurationAccess_ControllerFactory::~ConfigurationAccess_ControllerFactory ( )
overridevirtual

Definition at line 68 of file factoryconfiguration.cxx.

References m_mutex, m_xConfigAccess, and m_xConfigAccessListener.

Member Function Documentation

◆ addServiceToCommandModule()

void framework::ConfigurationAccess_ControllerFactory::addServiceToCommandModule ( std::u16string_view  rCommandURL,
std::u16string_view  rModule,
const OUString &  rServiceSpecifier 
)

◆ disposing()

void SAL_CALL framework::ConfigurationAccess_ControllerFactory::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 183 of file factoryconfiguration.cxx.

References m_mutex, and m_xConfigAccess.

◆ elementInserted()

void SAL_CALL framework::ConfigurationAccess_ControllerFactory::elementInserted ( const css::container::ContainerEvent &  Event)
overridevirtual

◆ elementRemoved()

void SAL_CALL framework::ConfigurationAccess_ControllerFactory::elementRemoved ( const css::container::ContainerEvent &  Event)
overridevirtual

◆ elementReplaced()

void SAL_CALL framework::ConfigurationAccess_ControllerFactory::elementReplaced ( const css::container::ContainerEvent &  Event)
overridevirtual

Definition at line 177 of file factoryconfiguration.cxx.

References aEvent, and elementInserted().

◆ getServiceFromCommandModule()

OUString framework::ConfigurationAccess_ControllerFactory::getServiceFromCommandModule ( std::u16string_view  rCommandURL,
std::u16string_view  rModule 
) const

◆ getValueFromCommandModule()

OUString framework::ConfigurationAccess_ControllerFactory::getValueFromCommandModule ( std::u16string_view  rCommandURL,
std::u16string_view  rModule 
) const

◆ impl_getElementProps()

bool framework::ConfigurationAccess_ControllerFactory::impl_getElementProps ( const css::uno::Any &  aElement,
OUString &  aCommand,
OUString &  aModule,
OUString &  aServiceSpecifier,
OUString &  aValue 
) const
private

◆ readConfigurationData()

void framework::ConfigurationAccess_ControllerFactory::readConfigurationData ( )

◆ removeServiceFromCommandModule()

void framework::ConfigurationAccess_ControllerFactory::removeServiceFromCommandModule ( std::u16string_view  rCommandURL,
std::u16string_view  rModule 
)

◆ updateConfigurationDataImpl()

void framework::ConfigurationAccess_ControllerFactory::updateConfigurationDataImpl ( )
private

Member Data Documentation

◆ m_aMenuControllerMap

MenuControllerMap framework::ConfigurationAccess_ControllerFactory::m_aMenuControllerMap
private

◆ m_aPropCommand

OUString framework::ConfigurationAccess_ControllerFactory::m_aPropCommand
private

Definition at line 82 of file factoryconfiguration.hxx.

Referenced by impl_getElementProps().

◆ m_aPropController

OUString framework::ConfigurationAccess_ControllerFactory::m_aPropController
private

Definition at line 84 of file factoryconfiguration.hxx.

Referenced by impl_getElementProps().

◆ m_aPropModule

OUString framework::ConfigurationAccess_ControllerFactory::m_aPropModule
private

Definition at line 83 of file factoryconfiguration.hxx.

Referenced by impl_getElementProps().

◆ m_aPropValue

OUString framework::ConfigurationAccess_ControllerFactory::m_aPropValue
private

Definition at line 85 of file factoryconfiguration.hxx.

Referenced by impl_getElementProps().

◆ m_bConfigAccessInitialized

bool framework::ConfigurationAccess_ControllerFactory::m_bConfigAccessInitialized
private

Definition at line 91 of file factoryconfiguration.hxx.

Referenced by readConfigurationData().

◆ m_mutex

std::mutex framework::ConfigurationAccess_ControllerFactory::m_mutex
mutableprivate

◆ m_sRoot

OUString framework::ConfigurationAccess_ControllerFactory::m_sRoot
private

Definition at line 86 of file factoryconfiguration.hxx.

Referenced by readConfigurationData().

◆ m_xConfigAccess

css::uno::Reference< css::container::XNameAccess > framework::ConfigurationAccess_ControllerFactory::m_xConfigAccess
private

◆ m_xConfigAccessListener

css::uno::Reference< css::container::XContainerListener > framework::ConfigurationAccess_ControllerFactory::m_xConfigAccessListener
private

◆ m_xConfigProvider

css::uno::Reference< css::lang::XMultiServiceFactory > framework::ConfigurationAccess_ControllerFactory::m_xConfigProvider
private

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