[Libreoffice-commits] core.git: include/sfx2 sfx2/source

Szymon Kłos (via logerrit) logerrit at kemper.freedesktop.org
Tue Oct 1 12:32:13 UTC 2019


 include/sfx2/sidebar/Panel.hxx |    1 +
 sfx2/source/sidebar/Panel.cxx  |    7 +++++++
 2 files changed, 8 insertions(+)

New commits:
commit 7d1a5976b369ca8d7365ff33b0934181a9949b8a
Author:     Szymon Kłos <szymon.klos at collabora.com>
AuthorDate: Tue Sep 24 14:18:16 2019 +0200
Commit:     Szymon Kłos <szymon.klos at collabora.com>
CommitDate: Tue Oct 1 14:31:23 2019 +0200

    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 at collabora.com>

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;


More information about the Libreoffice-commits mailing list