include/svx/xflbckit.hxx      |    2 ++
 svx/source/xoutdev/xattr2.cxx |    8 ++++++++
 2 files changed, 10 insertions(+)

New commits:
commit 2fded499dfab88834bc91acba1b6ae0028937f4e
Author:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
AuthorDate: Thu Jun 9 16:03:51 2022 +0200
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
CommitDate: Mon Jun 13 10:18:49 2022 +0200

    Add XFillBackgroundItem::dumpAsXml
    
    Change-Id: I21aa5ded0c9c114199c9d503b48437ec1a6171eb
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135691
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>

diff --git a/include/svx/xflbckit.hxx b/include/svx/xflbckit.hxx
index 4033e6796913..59d4e940e551 100644
--- a/include/svx/xflbckit.hxx
+++ b/include/svx/xflbckit.hxx
@@ -40,6 +40,8 @@ public:
                                                  MapUnit eCoreMetric,
                                                  MapUnit ePresMetric,
                                                  OUString &rText, const 
IntlWrapper& ) const override;
+
+    void dumpAsXml(xmlTextWriterPtr pWriter) const override;
 };
 
 #endif
diff --git a/svx/source/xoutdev/xattr2.cxx b/svx/source/xoutdev/xattr2.cxx
index 30517283c748..e4136c9280ab 100644
--- a/svx/source/xoutdev/xattr2.cxx
+++ b/svx/source/xoutdev/xattr2.cxx
@@ -693,4 +693,12 @@ bool XFillBackgroundItem::GetPresentation( 
SfxItemPresentation /*ePres*/, MapUni
     return true;
 }
 
+void XFillBackgroundItem::dumpAsXml(xmlTextWriterPtr pWriter) const
+{
+    (void)xmlTextWriterStartElement(pWriter, BAD_CAST("XFillBackgroundItem"));
+    (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), 
BAD_CAST(OString::number(Which()).getStr()));
+    (void)xmlTextWriterWriteAttribute(pWriter, BAD_CAST("value"), 
BAD_CAST(OString::boolean(GetValue()).getStr()));
+    (void)xmlTextWriterEndElement(pWriter);
+}
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Reply via email to