summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-02-08 22:49:42 +0100
committerTomaž Vajngerl <quikee@gmail.com>2019-02-09 11:58:06 +0100
commit24f7dd62517f150f4137727a72544387421027b9 (patch)
treeeca80e0b27d6bda4b28418becacd0e0bc6f6cb1b /tools
parentbec35535b4cb784800a79cd315b4f761d0a6758e (diff)
move and extend primitive2dxmldump to drawinglayer
Also needs extending the XmlWriter to output double numbers as the attribute content. Change-Id: Ie749ea990d856c8c90092ed8153c24efda99c444 Reviewed-on: https://gerrit.libreoffice.org/67573 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/xml/XmlWriter.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/source/xml/XmlWriter.cxx b/tools/source/xml/XmlWriter.cxx
index 7780bbb35fb5..3400a6e9d94b 100644
--- a/tools/source/xml/XmlWriter.cxx
+++ b/tools/source/xml/XmlWriter.cxx
@@ -136,6 +136,11 @@ void XmlWriter::attribute(const OString& name, const sal_Int32 aNumber)
attribute(name, OUString::number(aNumber));
}
+void XmlWriter::attributeDouble(const OString& name, const double aNumber)
+{
+ attribute(name, OUString::number(aNumber));
+}
+
void XmlWriter::content(const OString& sValue)
{
xmlChar* xmlValue = xmlCharStrdup(sValue.getStr());