From bd7b2a14604eed191625f3e654cd807933ab059b Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Sat, 17 Jan 2015 12:55:39 +0100 Subject: Factor out SvxULSpaceItem::dumpAsXml() from sw Change-Id: I52d7a7aaf304b7d698705cda7d3e70e723811fb2 --- editeng/source/items/frmitems.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'editeng') diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index 9ac4f1047235..8b68df0ffe70 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -1083,6 +1083,18 @@ bool SvxULSpaceItem::HasMetrics() const return true; } +void SvxULSpaceItem::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + xmlTextWriterStartElement(pWriter, BAD_CAST("svxULSpaceItem")); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr())); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nUpper"), BAD_CAST(OString::number(nUpper).getStr())); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nLower"), BAD_CAST(OString::number(nLower).getStr())); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("bContext"), BAD_CAST(OString::boolean(bContext).getStr())); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nPropUpper"), BAD_CAST(OString::number(nPropUpper).getStr())); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("nPropLower"), BAD_CAST(OString::number(nPropLower).getStr())); + xmlTextWriterEndElement(pWriter); +} + // class SvxPrintItem ---------------------------------------------------- SfxPoolItem* SvxPrintItem::Clone( SfxItemPool* ) const -- cgit v1.2.3