summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-03-26 17:04:26 +0100
committerFridrich Strba <fridrich@documentfoundation.org>2013-03-26 17:31:42 +0000
commit2c9c43d00c0f77d7c200908718fd94cdbd8c0833 (patch)
treeceab796d69d299c08e6cebb42fae6a6346e8e224
parentfb2875a26a1a842c6a7e44f85a1655e6f9092e7b (diff)
export quoted parts of math formulas properly to docx mathml
Change-Id: I7950ff78c23e5e6c58ffceaa9c2a2f52e3408b26 Reviewed-on: https://gerrit.libreoffice.org/3061 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r--starmath/source/ooxmlexport.cxx7
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 );