summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2019-09-24 14:18:16 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2019-10-01 14:31:23 +0200
commit7d1a5976b369ca8d7365ff33b0934181a9949b8a (patch)
tree513db989359b5ed2877da984426467b3509ecabb
parent6d46ccc6b52c45d3d64a1c66f616defd12147bc5 (diff)
jsdialogs: set panel as a separate type
Change-Id: I715915ddcaff807ae6a6593dd776dbdb86f2bf4a Reviewed-on: https://gerrit.libreoffice.org/79802 Tested-by: Jenkins Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
-rw-r--r--include/sfx2/sidebar/Panel.hxx1
-rw-r--r--sfx2/source/sidebar/Panel.cxx7
2 files changed, 8 insertions, 0 deletions
diff --git a/include/sfx2/sidebar/Panel.hxx b/include/sfx2/sidebar/Panel.hxx
index 25687459def2..7ecf38b24b68 100644
--- a/include/sfx2/sidebar/Panel.hxx
+++ b/include/sfx2/sidebar/Panel.hxx
@@ -61,6 +61,7 @@ public:
virtual void Resize() override;
virtual void DataChanged (const DataChangedEvent& rEvent) override;
virtual void ApplySettings(vcl::RenderContext& rRenderContext) override;
+ virtual boost::property_tree::ptree DumpAsPropertyTree() override;
private:
const OUString msPanelId;
diff --git a/sfx2/source/sidebar/Panel.cxx b/sfx2/source/sidebar/Panel.cxx
index 6570c0615188..02a5cc565407 100644
--- a/sfx2/source/sidebar/Panel.cxx
+++ b/sfx2/source/sidebar/Panel.cxx
@@ -79,6 +79,13 @@ void Panel::ApplySettings(vcl::RenderContext& rRenderContext)
rRenderContext.SetBackground(Theme::GetPaint(Theme::Paint_PanelBackground).GetWallpaper());
}
+boost::property_tree::ptree Panel::DumpAsPropertyTree()
+{
+ boost::property_tree::ptree aTree(vcl::Window::DumpAsPropertyTree());
+ aTree.put("type", "panel");
+ return aTree;
+}
+
void Panel::dispose()
{
mxPanelComponent = nullptr;