diff options
author | Andre Fischer <af@apache.org> | 2013-05-08 09:48:36 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-05-20 11:33:30 +0100 |
commit | 11f8ed408d43f40de5f694d6b7d00cb7762ee84f (patch) | |
tree | 56a920759e63a3202c750cf21dc884832140e0d0 /sfx2/source/sidebar/ResourceManager.cxx | |
parent | 5e8a2c64799856ddc34ab5d468bd54d7302302f4 (diff) |
Resolves: #i122255# Store sidebar panel extension state
(non persistent)
(cherry picked from commit f6f8c047b73f8fc8b4c78b321761a26ef7ed96ba)
Change-Id: I917050dd57b3fa952200dd536b371f902661e88f
Diffstat (limited to 'sfx2/source/sidebar/ResourceManager.cxx')
-rw-r--r-- | sfx2/source/sidebar/ResourceManager.cxx | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/ResourceManager.cxx b/sfx2/source/sidebar/ResourceManager.cxx index 683856257d5f..d65c9b44fdd4 100644 --- a/sfx2/source/sidebar/ResourceManager.cxx +++ b/sfx2/source/sidebar/ResourceManager.cxx @@ -561,6 +561,30 @@ void ResourceManager::ReadLegacyAddons (const Reference<frame::XFrame>& rxFrame) +void ResourceManager::StorePanelExpansionState ( + const ::rtl::OUString& rsPanelId, + const bool bExpansionState, + const Context& rContext) +{ + for (PanelContainer::iterator + iPanel(maPanels.begin()), + iEnd(maPanels.end()); + iPanel!=iEnd; + ++iPanel) + { + if (iPanel->msId.equals(rsPanelId)) + { + ContextList::Entry* pEntry ( + iPanel->maContextList.GetMatch (rContext)); + if (pEntry != NULL) + pEntry->mbIsInitiallyVisible = bExpansionState; + } + } +} + + + + ::rtl::OUString ResourceManager::GetModuleName ( const cssu::Reference<css::frame::XFrame>& rxFrame) { |