diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2011-12-20 10:44:01 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2011-12-20 10:49:41 +0100 |
commit | d607e5cda6d2d18464ecdf6740a90870039a78f7 (patch) | |
tree | d2d2c9f7fcd0eb8a89ef4cc886662ed57512c3f8 /starmath | |
parent | a69d808021e25303c62b84df459515d1ca52dc12 (diff) |
import m:eqArr (part of fdo#32636)
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/ooxmlimport.cxx | 19 | ||||
-rw-r--r-- | starmath/source/ooxmlimport.hxx | 2 |
2 files changed, 20 insertions, 1 deletions
diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx index 8a763a2caeb4..60fb2304d46c 100644 --- a/starmath/source/ooxmlimport.cxx +++ b/starmath/source/ooxmlimport.cxx @@ -116,6 +116,9 @@ OUString SmOoxmlImport::readOMathArg() case OPENING( M_TOKEN( d )): ret += handleD(); break; + case OPENING( M_TOKEN( eqArr )): + ret += handleEqArr(); + break; case OPENING( M_TOKEN( f )): ret += handleF(); break; @@ -358,6 +361,22 @@ OUString SmOoxmlImport::handleD() return ret.makeStringAndClear(); } +OUString SmOoxmlImport::handleEqArr() +{ + stream.ensureOpeningTag( M_TOKEN( eqArr )); + OUString ret; + do + { // there must be at least one m:e + if( !ret.isEmpty()) + ret += STR( "#" ); + ret += STR( " " ); + ret += readOMathArgInElement( M_TOKEN( e )); + ret += STR( " " ); + } while( !stream.atEnd() && stream.findTag( OPENING( M_TOKEN( e )))); + stream.ensureClosingTag( M_TOKEN( eqArr )); + return STR( "stack {" ) + ret + STR( "}" ); +} + OUString SmOoxmlImport::handleF() { stream.ensureOpeningTag( M_TOKEN( f )); diff --git a/starmath/source/ooxmlimport.hxx b/starmath/source/ooxmlimport.hxx index 5bea9758e2b7..dc6816f5402e 100644 --- a/starmath/source/ooxmlimport.hxx +++ b/starmath/source/ooxmlimport.hxx @@ -49,7 +49,7 @@ private: rtl::OUString handleBox(); rtl::OUString handleBorderBox(); rtl::OUString handleD(); - rtl::OUString handleE(); + rtl::OUString handleEqArr(); rtl::OUString handleF(); rtl::OUString handleFunc(); enum LimLowUpp_t { LimLow, LimUpp }; |