From 0682a1cedfddb0db58553f8cbfe619964bd1888a Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Tue, 26 Mar 2013 17:04:26 +0100 Subject: export quoted parts of math formulas properly to docx mathml Change-Id: I7950ff78c23e5e6c58ffceaa9c2a2f52e3408b26 --- starmath/source/ooxmlexport.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'starmath/source/ooxmlexport.cxx') diff --git a/starmath/source/ooxmlexport.cxx b/starmath/source/ooxmlexport.cxx index a918cb295265..22f813c757cc 100644 --- a/starmath/source/ooxmlexport.cxx +++ b/starmath/source/ooxmlexport.cxx @@ -75,6 +75,13 @@ void SmOoxmlExport::HandleText( const SmNode* pNode, int /*nLevel*/) { m_pSerializer->startElementNS( XML_m, XML_r, FSEND ); + if( pNode->GetToken().eType == TTEXT ) // literal text (in quotes) + { + m_pSerializer->startElementNS( XML_m, XML_rPr, FSEND ); + m_pSerializer->singleElementNS( XML_m, XML_lit, FSEND ); + m_pSerializer->singleElementNS( XML_m, XML_nor, FSEND ); + m_pSerializer->endElementNS( XML_m, XML_rPr ); + } if( version == ECMA_DIALECT ) { // HACK: MSOffice2007 does not import characters properly unless this font is explicitly given m_pSerializer->startElementNS( XML_w, XML_rPr, FSEND ); -- cgit