starmath/source/ooxmlexport.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 2c9c43d00c0f77d7c200908718fd94cdbd8c0833 Author: LuboÅ¡ LuÅák <[email protected]> Date: Tue Mar 26 17:04:26 2013 +0100 export quoted parts of math formulas properly to docx mathml Change-Id: I7950ff78c23e5e6c58ffceaa9c2a2f52e3408b26 Reviewed-on: https://gerrit.libreoffice.org/3061 Reviewed-by: Fridrich Strba <[email protected]> Tested-by: Fridrich Strba <[email protected]> diff --git a/starmath/source/ooxmlexport.cxx b/starmath/source/ooxmlexport.cxx index a918cb2..22f813c 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 );
_______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
