summaryrefslogtreecommitdiff
path: root/starmath/source
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-01-06 12:20:54 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-01-06 12:25:37 +0100
commit6977d658e16d7c2042eb4ac7db20a1aaf7b3beab (patch)
tree5748ebbd3991deb44f055dc02437178a19ea07be /starmath/source
parentb90ac7d682fd65f75eff4225d871130c0ae9f185 (diff)
write TBAR rather as an accent, use over/underline for m:bar
seems to match the docx semantics better, despite the names
Diffstat (limited to 'starmath/source')
-rw-r--r--starmath/source/ooxmlexport.cxx2
-rw-r--r--starmath/source/ooxmlimport.cxx5
2 files changed, 5 insertions, 2 deletions
diff --git a/starmath/source/ooxmlexport.cxx b/starmath/source/ooxmlexport.cxx
index a7740dac48ce..fd12301cc9ce 100644
--- a/starmath/source/ooxmlexport.cxx
+++ b/starmath/source/ooxmlexport.cxx
@@ -324,6 +324,7 @@ void SmOoxmlExport::HandleAttribute( const SmAttributNode* pNode, int nLevel )
case TWIDETILDE:
case TWIDEHAT:
case TWIDEVEC:
+ case TBAR:
{
m_pSerializer->startElementNS( XML_m, XML_acc, FSEND );
m_pSerializer->startElementNS( XML_m, XML_accPr, FSEND );
@@ -337,7 +338,6 @@ void SmOoxmlExport::HandleAttribute( const SmAttributNode* pNode, int nLevel )
m_pSerializer->endElementNS( XML_m, XML_acc );
break;
}
- case TBAR:
case TOVERLINE:
case TUNDERLINE:
m_pSerializer->startElementNS( XML_m, XML_bar, FSEND );
diff --git a/starmath/source/ooxmlimport.cxx b/starmath/source/ooxmlimport.cxx
index 2fa59e1f3b57..6d4037509f6d 100644
--- a/starmath/source/ooxmlimport.cxx
+++ b/starmath/source/ooxmlimport.cxx
@@ -191,6 +191,9 @@ OUString SmOoxmlImport::handleAcc()
OUString acc;
switch( accChr )
{
+ case MS_BAR:
+ acc = STR( "bar" );
+ break;
case MS_CHECK:
acc = STR( "check" );
break;
@@ -256,7 +259,7 @@ OUString SmOoxmlImport::handleBar()
OUString e = readOMathArgInElement( M_TOKEN( e ));
stream.ensureClosingTag( M_TOKEN( bar ));
if( topbot == top )
- return STR( "bar {" ) + e + STR( "}" );
+ return STR( "overline {" ) + e + STR( "}" );
else
return STR( "underline {" ) + e + STR( "}" );
}