diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2011-11-29 20:27:46 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2011-11-29 21:20:29 +0100 |
commit | d193f127db5fe22207caf0b34d387390a985b398 (patch) | |
tree | e4793ce62a13521928ba20a31d54a74baece1126 /starmath | |
parent | dff36f4c4c75a94cb6ef61f34d03fa2503def92a (diff) |
docx OMathArg can actually be more than one element
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/ooxmlimport.cxx | 35 |
1 files changed, 24 insertions, 11 deletions
diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx index 99ba16ac7e86..6d3e4c9884cf 100644 --- a/starmath/source/ooxmlimport.cxx +++ b/starmath/source/ooxmlimport.cxx @@ -88,36 +88,49 @@ OUString SmOoxmlImport::handleStream() OUString SmOoxmlImport::readOMathArg() { + OUString ret; while( stream.currentToken() != CLOSING( stream.currentToken())) { + if( !ret.isEmpty()) + ret += STR( " " ); switch( stream.currentToken()) { case OPENING( M_TOKEN( acc )): - return handleAcc(); + ret += handleAcc(); + break; case OPENING( M_TOKEN( bar )): - return handleBar(); + ret += handleBar(); + break; case OPENING( M_TOKEN( borderBox )): - return handleBorderBox(); + ret += handleBorderBox(); + break; case OPENING( M_TOKEN( d )): - return handleD(); + ret += handleD(); + break; case OPENING( M_TOKEN( f )): - return handleF(); + ret += handleF(); + break; case OPENING( M_TOKEN( func )): - return handleFunc(); + ret += handleFunc(); + break; case OPENING( M_TOKEN( limLow )): - return handleLimLowUpp( LimLow ); + ret += handleLimLowUpp( LimLow ); + break; case OPENING( M_TOKEN( limUpp )): - return handleLimLowUpp( LimUpp ); + ret += handleLimLowUpp( LimUpp ); + break; case OPENING( M_TOKEN( groupChr )): - return handleGroupChr(); + ret += handleGroupChr(); + break; case OPENING( M_TOKEN( r )): - return handleR(); + ret += handleR(); + break; default: stream.handleUnexpectedTag(); break; } } - return OUString(); + return ret; } OUString SmOoxmlImport::handleAcc() |