summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-12-18 10:49:35 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-12-18 10:50:02 +0100
commit2a6dc39ba96648a296fcad29a7a0a44f7e749e2a (patch)
treeea59f02dccc417f4e9e887b47d5e8b30a20db79d /editeng
parentae177f5b9965684c1a358aa43e5957cff218210b (diff)
Factor out SvxFontHeightItem::dumpAsXml() from sw
Change-Id: I8dc3a0ed7bfce62b0d20c6bff143d77c0f26963f
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/textitem.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx
index 3ea6bb73f029..16870d91208e 100644
--- a/editeng/source/items/textitem.cxx
+++ b/editeng/source/items/textitem.cxx
@@ -1128,6 +1128,16 @@ void SvxFontHeightItem::SetHeight( sal_uInt32 nNewHeight, sal_uInt16 nNewProp,
ePropUnit = eMetric;
}
+void SvxFontHeightItem::dumpAsXml(xmlTextWriterPtr pWriter) const
+{
+ xmlTextWriterStartElement(pWriter, BAD_CAST("svxFontHeightItem"));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("whichId"), BAD_CAST(OString::number(Which()).getStr()));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("height"), BAD_CAST(OString::number(nHeight).getStr()));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("prop"), BAD_CAST(OString::number(nProp).getStr()));
+ xmlTextWriterWriteAttribute(pWriter, BAD_CAST("propUnit"), BAD_CAST(OString::number(ePropUnit).getStr()));
+ xmlTextWriterEndElement(pWriter);
+}
+
// class SvxFontWidthItem -----------------------------------------------
SvxFontWidthItem::SvxFontWidthItem( const sal_uInt16 nSz, const sal_uInt16 nPrp, const sal_uInt16 nId ) :