[PATCH libreoffice-4-0] export quoted parts of math formulas properly to docx mathml
Luboš Luňák (via_Code_Review)
gerrit at gerrit.libreoffice.org
Tue Mar 26 09:24:05 PDT 2013
Hi,
I have submitted a patch for review:
https://gerrit.libreoffice.org/3061
To pull it, you can do:
git pull ssh://gerrit.libreoffice.org:29418/core refs/changes/61/3061/1
export quoted parts of math formulas properly to docx mathml
Change-Id: I7950ff78c23e5e6c58ffceaa9c2a2f52e3408b26
---
M starmath/source/ooxmlexport.cxx
1 file changed, 7 insertions(+), 0 deletions(-)
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 @@
{
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 );
--
To view, visit https://gerrit.libreoffice.org/3061
To unsubscribe, visit https://gerrit.libreoffice.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I7950ff78c23e5e6c58ffceaa9c2a2f52e3408b26
Gerrit-PatchSet: 1
Gerrit-Project: core
Gerrit-Branch: libreoffice-4-0
Gerrit-Owner: Luboš Luňák <l.lunak at suse.cz>
More information about the LibreOffice
mailing list