diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-13 08:35:08 +0900 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-05-13 08:40:44 +0900 |
commit | 0e27079cbf1c99227afd8366dd0be03bd6496a0a (patch) | |
tree | 4d83fd09aaf8c229dce7d9f74cf24cb6d2d6d4ec /svx | |
parent | 83d33d35e113ccb5b24313ff48e18f1000a3b19d (diff) |
SvxShowCharSet cleanup
Change-Id: Iadb110bb6ec64c66f1a9b54c43d19664f890ec74
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/charmap.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx index ee4ba747abfe..c57a4e3b8011 100644 --- a/svx/source/dialog/charmap.cxx +++ b/svx/source/dialog/charmap.cxx @@ -255,19 +255,19 @@ int SvxShowCharSet::PixelToMapIndex( const Point& point) const -void SvxShowCharSet::KeyInput( const KeyEvent& rKEvt ) +void SvxShowCharSet::KeyInput(const KeyEvent& rKEvt) { vcl::KeyCode aCode = rKEvt.GetKeyCode(); - if( aCode.GetModifier() ) + if (aCode.GetModifier()) { - Control::KeyInput( rKEvt ); + Control::KeyInput(rKEvt); return; } int tmpSelected = nSelectedIndex; - switch ( aCode.GetCode() ) + switch (aCode.GetCode()) { case KEY_SPACE: aSelectHdl.Call( this ); @@ -299,17 +299,17 @@ void SvxShowCharSet::KeyInput( const KeyEvent& rKEvt ) case KEY_TAB: // some fonts have a character at these unicode control codes case KEY_ESCAPE: case KEY_RETURN: - Control::KeyInput( rKEvt ); + Control::KeyInput(rKEvt); tmpSelected = - 1; // mark as invalid break; default: { sal_UCS4 cChar = rKEvt.GetCharCode(); - sal_UCS4 cNext = mpFontCharMap->GetNextChar( cChar - 1 ); - tmpSelected = mpFontCharMap->GetIndexFromChar( cNext ); - if( tmpSelected < 0 || (cChar != cNext) ) + sal_UCS4 cNext = mpFontCharMap->GetNextChar(cChar - 1); + tmpSelected = mpFontCharMap->GetIndexFromChar(cNext); + if (tmpSelected < 0 || (cChar != cNext)) { - Control::KeyInput( rKEvt ); + Control::KeyInput(rKEvt); tmpSelected = - 1; // mark as invalid } } |