summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sd/source/ui/sidebar/SlideBackground.cxx11
-rw-r--r--sd/source/ui/sidebar/SlideBackground.hxx1
2 files changed, 12 insertions, 0 deletions
diff --git a/sd/source/ui/sidebar/SlideBackground.cxx b/sd/source/ui/sidebar/SlideBackground.cxx
index f6f520d0bf38..68f670f923a3 100644
--- a/sd/source/ui/sidebar/SlideBackground.cxx
+++ b/sd/source/ui/sidebar/SlideBackground.cxx
@@ -231,6 +231,17 @@ void SlideBackground::Initialize()
UpdateMarginBox();
}
+boost::property_tree::ptree SlideBackground::DumpAsPropertyTree()
+{
+ if (mpPaperSizeBox->GetSelectedEntryCount() == 0)
+ {
+ mpBindings->Update(SID_ATTR_PAGE_SIZE);
+ }
+
+ boost::property_tree::ptree aTree(Control::DumpAsPropertyTree());
+ return aTree;
+}
+
void SlideBackground::HandleContextChange(
const vcl::EnumContext& rContext)
{
diff --git a/sd/source/ui/sidebar/SlideBackground.hxx b/sd/source/ui/sidebar/SlideBackground.hxx
index a78a1a9b5723..3a48860b7d78 100644
--- a/sd/source/ui/sidebar/SlideBackground.hxx
+++ b/sd/source/ui/sidebar/SlideBackground.hxx
@@ -70,6 +70,7 @@ public:
const SfxPoolItem* pState) override;
virtual void HandleContextChange(
const vcl::EnumContext& rContext) override;
+ virtual boost::property_tree::ptree DumpAsPropertyTree() override;
private: