LibreOffice Module framework (master) 1
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
framework::UICommandDescription Class Reference

#include <uicommanddescription.hxx>

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

Public Types

typedef std::unordered_map< OUString, OUString > ModuleToCommandFileMap
 
typedef std::unordered_map< OUString, css::uno::Reference< css::container::XNameAccess > > UICommandsHashMap
 

Public Member Functions

 UICommandDescription (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual ~UICommandDescription () 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
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc >
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL dispose () noexcept final override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelperBase
virtual ~WeakComponentImplHelperBase () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual void disposing (std::unique_lock< std::mutex > &)
 
- Public Member Functions inherited from comphelper::UnoImplBase
virtual ~UnoImplBase ()
 

Protected Member Functions

 UICommandDescription (const css::uno::Reference< css::uno::XComponentContext > &rxContext, bool)
 
void impl_fillElements (const char *_pName)
 
void ensureGenericUICommandsForLanguage (const LanguageTag &rLanguage)
 
- Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase
void throwIfDisposed (std::unique_lock< std::mutex > &)
 

Protected Attributes

OUString m_aPrivateResourceURL
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
ModuleToCommandFileMap m_aModuleToCommandFileMap
 
std::map< LanguageTag, UICommandsHashMapm_aUICommandsHashMap
 
std::map< LanguageTag, css::uno::Reference< css::container::XNameAccess > > m_xGenericUICommands
 
css::uno::Reference< css::frame::XModuleManager2 > m_xModuleManager
 
- Protected Attributes inherited from comphelper::WeakComponentImplHelperBase
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
- Protected Attributes inherited from comphelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed
 

Private Member Functions

virtual css::uno::Any SAL_CALL getByName (const OUString &aName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames () override
 
virtual sal_Bool SAL_CALL hasByName (const OUString &aName) override
 
virtual css::uno::Type SAL_CALL getElementType () override
 
virtual sal_Bool SAL_CALL hasElements () override
 

Detailed Description

Definition at line 39 of file uicommanddescription.hxx.

Member Typedef Documentation

◆ ModuleToCommandFileMap

typedef std::unordered_map< OUString, OUString > framework::UICommandDescription::ModuleToCommandFileMap

Definition at line 75 of file uicommanddescription.hxx.

◆ UICommandsHashMap

typedef std::unordered_map< OUString, css::uno::Reference< css::container::XNameAccess > > framework::UICommandDescription::UICommandsHashMap

Definition at line 78 of file uicommanddescription.hxx.

Constructor & Destructor Documentation

◆ UICommandDescription() [1/2]

framework::UICommandDescription::UICommandDescription ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)

◆ ~UICommandDescription()

framework::UICommandDescription::~UICommandDescription ( )
overridevirtual

◆ UICommandDescription() [2/2]

framework::UICommandDescription::UICommandDescription ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
bool   
)
protected

Member Function Documentation

◆ ensureGenericUICommandsForLanguage()

void framework::UICommandDescription::ensureGenericUICommandsForLanguage ( const LanguageTag rLanguage)
protected

Definition at line 564 of file uicommanddescription.cxx.

References m_xContext, m_xGenericUICommands, and u.

Referenced by getByName().

◆ getByName()

Any SAL_CALL framework::UICommandDescription::getByName ( const OUString &  aName)
overrideprivatevirtual

◆ getElementNames()

Sequence< OUString > SAL_CALL framework::UICommandDescription::getElementNames ( )
overrideprivatevirtual

◆ getElementType()

Type SAL_CALL framework::UICommandDescription::getElementType ( )
overrideprivatevirtual

Definition at line 704 of file uicommanddescription.cxx.

References cppu::UnoType< typename T >::get().

◆ getImplementationName()

virtual OUString SAL_CALL framework::UICommandDescription::getImplementationName ( )
inlineoverridevirtual

Definition at line 45 of file uicommanddescription.hxx.

◆ getSupportedServiceNames()

virtual css::uno::Sequence< OUString > SAL_CALL framework::UICommandDescription::getSupportedServiceNames ( )
inlineoverridevirtual

Definition at line 55 of file uicommanddescription.hxx.

References aSeq.

◆ hasByName()

sal_Bool SAL_CALL framework::UICommandDescription::hasByName ( const OUString &  aName)
overrideprivatevirtual

◆ hasElements()

sal_Bool SAL_CALL framework::UICommandDescription::hasElements ( )
overrideprivatevirtual

Definition at line 709 of file uicommanddescription.cxx.

◆ impl_fillElements()

void framework::UICommandDescription::impl_fillElements ( const char *  _pName)
protected

◆ supportsService()

virtual sal_Bool SAL_CALL framework::UICommandDescription::supportsService ( OUString const &  ServiceName)
inlineoverridevirtual

Definition at line 50 of file uicommanddescription.hxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_aModuleToCommandFileMap

ModuleToCommandFileMap framework::UICommandDescription::m_aModuleToCommandFileMap
protected

◆ m_aPrivateResourceURL

OUString framework::UICommandDescription::m_aPrivateResourceURL
protected

Definition at line 85 of file uicommanddescription.hxx.

Referenced by getByName().

◆ m_aUICommandsHashMap

std::map<LanguageTag, UICommandsHashMap> framework::UICommandDescription::m_aUICommandsHashMap
protected

Definition at line 88 of file uicommanddescription.hxx.

Referenced by getByName(), impl_fillElements(), and ~UICommandDescription().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > framework::UICommandDescription::m_xContext
protected

Definition at line 86 of file uicommanddescription.hxx.

Referenced by getByName(), and impl_fillElements().

◆ m_xGenericUICommands

std::map<LanguageTag, css::uno::Reference< css::container::XNameAccess > > framework::UICommandDescription::m_xGenericUICommands
protected

Definition at line 89 of file uicommanddescription.hxx.

Referenced by getByName(), and ~UICommandDescription().

◆ m_xModuleManager

css::uno::Reference< css::frame::XModuleManager2 > framework::UICommandDescription::m_xModuleManager
protected

Definition at line 90 of file uicommanddescription.hxx.

Referenced by impl_fillElements().


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