summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/sidebar/Deck.cxx19
1 files changed, 13 insertions, 6 deletions
diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx
index 6def9683727e..ba8f4928ac0b 100644
--- a/sfx2/source/sidebar/Deck.cxx
+++ b/sfx2/source/sidebar/Deck.cxx
@@ -193,7 +193,7 @@ boost::property_tree::ptree Deck::DumpAsPropertyTree()
aTree.put("text", GetText());
aTree.put("enabled", IsEnabled());
- boost::property_tree::ptree aChildren;
+ boost::property_tree::ptree aPanelNodes;
for (auto &it : maPanels)
{
if (it->IsLurking())
@@ -207,13 +207,20 @@ boost::property_tree::ptree Deck::DumpAsPropertyTree()
if (!pWindow)
continue;
- boost::property_tree::ptree aChild = pWindow->DumpAsPropertyTree();
- aChild.put("text", it->GetText());
- aChild.put("type", "panel");
- aChildren.push_back(std::make_pair("", aChild));
+ boost::property_tree::ptree aPanel;
+ aPanel.put("id", it->GetId());
+ aPanel.put("type", "panel");
+ aPanel.put("text", it->GetText());
+ aPanel.put("enabled", it->IsEnabled());
+
+ boost::property_tree::ptree aChildren;
+ aChildren.push_back(std::make_pair("", pWindow->DumpAsPropertyTree()));
+ aPanel.add_child("children", aChildren);
+
+ aPanelNodes.push_back(std::make_pair("", aPanel));
}
+ aTree.add_child("children", aPanelNodes);
- aTree.add_child("children", aChildren);
return aTree;
}