diff options
Diffstat (limited to 'vcl/source/window/syschild.cxx')
-rw-r--r-- | vcl/source/window/syschild.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/vcl/source/window/syschild.cxx b/vcl/source/window/syschild.cxx index 3bf1271acd44..7f92c641127d 100644 --- a/vcl/source/window/syschild.cxx +++ b/vcl/source/window/syschild.cxx @@ -50,14 +50,14 @@ using namespace ::com::sun::star; long ImplSysChildProc( void* pInst, SalObject* /* pObject */, - sal_uInt16 nEvent, const void* /* pEvent */ ) + SalObjEvent nEvent, const void* /* pEvent */ ) { VclPtr<SystemChildWindow> pWindow = static_cast<SystemChildWindow*>(pInst); long nRet = 0; switch ( nEvent ) { - case SALOBJ_EVENT_GETFOCUS: + case SalObjEvent::GetFocus: // get focus, such that all handlers are called, // as if this window gets the focus assuring // that the frame does not steal it @@ -74,7 +74,7 @@ long ImplSysChildProc( void* pInst, SalObject* /* pObject */, pWindow->ImplGetFrameData()->mbInSysObjFocusHdl = false; break; - case SALOBJ_EVENT_LOSEFOCUS: + case SalObjEvent::LoseFocus: // trigger a LoseFocus which matches the status // of the window with matching Activate-Status pWindow->ImplGetFrameData()->mbSysObjFocus = false; @@ -85,7 +85,7 @@ long ImplSysChildProc( void* pInst, SalObject* /* pObject */, } break; - case SALOBJ_EVENT_TOTOP: + case SalObjEvent::ToTop: pWindow->ImplGetFrameData()->mbInSysObjToTopHdl = true; if ( !Application::GetFocusWindow() || pWindow->HasChildPathFocus() ) pWindow->ToTop( ToTopFlags::NoGrabFocus ); @@ -98,6 +98,8 @@ long ImplSysChildProc( void* pInst, SalObject* /* pObject */, break; pWindow->ImplGetFrameData()->mbInSysObjToTopHdl = false; break; + + default: break; } return nRet; |