summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-01-12 09:09:15 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-01-12 09:09:34 +0100
commit0042de4cf8ca02dd0fe9063266b69943d97b645b (patch)
tree5f1357c3224bf3f24c5358625490222d92b23bfe /editeng
parent92cef7eb344c9c9c7a6aa1489845a1b0eb346ead (diff)
Factor out SvxProtectItem::dumpAsXml() from sw
Change-Id: I780afa7c5faa0f594257200c5c2c132cc49388b6
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/frmitems.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index 7244b1de76db..f7902b21ab33 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -1256,6 +1256,16 @@ SfxPoolItem* SvxProtectItem::Create( SvStream& rStrm, sal_uInt16 ) const
return pAttr;
}
+void SvxProtectItem::dumpAsXml(xmlTextWriterPtr pWriter) const
+{
+ xmlTextWriterStartElement(pWriter, BAD_CAST("svxProtectItem"));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("content"), BAD_CAST(OString::boolean(bCntnt).getStr()));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("size"), BAD_CAST(OString::boolean(bSize).getStr()));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("position"), BAD_CAST(OString::boolean(bPos).getStr()));
+ xmlTextWriterEndElement(pWriter);
+}
+
// class SvxShadowItem ---------------------------------------------------
SvxShadowItem::SvxShadowItem( const sal_uInt16 nId,