summaryrefslogtreecommitdiffstats
path: root/editeng
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-12-09 09:05:14 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-09 09:06:47 +0100
commit4dbbf535e7f2abfbcdcb3f513e03bdaaeed75d43 (patch)
tree8dd811d06f7a955bf15eb2cbd7d48f9a45eb6c6c /editeng
parentfdo#39440 reduce scope of local variables (diff)
downloadcore-4dbbf535e7f2abfbcdcb3f513e03bdaaeed75d43.tar.gz
core-4dbbf535e7f2abfbcdcb3f513e03bdaaeed75d43.zip
Factor out SvxRsidItem::dumpAsXml() from sw
Change-Id: I60c57fa6a9f3619de717e7b2383dc420706b2886
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/textitem.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx
index 6ccbf9b4c370..7b4ed206fa19 100644
--- a/editeng/source/items/textitem.cxx
+++ b/editeng/source/items/textitem.cxx
@@ -593,6 +593,7 @@ void SvxPostureItem::dumpAsXml(xmlTextWriterPtr pWriter) const
{
xmlTextWriterStartElement(pWriter, BAD_CAST("svxPostureItem"));
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("whichId"), "%d", Which());
+ xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("value"), "%d", GetValue());
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("presentation"), BAD_CAST(GetValueTextByPos(GetValue()).toUtf8().getStr()));
xmlTextWriterEndElement(pWriter);
}
@@ -726,6 +727,7 @@ void SvxWeightItem::dumpAsXml(xmlTextWriterPtr pWriter) const
{
xmlTextWriterStartElement(pWriter, BAD_CAST("svxWeightItem"));
xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("whichId"), "%d", Which());
+ xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("value"), "%d", GetValue());
xmlTextWriterWriteAttribute(pWriter, BAD_CAST("presentation"), BAD_CAST(GetValueTextByPos(GetValue()).toUtf8().getStr()));
xmlTextWriterEndElement(pWriter);
}
@@ -3559,4 +3561,13 @@ SfxPoolItem* SvxRsidItem::Create(SvStream& rIn, sal_uInt16 ) const
{
return new SvxRsidItem( rIn, Which() );
}
+
+void SvxRsidItem::dumpAsXml(xmlTextWriterPtr pWriter) const
+{
+ xmlTextWriterStartElement(pWriter, BAD_CAST("svxRsidItem"));
+ xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("whichId"), "%d", Which());
+ xmlTextWriterWriteFormatAttribute(pWriter, BAD_CAST("value"), "%" SAL_PRIuUINT32, GetValue());
+ xmlTextWriterEndElement(pWriter);
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */