22#include <unordered_map>
24#include <com/sun/star/lang/XServiceInfo.hpp>
25#include <com/sun/star/container/XNameAccess.hpp>
26#include <com/sun/star/frame/XModuleManager2.hpp>
27#include <com/sun/star/uno/XComponentContext.hpp>
31#include <rtl/ustring.hxx>
47 return "com.sun.star.comp.framework.UICommandDescription";
57 css::uno::Sequence< OUString >
aSeq {
"com.sun.star.frame.UICommandDescription" };
63 virtual css::uno::Any SAL_CALL
getByName(
const OUString& aName )
override;
65 virtual css::uno::Sequence< OUString > SAL_CALL
getElementNames()
override;
74 typedef std::unordered_map< OUString,
77 typedef std::unordered_map< OUString,
86 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
virtual css::uno::Type SAL_CALL getElementType() override
virtual css::uno::Sequence< OUString > SAL_CALL getElementNames() override
UICommandDescription(const css::uno::Reference< css::uno::XComponentContext > &rxContext, bool)
css::uno::Reference< css::uno::XComponentContext > m_xContext
std::unordered_map< OUString, OUString > ModuleToCommandFileMap
virtual sal_Bool SAL_CALL hasElements() override
ModuleToCommandFileMap m_aModuleToCommandFileMap
UICommandDescription(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
std::unordered_map< OUString, css::uno::Reference< css::container::XNameAccess > > UICommandsHashMap
virtual sal_Bool SAL_CALL supportsService(OUString const &ServiceName) override
std::map< LanguageTag, css::uno::Reference< css::container::XNameAccess > > m_xGenericUICommands
virtual sal_Bool SAL_CALL hasByName(const OUString &aName) override
OUString m_aPrivateResourceURL
css::uno::Reference< css::frame::XModuleManager2 > m_xModuleManager
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual ~UICommandDescription() override
void impl_fillElements(const char *_pName)
std::map< LanguageTag, UICommandsHashMap > m_aUICommandsHashMap
virtual css::uno::Any SAL_CALL getByName(const OUString &aName) override
void ensureGenericUICommandsForLanguage(const LanguageTag &rLanguage)
Sequence< sal_Int8 > aSeq
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
comphelper::WeakComponentImplHelper< css::lang::XServiceInfo, css::container::XNameAccess > UICommandDescription_BASE