summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2013-12-09 11:20:36 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2013-12-09 12:01:09 +0100
commitf6c592b5e1722bd5b77de11c08d649b352f6e620 (patch)
tree6d8da40e692dcd805497ab51c7dac74928b8d576 /oox
parent9b531abb6179a9f7f9cf4c745dba5060397425c6 (diff)
drawingml import: read w:sz
Change-Id: I40293a0b612b50d5da3d736f567310525608b308
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/textcharacterpropertiescontext.cxx21
1 files changed, 21 insertions, 0 deletions
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;