diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-03-26 17:04:26 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-03-26 17:20:02 +0100 |
commit | 0682a1cedfddb0db58553f8cbfe619964bd1888a (patch) | |
tree | baa25f524df4b2d4aaa0de8e5eb057101ea89ca6 /starmath | |
parent | a75adeae36d96d507a774b91eb586e89f8035c3e (diff) |
export quoted parts of math formulas properly to docx mathml
Change-Id: I7950ff78c23e5e6c58ffceaa9c2a2f52e3408b26
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/ooxmlexport.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
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 ); |