summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-26 13:01:46 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-10-27 08:09:35 +0000
commit7ef698355ad59c6fa263daa4ded124cf512e8926 (patch)
treec929c4d25b985116192045f213b6beacf43989c2 /dbaccess
parent608396721edcdfce8a325026844fd2fab72bbb73 (diff)
fdo#84938: replace KEYTYPE_ constants with enum
Change-Id: I563cf96f8ca815d6c8ad9f5fe365fc7ce7a2a328 Reviewed-on: https://gerrit.libreoffice.org/12104 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/control/dbtreelistbox.cxx10
-rw-r--r--dbaccess/source/ui/control/sqledit.cxx2
2 files changed, 6 insertions, 6 deletions
diff --git a/dbaccess/source/ui/control/dbtreelistbox.cxx b/dbaccess/source/ui/control/dbtreelistbox.cxx
index a91b22cee9b5..8c6978a599fd 100644
--- a/dbaccess/source/ui/control/dbtreelistbox.cxx
+++ b/dbaccess/source/ui/control/dbtreelistbox.cxx
@@ -311,26 +311,26 @@ void DBTreeListBox::KeyInput( const KeyEvent& rKEvt )
sal_uInt16 nCode = rKEvt.GetKeyCode().GetCode();
bool bHandled = false;
- if(eFunc != KEYFUNC_DONTKNOW)
+ if(eFunc != KeyFuncType::DONTKNOW)
{
switch(eFunc)
{
- case KEYFUNC_CUT:
+ case KeyFuncType::CUT:
bHandled = ( m_aCutHandler.IsSet() && !m_aSelectedEntries.empty() );
if ( bHandled )
m_aCutHandler.Call( NULL );
break;
- case KEYFUNC_COPY:
+ case KeyFuncType::COPY:
bHandled = ( m_aCopyHandler.IsSet() && !m_aSelectedEntries.empty() );
if ( bHandled )
m_aCopyHandler.Call( NULL );
break;
- case KEYFUNC_PASTE:
+ case KeyFuncType::PASTE:
bHandled = ( m_aPasteHandler.IsSet() && !m_aSelectedEntries.empty() );
if ( bHandled )
m_aPasteHandler.Call( NULL );
break;
- case KEYFUNC_DELETE:
+ case KeyFuncType::DELETE:
bHandled = ( m_aDeleteHandler.IsSet() && !m_aSelectedEntries.empty() );
if ( bHandled )
m_aDeleteHandler.Call( NULL );
diff --git a/dbaccess/source/ui/control/sqledit.cxx b/dbaccess/source/ui/control/sqledit.cxx
index 72f6a27fe35a..ff4007f729f9 100644
--- a/dbaccess/source/ui/control/sqledit.cxx
+++ b/dbaccess/source/ui/control/sqledit.cxx
@@ -126,7 +126,7 @@ void OSqlEdit::KeyInput( const KeyEvent& rKEvt )
// Is this a cut, copy, paste event?
KeyFuncType aKeyFunc = rKEvt.GetKeyCode().GetFunction();
- if( (aKeyFunc==KEYFUNC_CUT)||(aKeyFunc==KEYFUNC_COPY)||(aKeyFunc==KEYFUNC_PASTE) )
+ if( (aKeyFunc==KeyFuncType::CUT)||(aKeyFunc==KeyFuncType::COPY)||(aKeyFunc==KeyFuncType::PASTE) )
m_bAccelAction = true;
MultiLineEditSyntaxHighlight::KeyInput( rKEvt );