SidebarController.cxx (54eaaa32) | SidebarController.cxx (65908a7e) |
---|---|
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 --- 122 unchanged lines hidden (view full) --- 131{ 132} 133 134 135 136 137void SAL_CALL SidebarController::disposing (void) 138{ | 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 --- 122 unchanged lines hidden (view full) --- 131{ 132} 133 134 135 136 137void SAL_CALL SidebarController::disposing (void) 138{ |
139 maFocusManager.Clear(); 140 |
|
139 cssu::Reference<css::ui::XContextChangeEventMultiplexer> xMultiplexer ( 140 css::ui::ContextChangeEventMultiplexer::get( 141 ::comphelper::getProcessComponentContext())); 142 if (xMultiplexer.is()) 143 xMultiplexer->removeAllContextChangeEventListeners( 144 static_cast<css::ui::XContextChangeEventListener*>(this)); 145 146 if (mpParentWindow != NULL) --- 201 unchanged lines hidden (view full) --- 348 349 350 351 352void SidebarController::SwitchToDeck ( 353 const DeckDescriptor& rDeckDescriptor, 354 const Context& rContext) 355{ | 141 cssu::Reference<css::ui::XContextChangeEventMultiplexer> xMultiplexer ( 142 css::ui::ContextChangeEventMultiplexer::get( 143 ::comphelper::getProcessComponentContext())); 144 if (xMultiplexer.is()) 145 xMultiplexer->removeAllContextChangeEventListeners( 146 static_cast<css::ui::XContextChangeEventListener*>(this)); 147 148 if (mpParentWindow != NULL) --- 201 unchanged lines hidden (view full) --- 350 351 352 353 354void SidebarController::SwitchToDeck ( 355 const DeckDescriptor& rDeckDescriptor, 356 const Context& rContext) 357{ |
358 maFocusManager.Clear(); 359 |
|
356 if ( ! msCurrentDeckId.equals(rDeckDescriptor.msId)) 357 { 358 // When the deck changes then destroy the deck and all panels 359 // and create everything new. 360 if (mpCurrentDeck) 361 { 362 mpCurrentDeck->Dispose(); 363 mpCurrentDeck.reset(); --- 111 unchanged lines hidden (view full) --- 475 // Tell the tab bar to highlight the button associated with the 476 // deck. 477 mpTabBar->HighlightDeck(rDeckDescriptor.msId); 478 479 mpParentWindow->SetText(rDeckDescriptor.msTitle); 480 481 if (bHasPanelSetChanged) 482 NotifyResize(); | 360 if ( ! msCurrentDeckId.equals(rDeckDescriptor.msId)) 361 { 362 // When the deck changes then destroy the deck and all panels 363 // and create everything new. 364 if (mpCurrentDeck) 365 { 366 mpCurrentDeck->Dispose(); 367 mpCurrentDeck.reset(); --- 111 unchanged lines hidden (view full) --- 479 // Tell the tab bar to highlight the button associated with the 480 // deck. 481 mpTabBar->HighlightDeck(rDeckDescriptor.msId); 482 483 mpParentWindow->SetText(rDeckDescriptor.msTitle); 484 485 if (bHasPanelSetChanged) 486 NotifyResize(); |
487 488 // Tell the focus manager about the new panels and tab bar 489 // buttons. 490 maFocusManager.SetPanels(aNewPanels); 491 mpTabBar->UpdateFocusManager(maFocusManager); |
|
483} 484 485 486 487 488bool SidebarController::ArePanelSetsEqual ( 489 const SharedPanelContainer& rCurrentPanels, 490 const ResourceManager::PanelContextDescriptorContainer& rRequestedPanels) --- 347 unchanged lines hidden (view full) --- 838 839 NotifyResize(); 840 } 841} 842 843 844 845 | 492} 493 494 495 496 497bool SidebarController::ArePanelSetsEqual ( 498 const SharedPanelContainer& rCurrentPanels, 499 const ResourceManager::PanelContextDescriptorContainer& rRequestedPanels) --- 347 unchanged lines hidden (view full) --- 847 848 NotifyResize(); 849 } 850} 851 852 853 854 |
855FocusManager& SidebarController::GetFocusManager (void) 856{ 857 return maFocusManager; 858} 859 860 861 862 |
|
846bool SidebarController::CanModifyChildWindowWidth (void) const 847{ 848 SfxSplitWindow* pSplitWindow = dynamic_cast<SfxSplitWindow*>(mpParentWindow->GetParent()); 849 if (pSplitWindow == NULL) 850 { 851 OSL_ASSERT(pSplitWindow!=NULL); 852 return 0; 853 } --- 64 unchanged lines hidden --- | 863bool SidebarController::CanModifyChildWindowWidth (void) const 864{ 865 SfxSplitWindow* pSplitWindow = dynamic_cast<SfxSplitWindow*>(mpParentWindow->GetParent()); 866 if (pSplitWindow == NULL) 867 { 868 OSL_ASSERT(pSplitWindow!=NULL); 869 return 0; 870 } --- 64 unchanged lines hidden --- |