ResourceManager.cxx (f35c6d02) | ResourceManager.cxx (7e429a12) |
---|---|
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 --- 558 unchanged lines hidden (view full) --- 567 maDecks.resize(nDeckWriteIndex); 568 if (nPanelWriteIndex < maPanels.size()) 569 maPanels.resize(nPanelWriteIndex); 570} 571 572 573 574 | 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 --- 558 unchanged lines hidden (view full) --- 567 maDecks.resize(nDeckWriteIndex); 568 if (nPanelWriteIndex < maPanels.size()) 569 maPanels.resize(nPanelWriteIndex); 570} 571 572 573 574 |
575void ResourceManager::StorePanelExpansionState ( 576 const ::rtl::OUString& rsPanelId, 577 const bool bExpansionState, 578 const Context& rContext) 579{ 580 for (PanelContainer::iterator 581 iPanel(maPanels.begin()), 582 iEnd(maPanels.end()); 583 iPanel!=iEnd; 584 ++iPanel) 585 { 586 if (iPanel->msId.equals(rsPanelId)) 587 { 588 ContextList::Entry* pEntry ( 589 iPanel->maContextList.GetMatch (rContext)); 590 if (pEntry != NULL) 591 pEntry->mbIsInitiallyVisible = bExpansionState; 592 } 593 } 594} 595 596 597 598 |
|
575::rtl::OUString ResourceManager::GetModuleName ( 576 const cssu::Reference<css::frame::XFrame>& rxFrame) 577{ 578 if ( ! rxFrame.is() || ! rxFrame->getController().is()) 579 return OUString(); 580 581 try 582 { --- 94 unchanged lines hidden --- | 599::rtl::OUString ResourceManager::GetModuleName ( 600 const cssu::Reference<css::frame::XFrame>& rxFrame) 601{ 602 if ( ! rxFrame.is() || ! rxFrame->getController().is()) 603 return OUString(); 604 605 try 606 { --- 94 unchanged lines hidden --- |