FocusManager.cxx (0f2fd489) FocusManager.cxx (edc7f530)
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

--- 180 unchanged lines hidden (view full) ---

189
190
191
192
193FocusManager::FocusLocation FocusManager::GetFocusLocation (const Window& rWindow) const
194{
195 // Check the deck title.
196 if (mpDeckTitleBar != NULL)
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

--- 180 unchanged lines hidden (view full) ---

189
190
191
192
193FocusManager::FocusLocation FocusManager::GetFocusLocation (const Window& rWindow) const
194{
195 // Check the deck title.
196 if (mpDeckTitleBar != NULL)
197 {
197 if (mpDeckTitleBar == &rWindow)
198 return FocusLocation(PC_DeckTitle, -1);
199 else if (&mpDeckTitleBar->GetToolBox() == &rWindow)
200 return FocusLocation(PC_DeckToolBox, -1);
198 if (mpDeckTitleBar == &rWindow)
199 return FocusLocation(PC_DeckTitle, -1);
200 else if (&mpDeckTitleBar->GetToolBox() == &rWindow)
201 return FocusLocation(PC_DeckToolBox, -1);
201
202 }
203
202 // Search the panels.
203 for (sal_Int32 nIndex=0,nCount(maPanels.size()); nIndex<nCount; ++nIndex)
204 {
205 if (maPanels[nIndex] == &rWindow)
206 return FocusLocation(PC_PanelContent, nIndex);
207 TitleBar* pTitleBar = maPanels[nIndex]->GetTitleBar();
208 if (pTitleBar == &rWindow)
209 return FocusLocation(PC_PanelTitle, nIndex);

--- 416 unchanged lines hidden ---
204 // Search the panels.
205 for (sal_Int32 nIndex=0,nCount(maPanels.size()); nIndex<nCount; ++nIndex)
206 {
207 if (maPanels[nIndex] == &rWindow)
208 return FocusLocation(PC_PanelContent, nIndex);
209 TitleBar* pTitleBar = maPanels[nIndex]->GetTitleBar();
210 if (pTitleBar == &rWindow)
211 return FocusLocation(PC_PanelTitle, nIndex);

--- 416 unchanged lines hidden ---