From 255194801e9eb8e3aaede56837450af35f8313e0 Mon Sep 17 00:00:00 2001 From: umeshkadam Date: Fri, 18 Apr 2014 13:12:53 +0530 Subject: fod#77122 DOCX filter: link between textboxes is not being preserved Added support for linked textboxes for docx interoperability. Reviewed on: https://gerrit.libreoffice.org/9092 Change-Id: I7db4f5a1783afff53c64908d182788b262f5e863 --- sw/qa/extras/ooxmlexport/data/LinkedTextBoxes.docx | Bin 0 -> 63185 bytes sw/qa/extras/ooxmlexport/ooxmlexport.cxx | 10 ++++++++++ 2 files changed, 10 insertions(+) create mode 100644 sw/qa/extras/ooxmlexport/data/LinkedTextBoxes.docx (limited to 'sw/qa') diff --git a/sw/qa/extras/ooxmlexport/data/LinkedTextBoxes.docx b/sw/qa/extras/ooxmlexport/data/LinkedTextBoxes.docx new file mode 100644 index 000000000000..1c953c272848 Binary files /dev/null and b/sw/qa/extras/ooxmlexport/data/LinkedTextBoxes.docx differ diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx index a7ad9b7ef41b..00122ea7b3be 100644 --- a/sw/qa/extras/ooxmlexport/ooxmlexport.cxx +++ b/sw/qa/extras/ooxmlexport/ooxmlexport.cxx @@ -3087,6 +3087,16 @@ DECLARE_OOXMLEXPORT_TEST(testAuthorPropertySdt, "author-property.docx") // "xmlns:ns0='http://purl.org/dc/elements/1.1/' xmlns:ns1='http://schemas.openxmlformats.org/package/2006/metadata/core-properties'"); } +DECLARE_OOXMLEXPORT_TEST(testFDO77122, "LinkedTextBoxes.docx") +{ + xmlDocPtr pXmlDoc = parseExport("word/document.xml"); + if (!pXmlDoc) + return; + //ensure that the text box links are preserved. + assertXPath(pXmlDoc, "/w:document/w:body/w:p/w:r[2]/mc:AlternateContent/mc:Choice/w:drawing/wp:anchor/a:graphic/a:graphicData[1]/wps:wsp[1]/wps:txbx[1]", "id", "1"); + assertXPath(pXmlDoc, "/w:document[1]/w:body[1]/w:p[1]/w:r[3]/mc:AlternateContent[1]/mc:Choice[1]/w:drawing[1]/wp:anchor[1]/a:graphic[1]/a:graphicData[1]/wps:wsp[1]/wps:linkedTxbx[1]", "id", "1"); +} + DECLARE_OOXMLEXPORT_TEST(testFDO76586, "fdo76586.docx") { /* -- cgit