diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-08 09:15:41 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-08 09:17:56 +0100 |
commit | 193c7ba9be48f00b46f9e789f233db577e7b3303 (patch) | |
tree | 92877b8baef043fa3467a9d09d3a81ff12cf0695 /editeng | |
parent | 2ecec9d08cdb61494ca7d6b72e9342a3a01171f7 (diff) |
Factor out SvxWeightItem::dumpAsXml() from sw
Change-Id: I97ccc04190b1f75c54e725e0612724a2ef62fe3e
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/textitem.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx index 5ccc7c77636c..6ccbf9b4c370 100644 --- a/editeng/source/items/textitem.cxx +++ b/editeng/source/items/textitem.cxx @@ -722,6 +722,14 @@ bool SvxWeightItem::PutValue( const uno::Any& rVal, sal_uInt8 nMemberId ) return true; } +void SvxWeightItem::dumpAsXml(xmlTextWriterPtr pWriter) const +{ + xmlTextWriterStartElement(pWriter, BAD_CAST("svxWeightItem")); + xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("whichId"), "%d", Which()); + xmlTextWriterWriteAttribute(pWriter, BAD_CAST("presentation"), BAD_CAST(GetValueTextByPos(GetValue()).toUtf8().getStr())); + xmlTextWriterEndElement(pWriter); +} + // class SvxFontHeightItem ----------------------------------------------- SvxFontHeightItem::SvxFontHeightItem( const sal_uLong nSz, |