diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-02-07 19:25:20 +0100 |
---|---|---|
committer | jan iversen <jani@documentfoundation.org> | 2016-02-09 07:10:41 +0000 |
commit | 805b328858e2d1414e7a9e7701c42a41ede2a617 (patch) | |
tree | 55079578828bf95dec21bca866560a58cc7151b2 /test | |
parent | 16f0bac2bf674e23b9f8d00f59f3d238dc3a5c8c (diff) |
SVGIO: Add import test for Fontsize keywords
Change-Id: I042a1deeec1c07f73f09ddd2fb71b9d2eba6b8c6
Reviewed-on: https://gerrit.libreoffice.org/22187
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/source/primitive2dxmldump.cxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/source/primitive2dxmldump.cxx b/test/source/primitive2dxmldump.cxx index 4a996777fb80..940dea0fdab4 100644 --- a/test/source/primitive2dxmldump.cxx +++ b/test/source/primitive2dxmldump.cxx @@ -21,6 +21,7 @@ #include <drawinglayer/primitive2d/polypolygonprimitive2d.hxx> #include <drawinglayer/primitive2d/hiddengeometryprimitive2d.hxx> #include <drawinglayer/primitive2d/polygonprimitive2d.hxx> +#include <drawinglayer/primitive2d/textprimitive2d.hxx> #include <drawinglayer/attribute/lineattribute.hxx> @@ -166,6 +167,21 @@ void Primitive2dXmlDump::decomposeAndWrite( } break; + case PRIMITIVE2D_ID_TEXTSIMPLEPORTIONPRIMITIVE2D: + { + const TextSimplePortionPrimitive2D* pTextSimplePortionPrimitive2D = dynamic_cast<const TextSimplePortionPrimitive2D*>(pBasePrimitive); + rWriter.startElement("textsimpleportion"); + + basegfx::B2DVector aScale, aTranslate; + double fRotate, fShearX; + if(pTextSimplePortionPrimitive2D->getTextTransform().decompose(aScale, aTranslate, fRotate, fShearX)) + { + rWriter.attribute("height", aScale.getY()); + } + rWriter.endElement(); + } + break; + default: { rWriter.element(OUStringToOString(sCurrentElementTag, RTL_TEXTENCODING_UTF8)); |