summaryrefslogtreecommitdiff
path: root/vcl/source/window
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-10 23:20:46 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-11 14:13:31 +0000
commitac310071eb397c3701e3c3cf650a893a225274f3 (patch)
treee6ae44a1f6e3d7ebb6b3c2a5a578ca64082be2fc /vcl/source/window
parent988829d53327e92b66487ea38bed98b1e6b72d47 (diff)
callcatcher: lets trust my own tooling
Diffstat (limited to 'vcl/source/window')
-rw-r--r--vcl/source/window/keycod.cxx9
-rw-r--r--vcl/source/window/keyevent.cxx31
2 files changed, 0 insertions, 40 deletions
diff --git a/vcl/source/window/keycod.cxx b/vcl/source/window/keycod.cxx
index 94a26a6bdf77..c831beac3ce7 100644
--- a/vcl/source/window/keycod.cxx
+++ b/vcl/source/window/keycod.cxx
@@ -119,15 +119,6 @@ XubString KeyCode::GetName( Window* pWindow ) const
// -----------------------------------------------------------------------
-XubString KeyCode::GetSymbolName( const XubString& rFontName, Window* pWindow ) const
-{
- if ( !pWindow )
- pWindow = ImplGetDefaultWindow();
- return pWindow ? XubString( pWindow->ImplGetFrame()->GetSymbolKeyName( rFontName, GetFullCode() ) ) : XubString();
-}
-
-// -----------------------------------------------------------------------
-
KeyFuncType KeyCode::GetFunction() const
{
if ( eFunc != KEYFUNC_DONTKNOW )
diff --git a/vcl/source/window/keyevent.cxx b/vcl/source/window/keyevent.cxx
index 9677640ec5e7..989892694ac1 100644
--- a/vcl/source/window/keyevent.cxx
+++ b/vcl/source/window/keyevent.cxx
@@ -38,37 +38,6 @@ KeyEvent::KeyEvent (const KeyEvent& rKeyEvent) :
mnCharCode(rKeyEvent.mnCharCode)
{}
-/** inits this vcl KeyEvent with all settings from the given awt event **/
-KeyEvent::KeyEvent( const ::com::sun::star::awt::KeyEvent& rEvent )
-{
- maKeyCode = KeyCode(
- rEvent.KeyCode,
- (rEvent.Modifiers & ::com::sun::star::awt::KeyModifier::SHIFT) != 0,
- (rEvent.Modifiers & ::com::sun::star::awt::KeyModifier::MOD1) != 0,
- (rEvent.Modifiers & ::com::sun::star::awt::KeyModifier::MOD2) != 0,
- (rEvent.Modifiers & ::com::sun::star::awt::KeyModifier::MOD3) != 0);
- mnRepeat = 0;
- mnCharCode = rEvent.KeyChar;
-}
-
-/** fills out the given awt KeyEvent with all settings from this vcl event **/
-void KeyEvent::InitKeyEvent( ::com::sun::star::awt::KeyEvent& rEvent ) const
-{
- rEvent.Modifiers = 0;
- if( GetKeyCode().IsShift() )
- rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::SHIFT;
- if( GetKeyCode().IsMod1() )
- rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::MOD1;
- if( GetKeyCode().IsMod2() )
- rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::MOD2;
- if( GetKeyCode().IsMod3() )
- rEvent.Modifiers |= ::com::sun::star::awt::KeyModifier::MOD3;
-
- rEvent.KeyCode = GetKeyCode().GetCode();
- rEvent.KeyChar = GetCharCode();
- rEvent.KeyFunc = sal::static_int_cast< sal_Int16 >(GetKeyCode().GetFunction());
-}
-
KeyEvent KeyEvent::LogicalTextDirectionality (TextDirectionality eMode) const
{
KeyEvent aClone(*this);