Lines Matching refs:aKeyEvent
109 …(salhelper::SingletonRef<framework::KeyMapping>& _rKeyMapping, const css::awt::KeyEvent& aKeyEvent) in lcl_getKeyString() argument
112 …::rtl::OUStringBuffer sKeyBuffer((_rKeyMapping->mapCodeToIdentifier(aKeyEvent.KeyCode)).copy(nBegi… in lcl_getKeyString()
114 if ( (aKeyEvent.Modifiers & css::awt::KeyModifier::SHIFT) == css::awt::KeyModifier::SHIFT ) in lcl_getKeyString()
116 if ( (aKeyEvent.Modifiers & css::awt::KeyModifier::MOD1 ) == css::awt::KeyModifier::MOD1 ) in lcl_getKeyString()
118 if ( (aKeyEvent.Modifiers & css::awt::KeyModifier::MOD2 ) == css::awt::KeyModifier::MOD2 ) in lcl_getKeyString()
120 if ( (aKeyEvent.Modifiers & css::awt::KeyModifier::MOD3 ) == css::awt::KeyModifier::MOD3 ) in lcl_getKeyString()
175 …AL_CALL XMLBasedAcceleratorConfiguration::getCommandByKeyEvent(const css::awt::KeyEvent& aKeyEvent) in getCommandByKeyEvent() argument
183 if (!rCache.hasKey(aKeyEvent)) in getCommandByKeyEvent()
187 return rCache.getCommandByKey(aKeyEvent); in getCommandByKeyEvent()
193 void SAL_CALL XMLBasedAcceleratorConfiguration::setKeyEvent(const css::awt::KeyEvent& aKeyEvent, in setKeyEvent() argument
199 (aKeyEvent.KeyCode == 0) && in setKeyEvent()
200 (aKeyEvent.KeyChar == 0) && in setKeyEvent()
201 (aKeyEvent.KeyFunc == 0) && in setKeyEvent()
202 (aKeyEvent.Modifiers == 0) in setKeyEvent()
219 rCache.setKeyCommandPair(aKeyEvent, sCommand); in setKeyEvent()
226 void SAL_CALL XMLBasedAcceleratorConfiguration::removeKeyEvent(const css::awt::KeyEvent& aKeyEvent) in removeKeyEvent() argument
234 if (!rCache.hasKey(aKeyEvent)) in removeKeyEvent()
238 rCache.removeKey(aKeyEvent); in removeKeyEvent()
740 …AL_CALL XCUBasedAcceleratorConfiguration::getCommandByKeyEvent(const css::awt::KeyEvent& aKeyEvent) in getCommandByKeyEvent() argument
750 if (!rPrimaryCache.hasKey(aKeyEvent) && !rSecondaryCache.hasKey(aKeyEvent)) in getCommandByKeyEvent()
755 if (rPrimaryCache.hasKey(aKeyEvent)) in getCommandByKeyEvent()
756 return rPrimaryCache.getCommandByKey(aKeyEvent); in getCommandByKeyEvent()
758 return rSecondaryCache.getCommandByKey(aKeyEvent); in getCommandByKeyEvent()
764 void SAL_CALL XCUBasedAcceleratorConfiguration::setKeyEvent(const css::awt::KeyEvent& aKeyEvent, in setKeyEvent() argument
772 (aKeyEvent.KeyCode == 0) && in setKeyEvent()
773 (aKeyEvent.KeyChar == 0) && in setKeyEvent()
774 (aKeyEvent.KeyFunc == 0) && in setKeyEvent()
775 (aKeyEvent.Modifiers == 0) in setKeyEvent()
794 if ( rPrimaryCache.hasKey(aKeyEvent) ) in setKeyEvent()
796 ::rtl::OUString sOriginalCommand = rPrimaryCache.getCommandByKey(aKeyEvent); in setKeyEvent()
813 rPrimaryCache.setKeyCommandPair(aKeyEvent, sCommand); in setKeyEvent()
817 else if ( rSecondaryCache.hasKey(aKeyEvent) ) in setKeyEvent()
819 ::rtl::OUString sOriginalCommand = rSecondaryCache.getCommandByKey(aKeyEvent); in setKeyEvent()
829 rSecondaryCache.removeKey(aKeyEvent); in setKeyEvent()
830 rPrimaryCache.setKeyCommandPair(aKeyEvent, sCommand); in setKeyEvent()
843 rPrimaryCache.setKeyCommandPair(aKeyEvent, sCommand); in setKeyEvent()
851 void SAL_CALL XCUBasedAcceleratorConfiguration::removeKeyEvent(const css::awt::KeyEvent& aKeyEvent) in removeKeyEvent() argument
861 if (!rPrimaryCache.hasKey(aKeyEvent) && !rSecondaryCache.hasKey(aKeyEvent)) in removeKeyEvent()
866 if (rPrimaryCache.hasKey(aKeyEvent)) in removeKeyEvent()
868 ::rtl::OUString sDelCommand = rPrimaryCache.getCommandByKey(aKeyEvent); in removeKeyEvent()
871 ::rtl::OUString sOriginalCommand = rPrimaryCache.getCommandByKey(aKeyEvent); in removeKeyEvent()
879 rPrimaryCache.removeKey(aKeyEvent); in removeKeyEvent()
885 ::rtl::OUString sDelCommand = rSecondaryCache.getCommandByKey(aKeyEvent); in removeKeyEvent()
887 rSecondaryCache.removeKey(aKeyEvent); in removeKeyEvent()
1377 css::awt::KeyEvent aKeyEvent; in impl_ts_load() local
1382 aKeyEvent.KeyCode = m_rKeyMapping->mapIdentifierToCode(sPrefix + sKeyCommand); in impl_ts_load()
1402 aKeyEvent.Modifiers |= css::awt::KeyModifier::SHIFT; in impl_ts_load()
1404 aKeyEvent.Modifiers |= css::awt::KeyModifier::MOD1; in impl_ts_load()
1406 aKeyEvent.Modifiers |= css::awt::KeyModifier::MOD2; in impl_ts_load()
1408 aKeyEvent.Modifiers |= css::awt::KeyModifier::MOD3; in impl_ts_load()
1416 if ( !aReadCache.hasKey(aKeyEvent) && bValid && k<nToken) in impl_ts_load()
1417 aReadCache.setKeyCommandPair(aKeyEvent, sCommand); in impl_ts_load()
1521 …ratorConfiguration::insertKeyToConfiguration( const css::awt::KeyEvent& aKeyEvent, const ::rtl::OU… in insertKeyToConfiguration() argument
1548 const ::rtl::OUString sKey = lcl_getKeyString(m_rKeyMapping,aKeyEvent); in insertKeyToConfiguration()
1568 …torConfiguration::removeKeyFromConfiguration( const css::awt::KeyEvent& aKeyEvent, const sal_Bool … in removeKeyFromConfiguration() argument
1589 const ::rtl::OUString sKey = lcl_getKeyString(m_rKeyMapping,aKeyEvent); in removeKeyFromConfiguration()
1611 css::awt::KeyEvent aKeyEvent; in reloadChanged() local
1616 …aKeyEvent.KeyCode = m_rKeyMapping->mapIdentifierToCode(::rtl::OUString::createFromAscii("KEY_")+sK… in reloadChanged()
1627 aKeyEvent.Modifiers |= css::awt::KeyModifier::SHIFT; in reloadChanged()
1629 aKeyEvent.Modifiers |= css::awt::KeyModifier::MOD1; in reloadChanged()
1631 aKeyEvent.Modifiers |= css::awt::KeyModifier::MOD2; in reloadChanged()
1633 aKeyEvent.Modifiers |= css::awt::KeyModifier::MOD3; in reloadChanged()
1651 m_aPrimaryReadCache.removeKey(aKeyEvent); in reloadChanged()
1653 m_aPrimaryReadCache.setKeyCommandPair(aKeyEvent, sCommand); in reloadChanged()
1658 m_aSecondaryReadCache.removeKey(aKeyEvent); in reloadChanged()
1660 m_aSecondaryReadCache.setKeyCommandPair(aKeyEvent, sCommand); in reloadChanged()