From f6c592b5e1722bd5b77de11c08d649b352f6e620 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Mon, 9 Dec 2013 11:20:36 +0100 Subject: drawingml import: read w:sz Change-Id: I40293a0b612b50d5da3d736f567310525608b308 --- .../drawingml/textcharacterpropertiescontext.cxx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/oox/source/drawingml/textcharacterpropertiescontext.cxx b/oox/source/drawingml/textcharacterpropertiescontext.cxx index d077b4dbafa6..405957c5c2cb 100644 --- a/oox/source/drawingml/textcharacterpropertiescontext.cxx +++ b/oox/source/drawingml/textcharacterpropertiescontext.cxx @@ -130,6 +130,27 @@ ContextHandlerRef TextCharacterPropertiesContext::onCreateContext( sal_Int32 aEl case A_TOKEN( hlinkClick ): // CT_Hyperlink case A_TOKEN( hlinkMouseOver ): // CT_Hyperlink return new HyperLinkContext( *this, rAttribs, mrTextCharacterProperties.maHyperlinkPropertyMap ); + case OOX_TOKEN( doc, rFonts ): + break; + case OOX_TOKEN( doc, b ): + break; + case OOX_TOKEN( doc, bCs ): + break; + case OOX_TOKEN( doc, color ): + break; + case OOX_TOKEN( doc, sz ): + if (rAttribs.getInteger(OOX_TOKEN(doc, val)).has()) + { + sal_Int32 nVal = rAttribs.getInteger(OOX_TOKEN(doc, val)).get(); + // wml has half points, dml has hundred points + mrTextCharacterProperties.moHeight = nVal * 50; + } + break; + case OOX_TOKEN( doc, szCs ): + break; + default: + SAL_WARN("oox", "TextCharacterPropertiesContext::onCreateContext: unhandled element: " << getBaseToken(aElementToken)); + break; } return this; -- cgit