dockwin.cxx (d119d52d) | dockwin.cxx (4847afeb) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 1845 unchanged lines hidden (view full) --- 1854} 1855 1856//------------------------------------------------------------------------- 1857 1858long SfxDockingWindow::Notify( NotifyEvent& rEvt ) 1859{ 1860 if ( rEvt.GetType() == EVENT_GETFOCUS ) 1861 { | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 1845 unchanged lines hidden (view full) --- 1854} 1855 1856//------------------------------------------------------------------------- 1857 1858long SfxDockingWindow::Notify( NotifyEvent& rEvt ) 1859{ 1860 if ( rEvt.GetType() == EVENT_GETFOCUS ) 1861 { |
1862 pBindings->SetActiveFrame( pMgr->GetFrame() ); | 1862 if (pMgr != NULL) 1863 pBindings->SetActiveFrame( pMgr->GetFrame() ); |
1863 1864 if ( pImp->pSplitWin ) 1865 pImp->pSplitWin->SetActiveWindow_Impl( this ); | 1864 1865 if ( pImp->pSplitWin ) 1866 pImp->pSplitWin->SetActiveWindow_Impl( this ); |
1866 else | 1867 else if (pMgr != NULL) |
1867 pMgr->Activate_Impl(); 1868 1869 Window* pWindow = rEvt.GetWindow(); 1870 rtl::OString sHelpId; 1871 while ( !sHelpId.getLength() && pWindow ) 1872 { 1873 sHelpId = pWindow->GetHelpId(); 1874 pWindow = pWindow->GetParent(); --- 14 unchanged lines hidden (view full) --- 1889 if ( !DockingWindow::Notify( rEvt ) && SfxViewShell::Current() ) 1890 // dann auch global g"ultige Acceleratoren verwenden 1891 return SfxViewShell::Current()->GlobalKeyInput_Impl( *rEvt.GetKeyEvent() ); 1892 return sal_True; 1893 } 1894 else if ( rEvt.GetType() == EVENT_LOSEFOCUS && !HasChildPathFocus() ) 1895 { 1896 pBindings->SetActiveFrame( NULL ); | 1868 pMgr->Activate_Impl(); 1869 1870 Window* pWindow = rEvt.GetWindow(); 1871 rtl::OString sHelpId; 1872 while ( !sHelpId.getLength() && pWindow ) 1873 { 1874 sHelpId = pWindow->GetHelpId(); 1875 pWindow = pWindow->GetParent(); --- 14 unchanged lines hidden (view full) --- 1890 if ( !DockingWindow::Notify( rEvt ) && SfxViewShell::Current() ) 1891 // dann auch global g"ultige Acceleratoren verwenden 1892 return SfxViewShell::Current()->GlobalKeyInput_Impl( *rEvt.GetKeyEvent() ); 1893 return sal_True; 1894 } 1895 else if ( rEvt.GetType() == EVENT_LOSEFOCUS && !HasChildPathFocus() ) 1896 { 1897 pBindings->SetActiveFrame( NULL ); |
1897 pMgr->Deactivate_Impl(); | 1898 if (pMgr != NULL) 1899 pMgr->Deactivate_Impl(); |
1898 } 1899 1900 return DockingWindow::Notify( rEvt ); 1901} 1902 1903 1904sal_uInt16 SfxDockingWindow::GetWinBits_Impl() const 1905{ --- 112 unchanged lines hidden --- | 1900 } 1901 1902 return DockingWindow::Notify( rEvt ); 1903} 1904 1905 1906sal_uInt16 SfxDockingWindow::GetWinBits_Impl() const 1907{ --- 112 unchanged lines hidden --- |