From 331a0a347e2ed238ff41c8cd7815b946cc95ac0f Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Thu, 21 Jan 2016 18:20:12 +0100 Subject: [PATCH] starmath: fix OOXML export of non-BMP Unicode Change-Id: Iafaeb9ea2e96ee6d8cc96174731ba3845c230b5e --- sd/qa/unit/data/pptx/Math.pptx | Bin 0 -> 35240 bytes sd/qa/unit/export-tests.cxx | 29 +++++++++++++++++++++++++++++ starmath/source/ooxmlexport.cxx | 6 +++--- 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 sd/qa/unit/data/pptx/Math.pptx diff --git a/sd/qa/unit/data/pptx/Math.pptx b/sd/qa/unit/data/pptx/Math.pptx new file mode 100644 index 0000000000000000000000000000000000000000..fef20675b59e982e200680cd3b91246eb2d24f3f GIT binary patch literal 35240 zcmeFZWl$x}nk~F>r*U_8XuN^O-5T9Ejk~);V6?v1-Q?k z!bkFb1ZRvIVssZ&4kYnYNHt$voR&A%kJcvWAACw1q872HGHuRwKIiuY4fqyjYIs<-B@DRm%+MqW8LsxRwqI8cs;_M_vf{66eq5>ImfwxzC@eaOjS$4na6m z_?eIpt%W7m?95{{pfdO3aRahw6S7mcd&E`d4t+XGNKS)cnAp_2d?vPND}%_(Vs<>{&0=FZWsf$k`XT*{V8CTU zG@}ca5{Wb9u*zR3+ZrPGek&uJL;o&Olz+1M?57qmTi#+wo#7({bDXT6crhP|_N~*p z8JUfE^b&@Qe4XcgW6~P}0C;}~1IYb53NU$a$btBvfb9>2!+lV|cRNE1dq#%8e*YKx z|AX=VPmf+6yCMnp`2+e88^mLt94j;=(-zjk2N^?80Db0G+%-J$!s(9ooK0O_df)c+ z8NTmV6K-|Rc`ilqmKU&z$_Tz~hyzdB-S*Gb%@8rz?cJYU6l}8L)Ap|PUWG~Rut)qN z)X>ng(Ba1}Wk<@P?2^lnhLa>QV}%%Wj|_!h1HTR{Yi$hOD1xPi6fWXGn3`Ae*9WPx zzl&*b>9Gz`If~Z@mqe2{?$YP>&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X@c-9C{A^%)Xk}`veny!(&lww(`>h>3B3w%f;U1} z%wHxkP748yu(=}NH+7JcUG!`NbL_7B=S!x@Uu40i4%+0I4@xg>@NzKYUbTF=R1HNv zLceZt@d#E@$OzD2ej(MRy6M0F-oyd9W?bM~cJ+dQ?p8+yEe{toW95tHnlO90y3md! z?yYN@re0xyCx>v){%E_g4r73mxu}1h-a^k-UIai!An{1?CbMaPF#W5<7zSs(gk5y> zx1`VF^07j<%#aNYe6idFy>`WS=<5c&6q*1jNw*t8wueRu22KyWtNF(w@DH`{>((Dg z!plnh4ER|>`bPi+utWGkP#Ux#sEY1GQBL4=oWIi41*QEgKKsA|0Azs^?fycF78C}m zIQoFg2accL!$9>%K?$Iukq?9?h(8(kAR!5g0F5epKx_ej9R2Q}-_m3JpgjERpB^OK z{yzB#7!>^1m{aenoAFA+&%xT}l1VPC^Hjba&;fnnO`9C&}U$sL168*C~ z{BZsj`o1&!ACg0H{|@;<^5@Uo@$){%0%H+>cl3XB$AgH@-zTR4(>(k&`9YQjlng5E z^3XW43I2fmL%Q`}D-V?t3QyiUXa3{(y57`E%U&)(naRokjbA1DE)7-1jpl zC=PTM;R8-i`pDoClose(); } +void SdExportTest::testMathObjectPPT2010() +{ + // Check import / export of math object + ::sd::DrawDocShellRef xDocShRef = loadURL(getURLFromSrc("sd/qa/unit/data/pptx/Math.pptx"), PPTX); + utl::TempFile tempFile1; + xDocShRef = saveAndReload(xDocShRef, PPTX, &tempFile1); + + // Export an MS specific ole object (imported from a PPTX document) + { + xmlDocPtr pXmlDocContent = parseExport(tempFile1, "ppt/slides/slide1.xml"); + assertXPath(pXmlDocContent, + "/p:sld/p:cSld/p:spTree/mc:AlternateContent/mc:Choice", + "Requires", + "a14"); + assertXPathContent(pXmlDocContent, + "/p:sld/p:cSld/p:spTree/mc:AlternateContent/mc:Choice/p:sp/p:txBody/a:p/a14:m/m:oMath/m:sSup/m:e/m:r[1]/m:t", + OUString::fromUtf8("\xf0\x9d\x91\x8e")); // non-BMP char + + const SdrPage *pPage = GetPage(1, xDocShRef); + const SdrObject* pObj = dynamic_cast(pPage->GetObj(0)); + CPPUNIT_ASSERT_MESSAGE("no object", pObj != nullptr); + CPPUNIT_ASSERT_EQUAL(static_cast(OBJ_OLE2), pObj->GetObjIdentifier()); + } + + xDocShRef->DoClose(); +} + void SdExportTest::testBulletMarginAndIndentation() { ::sd::DrawDocShellRef xDocShRef = loadURL( getURLFromSrc("/sd/qa/unit/data/pptx/bulletMarginAndIndent.pptx"), PPTX ); diff --git a/starmath/source/ooxmlexport.cxx b/starmath/source/ooxmlexport.cxx index 277fb2511914..63f7cd4fc0f0 100644 --- a/starmath/source/ooxmlexport.cxx +++ b/starmath/source/ooxmlexport.cxx @@ -75,6 +75,7 @@ void SmOoxmlExport::HandleText( const SmNode* pNode, int /*nLevel*/) m_pSerializer->startElementNS( XML_m, XML_t, FSNS( XML_xml, XML_space ), "preserve", FSEND ); const SmTextNode* pTemp = static_cast(pNode); SAL_INFO( "starmath.ooxml", "Text:" << OUStringToOString( pTemp->GetText(), RTL_TEXTENCODING_UTF8 ).getStr()); + OUStringBuffer buf(pTemp->GetText()); for(sal_Int32 i=0;iGetText().getLength();i++) { #if 0 @@ -94,9 +95,7 @@ void SmOoxmlExport::HandleText( const SmNode* pNode, int /*nLevel*/) nFace = 0x7; *pS << sal_uInt8(nFace+128); //typeface #endif - sal_uInt16 nChar = pTemp->GetText()[i]; - m_pSerializer->writeEscaped( OUString( SmTextNode::ConvertSymbolToUnicode(nChar))); - + buf[i] = SmTextNode::ConvertSymbolToUnicode(buf[i]); #if 0 //Mathtype can only have these sort of character //attributes on a single character, starmath can put them @@ -127,6 +126,7 @@ void SmOoxmlExport::HandleText( const SmNode* pNode, int /*nLevel*/) } #endif } + m_pSerializer->writeEscaped(buf.makeStringAndClear()); m_pSerializer->endElementNS( XML_m, XML_t ); m_pSerializer->endElementNS( XML_m, XML_r ); }