summaryrefslogtreecommitdiff
path: root/oox/source/drawingml
diff options
context:
space:
mode:
authorZolnai Tamás <tamas.zolnai@collabora.com>2014-02-03 17:19:25 +0100
committerZolnai Tamás <tamas.zolnai@collabora.com>2014-02-05 10:48:37 +0100
commitc53dd7ea947e0233d98edd3e5d2f07c65ea61f30 (patch)
treef21a49e94ebd333d38359b6a8411787ff1be3851 /oox/source/drawingml
parent51a68b4992c6eb7015d838d1fdf9fc84ec0fa5d2 (diff)
drawingML import: capitalization inside group shape
There are two types of capitalization in DOCX: -uppercase: <w:caps> -smallcaps: <w:smallCaps> Change-Id: I6a5d238bed68aa3fd3478a77cf1942f009480eb6
Diffstat (limited to 'oox/source/drawingml')
-rw-r--r--oox/source/drawingml/textcharacterpropertiescontext.cxx17
1 files changed, 16 insertions, 1 deletions
diff --git a/oox/source/drawingml/textcharacterpropertiescontext.cxx b/oox/source/drawingml/textcharacterpropertiescontext.cxx
index 36bb46536f0b..36bd255455df 100644
--- a/oox/source/drawingml/textcharacterpropertiescontext.cxx
+++ b/oox/source/drawingml/textcharacterpropertiescontext.cxx
@@ -63,7 +63,6 @@ TextCharacterPropertiesContext::TextCharacterPropertiesContext(
mrTextCharacterProperties.moCaseMap = rAttribs.getToken( XML_cap );
/* TODO / unhandled so far:
- XML_cap
A_TOKEN( kern )
XML_altLang
A_TOKEN( kumimoji )
@@ -155,6 +154,22 @@ ContextHandlerRef TextCharacterPropertiesContext::onCreateContext( sal_Int32 aEl
break;
case OOX_TOKEN( doc, szCs ):
break;
+ case OOX_TOKEN( doc, caps ):
+ {
+ if( rAttribs.getBool(OOX_TOKEN( doc, val ), true) )
+ mrTextCharacterProperties.moCaseMap = XML_all;
+ else
+ mrTextCharacterProperties.moCaseMap = XML_none;
+ }
+ break;
+ case OOX_TOKEN( doc, smallCaps ):
+ {
+ if( rAttribs.getBool(OOX_TOKEN( doc, val ), true) )
+ mrTextCharacterProperties.moCaseMap = XML_small;
+ else
+ mrTextCharacterProperties.moCaseMap = XML_none;
+ }
+ break;
default:
SAL_WARN("oox", "TextCharacterPropertiesContext::onCreateContext: unhandled element: " << getBaseToken(aElementToken));
break;