diff options
Diffstat (limited to 'sc/source/ui/navipi')
-rw-r--r-- | sc/source/ui/navipi/navipi.cxx | 10 | ||||
-rw-r--r-- | sc/source/ui/navipi/scenwnd.cxx | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx index b3a1f190f502..1f5d7fa76f45 100644 --- a/sc/source/ui/navipi/navipi.cxx +++ b/sc/source/ui/navipi/navipi.cxx @@ -95,8 +95,8 @@ bool ColumnEdit::Notify( NotifyEvent& rNEvt ) { bool nHandled = SpinField::Notify( rNEvt ); - sal_uInt16 nType = rNEvt.GetType(); - if ( nType == EVENT_KEYINPUT ) + MouseNotifyEvent nType = rNEvt.GetType(); + if ( nType == MouseNotifyEvent::KEYINPUT ) { const KeyEvent* pKEvt = rNEvt.GetKeyEvent(); vcl::KeyCode aCode = pKEvt->GetKeyCode(); @@ -115,8 +115,8 @@ bool ColumnEdit::Notify( NotifyEvent& rNEvt ) } } } - else if ( nType == EVENT_LOSEFOCUS ) // LoseFocus wird bei VCL nicht gerufen - EvalText(); // nCol setzen + else if ( nType == MouseNotifyEvent::LOSEFOCUS ) // LoseFocus not called at VCL + EvalText(); // nCol set return nHandled; } @@ -267,7 +267,7 @@ bool RowEdit::Notify( NotifyEvent& rNEvt ) { bool nHandled = NumericField::Notify( rNEvt ); - if ( rNEvt.GetType() == EVENT_KEYINPUT ) + if ( rNEvt.GetType() == MouseNotifyEvent::KEYINPUT ) { const KeyEvent* pKEvt = rNEvt.GetKeyEvent(); vcl::KeyCode aCode = pKEvt->GetKeyCode(); diff --git a/sc/source/ui/navipi/scenwnd.cxx b/sc/source/ui/navipi/scenwnd.cxx index d72a7456c21d..96b37d81602d 100644 --- a/sc/source/ui/navipi/scenwnd.cxx +++ b/sc/source/ui/navipi/scenwnd.cxx @@ -111,7 +111,7 @@ bool ScScenarioListBox::Notify( NotifyEvent& rNEvt ) { bool bHandled = false; - if( rNEvt.GetType() == EVENT_KEYINPUT ) + if( rNEvt.GetType() == MouseNotifyEvent::KEYINPUT ) { vcl::KeyCode aCode = rNEvt.GetKeyEvent()->GetKeyCode(); switch( aCode.GetCode() ) @@ -126,7 +126,7 @@ bool ScScenarioListBox::Notify( NotifyEvent& rNEvt ) break; } } - else if ( rNEvt.GetType() == EVENT_COMMAND && GetSelectEntryCount() ) + else if ( rNEvt.GetType() == MouseNotifyEvent::COMMAND && GetSelectEntryCount() ) { const CommandEvent* pCEvt = rNEvt.GetCommandEvent(); if ( pCEvt && pCEvt->GetCommand() == COMMAND_CONTEXTMENU ) |