diff options
author | Andre Fischer <af@apache.org> | 2013-04-22 15:01:51 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2013-05-20 11:33:17 +0100 |
commit | 3af7ae5ef74756b33d35a67b7a6cee44acf79737 (patch) | |
tree | 57f0d1e0f60373edba0cf7fa98007e90f9b5ac82 /sfx2/source/sidebar/SidebarController.hxx | |
parent | d06b9921d76ecd81d7f92dc61c2c8dec1bf83f60 (diff) |
Resolves: #i122095# React asynchronously to context changes
In order to avoid problems in SFX2
(cherry picked from commit 61ed9eac0583e34a9b69f0a1adcc208509e336a1)
Change-Id: I375603a28e788ce9257be308dc09a589240d0e58
Diffstat (limited to 'sfx2/source/sidebar/SidebarController.hxx')
-rw-r--r-- | sfx2/source/sidebar/SidebarController.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sfx2/source/sidebar/SidebarController.hxx b/sfx2/source/sidebar/SidebarController.hxx index 38ce50b1a23c..4ae0f7d9ceef 100644 --- a/sfx2/source/sidebar/SidebarController.hxx +++ b/sfx2/source/sidebar/SidebarController.hxx @@ -107,9 +107,11 @@ private: ::boost::scoped_ptr<TabBar> mpTabBar; cssu::Reference<css::frame::XFrame> mxFrame; Context maCurrentContext; + Context maRequestedContext; ::rtl::OUString msCurrentDeckId; ::rtl::OUString msCurrentDeckTitle; AsynchronousCall maPropertyChangeForwarder; + AsynchronousCall maContextChangeUpdate; bool mbIsDeckClosed; /** Before the deck is closed the sidebar width is saved into this variable, so that it can be restored when the deck is reopended. @@ -118,7 +120,9 @@ private: FocusManager maFocusManager; DECL_LINK(WindowEventHandler, VclWindowEvent*); - void UpdateConfigurations (const Context& rContext); + /** Make maRequestedContext the current context. + */ + void UpdateConfigurations (void); bool ArePanelSetsEqual ( const SharedPanelContainer& rCurrentPanels, const ResourceManager::PanelContextDescriptorContainer& rRequestedPanels); |