summaryrefslogtreecommitdiff
path: root/starmath/source/ooxmlimport.cxx
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2011-11-30 15:09:11 +0100
committerLuboš Luňák <l.lunak@suse.cz>2011-11-30 16:11:45 +0100
commit0ca8b2c7008694532d3135cc50fc4505ed2c5d64 (patch)
tree718a87eef055eaa1bfc869f740b95e5f56623fc9 /starmath/source/ooxmlimport.cxx
parent0f7fb6868011ea8f7b51a6a326d552254269a63c (diff)
do not ignore docx m:box contents (but m:box itself is not implemented)
Diffstat (limited to 'starmath/source/ooxmlimport.cxx')
-rw-r--r--starmath/source/ooxmlimport.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx
index 31a7a4057af8..c4298b996185 100644
--- a/starmath/source/ooxmlimport.cxx
+++ b/starmath/source/ooxmlimport.cxx
@@ -100,6 +100,9 @@ OUString SmOoxmlImport::readOMathArg()
case OPENING( M_TOKEN( bar )):
ret += handleBar();
break;
+ case OPENING( M_TOKEN( box )):
+ ret += handleBox();
+ break;
case OPENING( M_TOKEN( borderBox )):
ret += handleBorderBox();
break;
@@ -248,6 +251,17 @@ OUString SmOoxmlImport::handleBar()
return STR( "underline { " ) + e + STR( " }" );
}
+OUString SmOoxmlImport::handleBox()
+{
+ // there does not seem to be functionality in LO to actually implement this
+ // (or is there), but at least read in the contents instead of ignoring them
+ stream.ensureOpeningTag( M_TOKEN( box ));
+ OUString e = readOMathArgInElement( M_TOKEN( e ));
+ stream.ensureClosingTag( M_TOKEN( box ));
+ return e;
+}
+
+
OUString SmOoxmlImport::handleBorderBox()
{
stream.ensureOpeningTag( M_TOKEN( borderBox ));