24#include <com/sun/star/util/XChangesNotifier.hpp>
25#include <com/sun/star/lang/XServiceInfo.hpp>
39typedef ::cppu::ImplInheritanceHelper<
41 css::lang::XServiceInfo > GlobalAcceleratorConfiguration_BASE;
42class GlobalAcceleratorConfiguration :
public GlobalAcceleratorConfiguration_BASE
51 explicit GlobalAcceleratorConfiguration(
const css::uno::Reference< css::uno::XComponentContext >& xContext);
55 return "com.sun.star.comp.framework.GlobalAcceleratorConfiguration";
65 return {
"com.sun.star.ui.GlobalAcceleratorConfiguration"};
74 css::uno::Reference< css::util::XChangesListener > m_xCfgListener;
77GlobalAcceleratorConfiguration::GlobalAcceleratorConfiguration(
const css::uno::Reference< css::uno::XComponentContext >& xContext)
78 : GlobalAcceleratorConfiguration_BASE(xContext)
84void GlobalAcceleratorConfiguration::fillCache()
100 XCUBasedAcceleratorConfiguration::reload();
102 css::uno::Reference< css::util::XChangesNotifier > xBroadcaster(m_xCfg, css::uno::UNO_QUERY_THROW);
104 xBroadcaster->addChangesListener(m_xCfgListener);
106 catch(
const css::uno::RuntimeException&)
108 catch(
const css::uno::Exception&)
114extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
116 css::uno::XComponentContext *context,
117 css::uno::Sequence<css::uno::Any>
const &)
121 return cppu::acquire(xGAC.get());
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_framework_GlobalAcceleratorConfiguration_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
constexpr OUStringLiteral CFG_ENTRY_GLOBAL