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:54:36 +0100 |
commit | 0e0988cc08269eb125bf6e362b8ddba0c0771296 (patch) | |
tree | d17090531f968e83c2586eba25b275a22339888a /starmath | |
parent | a77bbdb6f4203be700bacacd186757b058941346 (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 }; |