diff options
author | Katarina Behrens <Katarina.Behrens@cib.de> | 2017-10-18 12:50:59 +0200 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2017-10-21 15:02:50 +0200 |
commit | 23467fa5cfa2feffbeba2177c0d393f8ebe1a0a3 (patch) | |
tree | 71e3c86a862291530699fce94dcd90a61ab421c1 /include | |
parent | 0c46b3a9a384d5b70a708c3e9459a790dd815c63 (diff) |
tdf#67770: Read/writer LastActiveDeck bits
Change-Id: Id5e3c3cb4144b9fc56ab5e4a4e49f1fc69e70023
Reviewed-on: https://gerrit.libreoffice.org/43493
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/sidebar/ResourceManager.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sfx2/sidebar/ResourceManager.hxx b/include/sfx2/sidebar/ResourceManager.hxx index 8c50ecfe6316..2d68d3525783 100644 --- a/include/sfx2/sidebar/ResourceManager.hxx +++ b/include/sfx2/sidebar/ResourceManager.hxx @@ -51,6 +51,7 @@ public: void InitDeckContext(const Context& rContex); void SaveDecksSettings(const Context& rContext); void SaveDeckSettings(const DeckDescriptor* pDeckDesc); + void SaveLastActiveDeck(const Context& rContext, const OUString& rActiveDeck); void disposeDecks(); @@ -84,6 +85,8 @@ public: const OUString& rsDeckId, const css::uno::Reference<css::frame::XController>& rxController); + const OUString& GetLastActiveDeck( const Context& rContext ); + /** Remember the expansions state per panel and context. */ void StorePanelExpansionState(const OUString& rsPanelId, @@ -99,11 +102,13 @@ private: typedef std::vector<std::shared_ptr<PanelDescriptor>> PanelContainer; PanelContainer maPanels; mutable std::set<rtl::OUString> maProcessedApplications; + std::map<OUString, OUString> maLastActiveDecks; SvtMiscOptions maMiscOptions; void ReadDeckList(); void ReadPanelList(); + void ReadLastActive(); static void ReadContextList(const utl::OConfigurationNode& rNode, ContextList& rContextList, const OUString& rsDefaultMenuCommand); |