Kaydet (Commit) e53168c6 authored tarafından Noel Grandin's avatar Noel Grandin

improve indentation

Change-Id: I1ca7f386cbd85d64e86fe293b2a4a4cbb205edef
üst 5c3ea5d9
...@@ -184,26 +184,26 @@ bool ODesignView::PreNotify( NotifyEvent& rNEvt ) ...@@ -184,26 +184,26 @@ bool ODesignView::PreNotify( NotifyEvent& rNEvt )
switch(rNEvt.GetType()) switch(rNEvt.GetType())
{ {
case MouseNotifyEvent::KEYINPUT: case MouseNotifyEvent::KEYINPUT:
if ( (m_pPropWin && m_pPropWin->HasChildPathFocus()) ) {
if ( m_pPropWin && m_pPropWin->HasChildPathFocus() )
return false; return false;
if ( (m_pAddField && m_pAddField->HasChildPathFocus()) ) if ( m_pAddField && m_pAddField->HasChildPathFocus() )
return false; return false;
if ( (m_pReportExplorer && m_pReportExplorer->HasChildPathFocus()) ) if ( m_pReportExplorer && m_pReportExplorer->HasChildPathFocus() )
return false; return false;
const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent();
if ( handleKeyEvent(*pKeyEvent) )
bRet = true;
else if ( bRet && m_pAccel.get() )
{ {
const KeyEvent* pKeyEvent = rNEvt.GetKeyEvent(); const vcl::KeyCode& rCode = pKeyEvent->GetKeyCode();
if ( handleKeyEvent(*pKeyEvent) ) util::URL aUrl;
bRet = true; aUrl.Complete = m_pAccel->findCommand(svt::AcceleratorExecute::st_VCLKey2AWTKey(rCode));
else if ( bRet && m_pAccel.get() ) if ( aUrl.Complete.isEmpty() || !m_xController->isCommandEnabled( aUrl.Complete ) )
{ bRet = false;
const vcl::KeyCode& rCode = pKeyEvent->GetKeyCode();
util::URL aUrl;
aUrl.Complete = m_pAccel->findCommand(svt::AcceleratorExecute::st_VCLKey2AWTKey(rCode));
if ( aUrl.Complete.isEmpty() || !m_xController->isCommandEnabled( aUrl.Complete ) )
bRet = false;
}
} }
break; break;
}
default: default:
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment