FocusManager.cxx (52d13b84) | FocusManager.cxx (611a5f08) |
---|---|
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 --- 89 unchanged lines hidden (view full) --- 98 } 99} 100 101 102 103 104void FocusManager::ClearButtons (void) 105{ | 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 --- 89 unchanged lines hidden (view full) --- 98 } 99} 100 101 102 103 104void FocusManager::ClearButtons (void) 105{ |
106 ::std::vector<Window*> aButtons; 107 for (::std::vector<Window*>::iterator iButton(aButtons.begin()),iEnd(aButtons.end()); | 106 ::std::vector<Button*> aButtons; 107 aButtons.swap(maButtons); 108 for (::std::vector<Button*>::iterator iButton(aButtons.begin()),iEnd(aButtons.end()); |
108 iButton!=iEnd; 109 ++iButton) 110 { 111 UnregisterWindow(**iButton); 112 } 113} 114 115 --- 160 unchanged lines hidden (view full) --- 276 return mpDeckTitleBar != NULL && mpDeckTitleBar->IsVisible(); 277} 278 279 280 281 282void FocusManager::FocusPanel (const sal_Int32 nPanelIndex) 283{ | 109 iButton!=iEnd; 110 ++iButton) 111 { 112 UnregisterWindow(**iButton); 113 } 114} 115 116 --- 160 unchanged lines hidden (view full) --- 277 return mpDeckTitleBar != NULL && mpDeckTitleBar->IsVisible(); 278} 279 280 281 282 283void FocusManager::FocusPanel (const sal_Int32 nPanelIndex) 284{ |
285 if (nPanelIndex<0 || nPanelIndex>=maPanels.size()) 286 return; |
|
284 Panel& rPanel (*maPanels[nPanelIndex]); 285 TitleBar* pTitleBar = rPanel.GetTitleBar(); 286 if (pTitleBar!=NULL && pTitleBar->IsVisible()) 287 { 288 rPanel.SetExpanded(true); 289 pTitleBar->GrabFocus(); 290 } 291 else --- 331 unchanged lines hidden --- | 287 Panel& rPanel (*maPanels[nPanelIndex]); 288 TitleBar* pTitleBar = rPanel.GetTitleBar(); 289 if (pTitleBar!=NULL && pTitleBar->IsVisible()) 290 { 291 rPanel.SetExpanded(true); 292 pTitleBar->GrabFocus(); 293 } 294 else --- 331 unchanged lines hidden --- |