| toolbarmenu.cxx (5900e8ec) | toolbarmenu.cxx (2df387e6) |
|---|---|
| 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 --- 41 unchanged lines hidden (view full) --- 50// -------------------------------------------------------------------- 51 52static Window* GetTopMostParentSystemWindow( Window* pWindow ) 53{ 54 OSL_ASSERT( pWindow ); 55 if ( pWindow ) 56 { 57 // ->manually search topmost system window | 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 --- 41 unchanged lines hidden (view full) --- 50// -------------------------------------------------------------------- 51 52static Window* GetTopMostParentSystemWindow( Window* pWindow ) 53{ 54 OSL_ASSERT( pWindow ); 55 if ( pWindow ) 56 { 57 // ->manually search topmost system window |
| 58 // required because their might be another system window between this and the top window | 58 // required because there might be another system window between this and the top window |
| 59 pWindow = pWindow->GetParent(); 60 SystemWindow* pTopMostSysWin = NULL; 61 while ( pWindow ) 62 { 63 if ( pWindow->IsSystemWindow() ) 64 pTopMostSysWin = (SystemWindow*)pWindow; 65 pWindow = pWindow->GetParent(); 66 } --- 1735 unchanged lines hidden --- | 59 pWindow = pWindow->GetParent(); 60 SystemWindow* pTopMostSysWin = NULL; 61 while ( pWindow ) 62 { 63 if ( pWindow->IsSystemWindow() ) 64 pTopMostSysWin = (SystemWindow*)pWindow; 65 pWindow = pWindow->GetParent(); 66 } --- 1735 unchanged lines hidden --- |