LibreOffice Module framework (master) 1
|
#include <acceleratorconfiguration.hxx>
Public Member Functions | |
XCUBasedAcceleratorConfiguration (css::uno::Reference< css::uno::XComponentContext > xContext) | |
virtual | ~XCUBasedAcceleratorConfiguration () override |
virtual css::uno::Sequence< css::awt::KeyEvent > SAL_CALL | getAllKeyEvents () override |
virtual OUString SAL_CALL | getCommandByKeyEvent (const css::awt::KeyEvent &aKeyEvent) override |
virtual void SAL_CALL | setKeyEvent (const css::awt::KeyEvent &aKeyEvent, const OUString &sCommand) override |
virtual void SAL_CALL | removeKeyEvent (const css::awt::KeyEvent &aKeyEvent) override |
virtual css::uno::Sequence< css::awt::KeyEvent > SAL_CALL | getKeyEventsByCommand (const OUString &sCommand) override |
virtual css::uno::Sequence< css::uno::Any > SAL_CALL | getPreferredKeyEventsForCommandList (const css::uno::Sequence< OUString > &lCommandList) override |
virtual void SAL_CALL | removeCommandFromAllKeyEvents (const OUString &sCommand) override |
virtual void SAL_CALL | reload () override |
virtual void SAL_CALL | store () override |
virtual void SAL_CALL | storeToStorage (const css::uno::Reference< css::embed::XStorage > &xStorage) override |
virtual sal_Bool SAL_CALL | isModified () override |
virtual sal_Bool SAL_CALL | isReadOnly () override |
virtual void SAL_CALL | setStorage (const css::uno::Reference< css::embed::XStorage > &xStorage) override |
virtual sal_Bool SAL_CALL | hasStorage () override |
virtual void SAL_CALL | addConfigurationListener (const css::uno::Reference< css::ui::XUIConfigurationListener > &xListener) override |
virtual void SAL_CALL | removeConfigurationListener (const css::uno::Reference< css::ui::XUIConfigurationListener > &xListener) override |
virtual void SAL_CALL | reset () override |
virtual void SAL_CALL | addResetListener (const css::uno::Reference< css::form::XResetListener > &xListener) override |
virtual void SAL_CALL | removeResetListener (const css::uno::Reference< css::form::XResetListener > &xListener) override |
virtual void SAL_CALL | changesOccurred (const css::util::ChangesEvent &aEvent) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &aEvent) override |
Protected Member Functions | |
OUString | impl_ts_getLocale () const |
return the current office locale. More... | |
Protected Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
the global uno service manager. More... | |
css::uno::Reference< css::container::XNameAccess > | m_xCfg |
AcceleratorCache | m_aPrimaryReadCache |
AcceleratorCache | m_aSecondaryReadCache |
std::unique_ptr< AcceleratorCache > | m_pPrimaryWriteCache |
std::unique_ptr< AcceleratorCache > | m_pSecondaryWriteCache |
OUString | m_sGlobalOrModules |
OUString | m_sModuleCFG |
Private Member Functions | |
void | impl_ts_load (bool bPreferred, const css::uno::Reference< css::container::XNameAccess > &xCfg) |
void | impl_ts_save (bool bPreferred) |
void | insertKeyToConfiguration (const css::awt::KeyEvent &aKeyEvent, const OUString &sCommand, const bool bPreferred) |
void | removeKeyFromConfiguration (const css::awt::KeyEvent &aKeyEvent, const bool bPreferred) |
void | reloadChanged (const OUString &sPrimarySecondary, std::u16string_view sGlobalModules, const OUString &sModule, const OUString &sKey) |
AcceleratorCache & | impl_getCFG (bool bPreferred, bool bWriteAccessRequested=false) |
Definition at line 194 of file acceleratorconfiguration.hxx.
framework::XCUBasedAcceleratorConfiguration::XCUBasedAcceleratorConfiguration | ( | css::uno::Reference< css::uno::XComponentContext > | xContext | ) |
Definition at line 482 of file acceleratorconfiguration.cxx.
References m_xCfg, m_xContext, and comphelper::ConfigurationHelper::openConfig().
|
overridevirtual |
Definition at line 490 of file acceleratorconfiguration.cxx.
|
overridevirtual |
Definition at line 859 of file acceleratorconfiguration.cxx.
References SAL_INFO.
|
overridevirtual |
Definition at line 889 of file acceleratorconfiguration.cxx.
References SAL_INFO.
|
overridevirtual |
Definition at line 899 of file acceleratorconfiguration.cxx.
References aEvent, framework::CFG_ENTRY_GLOBAL, framework::CFG_ENTRY_MODULES, i, reloadChanged(), and SAL_INFO.
|
overridevirtual |
Definition at line 947 of file acceleratorconfiguration.cxx.
|
overridevirtual |
Definition at line 494 of file acceleratorconfiguration.cxx.
References comphelper::containerToSequence(), framework::AcceleratorCache::getAllKeys(), and impl_getCFG().
|
overridevirtual |
Definition at line 508 of file acceleratorconfiguration.cxx.
References framework::AcceleratorCache::getCommandByKey(), framework::AcceleratorCache::hasKey(), and impl_getCFG().
|
overridevirtual |
Definition at line 642 of file acceleratorconfiguration.cxx.
References comphelper::containerToSequence(), framework::AcceleratorCache::getKeysByCommand(), framework::AcceleratorCache::hasCommand(), and impl_getCFG().
|
overridevirtual |
Definition at line 675 of file acceleratorconfiguration.cxx.
References framework::AcceleratorCache::getKeysByCommand(), framework::AcceleratorCache::hasCommand(), i, impl_getCFG(), and framework::lcl_getPreferredKey().
|
overridevirtual |
Definition at line 853 of file acceleratorconfiguration.cxx.
References SAL_INFO.
|
private |
Definition at line 1275 of file acceleratorconfiguration.cxx.
References m_aPrimaryReadCache, m_aSecondaryReadCache, m_pPrimaryWriteCache, and m_pSecondaryWriteCache.
Referenced by getAllKeyEvents(), getCommandByKeyEvent(), getKeyEventsByCommand(), getPreferredKeyEventsForCommandList(), removeCommandFromAllKeyEvents(), removeKeyEvent(), setKeyEvent(), and store().
|
protected |
return the current office locale.
@descr We do not cache this value, because we are not listen for changes on the configuration layer ...
Definition at line 1314 of file acceleratorconfiguration.cxx.
Referenced by impl_ts_load(), insertKeyToConfiguration(), and reloadChanged().
|
private |
Definition at line 951 of file acceleratorconfiguration.cxx.
References framework::CFG_ENTRY_GLOBAL, framework::CFG_ENTRY_MODULES, framework::CFG_PROP_COMMAND, framework::KeyMapping::get(), o3tl::getToken(), framework::AcceleratorCache::hasKey(), i, impl_ts_getLocale(), m_aPrimaryReadCache, m_aSecondaryReadCache, m_sGlobalOrModules, m_sModuleCFG, framework::KeyMapping::mapIdentifierToCode(), nIndex, nToken, framework::AcceleratorCache::setKeyCommandPair(), and u.
Referenced by reload().
|
private |
Definition at line 1059 of file acceleratorconfiguration.cxx.
References comphelper::ConfigurationHelper::flush(), framework::AcceleratorCache::getAllKeys(), framework::AcceleratorCache::getCommandByKey(), framework::AcceleratorCache::hasKey(), insertKeyToConfiguration(), m_aPrimaryReadCache, m_aSecondaryReadCache, m_pPrimaryWriteCache, m_pSecondaryWriteCache, m_xCfg, and removeKeyFromConfiguration().
Referenced by store().
|
private |
Definition at line 1136 of file acceleratorconfiguration.cxx.
References framework::CFG_ENTRY_GLOBAL, framework::CFG_ENTRY_MODULES, framework::CFG_ENTRY_PRIMARY, framework::CFG_ENTRY_SECONDARY, framework::CFG_PROP_COMMAND, impl_ts_getLocale(), framework::lcl_getKeyString(), m_sGlobalOrModules, m_sModuleCFG, and m_xCfg.
Referenced by impl_ts_save().
|
overridevirtual |
Definition at line 838 of file acceleratorconfiguration.cxx.
|
overridevirtual |
Definition at line 843 of file acceleratorconfiguration.cxx.
|
overridevirtual |
Definition at line 736 of file acceleratorconfiguration.cxx.
References framework::CFG_ENTRY_PRIMARY, framework::CFG_ENTRY_SECONDARY, impl_ts_load(), m_aPrimaryReadCache, m_aSecondaryReadCache, m_pPrimaryWriteCache, m_pSecondaryWriteCache, m_xCfg, and SAL_INFO.
Referenced by reset().
|
private |
Definition at line 1207 of file acceleratorconfiguration.cxx.
References framework::CFG_ENTRY_GLOBAL, framework::CFG_ENTRY_MODULES, framework::CFG_ENTRY_PRIMARY, framework::CFG_ENTRY_SECONDARY, framework::CFG_PROP_COMMAND, framework::KeyMapping::get(), o3tl::getToken(), i, impl_ts_getLocale(), m_aPrimaryReadCache, m_aSecondaryReadCache, m_xCfg, framework::KeyMapping::mapIdentifierToCode(), nIndex, nToken, framework::AcceleratorCache::removeKey(), framework::AcceleratorCache::setKeyCommandPair(), and u.
Referenced by changesOccurred().
|
overridevirtual |
Definition at line 712 of file acceleratorconfiguration.cxx.
References framework::AcceleratorCache::hasCommand(), impl_getCFG(), and framework::AcceleratorCache::removeCommand().
|
overridevirtual |
Definition at line 864 of file acceleratorconfiguration.cxx.
References SAL_INFO.
|
overridevirtual |
Definition at line 606 of file acceleratorconfiguration.cxx.
References framework::AcceleratorCache::getCommandByKey(), framework::AcceleratorCache::getKeysByCommand(), framework::AcceleratorCache::hasCommand(), framework::AcceleratorCache::hasKey(), impl_getCFG(), framework::AcceleratorCache::removeKey(), and framework::AcceleratorCache::setKeyCommandPair().
|
private |
Definition at line 1182 of file acceleratorconfiguration.cxx.
References framework::CFG_ENTRY_GLOBAL, framework::CFG_ENTRY_MODULES, framework::CFG_ENTRY_PRIMARY, framework::CFG_ENTRY_SECONDARY, framework::lcl_getKeyString(), m_sGlobalOrModules, m_sModuleCFG, and m_xCfg.
Referenced by impl_ts_save().
|
overridevirtual |
Definition at line 894 of file acceleratorconfiguration.cxx.
References SAL_INFO.
|
overridevirtual |
Definition at line 869 of file acceleratorconfiguration.cxx.
References framework::CFG_ENTRY_GLOBAL, framework::CFG_ENTRY_MODULES, m_xCfg, m_xContext, comphelper::ConfigurationHelper::openConfig(), and reload().
|
overridevirtual |
Definition at line 526 of file acceleratorconfiguration.cxx.
References framework::AcceleratorCache::getCommandByKey(), framework::AcceleratorCache::getKeysByCommand(), framework::AcceleratorCache::hasCommand(), framework::AcceleratorCache::hasKey(), impl_getCFG(), framework::AcceleratorCache::removeKey(), SAL_INFO, and framework::AcceleratorCache::setKeyCommandPair().
|
overridevirtual |
Definition at line 848 of file acceleratorconfiguration.cxx.
References SAL_INFO.
|
overridevirtual |
Definition at line 758 of file acceleratorconfiguration.cxx.
References impl_getCFG(), impl_ts_save(), and SAL_INFO.
|
overridevirtual |
Definition at line 777 of file acceleratorconfiguration.cxx.
References framework::AcceleratorConfigurationWriter::flush(), framework::AcceleratorCache::getAllKeys(), framework::AcceleratorCache::getCommandByKey(), m_aPrimaryReadCache, m_aSecondaryReadCache, m_pPrimaryWriteCache, m_pSecondaryWriteCache, m_xContext, framework::AcceleratorCache::setKeyCommandPair(), and xStream.
|
protected |
Definition at line 211 of file acceleratorconfiguration.hxx.
Referenced by impl_getCFG(), impl_ts_load(), impl_ts_save(), reload(), reloadChanged(), and storeToStorage().
|
protected |
Definition at line 212 of file acceleratorconfiguration.hxx.
Referenced by impl_getCFG(), impl_ts_load(), impl_ts_save(), reload(), reloadChanged(), and storeToStorage().
|
protected |
Definition at line 213 of file acceleratorconfiguration.hxx.
Referenced by impl_getCFG(), impl_ts_save(), reload(), and storeToStorage().
|
protected |
Definition at line 214 of file acceleratorconfiguration.hxx.
Referenced by impl_getCFG(), impl_ts_save(), reload(), and storeToStorage().
|
protected |
Definition at line 216 of file acceleratorconfiguration.hxx.
Referenced by impl_ts_load(), insertKeyToConfiguration(), and removeKeyFromConfiguration().
|
protected |
Definition at line 217 of file acceleratorconfiguration.hxx.
Referenced by impl_ts_load(), insertKeyToConfiguration(), and removeKeyFromConfiguration().
|
protected |
Definition at line 210 of file acceleratorconfiguration.hxx.
Referenced by impl_ts_save(), insertKeyToConfiguration(), reload(), reloadChanged(), removeKeyFromConfiguration(), reset(), and XCUBasedAcceleratorConfiguration().
|
protected |
the global uno service manager.
Must be used to create own needed services.
Definition at line 208 of file acceleratorconfiguration.hxx.
Referenced by reset(), storeToStorage(), and XCUBasedAcceleratorConfiguration().