Lines Matching refs:pCW

691 		SfxChildWin_Impl* pCW = (*pChildWins)[n];  in SaveStatus_Impl()  local
692 SfxChildWindow *pChild = pCW->pWin; in SaveStatus_Impl()
695 sal_uInt16 nFlags = pCW->aInfo.nFlags; in SaveStatus_Impl()
696 pCW->aInfo = pChild->GetInfo(); in SaveStatus_Impl()
697 pCW->aInfo.nFlags |= nFlags; in SaveStatus_Impl()
698 SaveStatus_Impl(pChild, pCW->aInfo); in SaveStatus_Impl()
726 SfxChildWin_Impl* pCW = (*pChildWins)[n]; in DeleteControllers_Impl() local
728 SfxChildWindow *pChild = pCW->pWin; in DeleteControllers_Impl()
743 if (pCW->pCli) in DeleteControllers_Impl()
745 pCW->pWin = 0; in DeleteControllers_Impl()
750 delete pCW; in DeleteControllers_Impl()
1013 SfxChildWin_Impl *pCW = (*pChildWins)[n]; in Close_Impl() local
1014 SfxChildWindow *pChild = pCW->pWin; in Close_Impl()
1017 sal_uInt16 nFlags = pCW->aInfo.nFlags; in Close_Impl()
1018 pCW->aInfo = pChild->GetInfo(); in Close_Impl()
1019 pCW->aInfo.nFlags |= nFlags; in Close_Impl()
1020 SaveStatus_Impl(pChild, pCW->aInfo); in Close_Impl()
1029 SfxChildWin_Impl *pCW = (*pChildWins)[n]; in PrepareClose_Impl() local
1030 SfxChildWindow *pChild = pCW->pWin; in PrepareClose_Impl()
1146 SfxChildWin_Impl* pCW = 0; in ShowChilds_Impl() local
1159 pCW = pCWin; in ShowChilds_Impl()
1165 if ( pCW ) in ShowChilds_Impl()
1170 sal_uInt16 nFlags = pCW->aInfo.nFlags; in ShowChilds_Impl()
1553 SfxChildWin_Impl *pCW = (*pChildWins)[n]; in UpdateChildWindows_Impl() local
1554 SfxChildWindow *pChildWin = pCW->pWin; in UpdateChildWindows_Impl()
1556 …if ( pCW->nId && !pCW->bDisabled && (pCW->aInfo.nFlags & SFX_CHILDWIN_ALWAYSAVAILABLE || IsVisibl… in UpdateChildWindows_Impl()
1560 if ( pChildWin == NULL && pCW->bCreate ) in UpdateChildWindows_Impl()
1569 bCreate = !( pCW->aInfo.nFlags & SFX_CHILDWIN_FORCEDOCK ); in UpdateChildWindows_Impl()
1575 if ( pCW->aInfo.GetExtraData_Impl( &eAlign ) ) in UpdateChildWindows_Impl()
1582 bCreate = AllowChildWindowCreation_Impl( *pCW ); in UpdateChildWindows_Impl()
1587 CreateChildWin_Impl( pCW, sal_False ); in UpdateChildWindows_Impl()
1591 if ( pCW->pCli ) in UpdateChildWindows_Impl()
1592 pCW->pCli->nVisible &= ~CHILD_ACTIVE; in UpdateChildWindows_Impl()
1601 bCreate = AllowChildWindowCreation_Impl( *pCW ); in UpdateChildWindows_Impl()
1604 if ( pCW->pCli ) in UpdateChildWindows_Impl()
1607 … bAllChildsVisible && ( (IsDockingAllowed() && bInternalDockingAllowed) || pCW->pCli->eAlign == SF… in UpdateChildWindows_Impl()
1608 pCW->pCli->nVisible |= CHILD_NOT_HIDDEN; in UpdateChildWindows_Impl()
1612 if ( pCW->bCreate && IsDockingAllowed() && bInternalDockingAllowed ) in UpdateChildWindows_Impl()
1617 if ( pCW->nInterfaceId != pChildWin->GetContextId() ) in UpdateChildWindows_Impl()
1618 pChildWin->CreateContext( pCW->nInterfaceId, GetBindings() ); in UpdateChildWindows_Impl()
1628 if ( pCW->pCli ) in UpdateChildWindows_Impl()
1630 if ( pCW->pCli->nVisible & CHILD_NOT_HIDDEN ) in UpdateChildWindows_Impl()
1631 pCW->pCli->nVisible ^= CHILD_NOT_HIDDEN; in UpdateChildWindows_Impl()
1637 RemoveChildWin_Impl( pCW ); in UpdateChildWindows_Impl()
1642 void SfxWorkWindow::CreateChildWin_Impl( SfxChildWin_Impl *pCW, sal_Bool bSetFocus ) in CreateChildWin_Impl() argument
1644 if ( pCW->aInfo.bVisible != 42 ) in CreateChildWin_Impl()
1645 pCW->aInfo.bVisible = sal_True; in CreateChildWin_Impl()
1647 …ldWindow *pChildWin = SfxChildWindow::CreateChildWindow( pCW->nId, pWorkWin, &GetBindings(), pCW->… in CreateChildWin_Impl()
1655 pChildWin->GetWindow()->EnableInput( pCW->bEnable && in CreateChildWin_Impl()
1660 pCW->aInfo.aExtraString = aInfo.aExtraString; in CreateChildWin_Impl()
1661 pCW->aInfo.bVisible = aInfo.bVisible; in CreateChildWin_Impl()
1662 pCW->aInfo.nFlags |= aInfo.nFlags; in CreateChildWin_Impl()
1668 GetBindings().Invalidate(pCW->nId); in CreateChildWin_Impl()
1685 pCW->pWin = pChildWin; in CreateChildWin_Impl()
1692pCW->pCli = RegisterChild_Impl(*(pChildWin->GetWindow()), pChildWin->GetAlignment(), pChildWin->Ca… in CreateChildWin_Impl()
1693 pCW->pCli->nVisible = CHILD_VISIBLE; in CreateChildWin_Impl()
1695 pCW->pCli->nVisible ^= CHILD_ACTIVE; in CreateChildWin_Impl()
1696 pCW->pCli->bSetFocus = bSetFocus; in CreateChildWin_Impl()
1707 if ( pCW->nInterfaceId != pChildWin->GetContextId() ) in CreateChildWin_Impl()
1708 pChildWin->CreateContext( pCW->nInterfaceId, GetBindings() ); in CreateChildWin_Impl()
1711 SaveStatus_Impl(pChildWin, pCW->aInfo); in CreateChildWin_Impl()
1715 void SfxWorkWindow::RemoveChildWin_Impl( SfxChildWin_Impl *pCW ) in RemoveChildWin_Impl() argument
1717 sal_uInt16 nId = pCW->nSaveId; in RemoveChildWin_Impl()
1718 SfxChildWindow *pChildWin = pCW->pWin; in RemoveChildWin_Impl()
1738 sal_uInt16 nFlags = pCW->aInfo.nFlags; in RemoveChildWin_Impl()
1739 pCW->aInfo = pChildWin->GetInfo(); in RemoveChildWin_Impl()
1740 pCW->aInfo.nFlags |= nFlags; in RemoveChildWin_Impl()
1741 SaveStatus_Impl(pChildWin, pCW->aInfo); in RemoveChildWin_Impl()
1745 if ( pCW->pCli ) in RemoveChildWin_Impl()
1749 pCW->pCli = 0; in RemoveChildWin_Impl()
1759 pCW->pWin = 0; in RemoveChildWin_Impl()
1873 SfxChildWindow *pCW = (*pChildWins)[n]->pWin; in HidePopups_Impl() local
1874 if (pCW && pCW->GetAlignment() == SFX_ALIGN_NOALIGNMENT && pCW->GetType() != nId) in HidePopups_Impl()
1876 Window *pWin = pCW->GetWindow(); in HidePopups_Impl()
1881 pCW->Hide(); in HidePopups_Impl()
1887 pCW->Show( SHOW_NOFOCUSCHANGE | SHOW_NOACTIVATE ); in HidePopups_Impl()
1904 SfxChildWin_Impl *pCW = 0; in ConfigChild_Impl() local
1915 pCW = (*pChildWins)[n]; in ConfigChild_Impl()
1916 SfxChildWindow *pChild = pCW->pWin; in ConfigChild_Impl()
1939pCW->pCli = RegisterChild_Impl(*pDockWin, pDockWin->GetAlignment(), pCW->pWin->CanGetFocus()); in ConfigChild_Impl()
1940 pCW->pCli->nVisible = CHILD_VISIBLE; in ConfigChild_Impl()
1953 pCW->pCli = 0; in ConfigChild_Impl()
1963 DBG_ASSERT( pCW, "Unknown window!" ); in ConfigChild_Impl()
1964 if ( !pCW && pParent ) in ConfigChild_Impl()
2118 if ( nPos == USHRT_MAX && !pCW ) in ConfigChild_Impl()
2146 if ( pCW && pCW->pWin ) in ConfigChild_Impl()
2149 sal_uInt16 nFlags = pCW->aInfo.nFlags; in ConfigChild_Impl()
2150 pCW->aInfo = pCW->pWin->GetInfo(); in ConfigChild_Impl()
2151 pCW->aInfo.nFlags |= nFlags; in ConfigChild_Impl()
2153 SaveStatus_Impl( pCW->pWin, pCW->aInfo); in ConfigChild_Impl()
2169 SfxChildWin_Impl *pCW=NULL; in SetChildWindowVisible_Impl() local
2184 pCW = (*pWork->pChildWins)[n]; in SetChildWindowVisible_Impl()
2189 if ( !pCW ) in SetChildWindowVisible_Impl()
2196 pCW = (*pChildWins)[n]; in SetChildWindowVisible_Impl()
2201 if ( !pCW ) in SetChildWindowVisible_Impl()
2205 pCW = new SfxChildWin_Impl( lId ); in SetChildWindowVisible_Impl()
2206 pCW->nId = nId; in SetChildWindowVisible_Impl()
2207 InitializeChild_Impl( pCW ); in SetChildWindowVisible_Impl()
2208 if ( pWork && !( pCW->aInfo.nFlags & SFX_CHILDWIN_TASK ) ) in SetChildWindowVisible_Impl()
2209 pWork->pChildWins->Insert( pWork->pChildWins->Count(), pCW ); in SetChildWindowVisible_Impl()
2211 pChildWins->Insert( pChildWins->Count(), pCW ); in SetChildWindowVisible_Impl()
2214 pCW->nId = nId; in SetChildWindowVisible_Impl()
2216 pCW->nInterfaceId = nInter; in SetChildWindowVisible_Impl()
2217 pCW->nVisibility = nMode; in SetChildWindowVisible_Impl()
2218 pCW->bEnable = bEnabled; in SetChildWindowVisible_Impl()
2220 if ( pCW->pWin ) in SetChildWindowVisible_Impl()
2221 pCW->pWin->GetWindow()->EnableInput( bEnabled && in SetChildWindowVisible_Impl()
2224 pCW->nVisibility = nMode; in SetChildWindowVisible_Impl()
2241 SfxChildWin_Impl *pCW = (*pChildWins)[n]; in ToggleChildWindow_Impl() local
2242 SfxChildWindow *pChild = pCW->pWin; in ToggleChildWindow_Impl()
2249 bCreationAllowed = !( pCW->aInfo.nFlags & SFX_CHILDWIN_FORCEDOCK ); in ToggleChildWindow_Impl()
2254 if ( pCW->bCreate ) in ToggleChildWindow_Impl()
2260 pCW->bCreate = sal_False; in ToggleChildWindow_Impl()
2269 RemoveChildWin_Impl( pCW ); in ToggleChildWindow_Impl()
2276 pCW->bCreate = sal_False; in ToggleChildWindow_Impl()
2281 pCW->bCreate = AllowChildWindowCreation_Impl( *pCW ); in ToggleChildWindow_Impl()
2282 if ( pCW->bCreate ) in ToggleChildWindow_Impl()
2291 CreateChildWin_Impl( pCW, bSetFocus ); in ToggleChildWindow_Impl()
2292 if ( !pCW->pWin ) in ToggleChildWindow_Impl()
2294 pCW->bCreate = sal_False; in ToggleChildWindow_Impl()
2303 if ( pCW->bCreate && bCreationAllowed ) in ToggleChildWindow_Impl()
2305 if ( !pCW->pCli ) in ToggleChildWindow_Impl()
2308 (SfxDockingWindow*) pCW->pWin->GetWindow(); in ToggleChildWindow_Impl()
2351 SfxChildWin_Impl *pCW = (*pChildWins)[n]; in HasChildWindow_Impl() local
2352 SfxChildWindow *pChild = pCW->pWin; in HasChildWindow_Impl()
2353 return ( pChild && pCW->bCreate ); in HasChildWindow_Impl()
2364 SfxChildWin_Impl *pCW=NULL; in IsFloating() local
2379 pCW = (*pWork->pChildWins)[n]; in IsFloating()
2384 if ( !pCW ) in IsFloating()
2391 pCW = (*pChildWins)[n]; in IsFloating()
2396 if ( !pCW ) in IsFloating()
2400 pCW = new SfxChildWin_Impl( nId ); in IsFloating()
2401 pCW->bEnable = sal_False; in IsFloating()
2402 pCW->nId = 0; in IsFloating()
2403 pCW->nVisibility = 0; in IsFloating()
2404 InitializeChild_Impl( pCW ); in IsFloating()
2405 if ( pWork && !( pCW->aInfo.nFlags & SFX_CHILDWIN_TASK ) ) in IsFloating()
2406 pWork->pChildWins->Insert( pWork->pChildWins->Count(), pCW ); in IsFloating()
2408 pChildWins->Insert( pChildWins->Count(), pCW ); in IsFloating()
2412 if ( pCW->aInfo.GetExtraData_Impl( &eAlign ) ) in IsFloating()
2422 SfxChildWin_Impl *pCW=0; in KnowsChildWindow_Impl() local
2427 pCW = (*pChildWins)[n]; in KnowsChildWindow_Impl()
2428 if ( pCW->nSaveId == nId) in KnowsChildWindow_Impl()
2434 … if ( !(pCW->aInfo.nFlags & SFX_CHILDWIN_ALWAYSAVAILABLE) && !IsVisible_Impl( pCW->nVisibility ) ) in KnowsChildWindow_Impl()
2436 return pCW->bEnable; in KnowsChildWindow_Impl()
2448 SfxChildWin_Impl *pCW=NULL; in SetChildWindow_Impl() local
2463 pCW = (*pWork->pChildWins)[n]; in SetChildWindow_Impl()
2468 if ( !pCW ) in SetChildWindow_Impl()
2475 pCW = (*pChildWins)[n]; in SetChildWindow_Impl()
2481 if ( !pCW ) in SetChildWindow_Impl()
2485 pCW = new SfxChildWin_Impl( nId ); in SetChildWindow_Impl()
2486 InitializeChild_Impl( pCW ); in SetChildWindow_Impl()
2487 if ( !pWork || pCW->aInfo.nFlags & SFX_CHILDWIN_TASK ) in SetChildWindow_Impl()
2489 pWork->pChildWins->Insert( pWork->pChildWins->Count(), pCW ); in SetChildWindow_Impl()
2492 if ( pCW->bCreate != bOn ) in SetChildWindow_Impl()
2501 SfxChildWin_Impl* pCW=0; in ShowChildWindow_Impl() local
2505 pCW = (*pChildWins)[n]; in ShowChildWindow_Impl()
2506 if (pCW->nId == nId) in ShowChildWindow_Impl()
2512 SfxChildWindow *pChildWin = pCW->pWin; in ShowChildWindow_Impl()
2517 if ( pCW->pCli ) in ShowChildWindow_Impl()
2519 pCW->pCli->bSetFocus = bSetFocus; in ShowChildWindow_Impl()
2520 pCW->pCli->nVisible = CHILD_VISIBLE; in ShowChildWindow_Impl()
2529 if ( pCW->pCli ) in ShowChildWindow_Impl()
2531 pCW->pCli->nVisible = CHILD_VISIBLE ^ CHILD_NOT_HIDDEN; in ShowChildWindow_Impl()
2532 pCW->pWin->Hide(); in ShowChildWindow_Impl()
2545 pChildWin = pCW->pWin; in ShowChildWindow_Impl()
2551 sal_uInt16 nFlags = pCW->aInfo.nFlags; in ShowChildWindow_Impl()
2552 pCW->aInfo = pChildWin->GetInfo(); in ShowChildWindow_Impl()
2553 pCW->aInfo.nFlags |= nFlags; in ShowChildWindow_Impl()
2554 if ( !pCW->bCreate ) in ShowChildWindow_Impl()
2555 SaveStatus_Impl( pChildWin, pCW->aInfo ); in ShowChildWindow_Impl()
2656 void SfxWorkWindow::InitializeChild_Impl(SfxChildWin_Impl *pCW) in InitializeChild_Impl() argument
2665 if ( pFact->nId == pCW->nSaveId ) in InitializeChild_Impl()
2667 pCW->aInfo = pFact->aInfo; in InitializeChild_Impl()
2669 pCW->nSaveId, pCW->aInfo); in InitializeChild_Impl()
2670 pCW->bCreate = pCW->aInfo.bVisible; in InitializeChild_Impl()
2673 pCW->aInfo.nFlags |= SFX_CHILDWIN_TASK; in InitializeChild_Impl()
2675 pCW->aInfo.nFlags |= SFX_CHILDWIN_CANTGETFOCUS; in InitializeChild_Impl()
2677 pCW->aInfo.nFlags |= SFX_CHILDWIN_FORCEDOCK; in InitializeChild_Impl()
2678 pFact->aInfo = pCW->aInfo; in InitializeChild_Impl()
2695 if ( pFact->nId == pCW->nSaveId ) in InitializeChild_Impl()
2697 pCW->aInfo = pFact->aInfo; in InitializeChild_Impl()
2699 pCW->nSaveId, pCW->aInfo); in InitializeChild_Impl()
2700 pCW->bCreate = pCW->aInfo.bVisible; in InitializeChild_Impl()
2703 pCW->aInfo.nFlags |= SFX_CHILDWIN_TASK; in InitializeChild_Impl()
2705 pCW->aInfo.nFlags |= SFX_CHILDWIN_CANTGETFOCUS; in InitializeChild_Impl()
2707 pCW->aInfo.nFlags |= SFX_CHILDWIN_FORCEDOCK; in InitializeChild_Impl()
2709 pCW->aInfo.nFlags |= SFX_CHILDWIN_ALWAYSAVAILABLE; in InitializeChild_Impl()
2710 pFact->aInfo = pCW->aInfo; in InitializeChild_Impl()
3131 SfxChildWin_Impl*pCW = (*pChildWins)[n]; in DataChanged_Impl() local
3132 if ( pCW && pCW->pWin ) in DataChanged_Impl()
3133 pCW->pWin->GetWindow()->UpdateSettings( Application::GetSettings() ); in DataChanged_Impl()